You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: os migrate plan / apply on an artifact-only stack does not compose the knowledge service that os serve mounts from a shipped knowledge source #38062
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Filing gate: ① follow-up of PR #38059 (#38039; out-of-scope finding of the dev report 7230969358, class b, measured at a public door; one card per finding) · Source: topic #37000
Grading: area:ai · Bug · p2 (suggested: the migrate run and the serve run of one artifact compose different platforms, against a contract sentence) · reach: every artifact-only stack (dist/objectstack.json, no config) that ships a knowledgeSources entry and no requires: ['knowledge'] · evidence: measured by the dev of #38039 (an artifact with one knowledgeSources entry: os serve mounts KnowledgeServicePlugin; os migrate plan on the same artifact composes none, its "Composed what os serve mounts" note lists none, and ObjectQLPlugin warns the source is unserved).
Dedupe: is:issue migrate plan artifact knowledgeSources → checked at filing; open: #38039 (the parent) only.
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.
维护者速读
问题:只有构建产物、没有配置文件的应用,os serve 启动时会因为自带知识源而挂上知识服务,但 os migrate plan / apply 读同一份产物时不会,于是两次启动拼出的平台不一致,迁移计划还会提示知识源"无人服务"。
做什么:让迁移命令和 os serve 一样,从产物里的知识源推导出要挂的知识服务。
谁受益:用构建产物部署、带知识源的应用(迁移计划和真实运行一致)。
需要你做的:无。
What
composeServedPlatform reads stackItemCapabilities(loadedConfig ?? {}), and packages/cli/src/utils/schema-migrate.ts (around lines 1429-1435) hands only stack.requires (servedPlatform.artifactRequires) from the standalone result. On an artifact-only stack the loaded config is empty, so the item token (mountedBy: { collection: 'knowledgeSources' }) is never derived. Since #38059 the standalone result carries knowledgeSources; hand the item-derived tokens (or the collection itself) to the served-platform composition the same way os serve reads them, so both boots compose one set, as the #37306 changeset ("os migrate plan / apply read them too") and the serve/migrate comment ("so both boots compose one set") state.
Acceptance
os migrate plan on an artifact-only stack with one knowledgeSources entry and no requires composes the knowledge service; its "Composed what os serve mounts" note names it; no unserved warning.
Control: the same artifact with no source composes none.
Triage: lands in area:ai · domain:cli · Bug · p2 · pm:blocked · size S; rationale: on an artifact-only stack, os migrate plan / apply does not compose the knowledge service that os serve mounts from a shipped knowledge source. The migrate run and the serve run of one artifact then see different platforms, against a contract sentence (measured at a public door). The filer's p2 stands. It waits per its Blocked-by: line. Recorded 2026-11-28T01:17Z.
Claim: PM loop round 12 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-28T04:07Z
Session: session_016WV4cwPhGV4g9p1BGQaZbP
Account: os-elon-musk
Branch: claude/area-o1C-38062
Worktree: objectstack-issue-38062
Domain: domain:cli
Area: o1-C
Seat: repo:objectstack#1
File surface: packages/cli/src/utils/schema-migrate.ts (the servedPlatform / authGatedSecurity hand-off around lines 1429-1435, which passes only stack.requires), packages/cli/src/utils/schema-migration-plugins.ts (where stackItemCapabilities is read), a pinned test beside the existing plan.* tests in packages/cli/src/commands/migrate/, a changeset.
Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: S; one composition input on the migrate path, measured against the os serve path that already derives it)
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's own code, packages/cli/src/utils/schema-migrate.ts | os migrate plan / apply on an artifact-only stack composes a different platform than os serve of the same artifact, and warns its knowledge source is unserved | every artifact-only stack that ships a knowledgeSources entry and no requires: ['knowledge']
Thread-read: 7232295651
Premise: holds, read on origin/main 0e36120 — schema-migrate.ts hands servedPlatform: { artifactRequires: stack.requires } only; on an artifact-only stack the loaded config is empty, so stackItemCapabilities derives no item token. Since #38059 (93fa911) the standalone result carries knowledgeSources.
Serial constraints cleared: #38039 closed out (7232213361); #38059 merged. No open area PR touches packages/cli/src/utils/schema-migrate.ts or schema-migration-plugins.ts (#38056, #38060, #38013, #37982, #38038 file lists read).
Pre-claim lane: packages/cli/** ⇒ domain:cli.
Pre-claim deps: #38039 closed.
Prior rulings read: card thread — triage 7231565087 (Bug p2, size S), unlock 7232295651.
Fold-or-serial: not folded.
{
"issue": 38062,
"status": "done",
"branch": "claude/area-o1C-38062",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38175",
"session": "session_016WV4cwPhGV4g9p1BGQaZbP",
"premise_still_valid": true,
"summary": "os migrate plan / apply now hand the standalone stack result to the served-platform composition (servedPlatform.artifactStack, schema-migrate.ts), and composeServedPlatform reads stackItemCapabilities off serve's own merge, mergeBootConfig(config, artifactStack), on a non-host config, under the same gate the requires rule already uses. An artifact-only stack that ships a knowledgeSources entry and no requires therefore composes KnowledgeServicePlugin, as os serve does. A host config, or a call with no artifactStack, is unchanged. authGatedSecurity is untouched because knowledge maps to no tier.",
"tests": "New packages/cli/src/commands/migrate/plan.artifact-item-capabilities.test.ts (unit tier, runs os migrate plan --json on an artifact-only project). On head 21be65c7a7: Test Files 2 passed, Tests 41 passed (with boot-preparation-parity), lock VERDICT command-exit 0. Ablation, with both source files restored to 0e361201b2 and the test unchanged: the main case goes red at the note assertion (the note lists the REST API plugin through PackageServicePlugin, with no KnowledgeServicePlugin) and the control stays green (Tests 1 failed / 1 passed). Second ablation, with the warning assertion moved first: red, 'expected ... not to match /knowledge_source item.*no knowledge service/'. The tree was restored after each run and git status was empty. cli unit tier: 445 files passed. 2 published-subpath pins failed on a missing packages/cli/dist prerequisite; after building cli they read 2 files passed, 29 tests passed. cli typecheck exit 0. schema-migration-plugins.test.ts (integration tier): 54 passed. The integration tier as a whole is declared to CI.",
"gates": "dispatch-gates --commands: 70 commands, --ran 70/70 accounted. 68 exit 0. NOT MEASURED: check:dual-build-cjs-loads (PREREQUISITE NOT MET, whole-tree dist) and check:i18n-coverage (exit 3, partial round). These were rerun on final head 21be65c7a7, all exit 0: test-source-alias (it was red at 1 on 01765b14cf for an unaliased @objectstack/service-knowledge preload, which the last commit removes), 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. overlap-check vs origin/main and #38056/#38060/#38013/#37982/#38038: VERDICT clean exit 0. PR check-runs at report time: in_progress (Check Changeset, Lint lanes, Type Check lanes, Governed Surface Queue Guard). Borrowed queue verdict, Queue verdict and Schedule gate are skipped.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus the assignees leg on issues/38175), and this os-dev-report comment (POST issues/38062/comments). Also git push to the branch, which is not REST.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: the new plan-level test file takes about 20 s of wall locally, almost all module import (tests 3.6 s). It carries no test-budget header, like its sibling plan.ai-auto-inject-refusal.test.ts; recorded in case the shard-timing measurement flags it."
]
}
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:cli · Bug · p2 · pm:blocked · size S; rationale: on an artifact-only stack,
os migrate plan/applydoes not compose the knowledge service thatos servemounts from a shipped knowledge source. The migrate run and the serve run of one artifact then see different platforms, against a contract sentence (measured at a public door). The filer's p2 stands. It waits per itsBlocked-by:line. Recorded 2026-11-28T01:17Z.objectstack-fleet commentedon Nov 28, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock · #38062 · 2026-11-28T02:19Z: its
Blocked-by:card #38039 is closed, and PR #38059 merged at 2026-11-28T02:12Z.pm:blocked→pm:queue; the grade (p2, area:ai, domain:cli) is unchanged. Answers seat repo:objectstack#1 (7232286971).objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Claim: PM loop round 12 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-28T04:07Z
Session:
session_016WV4cwPhGV4g9p1BGQaZbPAccount:
os-elon-muskBranch:
claude/area-o1C-38062Worktree:
objectstack-issue-38062Domain:
domain:cliArea: o1-C
Seat:
repo:objectstack#1File surface:
packages/cli/src/utils/schema-migrate.ts(theservedPlatform/authGatedSecurityhand-off around lines 1429-1435, which passes onlystack.requires),packages/cli/src/utils/schema-migration-plugins.ts(wherestackItemCapabilitiesis read), a pinned test beside the existingplan.*tests inpackages/cli/src/commands/migrate/, a changeset.Container & model: S,
mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: S; one composition input on the migrate path, measured against theos servepath that already derives it)Clause-②: no
Metadata-protocol: none
Responsibility: objectstack's own code,
packages/cli/src/utils/schema-migrate.ts|os migrate plan/applyon an artifact-only stack composes a different platform thanos serveof the same artifact, and warns its knowledge source is unserved | every artifact-only stack that ships aknowledgeSourcesentry and norequires: ['knowledge']Thread-read: 7232295651
Premise: holds, read on origin/main 0e36120 —
schema-migrate.tshandsservedPlatform: { artifactRequires: stack.requires }only; on an artifact-only stack the loaded config is empty, sostackItemCapabilitiesderives no item token. Since #38059 (93fa911) the standalone result carriesknowledgeSources.Serial constraints cleared: #38039 closed out (7232213361); #38059 merged. No open area PR touches
packages/cli/src/utils/schema-migrate.tsorschema-migration-plugins.ts(#38056, #38060, #38013, #37982, #38038 file lists read).Pre-claim lane:
packages/cli/**⇒domain:cli.Pre-claim deps: #38039 closed.
Prior rulings read: card thread — triage 7231565087 (Bug p2, size S), unlock 7232295651.
Fold-or-serial: not folded.
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
os-dev-report
{ "issue": 38062, "status": "done", "branch": "claude/area-o1C-38062", "pr": "https://github.com/objectstack-ai/objectstack/pull/38175", "session": "session_016WV4cwPhGV4g9p1BGQaZbP", "premise_still_valid": true, "summary": "os migrate plan / apply now hand the standalone stack result to the served-platform composition (servedPlatform.artifactStack, schema-migrate.ts), and composeServedPlatform reads stackItemCapabilities off serve's own merge, mergeBootConfig(config, artifactStack), on a non-host config, under the same gate the requires rule already uses. An artifact-only stack that ships a knowledgeSources entry and no requires therefore composes KnowledgeServicePlugin, as os serve does. A host config, or a call with no artifactStack, is unchanged. authGatedSecurity is untouched because knowledge maps to no tier.", "tests": "New packages/cli/src/commands/migrate/plan.artifact-item-capabilities.test.ts (unit tier, runs os migrate plan --json on an artifact-only project). On head 21be65c7a7: Test Files 2 passed, Tests 41 passed (with boot-preparation-parity), lock VERDICT command-exit 0. Ablation, with both source files restored to 0e361201b2 and the test unchanged: the main case goes red at the note assertion (the note lists the REST API plugin through PackageServicePlugin, with no KnowledgeServicePlugin) and the control stays green (Tests 1 failed / 1 passed). Second ablation, with the warning assertion moved first: red, 'expected ... not to match /knowledge_source item.*no knowledge service/'. The tree was restored after each run and git status was empty. cli unit tier: 445 files passed. 2 published-subpath pins failed on a missing packages/cli/dist prerequisite; after building cli they read 2 files passed, 29 tests passed. cli typecheck exit 0. schema-migration-plugins.test.ts (integration tier): 54 passed. The integration tier as a whole is declared to CI.", "gates": "dispatch-gates --commands: 70 commands, --ran 70/70 accounted. 68 exit 0. NOT MEASURED: check:dual-build-cjs-loads (PREREQUISITE NOT MET, whole-tree dist) and check:i18n-coverage (exit 3, partial round). These were rerun on final head 21be65c7a7, all exit 0: test-source-alias (it was red at 1 on 01765b14cf for an unaliased @objectstack/service-knowledge preload, which the last commit removes), 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. overlap-check vs origin/main and #38056/#38060/#38013/#37982/#38038: VERDICT clean exit 0. PR check-runs at report time: in_progress (Check Changeset, Lint lanes, Type Check lanes, Governed Surface Queue Guard). Borrowed queue verdict, Queue verdict and Schedule gate are skipped.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls plus the assignees leg on issues/38175), and this os-dev-report comment (POST issues/38062/comments). Also git push to the branch, which is not REST.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: the new plan-level test file takes about 20 s of wall locally, almost all module import (tests 3.6 s). It carries no test-budget header, like its sibling plan.ai-auto-inject-refusal.test.ts; recorded in case the shard-timing measurement flags it." ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Close-out · area o1-C · 2026-11-28T08:29Z
Delivered by PR #38175 (merged 9db1dc8 at 2026-11-28T08:28Z). Nothing remains on this card for the area.
pm:dispatchedremoved with this comment.