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 }}
Seed: the runtime save door accepts a seed whose object names no object, and the publish probe then tells the author to "Publish again" #34864
A seed draft that names an object that does not exist is saved 200. Publishing then reports "published", and the probe's remedy, "Publish again", cannot work.
Reproduction
Reproduced 3 times on fresh DBs at 6091b645.
POST /api/v1/packages with {"manifest":{"id":"com.objectstack.qa.seedobs3","name":"QA seed obs 3","version":"0.1.0","type":"app"}} → 201.
Draft and publish an object seedobs3_item.
PUT /api/v1/meta/seed/seedobs3_bad?mode=draft&package=com.objectstack.qa.seedobs3 with {"object":"seedobs3_nope","mode":"upsert","records":[{"name":"X"}]} → 200.
POST …/publish-drafts with {} → 200:
outcome is "published";
seedApplied.success is false ("Object 'seedobs3_nope' not found");
the seed_not_applied probe's userMessage says "…could not be read after publishing. Publish again…".
Expected
The save door refuses, with a 4xx, a seed bound to an unknown object, as it now refuses permission-set grants (#28990), and the remedy names the unknown object. This partly overlaps #27393 (closed): publishing and stop-at-failure are unchanged there by design, so this card covers only the save-door acceptance and the misleading remedy.
QA-source: #34859 · platform-core.seed-mode-matrix · observed beside the clauses
First touch (R1197, 14:5xZ): p2 · domain:server → pm:queue.
Theme: MCP. Agents save seeds through the build door, and a seed naming no object is accepted. The publish probe then tells the author to "Publish again", which is the wrong fix. In a theme without a direct customer effect, that is p2.
Claim: PM loop round 3 · area pkg-1 (the maintainer, verbatim, 2026-11-19T05:04Z project chat: 「再开一个 area:package」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T06:13Z
Session: session_01Utp6CaysxGzF62ACvZ1x9x
Account: os-bill
Area: pkg-1
Branch: claude/issue-34864-seed-unknown-object-save-door
Worktree: objectstack-issue-34864 (os-dev worktree in the pkg-1 container)
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/metadata-protocol/src/protocol-save-door-refusals.ts (seedExternalIdSaveRefusal / a sibling seed refusal: a seed whose object resolves to no pending, draft or registered object), packages/metadata-protocol/src/build-probes.ts + build-probes.user-text.ts (the seed_not_applied remedy when the object does not exist), the save-door wiring in protocol.ts / protocol-save.ts only if the refusal needs a new call site, a new test file named for this card (or the shared save-door harness file if AGENTS.md's shared-harness rule applies), root .changeset/. ⛔ packages/metadata-protocol/src/seed-loader.ts (same-area PR #35361 and the queued #34857), ⛔ packages/spec/** unless the remedy text must be a spec export (stop and report first). Stop on breach and report.
Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: platform — packages/metadata-protocol/src/protocol-save-door-refusals.ts:1048 returns undefined ("not judged here") for a seed whose object neither a pending batch, a draft nor the registry knows, so PUT /api/v1/meta/seed/… saves it 200; at publish seedApplied.success is false and the seed_not_applied probe (build-probes.ts:~549, cause unreadable) tells the author to "Publish again", which cannot work. Reached by every build-door author (MCP agents and REST) who misnames a seed's object.
Thread-read: 6951749983
Premise: holds — on origin/main3819afec: seedExternalIdSaveRefusal skips an unresolved object by design comment ("the load reports an object it cannot find"); a draft object in the same package is still deferred to its publish (:1043-1046) and stays so.
Serial constraints cleared: overlap-check.mjs on a probe branch touching the three files: base clean; open draft PR #35261 (fleet, security/create-objectstack) shares protocol-save-door-refusals.ts and merges cleanly. The dev re-runs before each push.
Pre-claim lane: domain:server (packages/metadata-protocol/**)
Pre-claim deps: none named; #27393 closed (publish stop-at-failure unchanged by design — this card leaves it unchanged).
Prior rulings read: #28990 (save door refuses an unknown permission-set grant — the precedent the card names); #27393 (publish unchanged, out of scope); #28952 (the externalId save refusal this sits beside); check-prior-rulings 384 hits — ADR-0071 §1, ADR-0143 D3, ADR-0150 D9, ADR-0155 D1, ADR-0018 §3 (term noise, none on point); thread: none. Narrowing in lane: dogfood battery on final head, L1-a, seat contract review.
{
"issue": 34864,
"status": "blocked",
"branch": "claude/issue-34864-seed-unknown-object-save-door",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35388",
"head": "913a0d5dc",
"session": "session_01Utp6CaysxGzF62ACvZ1x9x",
"premise_still_valid": true,
"blocked_on": "PM: authorize one file under the fenced packages/spec/** - packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts (ADR-0087 semantic ledger entry, data only, no export, no Zod change). check-adr-0087-registration refuses `not-required (no-migration-prescription)` on a `Metadata-protocol: narrowed` changeset and requires a registered entry; the changeset already names `registered seed-object-unknown-refused`; the entry text is drafted at the dev scratchpad 18.seed-object-unknown-refused.ts (shape copied from 18.picklist-binding-unknown-refused.ts). Everything else is done and green.",
"summary": "The save door (saveMetaItem, door 'save') now refuses 422 INVALID_METADATA at `object` a seed whose object no pending batch object, object draft (draft save), registered object or stored/code-defined object (readMetaItem) resolves, naming the object and the fix; unknown follows the #28990 grant refusal (registry without getObject refuses nothing, two-holder name counts as held, dependency objects answer the registry read). Publish promotion and restore doors are unchanged (#27393 ruling), migrate-stored re-saves unjudged, draft-object deferral kept. The seed_not_applied probe gains cause `missing` (engine getSchema answers none and no published object held) whose message/fix/userMessage (11 locales) name the missing object; other read failures stay `unreadable`. Blocked only on the fenced ADR-0087 ledger entry.",
"A1": "holds at 3819afec: seedExternalIdSaveRefusal returned undefined for an object resolved by neither pending batch nor registry (`if (!pendingObject && !registered) return undefined`); draft deferral at the listDrafts check kept unchanged.",
"A2": "holds: build-probes.ts catch branch emitted seed_not_applied cause `unreadable` -> user text 'Publish again'; now a `missing` cause for an absent object, `unreadable` kept for a real read failure.",
"A3": "red first at b802de301: new pins Tests 4 failed | 26 passed (30) - draft-into-package, draft-no-package and publish saves of a seed naming `seedkey_nope` saved 200, and a publish save whose object is only a draft saved 200; the publish-promotion control (planted draft publishes, load reports) was already green, matching the card's publish-says-published reading. Not reproduced over live HTTP; the save door is exercised through saveMetaItem on the real protocol.",
"tests": "metadata-protocol typecheck + full vitest (head 727228b5c): Test Files 358 passed | 9 skipped (367), Tests 23231 passed | 45 skipped, VERDICT command-exit 0. objectql full vitest: Test Files 615 passed, Tests 13881 passed. runtime 7 seed/publish suites: 299 passed; cloud-connection marketplace-install-local-install-modes: 64 passed. Targeted after fixture fixes: metadata-protocol 6 files 253 passed; objectql 3 files 109 passed. Ablations via ablation-replace on committed fix, src-resolved suites (no dist): save door `if (!canLookUp)` -> `if (canLookUp)` anchor 1->0 blob 72f70d5f806c->b21c9c2a9c58, Tests 4 failed | 26 passed, restored blob == HEAD and git diff HEAD empty; probe `if (objectIsMissing(` -> `if (false && objectIsMissing(` blob c00b4f008088->b438e786daf4, Tests 3 failed | 42 passed, restored blob == HEAD.",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 93e394d90/913a0d5dc: 76 families, 74 exit 0; check-adr-0087-registration exit 1 (the blocked ledger entry); check:type-check-debt exit 3 PREREQUISITE NOT MET (lock queue-timeout behind this branch's own dogfood run) -> NOT MEASURED, CI reading; check:facade-delegation-only was red at 11716 lines (ceiling 11705) and is green at 11705 after shortening the protocol.ts docblock. --ran reconciliation exit 0: 76 derived, 76 run, 0 unrun. overlap-check.mjs --branch=HEAD VERDICT clean before every push (#35261 merges cleanly). PR check-runs: in_progress at report time, not awaited.",
"dogfood_battery": "913a0d5dc · os-verify-lock VERDICT command-exit 0 (held 38m43s) · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures",
"line_budget": "protocol.ts 11704 -> 11705, facade ceiling 11705 (at ceiling, green); no skills/** touched",
"files_changed": [
".changeset/34864-seed-unknown-object-save-door.md",
"packages/metadata-protocol/src/protocol-save-door-refusals.ts",
"packages/metadata-protocol/src/protocol-save.ts",
"packages/metadata-protocol/src/protocol.ts",
"packages/metadata-protocol/src/build-probes.ts",
"packages/metadata-protocol/src/build-probes.user-text.ts",
"packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts",
"packages/metadata-protocol/src/build-probes-user-message.test.ts",
"packages/objectql/src/protocol-meta.test.ts",
"packages/objectql/src/publish-package-drafts-seed-receipt-counts.test.ts",
"packages/objectql/src/publish-seed-receipt-landed-ids.test.ts"
],
"deviations": [
"Three objectql test files outside the claimed surface: stale fixtures the narrowing reds (two stage a missing-object seed draft at rest via the migrate-stored re-save; one registers the object its brand-new seed names). Declared in the PR body.",
"protocol.seed-external-id-refusal.test.ts: the old control 'an object neither registered nor drafted is not judged here' pinned exactly the removed branch and was replaced by the new [#34864] describe (shared-harness rule: new top-level describe in the existing file, no new file).",
"packages/spec/** fence held: the ADR-0087 entry the gate demands is not written; status blocked on it.",
"Restore door left unjudged for object existence alongside the publish promotion (card scope: save door only); noted in Acceptance notes."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes - pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/35388/assignees os-bill), os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34864/comments via post-stamped.mjs); git push x5 not REST",
"open_questions": [
{ "question": "May this PR add packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts (ADR-0087 ledger entry, data only) despite the packages/spec/** fence?", "options": ["A: authorize; the dev adds the drafted entry to this PR, reruns check:adr-0087-registration and the spec ledger gates", "B: the seat adds the entry on this branch itself", "C: keep spec untouched and land with the gate red (not possible: Lint & Repo Gates is required)"], "recommendation": "A, because the entry is pure ledger data with no export or schema change, the gate is required, and the text is already drafted" }
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed - refuseRestoredBodyTheSaveDoorRefuses docblock in protocol.ts lists every restore refusal except the #28952 seed externalId refusal it does ask (doc drift, no runtime effect); Acceptance notes only"
]
}
Claim: amended by the area after the dev's report (os-dev-report 7003045933, open question 1) · 2026-11-19T07:47Z
Session: session_01Utp6CaysxGzF62ACvZ1x9x
Account: os-bill
Area: pkg-1
Branch: claude/issue-34864-seed-unknown-object-save-door
File surface: as claimed, plus packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts (the ADR-0087 semantic ledger entry a Metadata-protocol: narrowed changeset must register: data only, no export, no Zod change; required by check-adr-0087-registration), and three objectql test files whose fixtures staged or registered a missing-object seed (packages/objectql/src/protocol-meta.test.ts, publish-package-drafts-seed-receipt-counts.test.ts, publish-seed-receipt-landed-ids.test.ts). No other path. PR: #35388.
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Lane: the spec file is a ledger entry for this card's own narrowing (lane-keep rule: a fix already ruled that touches packages/spec/** stays in this lane; L1-a, then seat contract review).
{
"issue": 34864,
"status": "done",
"branch": "claude/issue-34864-seed-unknown-object-save-door",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35388",
"head": "468886742",
"session": "session_01Utp6CaysxGzF62ACvZ1x9x",
"premise_still_valid": true,
"summary": "The save door (saveMetaItem, door 'save') now refuses 422 INVALID_METADATA at `object` a seed whose object no pending batch object, object draft (draft save), registered object or stored/code-defined object (readMetaItem) resolves, naming the object and the fix; unknown follows the #28990 grant refusal (registry without getObject refuses nothing, two-holder name counts as held, dependency objects answer the registry read). Publish promotion and restore doors are unchanged (#27393 ruling), migrate-stored re-saves unjudged, draft-object deferral kept. The seed_not_applied probe gains cause `missing` (engine getSchema answers none and no published object held) whose message/fix/userMessage (11 locales) name the missing object; other read failures stay `unreadable`. The ADR-0087 semantic ledger entry seed-object-unknown-refused (packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts, data only) was added at 468886742 after the seat authorized it (amended claim 7003076381). Neither main nor any open PR carries that id (git grep origin/main 2e9e1ac9d; REST issue search of open PRs: 1 hit, #35388 itself). The entry is named 18.* because spec is at 18.6.0, and the gate accepted it.",
"A1": "holds at 3819afec: seedExternalIdSaveRefusal returned undefined for an object resolved by neither pending batch nor registry (`if (!pendingObject && !registered) return undefined`); draft deferral at the listDrafts check kept unchanged.",
"A2": "holds: build-probes.ts catch branch emitted seed_not_applied cause `unreadable` -> user text 'Publish again'; now a `missing` cause for an absent object, `unreadable` kept for a real read failure.",
"A3": "red first at b802de301: new pins Tests 4 failed | 26 passed (30) - draft-into-package, draft-no-package and publish saves of a seed naming `seedkey_nope` saved 200, and a publish save whose object is only a draft saved 200; the publish-promotion control (planted draft publishes, load reports) was already green, matching the card's publish-says-published reading. Not reproduced over live HTTP; the save door is exercised through saveMetaItem on the real protocol.",
"tests": "metadata-protocol typecheck + full vitest (head 727228b5c): Test Files 358 passed | 9 skipped (367), Tests 23231 passed | 45 skipped, VERDICT command-exit 0. objectql full vitest: Test Files 615 passed, Tests 13881 passed. runtime 7 seed/publish suites: 299 passed; cloud-connection marketplace-install-local-install-modes: 64 passed. Targeted after fixture fixes: metadata-protocol 6 files 253 passed; objectql 3 files 109 passed. Ablations via ablation-replace on committed fix, src-resolved suites (no dist): save door `if (!canLookUp)` -> `if (canLookUp)` anchor 1->0 blob 72f70d5f806c->b21c9c2a9c58, Tests 4 failed | 26 passed, restored blob == HEAD and git diff HEAD empty; probe `if (objectIsMissing(` -> `if (false && objectIsMissing(` blob c00b4f008088->b438e786daf4, Tests 3 failed | 42 passed, restored blob == HEAD. No test re-run for 468886742: a spec ledger data file, covered by the spec gates above.",
"gates": "913a0d5dc: dispatch-gates --commands (76 families) - 74 exit 0, check-adr-0087-registration exit 1 (entry not yet added), check:type-check-debt exit 3 (lock queue-timeout), --ran reconciliation 76/76. 468886742: check-adr-0087-registration --base origin/main :: exit 0 ('registered seed-object-unknown-refused (new here)'). The 24 families dispatch-gates adds for the spec path, run after building the spec/lint/cli closures, all :: exit 0: check-dev-prereqs --self-test, cli migrate-meta-engine-guidance test, lint check:doc-formula-expressions, spec check:api-surface, authorable-surface, browser-reachable-entries, docs, dual-source-exports, empty-state, entry-nameability, export-origins, exported-any, liveness, llms-txt, skill-refs, spec-changes, strictness-ledger, upgrade-guide, variant-docs, check:merge-driver, pm-prior-rulings, role-word, spec-docblock-symbol-anchors, spec-parsed-alias. pnpm check:type-check-debt under the lock :: exit 0 (TCD_EXIT=0). check:facade-delegation-only green at 11705. overlap-check --branch=HEAD VERDICT clean before the push (origin/main 2e9e1ac9d and #35261 merge cleanly). CI TypeScript Type Check on 913a0d5dc (run 44482123637, job 135418794130): log saved, 0 'error TS'. Its 4 lanes (source gates, workspace, debt ledger, consumer gates) concluded cancelled at 07:50:46-07:51:02Z, when the 07:50:44Z push of 468886742 started run 44482743535. The aggregator then failed on 'concluded cancelled'. So it is not a defect in this PR and needs no fix; the run on the new head is the reading. New-head check-runs were in_progress at report time and were not waited on.",
"dogfood_battery": "913a0d5dc · os-verify-lock VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Not re-run on 468886742: that commit adds only ADR-0087 ledger data that no dogfood app reads, and no gate asked for a re-run.",
"line_budget": "protocol.ts 11704 -> 11705, facade ceiling 11705 (at ceiling, green); no skills/** touched",
"files_changed": [
".changeset/34864-seed-unknown-object-save-door.md",
"packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts",
"packages/metadata-protocol/src/protocol-save-door-refusals.ts",
"packages/metadata-protocol/src/protocol-save.ts",
"packages/metadata-protocol/src/protocol.ts",
"packages/metadata-protocol/src/build-probes.ts",
"packages/metadata-protocol/src/build-probes.user-text.ts",
"packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts",
"packages/metadata-protocol/src/build-probes-user-message.test.ts",
"packages/objectql/src/protocol-meta.test.ts",
"packages/objectql/src/publish-package-drafts-seed-receipt-counts.test.ts",
"packages/objectql/src/publish-seed-receipt-landed-ids.test.ts"
],
"deviations": [
"The three objectql fixture files and the spec ledger entry are inside the claim as amended (7003076381).",
"protocol.seed-external-id-refusal.test.ts: the old control 'an object neither registered nor drafted is not judged here' pinned exactly the removed branch and was replaced by the new [#34864] describe (shared-harness rule: new top-level describe in the existing file, no new file).",
"Restore door left unjudged for object existence alongside the publish promotion (card scope: save door only); noted in Acceptance notes.",
"PR body not PATCHed by the dev. The coordinator asked for a body update, but os-dev.md rule 3 says a subagent writes the PR body only at pr_create and the seat makes later edits (conflict flagged per os-dev.md). The ready replacement body is at /tmp/claude-0/-home-user/c893b4fc-3b9c-5a11-9710-88b957ccb0b9/scratchpad/issue-34864/pr-body-v2.md. It adds the File-surface line, the spec file, the 468886742 gate readings and the cancelled-run explanation, and drops the 'ADR-0087 entry not in this PR' note."
],
"mcp_calls": "0",
"api_writes": "3 relay strokes. pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft) + POST .../issues/35388/assignees. os-dev-report comments: 7003045933 and this one, POST .../issues/34864/comments via post-stamped.mjs. The 6 git pushes are not REST writes.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed - refuseRestoredBodyTheSaveDoorRefuses docblock in protocol.ts lists every restore refusal except the #28952 seed externalId refusal it does ask (doc drift, no runtime effect); Acceptance notes only"
]
}
{
"issue": 34864,
"status": "done",
"branch": "claude/issue-34864-seed-unknown-object-save-door",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35388",
"head": "3025ade8eb1310b51a3aec79d03d824b56f944e4",
"session": "session_01Utp6CaysxGzF62ACvZ1x9x",
"premise_still_valid": true,
"summary": "Battery addendum to report 7003357918 for the landing head. 3025ade8e is a merge of origin/main into 468886742 (seat L2 PASS 7003894547 on 468886742); no PR file changed by the merge. Owed per L2 ③ (battery must run on the head that lands).",
"dogfood_battery": "3025ade8e · os-verify-lock VERDICT command-exit 0 · held the lock 1926s · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Full battery, no OS_TEST_SHARD, no path filter; closure built with pnpm turbo run build --filter=@objectstack/dogfood (70/70 tasks ok).",
"tests": "CI on 3025ade8e: 58 success, 11 skipped, 0 failure.",
"gates": "unchanged from 7003357918; CI gates green on 3025ade8e.",
"line_budget": "unchanged from 7003357918",
"files_changed": "unchanged from 7003357918 (merge of main only)",
"deviations": [],
"mcp_calls": "0",
"api_writes": "1 relay stroke: this comment via post-stamped.mjs.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["filed: #35413 (L2 nits N1+N2 and the #28952 docblock note)"]
}
Close-out 2026-11-19T10:05Z: PR #35388 MERGED as fe3ebc8767; Fixes closed this card. Delivered: the save door refuses 422 INVALID_METADATA at object a seed whose object no pending object, draft, registered or stored object resolves, naming the object and the fix (a draft object is enough for a draft seed); the publish promotion, restore door and migrate-stored re-saves are unchanged. The seed_not_applied probe gains cause missing, whose text names the object and says to fix the name or create and publish the object (11 locales). ADR-0087 entry seed-object-unknown-refused registered. Clause-②: no (narrowing), Metadata-protocol: narrowed; L1-a ACCEPT 7003799034, seat L2 PASS 7003894547 + delta 7005154256, dogfood battery 7005072503. Out of scope filed: #35413 (L2 N1+N2 and the restore-door docblock note); skills-docs follow-up filed by the seat. pm:dispatched off.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1197, 14:5xZ): p2 · domain:server →
pm:queue.Theme: MCP. Agents save seeds through the build door, and a seed naming no object is accepted. The publish probe then tells the author to "Publish again", which is the wrong fix. In a theme without a direct customer effect, that is p2.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
Claim: PM loop round 3 · area pkg-1 (the maintainer, verbatim, 2026-11-19T05:04Z project chat: 「再开一个 area:package」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T06:13Z
Session:
session_01Utp6CaysxGzF62ACvZ1x9xAccount:
os-billArea: pkg-1
Branch:
claude/issue-34864-seed-unknown-object-save-doorWorktree:
objectstack-issue-34864(os-dev worktree in the pkg-1 container)Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/metadata-protocol/src/protocol-save-door-refusals.ts(seedExternalIdSaveRefusal/ a sibling seed refusal: a seed whoseobjectresolves to no pending, draft or registered object),packages/metadata-protocol/src/build-probes.ts+build-probes.user-text.ts(theseed_not_appliedremedy when the object does not exist), the save-door wiring inprotocol.ts/protocol-save.tsonly if the refusal needs a new call site, a new test file named for this card (or the shared save-door harness file if AGENTS.md's shared-harness rule applies), root.changeset/. ⛔packages/metadata-protocol/src/seed-loader.ts(same-area PR #35361 and the queued #34857), ⛔packages/spec/**unless the remedy text must be a spec export (stop and report first). Stop on breach and report.Container & model:
M,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no (narrowing)
Metadata-protocol: narrowed
Responsibility: platform —
packages/metadata-protocol/src/protocol-save-door-refusals.ts:1048returnsundefined("not judged here") for a seed whose object neither a pending batch, a draft nor the registry knows, soPUT /api/v1/meta/seed/…saves it 200; at publishseedApplied.successis false and theseed_not_appliedprobe (build-probes.ts:~549, causeunreadable) tells the author to "Publish again", which cannot work. Reached by every build-door author (MCP agents and REST) who misnames a seed's object.Thread-read: 6951749983
Premise: holds — on
origin/main3819afec:seedExternalIdSaveRefusalskips an unresolved object by design comment ("the load reports an object it cannot find"); a draft object in the same package is still deferred to its publish (:1043-1046) and stays so.Serial constraints cleared:
overlap-check.mjson a probe branch touching the three files: base clean; open draft PR #35261 (fleet, security/create-objectstack) sharesprotocol-save-door-refusals.tsand merges cleanly. The dev re-runs before each push.Pre-claim lane:
domain:server(packages/metadata-protocol/**)Pre-claim deps: none named; #27393 closed (publish stop-at-failure unchanged by design — this card leaves it unchanged).
Prior rulings read: #28990 (save door refuses an unknown permission-set grant — the precedent the card names); #27393 (publish unchanged, out of scope); #28952 (the externalId save refusal this sits beside); check-prior-rulings 384 hits — ADR-0071 §1, ADR-0143 D3, ADR-0150 D9, ADR-0155 D1, ADR-0018 §3 (term noise, none on point); thread: none. Narrowing in lane: dogfood battery on final head, L1-a, seat contract review.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
os-dev-report
{ "issue": 34864, "status": "blocked", "branch": "claude/issue-34864-seed-unknown-object-save-door", "pr": "https://github.com/objectstack-ai/objectstack/pull/35388", "head": "913a0d5dc", "session": "session_01Utp6CaysxGzF62ACvZ1x9x", "premise_still_valid": true, "blocked_on": "PM: authorize one file under the fenced packages/spec/** - packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts (ADR-0087 semantic ledger entry, data only, no export, no Zod change). check-adr-0087-registration refuses `not-required (no-migration-prescription)` on a `Metadata-protocol: narrowed` changeset and requires a registered entry; the changeset already names `registered seed-object-unknown-refused`; the entry text is drafted at the dev scratchpad 18.seed-object-unknown-refused.ts (shape copied from 18.picklist-binding-unknown-refused.ts). Everything else is done and green.", "summary": "The save door (saveMetaItem, door 'save') now refuses 422 INVALID_METADATA at `object` a seed whose object no pending batch object, object draft (draft save), registered object or stored/code-defined object (readMetaItem) resolves, naming the object and the fix; unknown follows the #28990 grant refusal (registry without getObject refuses nothing, two-holder name counts as held, dependency objects answer the registry read). Publish promotion and restore doors are unchanged (#27393 ruling), migrate-stored re-saves unjudged, draft-object deferral kept. The seed_not_applied probe gains cause `missing` (engine getSchema answers none and no published object held) whose message/fix/userMessage (11 locales) name the missing object; other read failures stay `unreadable`. Blocked only on the fenced ADR-0087 ledger entry.", "A1": "holds at 3819afec: seedExternalIdSaveRefusal returned undefined for an object resolved by neither pending batch nor registry (`if (!pendingObject && !registered) return undefined`); draft deferral at the listDrafts check kept unchanged.", "A2": "holds: build-probes.ts catch branch emitted seed_not_applied cause `unreadable` -> user text 'Publish again'; now a `missing` cause for an absent object, `unreadable` kept for a real read failure.", "A3": "red first at b802de301: new pins Tests 4 failed | 26 passed (30) - draft-into-package, draft-no-package and publish saves of a seed naming `seedkey_nope` saved 200, and a publish save whose object is only a draft saved 200; the publish-promotion control (planted draft publishes, load reports) was already green, matching the card's publish-says-published reading. Not reproduced over live HTTP; the save door is exercised through saveMetaItem on the real protocol.", "tests": "metadata-protocol typecheck + full vitest (head 727228b5c): Test Files 358 passed | 9 skipped (367), Tests 23231 passed | 45 skipped, VERDICT command-exit 0. objectql full vitest: Test Files 615 passed, Tests 13881 passed. runtime 7 seed/publish suites: 299 passed; cloud-connection marketplace-install-local-install-modes: 64 passed. Targeted after fixture fixes: metadata-protocol 6 files 253 passed; objectql 3 files 109 passed. Ablations via ablation-replace on committed fix, src-resolved suites (no dist): save door `if (!canLookUp)` -> `if (canLookUp)` anchor 1->0 blob 72f70d5f806c->b21c9c2a9c58, Tests 4 failed | 26 passed, restored blob == HEAD and git diff HEAD empty; probe `if (objectIsMissing(` -> `if (false && objectIsMissing(` blob c00b4f008088->b438e786daf4, Tests 3 failed | 42 passed, restored blob == HEAD.", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 93e394d90/913a0d5dc: 76 families, 74 exit 0; check-adr-0087-registration exit 1 (the blocked ledger entry); check:type-check-debt exit 3 PREREQUISITE NOT MET (lock queue-timeout behind this branch's own dogfood run) -> NOT MEASURED, CI reading; check:facade-delegation-only was red at 11716 lines (ceiling 11705) and is green at 11705 after shortening the protocol.ts docblock. --ran reconciliation exit 0: 76 derived, 76 run, 0 unrun. overlap-check.mjs --branch=HEAD VERDICT clean before every push (#35261 merges cleanly). PR check-runs: in_progress at report time, not awaited.", "dogfood_battery": "913a0d5dc · os-verify-lock VERDICT command-exit 0 (held 38m43s) · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures", "line_budget": "protocol.ts 11704 -> 11705, facade ceiling 11705 (at ceiling, green); no skills/** touched", "files_changed": [ ".changeset/34864-seed-unknown-object-save-door.md", "packages/metadata-protocol/src/protocol-save-door-refusals.ts", "packages/metadata-protocol/src/protocol-save.ts", "packages/metadata-protocol/src/protocol.ts", "packages/metadata-protocol/src/build-probes.ts", "packages/metadata-protocol/src/build-probes.user-text.ts", "packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts", "packages/metadata-protocol/src/build-probes-user-message.test.ts", "packages/objectql/src/protocol-meta.test.ts", "packages/objectql/src/publish-package-drafts-seed-receipt-counts.test.ts", "packages/objectql/src/publish-seed-receipt-landed-ids.test.ts" ], "deviations": [ "Three objectql test files outside the claimed surface: stale fixtures the narrowing reds (two stage a missing-object seed draft at rest via the migrate-stored re-save; one registers the object its brand-new seed names). Declared in the PR body.", "protocol.seed-external-id-refusal.test.ts: the old control 'an object neither registered nor drafted is not judged here' pinned exactly the removed branch and was replaced by the new [#34864] describe (shared-harness rule: new top-level describe in the existing file, no new file).", "packages/spec/** fence held: the ADR-0087 entry the gate demands is not written; status blocked on it.", "Restore door left unjudged for object existence alongside the publish promotion (card scope: save door only); noted in Acceptance notes." ], "mcp_calls": "0", "api_writes": "2 relay strokes - pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/35388/assignees os-bill), os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34864/comments via post-stamped.mjs); git push x5 not REST", "open_questions": [ { "question": "May this PR add packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts (ADR-0087 ledger entry, data only) despite the packages/spec/** fence?", "options": ["A: authorize; the dev adds the drafted entry to this PR, reruns check:adr-0087-registration and the spec ledger gates", "B: the seat adds the entry on this branch itself", "C: keep spec untouched and land with the gate red (not possible: Lint & Repo Gates is required)"], "recommendation": "A, because the entry is pure ledger data with no export or schema change, the gate is required, and the text is already drafted" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed - refuseRestoredBodyTheSaveDoorRefuses docblock in protocol.ts lists every restore refusal except the #28952 seed externalId refusal it does ask (doc drift, no runtime effect); Acceptance notes only" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
Claim: amended by the area after the dev's report (os-dev-report 7003045933, open question 1) · 2026-11-19T07:47Z
Session:
session_01Utp6CaysxGzF62ACvZ1x9xAccount:
os-billArea: pkg-1
Branch:
claude/issue-34864-seed-unknown-object-save-doorFile surface: as claimed, plus
packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts(the ADR-0087 semantic ledger entry aMetadata-protocol: narrowedchangeset must register: data only, no export, no Zod change; required bycheck-adr-0087-registration), and three objectql test files whose fixtures staged or registered a missing-object seed (packages/objectql/src/protocol-meta.test.ts,publish-package-drafts-seed-receipt-counts.test.ts,publish-seed-receipt-landed-ids.test.ts). No other path. PR: #35388.Clause-②: no (narrowing)
Metadata-protocol: narrowed
Lane: the spec file is a ledger entry for this card's own narrowing (lane-keep rule: a fix already ruled that touches
packages/spec/**stays in this lane; L1-a, then seat contract review).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
os-dev-report
{ "issue": 34864, "status": "done", "branch": "claude/issue-34864-seed-unknown-object-save-door", "pr": "https://github.com/objectstack-ai/objectstack/pull/35388", "head": "468886742", "session": "session_01Utp6CaysxGzF62ACvZ1x9x", "premise_still_valid": true, "summary": "The save door (saveMetaItem, door 'save') now refuses 422 INVALID_METADATA at `object` a seed whose object no pending batch object, object draft (draft save), registered object or stored/code-defined object (readMetaItem) resolves, naming the object and the fix; unknown follows the #28990 grant refusal (registry without getObject refuses nothing, two-holder name counts as held, dependency objects answer the registry read). Publish promotion and restore doors are unchanged (#27393 ruling), migrate-stored re-saves unjudged, draft-object deferral kept. The seed_not_applied probe gains cause `missing` (engine getSchema answers none and no published object held) whose message/fix/userMessage (11 locales) name the missing object; other read failures stay `unreadable`. The ADR-0087 semantic ledger entry seed-object-unknown-refused (packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts, data only) was added at 468886742 after the seat authorized it (amended claim 7003076381). Neither main nor any open PR carries that id (git grep origin/main 2e9e1ac9d; REST issue search of open PRs: 1 hit, #35388 itself). The entry is named 18.* because spec is at 18.6.0, and the gate accepted it.", "A1": "holds at 3819afec: seedExternalIdSaveRefusal returned undefined for an object resolved by neither pending batch nor registry (`if (!pendingObject && !registered) return undefined`); draft deferral at the listDrafts check kept unchanged.", "A2": "holds: build-probes.ts catch branch emitted seed_not_applied cause `unreadable` -> user text 'Publish again'; now a `missing` cause for an absent object, `unreadable` kept for a real read failure.", "A3": "red first at b802de301: new pins Tests 4 failed | 26 passed (30) - draft-into-package, draft-no-package and publish saves of a seed naming `seedkey_nope` saved 200, and a publish save whose object is only a draft saved 200; the publish-promotion control (planted draft publishes, load reports) was already green, matching the card's publish-says-published reading. Not reproduced over live HTTP; the save door is exercised through saveMetaItem on the real protocol.", "tests": "metadata-protocol typecheck + full vitest (head 727228b5c): Test Files 358 passed | 9 skipped (367), Tests 23231 passed | 45 skipped, VERDICT command-exit 0. objectql full vitest: Test Files 615 passed, Tests 13881 passed. runtime 7 seed/publish suites: 299 passed; cloud-connection marketplace-install-local-install-modes: 64 passed. Targeted after fixture fixes: metadata-protocol 6 files 253 passed; objectql 3 files 109 passed. Ablations via ablation-replace on committed fix, src-resolved suites (no dist): save door `if (!canLookUp)` -> `if (canLookUp)` anchor 1->0 blob 72f70d5f806c->b21c9c2a9c58, Tests 4 failed | 26 passed, restored blob == HEAD and git diff HEAD empty; probe `if (objectIsMissing(` -> `if (false && objectIsMissing(` blob c00b4f008088->b438e786daf4, Tests 3 failed | 42 passed, restored blob == HEAD. No test re-run for 468886742: a spec ledger data file, covered by the spec gates above.", "gates": "913a0d5dc: dispatch-gates --commands (76 families) - 74 exit 0, check-adr-0087-registration exit 1 (entry not yet added), check:type-check-debt exit 3 (lock queue-timeout), --ran reconciliation 76/76. 468886742: check-adr-0087-registration --base origin/main :: exit 0 ('registered seed-object-unknown-refused (new here)'). The 24 families dispatch-gates adds for the spec path, run after building the spec/lint/cli closures, all :: exit 0: check-dev-prereqs --self-test, cli migrate-meta-engine-guidance test, lint check:doc-formula-expressions, spec check:api-surface, authorable-surface, browser-reachable-entries, docs, dual-source-exports, empty-state, entry-nameability, export-origins, exported-any, liveness, llms-txt, skill-refs, spec-changes, strictness-ledger, upgrade-guide, variant-docs, check:merge-driver, pm-prior-rulings, role-word, spec-docblock-symbol-anchors, spec-parsed-alias. pnpm check:type-check-debt under the lock :: exit 0 (TCD_EXIT=0). check:facade-delegation-only green at 11705. overlap-check --branch=HEAD VERDICT clean before the push (origin/main 2e9e1ac9d and #35261 merge cleanly). CI TypeScript Type Check on 913a0d5dc (run 44482123637, job 135418794130): log saved, 0 'error TS'. Its 4 lanes (source gates, workspace, debt ledger, consumer gates) concluded cancelled at 07:50:46-07:51:02Z, when the 07:50:44Z push of 468886742 started run 44482743535. The aggregator then failed on 'concluded cancelled'. So it is not a defect in this PR and needs no fix; the run on the new head is the reading. New-head check-runs were in_progress at report time and were not waited on.", "dogfood_battery": "913a0d5dc · os-verify-lock VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Not re-run on 468886742: that commit adds only ADR-0087 ledger data that no dogfood app reads, and no gate asked for a re-run.", "line_budget": "protocol.ts 11704 -> 11705, facade ceiling 11705 (at ceiling, green); no skills/** touched", "files_changed": [ ".changeset/34864-seed-unknown-object-save-door.md", "packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts", "packages/metadata-protocol/src/protocol-save-door-refusals.ts", "packages/metadata-protocol/src/protocol-save.ts", "packages/metadata-protocol/src/protocol.ts", "packages/metadata-protocol/src/build-probes.ts", "packages/metadata-protocol/src/build-probes.user-text.ts", "packages/metadata-protocol/src/protocol.seed-external-id-refusal.test.ts", "packages/metadata-protocol/src/build-probes-user-message.test.ts", "packages/objectql/src/protocol-meta.test.ts", "packages/objectql/src/publish-package-drafts-seed-receipt-counts.test.ts", "packages/objectql/src/publish-seed-receipt-landed-ids.test.ts" ], "deviations": [ "The three objectql fixture files and the spec ledger entry are inside the claim as amended (7003076381).", "protocol.seed-external-id-refusal.test.ts: the old control 'an object neither registered nor drafted is not judged here' pinned exactly the removed branch and was replaced by the new [#34864] describe (shared-harness rule: new top-level describe in the existing file, no new file).", "Restore door left unjudged for object existence alongside the publish promotion (card scope: save door only); noted in Acceptance notes.", "PR body not PATCHed by the dev. The coordinator asked for a body update, but os-dev.md rule 3 says a subagent writes the PR body only at pr_create and the seat makes later edits (conflict flagged per os-dev.md). The ready replacement body is at /tmp/claude-0/-home-user/c893b4fc-3b9c-5a11-9710-88b957ccb0b9/scratchpad/issue-34864/pr-body-v2.md. It adds the File-surface line, the spec file, the 468886742 gate readings and the cancelled-run explanation, and drops the 'ADR-0087 entry not in this PR' note." ], "mcp_calls": "0", "api_writes": "3 relay strokes. pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft) + POST .../issues/35388/assignees. os-dev-report comments: 7003045933 and this one, POST .../issues/34864/comments via post-stamped.mjs. The 6 git pushes are not REST writes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed - refuseRestoredBodyTheSaveDoorRefuses docblock in protocol.ts lists every restore refusal except the #28952 seed externalId refusal it does ask (doc drift, no runtime effect); Acceptance notes only" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
os-dev-report
{ "issue": 34864, "status": "done", "branch": "claude/issue-34864-seed-unknown-object-save-door", "pr": "https://github.com/objectstack-ai/objectstack/pull/35388", "head": "3025ade8eb1310b51a3aec79d03d824b56f944e4", "session": "session_01Utp6CaysxGzF62ACvZ1x9x", "premise_still_valid": true, "summary": "Battery addendum to report 7003357918 for the landing head. 3025ade8e is a merge of origin/main into 468886742 (seat L2 PASS 7003894547 on 468886742); no PR file changed by the merge. Owed per L2 ③ (battery must run on the head that lands).", "dogfood_battery": "3025ade8e · os-verify-lock VERDICT command-exit 0 · held the lock 1926s · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Full battery, no OS_TEST_SHARD, no path filter; closure built with pnpm turbo run build --filter=@objectstack/dogfood (70/70 tasks ok).", "tests": "CI on 3025ade8e: 58 success, 11 skipped, 0 failure.", "gates": "unchanged from 7003357918; CI gates green on 3025ade8e.", "line_budget": "unchanged from 7003357918", "files_changed": "unchanged from 7003357918 (merge of main only)", "deviations": [], "mcp_calls": "0", "api_writes": "1 relay stroke: this comment via post-stamped.mjs.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["filed: #35413 (L2 nits N1+N2 and the #28952 docblock note)"] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x
Close-out 2026-11-19T10:05Z: PR #35388 MERGED as
fe3ebc8767;Fixesclosed this card. Delivered: the save door refuses422 INVALID_METADATAatobjecta seed whose object no pending object, draft, registered or stored object resolves, naming the object and the fix (a draft object is enough for a draft seed); the publish promotion, restore door andmigrate-storedre-saves are unchanged. Theseed_not_appliedprobe gains causemissing, whose text names the object and says to fix the name or create and publish the object (11 locales). ADR-0087 entryseed-object-unknown-refusedregistered.Clause-②: no (narrowing),Metadata-protocol: narrowed; L1-a ACCEPT 7003799034, seat L2 PASS 7003894547 + delta 7005154256, dogfood battery 7005072503. Out of scope filed: #35413 (L2 N1+N2 and the restore-door docblock note); skills-docs follow-up filed by the seat.pm:dispatchedoff.