Repository navigation
docs(skills): seed replace deletes nothing; minimal preset still mounts job and queue - #31461
Conversation
…ts job/queue The platform skill's Seed Data line marked seed mode `replace` as data loss. The loader's replace path only inserts (writeRecord and decideWriteAction), so it deletes nothing and duplicates rows a caller did not clear. The PLATFORM_ALWAYS_ON_CAPABILITIES comment now names what resolveServedCapabilities still mounts under --preset minimal. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jT9oVmjxA38pKor1tX
📓 Docs Drift Check
What this run could not see
Coarse fallback — 171 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
Contract-review-claim: session_01QsR2jV5sBSzCYNEDgpYLJw · head ded443a · 2026-11-08T09:17:48Z Generated by Claude Code |
|
director#1 · zhuangjianguo · session_01QsR2jV5sBSzCYNEDgpYLJw Contract reviewServed-tier: ① Contract against the card
② Which seed text was wrong
③ The TSDoc against the composition code
④ Tier, deviations, CI
⑤ Findings
Implemented-by: VERDICT: PASS Generated by Claude Code |
|
domain:skills#2 · zhuangjianguo · session_01QsR2jT34CXs5fCn3BDirZw 维护者速读
席位核对Head-sha:
|
Requested by Steedos · project thread
Fixes #31379
Clause-②: no
Metadata-protocol: none
维护者速读
replace标成「数据丢失」,改为「从不删除、会重复」;PLATFORM_ALWAYS_ON_CAPABILITIES的注释补全--preset minimal下仍会挂载job/queue/email的情形。replace只做插入,一行都不删;旧文案吓退本该可用的场景,却漏说真正的风险(重复行)。注释原说 minimal「完全退出」,与resolveServedCapabilities实际行为不符。skills/objectstack-platform/SKILL.md(Seed Data 段两行)、packages/spec/src/kernel/platform-capabilities.ts(L347-351 注释)。node scripts/check-skills-token-ratchet.mjs,预期平台 SKILL.md 仍为 5994 tokens(上限 6011),退出码 0。What changes
skills/objectstack-platform/SKILL.md§ Seed Data:replacereplaceSeedModemember stays named (theseed-modesliveness binding). The growth is paid in the same paragraph ("rows that already exist —" becomes "existing rows:"), on the same two lines.packages/spec/src/kernel/platform-capabilities.tsTSDoc onPLATFORM_ALWAYS_ON_CAPABILITIES:--preset minimalopts out of the slate, butresolveServedCapabilities(packages/core/src/capability-composition.ts) still mountsjobandqueuefirst whenemail,approvalsorauthis present (NEEDS_JOB_AND_QUEUE), and mountsemailwheneverauthis. Comment only..changeset/31379-seed-replace-minimal-preset-text.md:'@objectstack/skills': patch. No@objectstack/specentry: the Check Changeset job requires a changeset, not one per moved package, and the spec edit is a comment.The
SeedModecomment inpackages/spec/src/data/seed.zod.tsandskills/objectstack-data/references/seeds.mdwere already right and are unchanged.Tests
The loader measurement that decided which text was wrong, on
0c4f621e's parent4941c40b:Seed loader
replaceover existing rows (throwaway probe, not committed)The real
SeedLoaderServiceover an in-memory engine double holding two rows,gold(matched by the dataset'sexternalId: 'name') andlegacy(not in the dataset). Dataset:mode: 'replace', recordsgoldandsilver.replacedeleted nothing (the row outside the dataset survives), left the matched row as it was, and inserted every record again on each load. Code:writeRecord'scase 'replace'only callsengine.insert, anddecideWriteActiongroupsreplacewithinsert.pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/kernel/platform-capabilities.test.ts: 35/35 passed.pnpm --filter @objectstack/spec typecheckunder the verify lock: VERDICT command-exit 0.Acceptance notes
skills/**readings, origin/main4941c40bvs head:skills/objectstack-platform/SKILL.md411 → 411 lines, 23994 → 23993 bytes, 5994 → 5994 tokens (ceiling 6011); all SKILL.md files 4553 → 4553 lines; bundle total 237077 → 237077 tokens.skills/objectstack-platform/references/seeds.md, which does not exist; the seeds reference isskills/objectstack-data/references/seeds.md, already correct and untouched.Verification
Derived gates: 93 derived, 92 exit 0, 1 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat0c4f621e: 93 commands; 92 exit 0.pnpm check:dual-build-cjs-loadsexit 3 (PREREQUISITE NOT MET: needs every package's dist; left to CI).--ranreconciliation: 93 accounted, 92 run, 1 NOT-MEASURED, 0 UNRUN.After merging
origin/main(headded443ab, no incoming change to a touched file), re-run:check-skills-token-ratchet,check:skill-identifier-liveness,check:skill-links,check-changeset-no-major,check-empty-changeset, speccheck:docs,check:nul-bytes, all exit 0.Generated by Claude Code