Skip to content

fix(metadata-protocol): the seed save door refuses an unknown object; the probe names a missing object - #35388

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-34864-seed-unknown-object-save-door
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-34864-seed-unknown-object-save-door

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #34864

Clause-②: no (narrowing)
Metadata-protocol: narrowed
File-surface: as claimed (claim amended in comment 7003076381): packages/metadata-protocol/src/{protocol-save-door-refusals,protocol-save,protocol,build-probes,build-probes.user-text}.ts and their two test files, packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts, packages/objectql/src/{protocol-meta,publish-package-drafts-seed-receipt-counts,publish-seed-receipt-landed-ids}.test.ts, .changeset/34864-seed-unknown-object-save-door.md
Skills-docs: follow-up owed — skills/objectstack-data/references/seeds.md (the seed field table and the save notes: a runtime-saved seed must name an object that exists, a draft object is enough for a draft seed), skills/objectstack-data/evals/hooks-security-seeds-datasources.json (an eval that saves a seed naming an unknown object and expects the 422)

维护者速读

  1. 用户能看到什么变化:在搭建对话或接口里保存一份示例数据时,如果它指向一个根本不存在的对象,现在会当场被拒并说出那个对象名;发布后的检查提示也不再让人"重新发布",而是让人改对象名或先建对象。
  2. 为什么做:质检发现智能体和接口作者拼错对象名时,示例数据被静默保存,发布显示成功却一条记录都没有,提示还指错了方向。
  3. 出错会怎样:若判断有误,作者保存示例数据会被误拒;回退本改动即可恢复原状,已存的数据不受影响。
  4. 要你做什么:无,席位落地。

What changes

  • Save door (seedExternalIdSaveRefusal, now also asked with door: 'save' from saveMetaItem): a seed whose object is resolved by no pending batch object, no object draft (on a draft save), no registered object and no stored or code-defined object (readMetaItem) is refused 422 INVALID_METADATA, one finding at object naming the seed, the object and the fix. The unknown test follows the permission-set grant refusal: a registry without getObject refuses nothing; a name two packages hold counts as held; a dependency package's object answers the same registry read. migrate-stored re-saves are not judged.
  • Unchanged by design (ruling zone, metadata-protocol: when one seed in a publish-drafts batch fails, the seedApplied receipt reports inserted 0 / updated 0 although earlier seeds wrote rows, and later seeds are published but never applied #27393): the publish promotion and the restore doors pass no door and still leave such a seed to the load; a draft seed whose object is a draft is still judged at its publish.
  • Probe (build-probes.ts): when a published seed's object read throws AND the engine answers its registered objects (getSchema) with none for that name AND no published object of the name is held, seed_not_applied takes the new cause missing: message/fix name the missing object; userMessage (all 11 platform locales) says correct the object or create and publish it. Every other read failure keeps unreadable.
  • ADR-0087 ledger entry seed-object-unknown-refused (packages/spec/src/migrations/entries/semantic/18.seed-object-unknown-refused.ts, data only: surface, replacement, reason, acceptance criteria). The changeset registers it; no other open PR or main carries that id.
  • Stale fixtures (consequence of the narrowing): two objectql suites stage a missing-object seed draft to test the publish load; they now stage it at rest through the migrate-stored re-save. protocol-meta.test.ts registers the object its brand-new seed names. The old metadata-protocol control "an object neither registered nor drafted is not judged here" pinned exactly the removed branch and is replaced by the new describe.

Tests

  • New top-level describe in protocol.seed-external-id-refusal.test.ts (shared harness): unknown object refused in draft-into-package / draft-no-package / publish saves (code, status, path, first clause, fix tail, nothing stored or loaded); a publish save whose object is only a draft refused; controls: registered object 200, same-package object draft 200, migrate-stored 200, publish promotion of a planted draft still publishes, restore door resolves.
  • build-probes-user-message.test.ts: the missing case in the per-locale battery, the en/zh sentences as written, agent message/fix, and three unreadable controls (object registered but read fails; engine without getSchema; a published object of the name held).

Acceptance notes

  • The restore door does not judge the object's existence (same as the publish promotion). Its docblock in protocol.ts (refuseRestoredBodyTheSaveDoorRefuses) does not list the seed refusals at all, before or after this change.

Verification

Readings on head 913a0d5dc unless stated; the ledger entry commit 468886742 is checked in its own block below.

Red first (before the fix, commit b802de3)

vitest run src/protocol.seed-external-id-refusal.test.ts: Tests 4 failed | 26 passed (30) — the four new refusal pins; every control green.

Package and consumer tests
  • @objectstack/metadata-protocol: typecheck + full vitest run — Test Files 358 passed | 9 skipped (367), Tests 23231 passed | 45 skipped; VERDICT command-exit 0 (head 727228b; later commits change docblocks, the changeset and objectql fixtures only).
  • @objectstack/objectql full vitest run (downstream consumer, real protocol): Test Files 615 passed (615), Tests 13881 passed.
  • @objectstack/runtime (7 seed/publish suites on the real protocol): 7 files, 299 tests passed; @objectstack/cloud-connection marketplace-install-local-install-modes.test.ts: 64 passed.
  • Targeted after fixture fixes: 6 metadata-protocol seed/probe files 253 passed; 3 objectql files 109 passed.
Ablations (committed fix, ablation-replace, src-resolved suites)
  • Save door: if (!canLookUp) return undefined; -> if (canLookUp) return undefined;: anchor 1 -> 0, blob 72f70d5f806c -> b21c9c2a9c58; Tests 4 failed | 26 passed; restored blob == HEAD, git diff HEAD empty.
  • Probe: if (objectIsMissing( -> if (false && objectIsMissing(: Tests 3 failed | 42 passed (the missing battery case, the as-written sentences, the agent text); restored blob == HEAD.
Dogfood battery (narrowing arm)

pnpm --filter @objectstack/dogfood test under the lock after building its closure: Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160); VERDICT command-exit 0.

Derived gate families

dispatch-gates --commands (76 families) run on 913a0d5dc: 74 exit 0; check-adr-0087-registration exit 1 there (entry not yet added) and exit 0 on 468886742; check:type-check-debt exit 3 on 913a0d5dc (lock queue timeout) and exit 0 on 468886742. --ran reconciliation: 76 derived, 76 run, 0 unrun. overlap-check.mjs --branch=HEAD clean before every push (#35261 merges cleanly).

Ledger entry commit 4688867
  • check-adr-0087-registration --base origin/main: exit 0, "registered seed-object-unknown-refused (new here)".
  • The 24 families dispatch-gates --commands adds for the spec path, after building the spec, lint and cli closures: all exit 0 (check:spec-changes, check:upgrade-guide, check:api-surface, check:authorable-surface, check:docs, check:liveness, check:llms-txt, check:skill-refs, check:strictness-ledger, check:variant-docs, the cli migrate-meta-engine-guidance test, check:spec-docblock-symbol-anchors, check:spec-parsed-alias and the rest).
  • pnpm check:type-check-debt under the lock: exit 0.
  • Dogfood not re-run: the entry is ledger data with no runtime reader in the dogfood apps, and no gate asked for it. The battery reading above (913a0d5dc) stands.
  • CI's "TypeScript Type Check" failure on 913a0d5dc (run 44482123637) has no error TS: all four type-check lanes were cancelled at 07:50:46-07:51:02Z when the push of 468886742 (07:50:44Z) started run 44482743535, and the lanes aggregator then reported "concluded cancelled". The run on the new head is the reading.

席位核对

  • Read first: packages/metadata-protocol/src/protocol-save-door-refusals.ts (seedExternalIdSaveRefusal restructure: the object resolution now runs before the keyed-mode filter; unknownSeedObjectRefusal), protocol-save.ts (the one 'save' argument), build-probes.ts (objectIsMissing and the missing branch).
  • Two-minute check: pnpm --filter @objectstack/metadata-protocol exec vitest run src/protocol.seed-external-id-refusal.test.ts — 30 pass; the [#34864] describe shows the refusal and its controls.
  • File surface: matches the amended claim (comment 7003076381), including the spec ledger entry and the three objectql fixture files.
  • protocol.ts facade ceiling: 11705 lines, exactly at its ceiling (check:facade-delegation-only green); the seed docblock there was shortened and its detail moved to unknownSeedObjectRefusal.

Generated by Claude Code

…t is unknown; the probe names a missing object

Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
Co-authored-by: Claude <noreply@anthropic.com>
…r the seeded object

Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
Co-authored-by: Claude <noreply@anthropic.com>
… ADR-0087 disposition

Claude-Session: https://claude.ai/code/session_01Utp6CaysxGzF62ACvZ1x9x
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/metadata-protocol, @objectstack/spec, touching 15 documentable anchor(s).

19 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 0967cbe6a2919413952ab3521b9d7771a5398274.

⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 0967cbe6a2919413952ab3521b9d7771a5398274 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 902129291a68188acc2c9f4d8051c6eeeb34d678 — the merge of head 3025ade8eb1310b51a3aec79d03d824b56f944e4 into base 0967cbe6a2919413952ab3521b9d7771a5398274, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 902129291a68188acc2c9f4d8051c6eeeb34d678 && git checkout 902129291a68188acc2c9f4d8051c6eeeb34d678
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0967cbe6a2919413952ab3521b9d7771a5398274 3025ade8eb1310b51a3aec79d03d824b56f944e4 && git checkout -B drift-repro 0967cbe6a2919413952ab3521b9d7771a5398274 && git merge --no-ff 3025ade8eb1310b51a3aec79d03d824b56f944e4

node scripts/docs-audit/affected-docs.mjs --json 0967cbe6a2919413952ab3521b9d7771a5398274

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 0967cbe6a2919413952ab3521b9d7771a5398274 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Final head for review · area pkg-1 · 2026-11-19T08:21Z
Head: 468886742c089180014c6d8dc1da1d0c68b59405 — every third-party check suite on it completed with no failure.
Fixes #34864 · Clause-②: no (narrowing) · Metadata-protocol: narrowed · +387/−48 over 12 files, including one ADR-0087 semantic ledger entry under packages/spec/src/migrations/entries/semantic/ (data only) and three objectql test fixtures, both inside the amended claim 7003076381. Dogfood battery green on 913a0d5dc (the later commit adds only the ledger entry).
Review route: L1-a thread, then the seat's contract review (narrowing + packages/spec/**). Landing after both, by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:保存一份示例数据时,如果它要灌进的对象根本不存在(比如名字少写了前缀),会直接报错,并告诉你改成正确的对象名或先建对象。发布后的检查也会说“对象不存在”,不再让人“再发布一次”。
  • 为什么做:以前这种示例数据能存进去,发布也显示成功,但其实一条记录都没加载;提示还让人反复重新发布,怎么试都没用。
  • 出错会怎样:只会多拦下这一种必然加载不了的保存。已经存下的旧示例数据照样能发布和恢复,对象只是草稿时草稿示例数据仍可保存。
  • 要你做什么:不需要你做任何事。它收紧了一条保存规则,席位会安排一次约定审核,然后由区域落地。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head 468886742c089180014c6d8dc1da1d0c68b59405 · 2026-11-19T08:24Z

  • 形态 — 12 files, +387/−48:

    • metadata-protocol source: protocol-save-door-refusals.ts, protocol-save.ts, protocol.ts, build-probes.ts, build-probes.user-text.ts
    • tests, including three objectql fixtures
    • one ADR-0087 semantic ledger entry under packages/spec/src/migrations/entries/semantic/
    • one changeset

    check-governed-merges.mjs --pr 35388: not governed, under the 3000-line limit. Clause-②: no (narrowing), Metadata-protocol: narrowed, minor. The level is right for the kind. The ADR-0087 marker reads registered seed-object-unknown-refused and matches the new entry.

  • Fixes vs card 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

  • Points weighed

    • The draft deferral, publish promotion, restore doors and migrate-stored re-saves are unchanged. Each is pinned as a control.
    • The old control "an object neither registered nor drafted is not judged here" is replaced by the refusal, which is the card's ask. Accepted.
    • The three objectql fixtures and two publish-receipt tests used a seed on a missing object to stand for a stored row. They now write it through the platform's migrate-stored re-save, which is the honest spelling of "stored before the rule". Accepted.
    • protocol.ts sits at its facade ceiling, so its docblock is shortened and points at unknownSeedObjectRefusal's docblock. Accepted.
    • The cancelled-by-push Type Check on 913a0d5dc contained 0 error TS. It is not attributed to this PR, and this head is green.
  • Changeset — read sentence by sentence against the diff. These all match:

    • every caller of the door;
    • the 422 at object, and the old 200-then-empty-load behaviour;
    • draft versus live acceptance;
    • dependency and registry objects;
    • the unchanged promotion, restore and migrate-stored paths;
    • the fix sentence;
    • the probe's missing versus unreadable split.
      Nit, not blocking: other narrowing changesets carry a **BREAKING** line. This one's narrowing is declared on the Clause-② line only, which the ADR-0087 gate accepts.
  • Pins

    • protocol.seed-external-id-refusal.test.ts:
      • an unknown object is refused on draft and on publish saves (it.each);
      • a publish save whose object is only a draft is refused;
      • CONTROLs pass for: a registered object (draft and live), a same-package drafted object, a migrate-stored re-save, the publish promotion of a seed stored before the rule, and the restore door.
    • build-probes-user-message.test.ts: names the missing object to the agent with the fix, and says "missing" to the person.
    • Dogfood battery green on 913a0d5dc (report 7003357918).
  • 门禁 — 73 check-runs on this head: 60 success, 13 skipped, 0 failure.

  • 范围外去向 — none found.

  • L2 owed (routing) — a (narrowing) declaration plus a non-test packages/spec/src/** path (the ledger entry) → contract review at CONTRACT_REVIEW_TIER. Routed to seat 5.

  • 落地条款 — not governed. Base 3819afec; main has moved K=15 first-parent commits (≥ 15), so merge main and wait for a green re-run before queueing. git merge-tree against current main is clean, and main has touched none of the five source files since the base. This ACCEPT carries over to the merged head if it brings nothing beyond main. pkg-1 lands after the seat's L2 record.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 468886742c089180014c6d8dc1da1d0c68b59405
Local-runs: none
Scope: 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

PR #35388, card #34864. Read: the card and its five comments, the PR body and its four comments, the net diff against main, and the 73 check-runs on this head (60 success, 13 skipped, 0 failure). The test files, the three objectql fixtures and the changeset prose are the lane seat's ACCEPT.

① Derived judgments

  • Accept set, narrowed — right. saveMetaItem now refuses 422 INVALID_METADATA at object a seed whose object nothing resolves. Before, the body was stored 200. One authored value is refused and no other value changes.
  • Accept set, not widened — right. Every body accepted on this head was accepted on main. The resolution order moved ahead of the keyed-mode filter, so an insert or replace seed is now judged for its object too; that is part of the same narrowing, not a second one.
  • Public surface, unchanged — right. seedExternalIdSaveRefusal gains an optional door argument, but the method is private on the protocol class and the module function is reached through that host alone. unknownSeedObjectRefusal is not exported. The probe keeps its one code, seed_not_applied; cause: 'missing' is a parameter of the internal sentence catalog, not an authored or exported value.
  • Doors left as they were — right, and pinned. The publish promotion and the restore door pass no door, and a migrate-stored re-save is not asked. A seed stored before the rule still publishes and its load reports the object.
  • Spec — data only, right. One semantic ledger file. No Zod schema, export or generated baseline moves; Spec property liveness and the lint lanes are green on the head.

② Semver level

③ Boundary flags

  • Dogfood battery — a re-run is owed before landing. The newest os-dev-report (7003357918) opens dogfood_battery with 913a0d5dc and says the head was not re-run because it adds ledger data only. The rule has no data-only exemption: the battery runs on the final head, and the --land gate accepts a battery sha only when it is the head or is reached from the head over merges of the base alone. 468886742 is a one-parent commit on top of 913a0d5dc, so --land refuses it ("lies after the battery's sha and is not a merge"). The argument is also not safe on its merits: the spec build generates its migration registry from this directory, and the dogfood closure builds spec. To clear it, run the full battery on the head that will land and post a report whose dogfood_battery opens with that sha. The seat's ACCEPT already asks for a merge of main first (15 commits behind); a battery on 468886742 stays valid under that merge, and a battery on the merged head is valid too. This is a landing precondition. It changes no file, so this record still covers the head.
  • Spec fence: the dev's open question (may the PR add the ledger file under the fenced packages/spec/**) was answered by the amended claim 7003076381. Answered.
  • Three objectql fixtures and the replaced control test: inside the amended claim; lane seat's ACCEPT.
  • Restore door not judged for the object: within the card, which covers the save door and the remedy text only. See N2.
  • Skills-docs: follow-up owed: the PR body names skills/objectstack-data/references/seeds.md and one eval, but neither the body nor the thread names a card for it. The seat files that card before landing.
  • Dev's out-of-scope note (restore docblock omits the metadata-protocol: an upsert seed whose externalId names a field the object lacks is accepted and inserts a duplicate row on every publish, silently #28952 seed refusal it does ask): carrier "none". Fold it into the N2 follow-up.
  • SQL push-down: no new id materialisation and no in-app join. The draft lookup is the existing listDrafts({ type: 'object' }) read, now reached by non-keyed seeds as well; the by-name readMetaItem runs only on the path that is about to refuse. No finding.
  • open_questions: the final report carries none.

④ Design judgment

No must-fix, no should-fix.

18.seed-object-unknown-refused.ts — holds against the code and the card.

  • Shape matches its sibling 18.picklist-binding-unknown-refused.ts: id, surface, replacement, reason, acceptanceCriteria, no conversionIds, which is right since no mechanical rewrite exists.
  • surface names the save door in draft and publish mode and the unknown test the code applies (no package registers it, no stored or code-defined object carries it).
  • replacement states both arms as the code has them: a draft object is enough for a draft seed (the listDrafts deferral), a live seed needs the object published (pinned by the "only a draft" publish-save test).
  • reason is true sentence by sentence: the old 200, the published outcome with an empty load, the "publish again" remedy, the 422 at object, and the unchanged promotion and restore doors.
  • acceptanceCriteria is a positive check a consumer can run, on the routes and the seedApplied.success field the card itself uses.
  • Against the spec on main: SeedSchema.object is "the machine name of the object to populate". The refusal makes that meaning real at the door and takes no declared capability away.

protocol-save-door-refusals.ts, protocol-save.ts, protocol.ts — agree with the contract.

  • Only saveMetaItem passes 'save', and only outside migrate-stored. The other two callers (protocol-history-and-publish.ts, protocol-authoring-gate.ts) pass nothing and are unchanged.
  • The unknown test follows the metadata: a runtime permission-set save accepts a grant on an object that does not exist (200) — the build refuses the same grant (#18202), so a typo silently grants nothing #28990 grant refusal: a registry without getObject refuses nothing; readMetaItem finding the object means known; a two-holder name refusal means known; any other read error propagates.
  • The reorder is safe: a resolved object reaches the same keyed-mode filter and the same externalId judgment as before.
  • Refusal text: names the seed and the object, says what was looked for (wording differs for a draft and a live save), says why it matters ("publishing it would load no record") and gives both fixes. It is correct in both modes.
  • Tried to break it with: a dependency package's object, a legacy prefixed name, a system object, an object only drafted, a seed stored before the rule, and a re-save of such a seed. The first four resolve; the stored seed still publishes; the re-save is refused, which is the intended fix path.

build-probes.ts, build-probes.user-text.ts — agree with the contract.

  • missing is said only on positive knowledge: the read threw, the engine answers getSchema and answers none for the name, and no published object reads. An engine without getSchema, or one whose getSchema throws, stays unreadable.
  • message and fix name the object and tell the author to correct the name or create and publish the object. The person's sentence drops "publish again" as the lone remedy and says the same in all 11 locales. It names the object by API name, which the catalog table now states.
  • The card's expected remedy ("names the unknown object") is met.

Nits:

  • N1 (nit) — the probe's readItem returns undefined for a name two packages hold, so that case reads as missing when the engine also registers no such object. The save door treats the same refusal as "known". The window is narrow and the effect is wording only. Follow-up or accepted deviation.
  • N2 (nit) — refuseRestoredBodyTheSaveDoorRefuses in protocol.ts lists what the restore door asks and what it does not, each with its reason. The save door now refuses something the restore door does not ask, and that list does not say so; the reason lives in unknownSeedObjectRefusal's docblock instead, and protocol.ts is at its line ceiling. Follow-up card: record it there, together with the metadata-protocol: an upsert seed whose externalId names a field the object lacks is accepted and inserts a duplicate row on every publish, silently #28952 omission, and decide whether a restore should refuse a seed version whose object is gone, as it does for grants.
  • N3 (nit) — in ②.

Implemented-by: claude/issue-34864-seed-unknown-object-save-door
Reviewed-by: isolated-l2-35388

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Final head for review · area pkg-1 · 2026-11-19T09:25Z
Head: 3025ade8eb1310b51a3aec79d03d824b56f944e4 — merge of main into 468886742 (seat L2 PASS 7003894547), no PR file changed by the merge. Every third-party check suite on it completed with no failure (58 success, 11 skipped).
Dogfood battery on this head: os-dev-report 7005072503 — VERDICT command-exit 0, Test Files 482 passed | 3 skipped, Tests 4092 passed | 68 skipped, no failures.
L2 follow-ups: N1+N2 filed as #35413 (nested under #34864); the skills-docs card is the seat's.
Next: the seat's merge-only delta on this head, then landing by the area.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3025ade8eb1310b51a3aec79d03d824b56f944e4
Local-runs: none
Scope: 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

Delta record for PR #35388, card #34864: a merge-only delta on top of the head the first record covers, 468886742c089180014c6d8dc1da1d0c68b59405. Read: the merge commit and its two parents, the net diff of this head against main, what main changed between the two bases, os-dev-report 7005072503 on the card, and the 69 check-runs on this head (58 success, 11 skipped, 0 failure).

① Derived judgments

  • The head is a merge of the base alone — right. 3025ade8e has two parents: the reviewed head 468886742, and 0967cbe6a, which is on main. It brings in 15 commits of main and nothing else.
  • The PR's net diff is unchanged — right. The diff of this head against its main parent is the same 12 files, +387/−48, and its content is identical line for line to the diff the first record judged. main touched none of the 12 files between the two bases, so the merge resolved nothing by hand in them.
  • Every judgment of the first record's ① stands as written: the accept set is narrowed by one value, nothing is widened, the public surface is unchanged, the publish promotion, the restore door and the migrate-stored re-save are left as they were, and the spec change is data only.

② Semver level

  • Unchanged. Clause-②: no (narrowing), Metadata-protocol: narrowed, minor on @objectstack/metadata-protocol, and the single marker registered seed-object-unknown-refused are all as judged. main at this base holds no entry of that id, so the entry is still new here. Check Changeset and Lint · repo & tooling gates are green on this head.
  • N3 (nit) stays an accepted deviation.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

The first record raised none to close. The six scoped files are byte-for-byte what it judged, and the code they read on main moved in no way that changes a sentence of the entry, the refusal or the probe. Its ④ stands on this head.

Nits carried, none new: N1 and N2 go to follow-up card #35413; N3 is an accepted deviation.

Implemented-by: claude/issue-34864-seed-unknown-object-save-door
Reviewed-by: isolated-l2-35388

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CaysxGzF62ACvZ1x9x

Landing · head 3025ade8e (merge of main onto 468886742, PR diff unchanged) · after L1-a ACCEPT 7003799034, CONTRACT_REVIEW_TIER PASS 7003894547 and merge-only delta PASS 7005154256 · 2026-11-19T09:29Z

Probe Reading
Checks at head 3025ade8e 58 success, 11 skipped, 0 failed
Dogfood battery os-dev-report 7005072503 on this head: exit 0, Test Files 482 passed, Tests 4092 passed, no failures
check-governed-merges.mjs --pr 35388 NOT governed, 0 of 12 paths, 435 lines
K 10, no locale pack
Contract record PASS + delta PASS, no must-fix, no should-fix (N1–N3 nits; N1+N2 → #35413)

Status: pr_ready + automerge_enable. Skills-docs follow-up: filed by the seat after merge. On MERGED the area closes out #34864.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 09:30
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit fe3ebc8 Nov 19, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34864-seed-unknown-object-save-door branch November 19, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Seed: the runtime save door accepts a seed whose object names no object, and the publish probe then tells the author to "Publish again"

2 participants