Skip to content

fix(metadata-protocol): the bare save, delete, publish, draft and history doors follow the row-held base the bare read serves - #35450

Merged
objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-34681-bare-write-doors-follow-base
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 11 commits into
mainfrom
claude/issue-34681-bare-write-doors-follow-base

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #34681

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  1. 用户能看到什么变化:同一封邮件模板的同一语言版本,基座包和依赖它的包各存了一份时,不指定包去保存、存草稿、发布、看历史、比较版本、回滚、删除,以前一律被拒绝并要求说明是哪个包,现在都直接作用在打开时看到的基座包那一份上,依赖包那一份原样保留;不指定包连删两次,第一次删基座包那份,第二次删依赖包那份。对外的接口说明文字同步改写。
  2. 为什么做:落实「同一个地址,读到谁就写谁」这条已定规则,删除、丢弃草稿、回滚三扇门按 Bill 12:03Z 的裁决(选 A,三扇门都跟随)一并跟随。
  3. 出错会怎样:受影响的只是这种两份并存的模板;基座包未安装或只读时,按指定基座包的同一请求拒绝,不会写进去;撤回这次改动即恢复为原来的拒绝,不需要迁移数据。
  4. 要你做什么:无,席位落地。

What changes

The seven doors naming no package (save in publish and draft mode, per-item publish, delete and draft discard, and the history family: history, diff and rollback) now resolve their address the way the read naming no package does in this cell: a bundled type's name no package ships, held as stored rows at one member by a base package and a package that declares it. One helper, packagelessRowHeldBaseAddress in protocol-save.ts, asks the read's own judgment (rowHeldBaseAddressOf, unchanged) over the item's active rows, with the same guard the layered read uses (two or more bound holders, no package-less row, the base among them). Each door asks it only where it would otherwise refuse naming two or more packages (the history family through historySlotOf, its shared slot resolution), and then proceeds as the same request naming the base, judged as named (a base bound to an id no installed package has is refused 422 WRITABLE_PACKAGE_REQUIRED at the draft save too, see the third round below):

Door (no package named) main 8596c80 This head
save (REST PUT and in process) 409 naming both writes the base's row (writable base); 422 WRITABLE_PACKAGE_REQUIRED naming the base, as ?package=BASE answers (read-only base)
draft save 409 naming both writes the base's draft
per-item publish 409 naming both promotes the base's draft
history 409 naming both the base's versions, equal to ?package=BASE
diff 409 naming both compares the base's versions, equal to ?package=BASE
rollback 409 naming both restores the base's row to the base's own version; the receipt names the package ((package=BASE)), as the delete's does
delete / draft discard 409 naming both removes the base's row / draft; the receipt names the dependent's row as remaining; a second bare delete removes the dependent's row

The dependent's row is untouched and still read and written at its own ?package=. The destructive doors (delete, draft discard, rollback) follow the base by the maintainer's ruling (S2, option A, comment 7008542936).

Third round (contract review 7008272548 and ruling 7008542936):

  • S1. A bare draft save that follows the base now judges it with the named-base rule (metadata: rows already bound to an uninstalled package are still extended or published: a package-less save inherits the phantom binding, and the per-item publish?package=ID publishes the draft #26921) and the late override re-judgment, as the save naming it is: the follow arm keeps the base in followedBase and both sites read it, where before they read the cleared draft address and judged nothing. Cell: the base's rows bound to an id no installed package has, which an installed dependent declares. Before: bare draft save 200, writing a draft bound to that id; now 422 WRITABLE_PACKAGE_REQUIRED naming it, as ?package=BASE and the bare publish-mode save answer.
  • Rider 1. The rollback receipt's message names the package of the row it restored ( (package=ID)), in the delete receipt's spelling.
  • M1. packages/spec/src/api/protocol.zod.ts: the packageId descriptions of the save (active and draft), the per-item publish, the delete, and HISTORY_PACKAGE_SELECTOR_DESCRIPTION (history, diff, rollback) now state the row-held base exception, that two packages neither of which declares the other are still refused 409, and, on the delete, that a second bare delete removes the dependent's row and the base's copy comes back only by saving it again. gen:schema and gen:docs regenerated content/docs/references/api/protocol.mdx. Description text only; no shape, key or accepted value moves.
  • S3. Comment-only: the packagelessAddress, packagelessDraftAddress, historyMetaItem and rollbackMetaItem docblocks in protocol.ts and the protocol-history-slots.ts module header no longer say the bare doors refuse this cell.

Files: packages/metadata-protocol/src/protocol-save.ts (the helper; the publish-mode and draft-mode address), protocol-diff-delete-load.ts (delete and discard), protocol-history-and-publish.ts (publish), protocol-history-slots.ts (historySlotOf: history, diff and rollback); host Pick lists widened by the members the read's judgment reads (one line each in the history, diff and rollback doors, the rollback's in protocol-package-commits.ts). Comment-only: the packagelessLayeredReadRefusal docblock in protocol.ts and the rowHeldBaseAddressOf docblock in protocol-meta-item-face.ts now say the writes follow the base (claim amendment 7005577225), plus the S3 docblocks above. protocol-lock-version-gates.ts needed no edit. No file seat 4's PR touched; under packages/spec only protocol.zod.ts's five descriptions (claim amendment in 7008542936).

Changesets: .changeset/34681-bare-write-doors-follow-base.md (@objectstack/metadata-protocol patch) and .changeset/34681-spec-bare-doors-follow-base.md (@objectstack/spec patch), each with Clause-②: yes (widening) and Metadata-protocol: none.

Pins: packages/runtime/src/domains/meta-bare-write-doors-follow-base-34681.test.ts (new file, named for this card; the shared harness file meta-disabled-holder-served-stack.test.ts is fenced for this card).

Tests

Readings on `main` 8596c80 before the change (A1), through the real protocol on a booted kernel

Bare read 200 base en at the base. Each bare door, code (read-only) pair and authored (writable) pair alike: save 409, draft save 409, publish 409, history 409, delete 409, draft discard 409, every message naming both packages. ?package=BASE (authored base) save: 200 into the base's row. Diff and rollback, measured on branch head 90d943c before their change (the new diff and rollback pins run against that build): each 409 RESOURCE_CONFLICT naming both packages (Tests 2 failed | 5 passed (7)).

Third round, RED before the fixes (the build at `aa1df8a4`, new pins added first)

Tests 3 failed | 9 passed (12):

  • S1: the base bound to com.qa.ghostbase (no installed package has it), declared by the installed com.qa.ghostaddon. ?package= naming it and the bare publish-mode save answered 422 WRITABLE_PACKAGE_REQUIRED; the bare draft save answered 200, Saved email_template 'ghost_mail' (env-wide, package=com.qa.ghostbase, state=draft).
  • Rider 1: the bare rollback's receipt read Reverted to version 1 — type=email_template, name=rb_mail [seq=16], no package.
  • N2's REST DELETE pin: 405 METHOD_NOT_ALLOWED (use GET, HEAD, PUT). The HttpDispatcher metadata-item route does not mount DELETE (domains/meta.ts says mounting it needs its own card), so the pin was dropped, not the door; see Acceptance notes.
Pins at the final head: 11/11 pass

pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-write-doors-follow-base-34681.test.ts → Tests 11 passed (11). Added this round: the uninstalled base (S1), two bare deletes in a row, the bare draft read beside the bare discard (the dependent's draft stored first, so a first-match read would meet it first; the read serves the base's draft with a version token), the destructive doors under a read-only base (bare delete, draft discard and rollback each answer what ?package=BASE answers, never 409), the rollback receipt's package, and a bare read after the bare publish.

Ablation (one-shot, not kept)

Round 3, each through scripts/ablation-replace.mjs, rebuilt, ablation-dist-preflight checked, then the pin file:

  • S1: followedBase = base; deleted (anchor 1 → 0, blob e8a6970a → fb961e6f), dist marker absent: Tests 1 failed | 10 passed (11), the uninstalled-base pin red.
  • Rider 1: the receipt's package clause replaced (blob 3445e11f → 73848178), dist marker present in 2 built files: Tests 1 failed | 10 passed (11), the rollback pin red.
  • The helper answering no base (main's behaviour at every door; blob e8a6970a → 4364e64b, marker present in 2 built files): Tests 9 failed | 2 passed (11); every moved pin red, including the four rider-2 pins; the shipped-base neighbour and the controls green. A first attempt used a comment marker the bundle strips: the preflight refused it before any test ran, so that leg was a no-op and was re-run with a marker that survives.
  • Restored each: blob == HEAD, git diff HEAD empty, git status --porcelain empty, rebuilt, preflight --absent clean, Tests 11 passed (11).

Round 2, the historySlotOf site: its follow-the-base return replaced so it never fires (anchor 1 → 0, blob 3106fd35 → 9365a157), rebuilt, marker present in 2 built files: Tests 3 failed | 4 passed (7), the history, diff and rollback pins red, the rest green. Restored: blob == HEAD 3106fd35, git diff HEAD empty, rebuilt, preflight --absent clean, Tests 7 passed (7).

Round 1, the helper itself:
Mutation through scripts/ablation-replace.mjs: the helper's final return replaced so it never answers a base (anchor 1 → 0, blob 517f041a → aec26a74), @objectstack/metadata-protocol rebuilt, ablation-dist-preflight marker present in 2 built files. Run: Tests 3 failed | 2 passed (5): the three moved pins went red (first failure: the REST PUT answered 409 where 200 is pinned); the neighbour reading and the controls stayed green, as expected. Restored: blob == HEAD 517f041a, git diff HEAD empty, rebuilt, preflight --absent clean, Tests 5 passed (5).

Acceptance notes

  • A2, the shipped-base neighbour (measured, unchanged, pinned). The base ships the member in code and the dependent stores a row of it: the bare read serves the base's code item, and the bare save is refused 403 NOT_OVERRIDABLE toward BASE.custom, writing nothing (the package-less write is closed for a shipped name, ADR-0146 D11). The predicted disagreement (the save landing in the dependent's row) does not occur on main or here.
  • A3, read after the bare delete (measured, pinned). Once the bare delete removes the base's row, the bare read serves the dependent's row (200, packageId = dependent). Not silent: the delete receipt says the item still exists and names the dependent's row as remaining.
  • Read-only base. Where the base is a code or installed package, the bare save now answers what naming the base answers (422 WRITABLE_PACKAGE_REQUIRED naming the base) instead of 409 naming both, and so do the bare delete, draft discard and rollback (pinned equal to ?package=BASE).
  • Destructive doors (S2, ruled). Bill picked option A at 12:03Z (comment 7008542936): the bare delete, draft discard and rollback follow the row-held base. The accepted consequence is pinned: a second bare delete removes the dependent's row, and the base's copy comes back only by saving it again. The spec delete text states it.
  • N1, wording. The per-item publish naming no package still states no package to the runtime authoring gate, as every bare publish does; the changeset says so instead of "exactly as named".
  • N2. The REST DELETE door is not mounted on this transport (405), so the REST pin stays on PUT; the delete is pinned in process. Mounting DELETE there is a public-surface change for its own card, not this one.
  • Not moved (CONTROLS, pinned): two holders with no base relation, a package-less row beside the holders, and a type with no members still refuse 409 naming every holder; ?package= still writes where it names.
  • Same family, moved here (claim amendment 7005577225): the bare diff and the bare rollback follow the base through historySlotOf, pinned beside the first five doors. The two contract docblocks that said the writes do not follow the base are rewritten in the same PR.
  • Neighbour defect, reported for filing, left to the area: a dependent's non-canonical member over a base holding only the canonical member (the base's en-US row, the dependent's fr-FR row): the bare read at fr-FR answers 404, the bare save of fr-FR writes the dependent's row (200), and the bare read at fr-FR then answers 409. Present on main 8596c80, untouched here.

Verification

Third round at head 914e61af (merge base with origin/main 6f36818; overlap-check against origin/main 819c067). The suites ran at 531d0988; 914e61af only re-flows four docblocks in protocol.ts (comments), after which the facade ratchet and the other ratchets were re-run.

Local subset, each exit captured before any pipe
  • pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2: exit 0, Test Files 360 passed | 9 skipped (369), Tests 23249 passed | 45 skipped (23294).
  • pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 on the pin file plus meta-disabled-holder-served-stack.test.ts and meta-bundle-member-one-request.test.ts: exit 0, Test Files 3 passed (3), Tests 173 passed (173).
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2: exit 0, Test Files 947 passed (947), Tests 28933 passed | 1 todo (28934).
  • Typecheck: @objectstack/metadata-protocol, @objectstack/runtime (tsc plus check:test-typecheck) and @objectstack/spec: each exit 0.
  • gen:schema and gen:docs: exit 0; they changed only content/docs/references/api/protocol.mdx, committed.
  • Derived gate families (dispatch-gates.mjs --commands, 120): 118 exit 0; check:dual-build-cjs-loads and check:skill-examples exit 3, PREREQUISITE NOT MET (no full build here), NOT MEASURED locally and left to CI. check:facade-delegation-only was red in the first pass (protocol.ts 11717 lines over its ceiling 11705, from the S3 docblocks); the docblocks were re-flowed line-neutral and the gate re-run at 914e61af: exit 0. --ran reconciliation: 120 derived, 118 run, 2 NOT-MEASURED, 0 UNRUN.
  • Re-run at 914e61af: check:facade-delegation-only, check:query-options-erasure (236 sites, at the ceiling), check:nul-bytes, @objectstack/spec check:generated (all 14 artifacts current; a first run without the 4096 MB heap cap died in tsc with no diagnostics, re-run with it: exit 0). Each exit 0.
  • overlap-check.mjs --branch=HEAD: VERDICT clean, against origin/main and fix(metadata-protocol)!: a seed record that leaves a key field blank is refused at load #35459.
  • test:repo not run locally (no file of that project changed); CI's Test Core runs it.

席位核对

  • Read first: protocol-save.ts (packagelessRowHeldBaseAddress, the draft-mode follow arm with followedBase, and the two sites that read it), packages/spec/src/api/protocol.zod.ts (the five descriptions), protocol-diff-delete-load.ts (the two address sites in the delete).
  • Two-minute check: pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-write-doors-follow-base-34681.test.ts, expect Tests 11 passed (11) (after pnpm --filter @objectstack/metadata-protocol build).
  • Dogfood battery: not owed (no ! in the title, the arm is (widening)).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd

@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 87 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-meta-item-face.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

32 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 f727061b88258b946402bbb29afee6e6410081d6.

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

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/metadata-protocol/src/protocol-meta-item-face.ts) — pages documenting those are invisible to this run
  • 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 f727061b88258b946402bbb29afee6e6410081d6 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7d0e4cc8adffda0be957b0455c85f2d2843297dc — the merge of head 0af89166469cf611a5bfb1cd9cb3c370f44f1b96 into base f727061b88258b946402bbb29afee6e6410081d6, 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 7d0e4cc8adffda0be957b0455c85f2d2843297dc && git checkout 7d0e4cc8adffda0be957b0455c85f2d2843297dc
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f727061b88258b946402bbb29afee6e6410081d6 0af89166469cf611a5bfb1cd9cb3c370f44f1b96 && git checkout -B drift-repro f727061b88258b946402bbb29afee6e6410081d6 && git merge --no-ff 0af89166469cf611a5bfb1cd9cb3c370f44f1b96

node scripts/docs-audit/affected-docs.mjs --json f727061b88258b946402bbb29afee6e6410081d6

⚠️ 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 f727061b88258b946402bbb29afee6e6410081d6 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…d base too; docblocks state the writes follow it

Claude-Session: https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

2026-11-19T11:34Z Final head for review: 9bb4ae923610e2d6ec9481e2ec243ea27f9a44e9. CI on this head: 39 success, 18 skipped, 0 failed; mergeable clean. Clause-②: yes (widening): seven bare write/history doors (save, draft save, per-item publish, delete, draft discard, history, diff, rollback) now follow the row-held base instead of answering 409, per epic ruling 6781691009 and #34348 ruling (b). Surface widened by claim amendment 7005577225 (diff and rollback through historySlotOf, plus 2 comment-only docblocks). Delta os-dev-report 7007306366. L1 requested from L1-a; the seat does the contract review after ACCEPT.

Area notes for the reviewer:

  • RED/GREEN for diff and rollback were measured at 90d943c and 9bb4ae9. Ablation of the historySlotOf follow-the-base return turns the history, diff and rollback pins red (3 failed | 4 passed).
  • The erasure-ratchet red at 2a629c2 is fixed by typing the new rollback pin's query (satisfies EngineQueryOptions). The test surface is back to 236 sites and the ceiling was not raised.
  • Not in this PR, left with the area: a bare save of a dependent's non-canonical member (?member=fr-FR) writes the dependent's row while the bare read answers 404. A card draft is waiting for the maintainer's OK to file.
  • No dogfood battery: this is the widening arm, and the title carries no !.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:同一个内置条目(比如某种语言的邮件模板)同时被基础包和依赖它的包各存了一份时,不指定包直接保存、删除、发布、查看历史、比对或回滚,现在都作用在基础包那一份上,和打开时看到的是同一份;以前打开正常、保存却报"冲突"。
  • 为什么做:按你定的规则,写入要落在读取看到的那一处。
  • 出错会怎样:依赖包自己那份不受影响,仍需指定该包才能改;两个互不依赖的包各存一份,仍按以前报冲突。
  • 要你做什么:无。区域合并主线后,交席位做合同复审,再由区域落地。

席位核对

L1-a: ACCEPT · head 9bb4ae923610e2d6ec9481e2ec243ea27f9a44e9 · Fixes #34681 · 2026-11-19T11:36Z

Readings: check-governed-merges --pr 35450 not governed, +464/−36; merge-tree against main clean; CI 39 success / 18 skipped / 0 failed. K=19: main must be merged and the re-run green before queueing (see Routing).

Code (9 files). One helper, packagelessRowHeldBaseAddress (protocol-save.ts), is asked only where a bare door would refuse 409 naming two or more packages. It answers the row-held base by the same judgment the bare read uses (rowHeldBaseAddressOf over the item's active rows at member), and undefined in every case the read does not take the base. Those cases are: a type not read by package, a type with no members, fewer than two candidates, a package-less row beside the holders (#33210), and a base outside the candidates. The doors then rewrite request.packageId to that base and run as ?package=<base> does:

  • save (publish mode candidates.length > 1 branch; draft mode draftAddress.kind === 'ambiguous');
  • delete and draft discard (both ambiguity branches in deleteMetaItemUnaudited);
  • per-item publish (promoteDraftForPublish: draftKey / promoteInto = base);
  • history, diff and rollback through historySlotOf, which re-enters itself once with packageId: base.

Every other path keeps its old refusal, word for word. The unprovisioned store is caught (#5532). The two docblocks that this PR would otherwise make false are corrected in comment-only hunks (claim amendment 7005577225).

Pins. …bare-write-doors-follow-base-34681.test.ts holds 7 cells:

  • save (REST and in-process), draft, publish and history, before and after a restart;
  • delete and discard, after which the bare read serves the dependent's row and the receipt names it;
  • diff;
  • rollback;
  • a read-only base gets 422 (not 409);
  • the shipped-base neighbour is unchanged;
  • CONTROLS: no base relation, a package-less row beside, a memberless type, and ?package= still landing where it names.

Ablation ran in two rounds, the helper (3 red) and the historySlotOf site (3 red), each restored to HEAD (7005535521, 7007306366).

Declaration: agreed. Clause-②: yes (widening) / Metadata-protocol: none / patch. The accept set widens: a bare write that answered 409 now lands on the base. That is the L1-a ruling for an accept-set widening (as on #35423), and no metadata key or value moves. The read-only-base 409 → 422 is one refusal swapped for another, the one ?package=<base> already answers, so it narrows nothing.

Routing.

  1. Merge main into the branch (K=19 ≥ 15) and get a green re-run. A merge-only push needs no fresh L1.
  2. L2 is owed for Clause-②: yes: TIER_DEFAULT by the seat on the merged head.
  3. pkg-2 lands after the L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: aa1df8a4a2eb9d9506d34eab51ec33350dfbc085
Local-runs: none

PR #35450 · card #34681 · face: declaration (Clause-②: yes (widening), no file under packages/spec/src, no governed path). The head is a merge of main 6f36818 into 9bb4ae9; the net diff against main is the PR's nine files (+464 / −36), and the merge changed none of the PR's own hunks.

Gate verdicts on this head, read from its check-runs at 11:50Z: 24 success, 16 skipped, 0 failed, 11 still in progress (Test Core 1/10 to 10/10 and Type Check · workspace). The gates have not all answered yet. The verdict below does not wait on them: it rests on M1.

Findings: one must-fix (M1), three should-fix (S1, S2, S3), three nits.

① Derived judgments

The diff implies one accept-set change, at seven doors, in one cell: a bundled type's name that no package ships, held as active rows at one member by a base package and by a package that declares it, with no package-less row beside them.

Door naming no package main This head Judgment
save, publish mode (protocol-save.ts:854-861) 409 naming both writes the base's row; a read-only base answers 422 WRITABLE_PACKAGE_REQUIRED right
save, draft mode (protocol-save.ts:900-908) 409 naming both writes the base's draft right in the pinned cell, wrong at S1
per-item publish (protocol-history-and-publish.ts:843-848) 409 naming both promotes the base's draft into the base's row right (nit N1)
delete and draft discard (protocol-diff-delete-load.ts:726-749) 409 naming both removes the base's row or draft; the receipt names the dependent's row right
history, diff, rollback (protocol-history-slots.ts:177-181) 409 naming every holder the base's slot, as the request naming the base resolves it right

Why the guard is right. packagelessRowHeldBaseAddress (protocol-save.ts:3245-3268) answers a base only when the read's own judgment (rowHeldBaseAddressOf, unchanged) answers it over the item's active rows, two or more packages are bound at the member, no package-less row sits beside them, and the base is one of those packages. The read serves the base under the same three conditions (storedRowHoldersRefusal, protocol-meta-item-face.ts:477-480). The read filters declined rows and customization-pair rows before counting and the helper does not, but the judgment itself answers no base when either sits at the member, so the two agree. Every door asks the helper only on the branch that would otherwise refuse naming two or more packages, so no request that succeeded on main is refused here: the change is a widening only. The draft doors' ambiguous address that reaches the helper is always the active-rows case (protocol-lock-version-gates.ts:515-518); two packages' drafts over no active row still refuse.

The read-only base's 409 becoming 422 swaps one refusal for another on a request refused both ways. It narrows nothing; a client that offered a package picker on the 409 now reads the 422 naming the base.

Public surface. @objectstack/metadata-protocol exports only its index, and neither the facets, historySlotOf nor the new helper are in it, so the widened host Pick lists and the new export move no published type. The published change is behavioural: the accept set of seven protocol methods.

M1 (must-fix): the published request contract still says these requests are refused. packages/spec/src/api/protocol.zod.ts states the opposite of this head in four .describe() texts, which ship in @objectstack/spec and generate content/docs/references/api/protocol.mdx:

  • SaveMetaItemRequestSchema.packageId, :1218-1221 (active save: "is refused 409 RESOURCE_CONFLICT when they are bound to two or more") and :1228-1230 (draft save, the same);
  • PublishMetaItemRequestSchema.packageId, :1560-1562;
  • the delete request's packageId, :2434-2435, and through it the draft discard;
  • HISTORY_PACKAGE_SELECTOR_DESCRIPTION, :2655-2656 ("Absent, a name two holders hold … is refused 409 naming every holder"), used by the history, diff and rollback requests (:2720, :2993, :3056).

The claim fenced packages/spec/**, and neither os-dev-report names these sentences. Landing as it stands ships a release whose protocol reference says "409" where the server writes, deletes and restores. The save description was already amended once for an address rule of this family ("every enabled holder, for an active save"), so the text is kept in step by practice. To close: amend the four descriptions and regenerate (gen:schema && gen:docs), either in this PR after a claim amendment lifts the spec fence (the face then becomes schema, and the delta is owed a CONTRACT_REVIEW_TIER review), or on a card of its own that lands ahead of or together with this PR.

S1 (should-fix): the draft-mode arm skips the named-base rule the bare save owes. protocol-save.ts:900-908 rewrites request.packageId to the base and clears draftAddress. The inherited named-base rule (:946-954, #26921) and the late override re-judgment (:2011-2017) read a draft save's package from draftAddress.into, which is now gone, so in draft mode neither is asked of the base. The publish-mode arm is not affected (request.packageId is read there). Reachable cell: the base's rows are bound to an id no installed package has, and an installed dependent declares that id (a declared dependency stays in the closure when it is not installed, packages/metadata-core/src/package-closure.ts). There the save naming the base is refused 422 at :568, the bare publish-mode save is refused 422 at :950, and the bare draft save writes a draft bound to the uninstalled id, which isWritablePackage does not catch. On main that request was the 409. Derived by reading the code, not measured, and not pinned. To close: have both sites read the re-addressed package in draft mode, and pin the cell.

S3 (should-fix): contract docblocks the PR left false. Claim amendment 7005577225 corrected two docblocks on the ground that the PR making a sentence false lands the correction. The same sentence remains in: protocol.ts:9621-9624 (history), protocol.ts:11061-11063 (rollback), protocol.ts:7967-7969 (packagelessDraftAddress: "refused by both doors"), protocol.ts:7876-7879 (packagelessAddress), and the module header of protocol-history-slots.ts:15-19 ("nothing picks one"). Comment-only; same PR.

Nits:

  • N1. The per-item publish naming no package states no package to the runtime authoring gate (protocol-history-and-publish.ts:1245), where the publish naming the base states the base and is judged against its dependency closure. This is the documented shape of every bare publish on main, now reachable in this cell, so "exactly as the same request naming the base" is not exact for that gate. Wording, or a follow-up card.
  • N2. Pin coverage: the REST door is driven for PUT only (delete, publish, history, diff and rollback are pinned in process); no bare read is asserted after the bare publish before the restart; the read-only base is pinned for the save alone.
  • N3. Stale counts in prose: the PR body's two-minute check expects Tests 5 passed (5) (the file holds 7), and the pin file's header still says "the five write doors".

② Semver level

.changeset/34681-bare-write-doors-follow-base.md: @objectstack/metadata-protocol patch, with Clause-②: yes (widening) and Metadata-protocol: none line-initial in the changeset body and in the PR body.

  • Metadata-protocol: none is right: no key, accepted value or metadata type moves; the change is which stored row a request naming no package addresses.
  • patch is right: kind none takes patch, and a non-protocol widening ships patch (AGENTS.md, Post-Task Checklist 3).
  • Clause-②: yes (widening) is right: requests refused 409 on main are accepted, and none accepted on main is refused.
  • @objectstack/runtime gains a test file only and publishes nothing, so it needs no entry.
  • M1's spec amendment publishes from @objectstack/spec and needs its own changeset wherever it lands.

The changeset's sentence "exactly as the same request naming the base does" is subject to S1 and N1.

③ Boundary flags

Dev flags and open questions, from os-dev-reports 7005535521 and 7007306366:

  • open_questions[0] (two docblocks made false): answered A by claim amendment 7005577225 and done in the diff. Incomplete: S3.
  • open_questions[1] (the diff and the rollback): answered A by the same amendment and done through historySlotOf, with the one Pick line in protocol-package-commits.ts. Pinned, and ablated per the delta report.
  • Deviation, no dogfood battery: agreed. .claude/agents/os-dev.md owes the full battery only for a ! title or a (narrowing) arm.
  • Deviation, a new pin file instead of a describe in the shared harness: agreed, the dispatch fenced that file.
  • Deviations on the PR body layout, the mis-spelled test command and the merge commit's trailer: no contract effect.
  • out_of_scope_findings, class a (a dependent's non-canonical member over a base holding only the canonical one: bare read 404, bare save 200 into the dependent's row, bare read then 409): present on main, untouched here, and not yet filed. PR comment 7007933229 says a card draft waits. Escalated to area pkg-2: it is a read and write disagreement of the same family and needs its card.
  • out_of_scope_findings, class b (diff and rollback): closed by this PR.
  • security_findings: none: this review found no authorization bypass. The lock gate is not narrowed by package, the writable-base gate judges the re-addressed package on the save, the rollback's named-base close judges the resolved slot, and the publish gates judge promoteInto. S1 is an integrity gap, not an access one.

S2 (should-fix): the decision route. Triage twice reserved this card for a maintainer decision card before code (6940518124, 6945990423), and the card body says a change to the write doors goes to a person. The seat answered with its own note (7000610592) that two standing maintainer rulings already decide it. I read both cited comments, outside this brief's input list, to check that note:

The rule sentence covers this cell, and the dispatch rule lets a same-family card reuse a parent ruling with its reasons. The save, draft save, publish and history doors follow directly. The delete, the draft discard and the rollback are destructive doors the ruling's reasons did not weigh: a bare delete that was refused now removes the base's row, after which the bare read serves the dependent's row (A3, measured and pinned). I judge the direction sound, since packagelessAddress already binds the save, the delete and the version token to one resolution. But triage's ask stands unanswered by triage or the maintainer. To close: one line on the card from triage or the maintainer accepting the execution route for the destructive doors, or the decision card triage asked for; and correct the attribution of 6781691009 in the claim.

SQL push-down: no finding. The helper adds one read of the item's active rows (readItemActiveRows, one (type, name), a handful of rows) on the would-refuse branch only, and judges them against the in-memory package manifests, which SQL cannot reach. No id list is materialised and no join moves into the application. On that branch the item's rows are read up to three times (the door's address, the helper, the history recursion's rowSlotsOf); the path is rare and the cost is small.

Another author: none. The PR's user.login is objectstack-fleet[bot].

Before landing: M1 closed; S1, S2 and S3 closed or ruled as accepted deviations; every check-run on the landing head green; then the delta is read by this reviewer.

Implemented-by: claude/issue-34681-bare-write-doors-follow-base
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ (L2 subagent)

VERDICT: FAIL

… name the rollback's package

A bare draft save that follows the row-held base (#34681) now judges that base
with the named-base rule and the late override re-judgment, as the save naming
it is: a base bound to an id no installed package has is refused 422
WRITABLE_PACKAGE_REQUIRED instead of writing a draft bound to it. The rollback
receipt names the package of the row it restored, as the delete's receipt
does. The spec request texts, the protocol docblocks and the history-slots
header now state that bare requests follow the row-held base, and that a
second bare delete removes the dependent's row. Pins added for the uninstalled
base, two consecutive bare deletes, the bare draft read beside the discard,
and the destructive doors under a read-only base.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd
protocol.ts is a facade file at its line ceiling; the four corrected docblocks
are re-flowed in place so the file does not grow.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbP6iSEGkWb5fn8yqd
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 914e61af518a1b0c26dd63d197684836a709e7fc
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-history-slots.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/runtime/src/domains/meta-bare-write-doors-follow-base-34681.test.ts, content/docs/references/api/protocol.mdx, .changeset/34681-spec-bare-doors-follow-base.md
Security-touching: no

PR #35450 · card #34681 · face: schema (the five packageId description texts in packages/spec/src/api/protocol.zod.ts). This record reads the delta from aa1df8a4 (my FAIL, PR comment 7008272548) to this head, three commits, and re-judges the whole diff against main at this tier. It closes that record's findings by id.

Gate verdicts on this head: every check-run has concluded, read at 13:50Z. 74 runs: 62 success, 12 skipped, 0 failed, 0 in progress. The skipped ones are opt-in, queue-only or schedule lanes (the dogfood shards, the queue verdicts, the upgrade harness, the packed-tarball smoke, Lint UI, Auto Label, Check PR Size). Check Changeset, the five Type Check lanes, Governed Surface Queue Guard, Build Docs and Test Core 1/10 to 10/10 are success.

Result: M1, S1, S2, S3, N1, N2 and N3 are closed. Three new nits (N4, N5, N6), none touching correctness or the contract.

① Derived judgments

The accept-set change is the one judged at aa1df8a4, and those judgments stand: at seven doors naming no package, in the row-held-base cell, a request refused 409 on main now addresses the base's row, draft or versions. Nothing accepted on main is refused. The delta adds three things.

  1. The draft save judges the followed base as named (closes S1). protocol-save.ts:904-912 keeps the base in followedBase; the inherited named-base rule (:954) and the late override re-judgment (:2018) read it. In the cell S1 named (the base's rows bound to an id no installed package has, declared by an installed dependent) the bare draft save is now refused 422 WRITABLE_PACKAGE_REQUIRED, as the save naming the base and the bare publish-mode save are. Right. Against main this is one refusal for another (409 there), so it narrows nothing. The round-three report measured the old head answering 200 there, which confirms what S1 derived by reading. Pinned at meta-bare-write-doors-follow-base-34681.test.ts:229.

  2. The rollback receipt names the package (rider 1). protocol-package-commits.ts:2355-2357 adds (package=ID) to the receipt message whenever the restored row is bound to a package, in the delete receipt's spelling (protocol-diff-delete-load.ts:986). This reaches every package-bound rollback, not only this cell. It is message text only: no status, code or field moves, and no reader in the repo parses the sentence. Right, and the changeset declares it.

  3. The published request texts state the exception (closes M1). Five sentences in packages/spec/src/api/protocol.zod.ts:

    • save, active: :1222-1228; save, draft: :1236-1237;
    • per-item publish: :1569-1573;
    • delete, and through it the draft discard: :2448-2457;
    • HISTORY_PACKAGE_SELECTOR_DESCRIPTION: :2677-2681, read by the history, diff and rollback requests (:2745, :3018, :3081).

    Each now says the row-held base is addressed as naming it does, and that two packages neither of which declares the other are still refused. Description text only: no shape, key or accepted value moves. Right.

Generated reference in sync: content/docs/references/api/protocol.mdx changes exactly six rows (:786 delete, :860, :2162 and :2970 the three history-selector uses, :2648 publish, :3066 save). Each carries the new sentence word for word and none of the four old sentences remains in the page. No other checked-in artifact in the tree carries the old description text.

Public surface: unchanged from the first record apart from the two items above. @objectstack/metadata-protocol exports only its index; followedBase is a local.

② Semver level

Two changesets, each with Clause-②: yes (widening) and Metadata-protocol: none line-initial in its body, as the PR body carries them.

  • .changeset/34681-spec-bare-doors-follow-base.md: @objectstack/spec patch. Right. The spec publishes description text and the page generated from it; kind none takes patch (AGENTS.md, Post-Task Checklist 3). Metadata-protocol: none is right, since no key, accepted value or type moves. The Clause-② line is the PR's declaration copied into each changeset body, as the dispatch form asks.
  • .changeset/34681-bare-write-doors-follow-base.md: @objectstack/metadata-protocol patch, unchanged in level. Its body now states the named-base judgment, the rollback receipt, the second bare delete, and that the bare per-item publish states no package to the authoring gate. That closes N1: the sentence no longer says "exactly as".
  • @objectstack/runtime still gains a test file only and needs no entry.
  • No breaking banner and no ADR-0087 entry is owed: nothing narrows against main.

③ Boundary flags

Findings of record 7008272548, by id:

  • M1: closed. See ① item 3 and ④.
  • S1: closed. See ① item 1.
  • S2: closed. Card comment 7008542936 records the maintainer's choice of option A on the decision card: the bare delete, draft discard and rollback follow the row-held base, with the stated consequence accepted. It is the seat's record of that choice, in the form this repo records rulings. Claim correction 7008307314 fixes the attribution of 6781691009. The three riders are met in the tree: rider 1 at ① item 2; rider 2 in three pins (:242 two bare deletes in a row, :256 the bare draft read serves the draft the bare discard removes, :270 a read-only base at delete, discard and rollback equals the request naming it); rider 3 at ④.
  • S3: closed for the five sites it named: protocol.ts packagelessAddress, packagelessDraftAddress, historyMetaItem and rollbackMetaItem docblocks, and the protocol-history-slots.ts header. The file stays at 11705 lines. Residue: N5.
  • N1: closed (②). N3: closed: the PR body and the pin header count eleven tests and seven doors.
  • N2: closed. A bare read is asserted after the bare publish, and the read-only base is pinned at the destructive doors. The delete stays pinned in process: the dispatcher transport answers 405 to DELETE on a metadata item by design (packages/runtime/src/domains/meta.ts:2119-2147), so the deviation is accepted.

Round-three dev flags (os-dev-report 7010399497): open_questions is empty. Deviations: the REST DELETE pin, accepted above; the ablation leg re-run with a surviving marker, no contract effect; the stale tree, see the landing note. The class-a out-of-scope finding (a dependent's non-canonical member over a base holding only the canonical one) is still not filed. It stays escalated to area pkg-2 and is not a finding on this PR.

SQL push-down: no finding. The delta adds no read and no query; the first record's judgment of the helper's one bounded read stands.

Another author: none. The PR's user.login is objectstack-fleet[bot].

New nits:

  • N4. The spec exception names the cell as "a bundled type's member whose active rows a base package and a package declaring it both hold, with no package-unbound row beside them". It leaves out that no package ships the name in code, which the @objectstack/metadata-protocol changeset does say. Where the base ships the name, the server still refuses, so the text errs only toward promising a write the server declines, and "as the read naming no package serves it" bounds it. The delete's consequence sentence also assumes one dependent. Tighten on the next touch of these texts.
  • N5. Three unexported request-shape docblocks in packages/metadata-protocol/src/protocol-door-requests.ts still state the refusal with no exception: :67-69 (publish), :119-121 (rollback), :151-152 (delete). S3 did not name them. Comment-only, and the published text is now the spec's.
  • N6. The read-only-base pin (:270) asks the rollback for toVersion: 1 over rows laid with no history, so it shows that the bare request resolves the base's slot as the named one does and is never the 409, not that a restore into a read-only base is judged as named.

④ Design judgment

packages/spec/src/api/protocol.zod.ts, against the ruling it implements (7008542936, and the address rule of 6781691009 and 6942981052) and the code it describes:

  • Save. The text says the save in either mode writes the base's row or draft "as a save naming the base does". The code agrees: the publish-mode arm (protocol-save.ts:854-861) and the draft arm (:904-912) re-address the request, and every later gate judges that package, the named-base rule and the override re-judgment now included. Holds.
  • Publish. "Promotes the base's draft into it, as naming the base does" agrees with protocol-history-and-publish.ts:843-848, which sets both the draft key and the package promoted into. The authoring gate's package is the one stated exception, and the changeset states it. Holds.
  • Delete, rider 3. The text states the consequence the ruling accepted: the dependent's row is served next, a second delete naming no package removes it too, and the base's copy comes back only by saving it again. The code agrees (protocol-diff-delete-load.ts:726-749), and the pin at :242 drives exactly that sequence to a 404. The discard sentence defers to the publish text, which carries the exception. Holds.
  • History, diff, rollback. "There the base's slot is addressed, as naming the base addresses it" agrees with protocol-history-slots.ts, where historySlotOf re-enters itself naming the base. Holds.
  • First consumer. The generated reference page is in sync (①), and the server's behaviour is pinned by eleven tests, each moved door beside a control that still refuses.

Implementing files: the code agrees with the contract at every door. No must-fix and no should-fix.

Landing note, outside the verdict: the branch is K=24 first-parent commits behind main (merge base 6f36818f, main at f727061b, read at 13:51Z). main moved two of the PR's files since then (protocol-save.ts, protocol-package-commits.ts), in hunks the PR does not touch, and the head merges into it with no conflict. A merge of main moves the head; that head is owed its own green check-runs.

Implemented-by: claude/issue-34681-bare-write-doors-follow-base
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ (L2 subagent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0af89166469cf611a5bfb1cd9cb3c370f44f1b96
Local-runs: none
Scope: packages/spec/src/api/protocol.zod.ts + packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-history-slots.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/runtime/src/domains/meta-bare-write-doors-follow-base-34681.test.ts, content/docs/references/api/protocol.mdx, .changeset/34681-spec-bare-doors-follow-base.md
Security-touching: no

PR #35450 · card #34681 · face: schema. Merge-only delta from 914e61af (my PASS at that head) to this head: one commit, the relay's merge of main. This record judges whether that merge changes anything the PASS rested on. It opens no finding and re-opens none.

Gate verdicts on this head: every check-run has concluded, read at 14:24Z (the last finished at 14:22Z). 70 runs: 60 success, 10 skipped, 0 failed, 0 in progress. The lane set is the one that ran on 914e61af; that head showed 74 only because four pull-request lanes had run twice. The skipped ones are opt-in, queue-only or schedule lanes (the upgrade harness, the packed-tarball smoke, the two queue verdicts, the schedule gate, the dogfood matrix placeholder and Dogfood Verify CLI, Lint UI, Temporal Conformance, UI Published Artifacts). Check Changeset, the five Type Check lanes, Governed Surface Queue Guard, Build Docs, Test Core 1/10 to 10/10 and Test UI 1/16 to 16/16 are success.

Result: merge-only. No finding opened, none re-opened.

Merge-only, checked against the objects

  • Parents. 0af89166 has two parents: 914e61af518a1b0c26dd63d197684836a709e7fc (the reviewed head) and f727061b88258b946402bbb29afee6e6410081d6 (main). Committer is GitHub, message Merge branch 'main' into claude/issue-34681-bare-write-doors-follow-base.
  • The tree is git's own merge. git merge-tree --write-tree of the two parents answers tree c64ae3ca34bcd52210c245c4cb98b080e11f0f40 with no conflict, and that is this head's tree. Nothing was hand-resolved and nothing was added in the merge commit.
  • The PR's own change is the same change. The PR's twelve files against main are the same twelve as at 914e61af against the old merge base 6f36818f, and the whole diff has the same patch id before and after (170becf2b6bd95b1). Ten of the twelve are the same blob as at 914e61af, among them packages/spec/src/api/protocol.zod.ts, content/docs/references/api/protocol.mdx, both changesets, the pin file and protocol.ts (still 11705 lines).
  • The two files main also moved. protocol-save.ts and protocol-package-commits.ts differ from 914e61af by exactly main's own hunks: for each file the patch 914e61af to this head has the patch id of main's patch since the old merge base, and the PR's patch has the same id before and after.
  • The merge changed only what main changed. The files that differ between 914e61af and this head are the 235 files main moved since 6f36818f, the same list.

① Derived judgments

The judgments of the record at 914e61af stand unchanged. What main brought into the PR's two shared files, and why neither moves them:

  1. protocol-package-commits.ts:333-334 adds sourceStaysInstalled: true to the package-duplicate call (Unmanaged install: an AI-built app cannot be a template — its capability items are runtime-uncreatable and the scaffold's default connector plugins are code, so installModes: ['unmanaged'] is refused #35157). It is in the duplicate door, about 2000 lines from the rollback receipt (now :2357-2359), and no door this PR moves reads it.
  2. protocol-save.ts:1421-1424 extends the security-catalog name-collision check from permission to capability (Unmanaged install: an AI-built app cannot be a template — its capability items are runtime-uncreatable and the scaffold's default connector plugins are code, so installModes: ['unmanaged'] is refused #35157). The check judges the binding the write lands in, and reads request.packageId first. Where this PR follows a base, the request has already been re-addressed to that base (:855-861 publish mode, :904-912 draft mode), so the check judges the base, as the save naming the base has it judged. That is the rule this PR states for every later gate, so the new arm agrees with it. In practice the two do not meet: the follow needs a member of a bundled type (packagelessRowHeldBaseAddress, now :3254), and a capability has none.

Cited lines that moved with the merge: the late override re-judgment is at protocol-save.ts:2021 (was :2018); followedBase stays at :904, :912, :954.

Elsewhere in main's 24 commits, read for anything the PR's code or pins lean on:

  • The helpers the follow rests on (protocol-meta-item-face.ts, protocol-history-slots.ts, protocol-history-and-publish.ts, protocol-diff-delete-load.ts, migrations/overlay-index.ts) are untouched by main.
  • protocol-save-door-refusals.ts changes only the name-collision refusal, for capability. The named-base refusal and the holder refusal the pins assert are unchanged.
  • capability is now creatable at runtime (packages/spec/src/kernel/metadata-plugin.zod.ts). It carries no member, so the cell this PR moves cannot hold one.
  • The pins lay email_template rows and, for the no-member control, one dashboard pair with widgets: []. main's change to packages/spec/src/ui/dashboard.zod.ts is a description on a global filter's defaultValue and does not reach that body. The email_template entry is untouched.
  • packages/runtime/src/stored-metadata-reader-seam.ts and protocol-query-validation.ts change the action door's provenance walk and the disabled-package expansion. Neither is on a metadata item door.
  • main did not touch packages/spec/src/api/protocol.zod.ts, the reference generator or protocol.mdx, so the generated page is in sync as it was.

② Semver level

Unchanged. Both changesets are the same blobs as at 914e61af: @objectstack/spec patch and @objectstack/metadata-protocol patch, each with Clause-②: yes (widening) and Metadata-protocol: none line-initial. main added changesets of its own and none names this PR's change.

③ Boundary flags

M1, S1, S2, S3, N1, N2 and N3 stay closed as recorded at 914e61af. N4, N5 and N6 stay open as nits; the merge touches none of their sites. No new flag.

The merge commit is the relay's update of the branch, not the area's work, so it carries no dev report and owes none. The class-a out-of-scope finding is still unfiled and is not a finding on this PR.

④ Design judgment

Unchanged. The five description texts and the code they describe are the same blobs, or the same hunks, as judged at 914e61af, and nothing main brought alters a door they describe.

Landing note, outside the verdict: K=4 first-parent commits on main since the merge base, which is now f727061b (main at 94fb8db2, read at 14:25Z; K was 24 before this merge). Those four commits touch none of the PR's twelve files, and this head merges into main with no conflict. The PR is still a draft with no auto-merge armed.

Implemented-by: claude/issue-34681-bare-write-doors-follow-base
Reviewed-by: session_01Utp6CbUb7TcZK1XUAddUmQ (L2 subagent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

2026-11-19T14:26Z Landing PR #35450 (card #34681) at head 0af89166469cf611a5bfb1cd9cb3c370f44f1b96. Contract review PASS 7011078775 at 914e61af (CONTRACT_REVIEW_TIER, schema face; M1, S1, S2, S3 and N1–N3 closed), then the seat's merge-only delta PASS at this head (tree equals git's merge, patch-id unchanged). The S2 direction is the maintainer's ruling 7008542936 (option A: the three destructive doors follow the base too). L1-a ACCEPT 7007968134.

Probe Reading
Check-runs on 0af89166 70 green, 0 failed (seat's read)
check-governed-merges.mjs --pr 35450 NOT governed
Main merge through the relay because K was 24; K now 4

State: the area marks it ready and arms auto-merge. On MERGED, the area closes #34681 and clears its labels. The review's new nits N4–N6 are on #35529; the class-a finding is #35524.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 19, 2026 14:26
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit b68f9ae Nov 19, 2026
71 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34681-bare-write-doors-follow-base branch November 19, 2026 14:54
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants