Repository navigation
fix(cli): os migrate plan / apply compose the knowledge service an artifact-only stack's shipped source mounts, as os serve does - #38175
Conversation
…ped items mount, as os serve does Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
…-mount pin Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
…fact item-mount pin Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift Check3 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 40 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7715eaa785f829d4e2b9d51ecdb9127b8d4c73b5 && git checkout 7715eaa785f829d4e2b9d51ecdb9127b8d4c73b5
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 9dca1097bd8f843c630cd491d2c8af20e1c678cb 21be65c7a7eba65f23afbd8fdbb85466139802ab && git checkout -B drift-repro 9dca1097bd8f843c630cd491d2c8af20e1c678cb && git merge --no-ff 21be65c7a7eba65f23afbd8fdbb85466139802ab
node scripts/docs-audit/affected-docs.mjs --json 9dca1097bd8f843c630cd491d2c8af20e1c678cb |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summaryShape.
Code read against the claim.
Gates.
Next: the area lands it once every check at this head is green. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP Landing · area o1-C · head
State: ready + auto-merge; #38062 closes on merge via |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46114097353 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
Fixes #38062
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
On an artifact-only stack (
dist/objectstack.json, noobjectstack.config.ts),os servebuilds its config as the standalone stack's result laid over the empty authored config (mergeBootConfig), then reads the tokens the stack's items mount off that config (stackItemCapabilities). Since the standalone result started carryingknowledgeSources, a shippedknowledge_sourcemounts KnowledgeServicePlugin there.os migrate plan/applyhanded the served-platform composition onlystack.requires, andcomposeServedPlatformread item tokens off the loaded config, which is empty on that stack. Now:packages/cli/src/utils/schema-migrate.ts:servedPlatformalso carriesartifactStack: stack, the standalone result.packages/cli/src/utils/schema-migration-plugins.ts:composeServedPlatformreadsstackItemCapabilitiesoffmergeBootConfig(config, artifactStack)whenever the config is not a host config. That is serve's own merge, gated by the same rulerequiresalready follows a few lines above. A host config, or a call with noartifactStack(os migrate security-catalog-overlays), reads the config as before.The auth gate's
authGatedSecurityhand-off is unchanged. The only item token isknowledge, and it maps to no tier (CAPABILITY_TO_TIER), so the tier reading is the same with or without it.Tests
packages/cli/src/commands/migrate/plan.artifact-item-capabilities.test.ts(unit tier) runsos migrate plan --jsonon an artifact-only project:knowledgeSourcesentry and norequires: exit 0,composition.hostConfigis null (precondition), the "Composed whatos servemounts" note namesKnowledgeServicePlugin, and no output channel carries the unserved-knowledge_source warning;KnowledgeServicePlugin.Acceptance notes
0e361201b2, test unchanged): the main case goes red on the note assertion (the note lists the REST API plugin through PackageServicePlugin, with no KnowledgeServicePlugin), and the control stays green. A second ablation moved the warning assertion first. It went red with the ObjectQLPlugin unserved line in captured output, which shows the "no warning" assertion can fail. The tree was restored andgit statusread clean after each run.Verification
Read first:
composeServedPlatform'sservedConfigline inschema-migration-plugins.ts(the gate onisHostConfig), then theservedPlatformhand-off inschema-migrate.ts.Two-minute check:
pnpm --filter @objectstack/cli exec vitest run --project unit src/commands/migrate/plan.artifact-item-capabilities.test.tsshould give 2 passed.Local readings
pnpm turbo run build --filter='@objectstack/cli^...': 69/69 tasks, lock VERDICT command-exit 0.@objectstack/cliunit tier: 445 files passed. The 2published-subpath-*pins failed on a missingpackages/cli/distprerequisite, not on this change. Afterpnpm --filter @objectstack/cli buildthey read Test Files 2 passed, Tests 29 passed.pnpm --filter @objectstack/cli typecheck: exit 0.src/utils/schema-migration-plugins.test.ts(integration tier, the touched module): Tests 54 passed.overlap-check --pr=38056,38060,38013,37982,38038: VERDICT clean, exit 0.dispatch-gates --commands, 70 commands,--ran70/70 accounted): 68 exit 0. Two read NOT MEASURED:check:dual-build-cjs-loads(PREREQUISITE NOT MET, needs a whole-tree build) andcheck:i18n-coverage(exit 3, a partial round with unbuilt configs); CI runs both.test-source-alias,cross-package-test-inputs,issue-citations,nul-bytes,undeclared-dep-imports,doc-authoring,type-check-debt,type-check-coverage,refd-timer-probe,empty-changeset,changeset-no-major,adr-0087-registration. The new pin andboot-preparation-parityalso passed again: Test Files 2 passed, Tests 41 passed.Generated by Claude Code