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
package duplicate: every seed of the installed Starter is refused "Unrecognized key(s) on this seed: name", so the copy answers success:false #39341
Filing gate: ① product defect with a public-door reproduction · Source: fleet (os-dev out-of-scope finding on #38374, report 7379691385; filed by zone package-1203 on the seat's word under the areas' standing follow-up permission)
Grading: area:package · Bug · p2 · reach: public door — POST /api/v1/packages/:id/duplicate on the installed Starter, measured once (wrong result) · evidence: measured by the #38374 dev in an examples/app-starter/test/boot.test.ts probe (not committed) at ca114a34 (PR #39340 head, main 23e859a plus that card's files); pre-existing, unrelated to knowledge.
Parent: #38374 (sub-issue; found while measuring that card's "duplicating the package succeeds" line).
Dedupe: searched duplicate seed unrecognized key name (80 hits, none on this), duplicate package seed spec validation (297 hits, none on this), duplicatePackage seed failed spec validation → no open or closed card describes it.
Reader: a zone of seat repo:objectstack@os-bill after triage's first touch.
Business reason
Duplicating a package is how an organization takes a copy of a shipped app (the Starter first of all) to make it its own. Today every duplicate of the installed Starter reports failure and leaves the copy without its seed data, so the copy opens empty and the user is told the duplicate failed.
What happens
POST /api/v1/packages/com.example.starter-copy/duplicate on a host with the Starter installed answers success: false, copiedCount: 13, failedCount: 3.
Each of the three seeds is refused: seed/starter_second_..._seed failed spec validation: Unrecognized key(s) on this seed: name.
So the duplicate path re-validates a seed body that carries name (the item's own name, presumably stamped by the read or the registry) against the strict seed schema, which does not declare it.
Done when
First measure it red on main (this reading was taken on a PR head; if it does not reproduce on main, close with the reading).
Duplicating the installed Starter copies every seed: success: true, failedCount: 0, and the copy's seeds load.
The fix strips or never carries the envelope key at the duplicate path; it does NOT relax the strict seed schema (no name added to the accept set). If the only fix is a schema change, stop and report it as a fork.
Pinned on a booted kernel with a package that ships at least one seed.
Triage: first-touch audit (lane self-triage, case ②: filed by this seat and kept in this lane; area, type, grade and size touched in the round it was filed) · area:package · Bug · p2 · size/s · pm:queue · no domain:* written here (triage's; the fix is read to be packages/metadata-protocol/src/protocol-package-commits.ts, duplicatePackage at :215).
Ruling-ref: .claude/skills/pm-dispatch/references/triage-duties.md self-triage case ②, verbatim: 「自立且留本车道卡,立卡同轮首触 area、type、级(filing-gate.md)、size 与审计」
Grade: a public door (package duplicate) answers failure and drops every seed of the platform's own Starter, so every copy of the Starter opens without its data ⇒ p2 per the North Star's Priority table (the seat's word: "it breaks every duplicate of the Starter, so p2 at least").
Review: triage
Claim: PM loop round 1 · 2026-12-03T13:35Z
Session: session_01Utp6CY1DVmttnuNH77G3ht
Account: os-bill
Branch: claude/issue-39341-duplicate-seed-name
Worktree: objectstack-issue-39341
Domain: domain:server
Seat: repo:objectstack@os-bill
Area: package-1203
File surface: packages/metadata-protocol/src/protocol-package-commits.ts (the duplicate door's seed copy); a pin test beside it (or in the shared harness AGENTS.md names) and a patch changeset are implicit. Stop on any other breach and explain in the report.
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: ProtocolPackageCommitsFacet.duplicatePackage in objectstack (re-validates a seed body carrying name against the strict seed schema, by the finding's reading); no platform path covers it; every organization that duplicates the installed Starter, today.
Thread-read: 7380045116
Premise: holds by the dev's probe at ca114a34 (os-dev report 7379691385 on #38374); not yet measured on main — the dev measures it red on main first and closes with the reading if it does not reproduce.
Pre-claim lane: domain:server (packages/metadata-protocol); this seat keeps it.
Pre-claim deps: none.
Prior rulings read: the card's Done-when fence (no name added to the strict seed accept set; a schema-only fix is a fork); the dev runs check-prior-rulings.mjs --card 39341 on its surface before the first edit.
Serial constraints cleared: check-handover.mjs --inflight --card=39341 → OVERLAP with #38174 (claim 7378145399, this seat's card thread, packages/metadata-protocol/src/ wide). Notify: serial — the dev runs overlap-check.mjs before each push and queues behind #38174's PR only on a real textual conflict.
{
"issue": 39341,
"status": "done",
"branch": "claude/issue-39341-duplicate-seed-name",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39347",
"session": "session_01Utp6CY1DVmttnuNH77G3ht",
"premise_still_valid": true,
"summary": "Reproduced red on main (base fde47efb): a booted-kernel duplicate of a package shipping one seed answered failed=[seed ... 'seed/dupdst_customer_seed failed spec validation: Unrecognized key(s) on this seed: name']. Where name enters: the shared rename engine's rewrite (planNamespaceRename in package-namespace-rename.ts) sets name to the copy name on every body except object_extension; every other copied type declares name, a seed does not (strict SeedSchema). Fix (fence kept, seed schema untouched): duplicatePackage deletes the stamped name off a copied seed after rename.rewrite, one line in protocol-package-commits.ts; the copy's object still follows the copied object. The sibling unmanaged-install door never sends a seed through rewrite, so it is unaffected. Pin: new top-level describe in the booted-kernel duplicate harness packages/objectql/src/protocol-duplicate-package-unprefixed-object.test.ts (outside the claim's single-file surface: metadata-protocol cannot boot an ObjectQL kernel, and the dispatch ordered a booted-kernel pin; noted, not a fix outside the surface).",
"tests": "Red: pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/protocol-duplicate-package-unprefixed-object.test.ts -t 39341 against metadata-protocol dist built from base fde47efb -> 'Tests 1 failed | 4 skipped', AssertionError with the card's exact refusal. Green after the fix (metadata-protocol rebuilt): 'Tests 5 passed (5)' at a17fb6ae and again at final head 6187abde. This red-then-green on the same test is the ablation (fix absent = base dist, present = rebuilt dist). Suites at e1695506 (fix identical to final head; final head only moves the test's import to module top): metadata-protocol test 'Test Files 384 passed | 9 skipped, Tests 23966 passed | 45 skipped'; objectql test 'Test Files 647 passed, Tests 14693 passed'; typecheck metadata-protocol + objectql Done (objectql re-run at 6187abde, Done). Downstream runtime (direction: consumers of metadata-protocol dist, closure built with pnpm --filter '@objectstack/runtime^...' build): vitest src/package-duplicate-adopt-org-scope.integration.test.ts src/domains/packages-* -> 'Test Files 61 passed, Tests 1202 passed' (declared narrowing: the full runtime suite is CI's).",
"gates": "Local derived set: node scripts/pm/dispatch-gates.mjs --commands (70 families, tree e1695506) all run, exit captured before any pipe: 66 exit 0; NOT MEASURED x3 (prerequisite, not verdicts): check-plugin-teardown-shape --self-test exit 3 (shallow clone, cannot read pinned fixture commit; same exit 3 on the shared main checkout), check:dts-closure exit 1 (declaration files absent for packages outside this closure, no full build), check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, no repo-wide dist); 1 real red fixed: check:test-source-alias exit 1 (dynamic import of @objectstack/spec/data in the new pin) -> moved to module top in 6187abde, re-run exit 0 'check-test-source-alias OK'. --ran reconciliation: '70 derived famil(ies) accounted for — 70 run, 0 NOT-MEASURED' (runner's list carried no exit codes; codes above). check-nul-bytes exit 0. overlap-check before each push: VERDICT clean (merges cleanly with origin/main, 0 PR heads). Union NOT re-run at final head 6187abde (test-only one-line import move): declared narrowing, only check:test-source-alias and the touched suite re-run. CI check-runs on PR #39347: NOT MEASURED, report delivered before CI converges per contract.",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/39347/assignees os-bill, one stroke fw-20261203T141556Z-d0afad, read-back identical); post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/39341/comments. Plus 4 git pushes (probe + 3 commits), not REST.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (PR Acceptance notes): a copied seed still passes through the rename engine's whole-identifier free-text rewrite, so a record VALUE spelled exactly like a renamed object name of the package would be rewritten in the copy (the unmanaged import skips rewrite for seeds for this reason); read-only inference, no reach measured.",
"carrier: none · noted, not filed: the class-closing alternative is the engine stamping name only on types whose declaration carries one (package-namespace-rename.ts, outside this claim's surface); today seed and object_extension are the two known no-name bodies."
]
}
Paused · 2026-12-03T14:53Z — on the maintainer's word relayed by the seat (quota at 18%; seat order 2026-12-03 ~14:52Z). No os-dev is running; claim 7380074891 is kept. Draft PR #39347 stays as it is at head 6187abde (isolated L1 read the code as ACCEPT; body attribution lines added; CI was still converging, no seat ACCEPT record yet). Restart = read the PR's check-runs at that head, post the ACCEPT record, hand to the seat for landing. Follow-up #39358 (p3) filed from that L1.
Delivered: 2026-12-03T20:52Z · PR #39347 merged as 9674b7f; Fixes #39341 closed this card as completed. pm:dispatched removed in this stroke.
What landed: duplicating a package that ships seeds no longer fails with "Unrecognized key(s) on this seed: name". The duplicate door strips the engine-stamped name off copied seed rows only; SeedSchema stays strict and the save door still refuses name. Booted-kernel pin in objectql.
Reviews: L1 ACCEPT (code head 6187abd), Opus L2 PASS 7390570393, ACCEPT 7391128191.
Activity
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Triage: first-touch audit (lane self-triage, case ②: filed by this seat and kept in this lane; area, type, grade and size touched in the round it was filed) · area:package · Bug · p2 · size/s ·
pm:queue· nodomain:*written here (triage's; the fix is read to bepackages/metadata-protocol/src/protocol-package-commits.ts,duplicatePackageat :215).Ruling-ref:
.claude/skills/pm-dispatch/references/triage-duties.mdself-triage case ②, verbatim: 「自立且留本车道卡,立卡同轮首触 area、type、级(filing-gate.md)、size 与审计」Grade: a public door (package duplicate) answers failure and drops every seed of the platform's own Starter, so every copy of the Starter opens without its data ⇒ p2 per the North Star's Priority table (the seat's word: "it breaks every duplicate of the Starter, so p2 at least").
Review: triage
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Claim: PM loop round 1 · 2026-12-03T13:35Z
Session:
session_01Utp6CY1DVmttnuNH77G3htAccount:
os-billBranch:
claude/issue-39341-duplicate-seed-nameWorktree:
objectstack-issue-39341Domain:
domain:serverSeat:
repo:objectstack@os-billArea: package-1203
File surface:
packages/metadata-protocol/src/protocol-package-commits.ts(the duplicate door's seed copy); a pin test beside it (or in the shared harness AGENTS.md names) and a patch changeset are implicit. Stop on any other breach and explain in the report.Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
ProtocolPackageCommitsFacet.duplicatePackagein objectstack (re-validates a seed body carryingnameagainst the strict seed schema, by the finding's reading); no platform path covers it; every organization that duplicates the installed Starter, today.Thread-read: 7380045116
Premise: holds by the dev's probe at
ca114a34(os-dev report 7379691385 on #38374); not yet measured onmain— the dev measures it red onmainfirst and closes with the reading if it does not reproduce.Pre-claim lane:
domain:server(packages/metadata-protocol); this seat keeps it.Pre-claim deps: none.
Prior rulings read: the card's Done-when fence (no
nameadded to the strict seed accept set; a schema-only fix is a fork); the dev runscheck-prior-rulings.mjs --card 39341on its surface before the first edit.Serial constraints cleared:
check-handover.mjs --inflight --card=39341→ OVERLAP with #38174 (claim 7378145399, this seat's card thread,packages/metadata-protocol/src/wide). Notify: serial — the dev runsoverlap-check.mjsbefore each push and queues behind #38174's PR only on a real textual conflict.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
os-dev-report
{ "issue": 39341, "status": "done", "branch": "claude/issue-39341-duplicate-seed-name", "pr": "https://github.com/objectstack-ai/objectstack/pull/39347", "session": "session_01Utp6CY1DVmttnuNH77G3ht", "premise_still_valid": true, "summary": "Reproduced red on main (base fde47efb): a booted-kernel duplicate of a package shipping one seed answered failed=[seed ... 'seed/dupdst_customer_seed failed spec validation: Unrecognized key(s) on this seed: name']. Where name enters: the shared rename engine's rewrite (planNamespaceRename in package-namespace-rename.ts) sets name to the copy name on every body except object_extension; every other copied type declares name, a seed does not (strict SeedSchema). Fix (fence kept, seed schema untouched): duplicatePackage deletes the stamped name off a copied seed after rename.rewrite, one line in protocol-package-commits.ts; the copy's object still follows the copied object. The sibling unmanaged-install door never sends a seed through rewrite, so it is unaffected. Pin: new top-level describe in the booted-kernel duplicate harness packages/objectql/src/protocol-duplicate-package-unprefixed-object.test.ts (outside the claim's single-file surface: metadata-protocol cannot boot an ObjectQL kernel, and the dispatch ordered a booted-kernel pin; noted, not a fix outside the surface).", "tests": "Red: pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/protocol-duplicate-package-unprefixed-object.test.ts -t 39341 against metadata-protocol dist built from base fde47efb -> 'Tests 1 failed | 4 skipped', AssertionError with the card's exact refusal. Green after the fix (metadata-protocol rebuilt): 'Tests 5 passed (5)' at a17fb6ae and again at final head 6187abde. This red-then-green on the same test is the ablation (fix absent = base dist, present = rebuilt dist). Suites at e1695506 (fix identical to final head; final head only moves the test's import to module top): metadata-protocol test 'Test Files 384 passed | 9 skipped, Tests 23966 passed | 45 skipped'; objectql test 'Test Files 647 passed, Tests 14693 passed'; typecheck metadata-protocol + objectql Done (objectql re-run at 6187abde, Done). Downstream runtime (direction: consumers of metadata-protocol dist, closure built with pnpm --filter '@objectstack/runtime^...' build): vitest src/package-duplicate-adopt-org-scope.integration.test.ts src/domains/packages-* -> 'Test Files 61 passed, Tests 1202 passed' (declared narrowing: the full runtime suite is CI's).", "gates": "Local derived set: node scripts/pm/dispatch-gates.mjs --commands (70 families, tree e1695506) all run, exit captured before any pipe: 66 exit 0; NOT MEASURED x3 (prerequisite, not verdicts): check-plugin-teardown-shape --self-test exit 3 (shallow clone, cannot read pinned fixture commit; same exit 3 on the shared main checkout), check:dts-closure exit 1 (declaration files absent for packages outside this closure, no full build), check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, no repo-wide dist); 1 real red fixed: check:test-source-alias exit 1 (dynamic import of @objectstack/spec/data in the new pin) -> moved to module top in 6187abde, re-run exit 0 'check-test-source-alias OK'. --ran reconciliation: '70 derived famil(ies) accounted for — 70 run, 0 NOT-MEASURED' (runner's list carried no exit codes; codes above). check-nul-bytes exit 0. overlap-check before each push: VERDICT clean (merges cleanly with origin/main, 0 PR heads). Union NOT re-run at final head 6187abde (test-only one-line import move): declared narrowing, only check:test-source-alias and the touched suite re-run. CI check-runs on PR #39347: NOT MEASURED, report delivered before CI converges per contract.", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/39347/assignees os-bill, one stroke fw-20261203T141556Z-d0afad, read-back identical); post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/39341/comments. Plus 4 git pushes (probe + 3 commits), not REST.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (PR Acceptance notes): a copied seed still passes through the rename engine's whole-identifier free-text rewrite, so a record VALUE spelled exactly like a renamed object name of the package would be rewritten in the copy (the unmanaged import skips rewrite for seeds for this reason); read-only inference, no reach measured.", "carrier: none · noted, not filed: the class-closing alternative is the engine stamping name only on types whose declaration carries one (package-namespace-rename.ts, outside this claim's surface); today seed and object_extension are the two known no-name bodies." ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Paused · 2026-12-03T14:53Z — on the maintainer's word relayed by the seat (quota at 18%; seat order 2026-12-03 ~14:52Z). No os-dev is running; claim 7380074891 is kept. Draft PR #39347 stays as it is at head
6187abde(isolated L1 read the code as ACCEPT; body attribution lines added; CI was still converging, no seat ACCEPT record yet). Restart = read the PR's check-runs at that head, post the ACCEPT record, hand to the seat for landing. Follow-up #39358 (p3) filed from that L1.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CY1DVmttnuNH77G3ht
Delivered: 2026-12-03T20:52Z · PR #39347 merged as 9674b7f;
Fixes #39341closed this card as completed.pm:dispatchedremoved in this stroke.nameoff copied seed rows only;SeedSchemastays strict and the save door still refusesname. Booted-kernel pin inobjectql.dependsOnobject names do not follow the copy #39358 (p3) — copied seed records still run through the free-text rewrite anddependsOndoes not follow the copy.