Skip to content

fix(metadata-protocol): the environment's own row of a name two enabled packages ship is what the reads naming no package serve - #39557

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-l0sg2o
Dec 4, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-l0sg2o

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #34348

Clause-②: yes
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:环境管理员在一个由两个已启用的包同时提供的元数据项(例如仪表盘)上保存了自己的定制后,读取页面、分层视图、已发布视图和执行读取都直接显示这份定制,不再报“名称冲突”。
  • 为什么做:以前保存能成功,读取却全部报冲突,环境改了一个任何读取都看不到的项;这里按“环境自己的项优先、读写一致”的既定裁决把读取改回来。
  • 出错会怎样:只影响“两个已启用包同名 + 环境自己存了一行”的项;出错时读者会看到环境的定制而不是冲突提示,删掉环境那一行即可恢复原来的冲突提示,可直接撤回。
  • 要你做什么:无。

What changes

Ruling 6942981052 option (b), scope 7187358430, narrowed by 7187668758 to cell 2 only, and by 7405866869 (flavor 2 = A) to code shippers only: a package-unbound active row of a name two or more ENABLED packages ship in code is the environment's own item where no row bound to a package sits beside it at the same member. The reads that name no package now serve it, as the save naming no package already edits it.

  • New packages/metadata-protocol/src/protocol-environment-row-beside-shippers.ts: servesEnvironmentRowBesideShippers judges the arrangement (type read by package, ≥2 enabled shippers at the member, and over every active row the reads serve at the member, as the save judges them: packagelessAddress(...) unbound with no candidate, and no row stored with an empty-string binding); withEnvironmentRowAdmission marks the _env refusal so the _env doors ask the read naming no package and admit when it serves an item no package states.
  • protocol-meta-item-face.ts / protocol-meta-item-reads.ts: the plain and execution reads skip the registry's ambiguous-in-environment refusal for that arrangement and serve the package-less row without a package envelope. The strict draft read is untouched.
  • protocol-meta-layered-reads.ts: /layers and /published report no code layer, the row as overlay and effective.
  • protocol-exact-qualifier.ts: admitEnvironmentQualifier's final refusal for ≥2 holders of a by-package type carries the admission judge.
  • Contract review round 1 (7406921440): M1 the arrangement reads the save's rows (above); S1 a read judged to serve the row that does not read it answers the resolver's refusal on the item and layered reads, never a shipper's code item or three empty layers; S2 the entry no longer points at ?package= (409 there), and names the delete remedy; N1 the DISABLED_HOLDERS_ONLY_REFUSAL docblock names its second use (the door docblocks in rest / runtime are left for a follow-up).
  • ADR-0087 semantic entry 19.environment-row-beside-two-shippers-bare-read-served plus its STAYS_LISTED coverage row (deployment).

Left as they were: two shippers and no package-unbound row (the refusal naming both stands); the unbound row beside a row bound to one shipper (the save edits that package's row) or to both (the save refuses); a disabled shipper counts for nothing; a name held only as stored rows (no shipper) keeps its refusal on reads and saves alike; a sealed managed type's package-unbound row is still declined; ?package=PACKAGE answers as before.

Scope note on entry 18 (two-row-holders-bare-read-refused)

The new entry registers flavor 1 only (two enabled CODE shippers + an unbound row). It does not supersede entry 18, which covers flavor 2 (a name two packages hold only as stored rows). On main 198301b flavor 2 already answers 409 on both the bare read and the bare save, so reads and writes agree there. The maintainer ruled it stays that way (7405866869, flavor 2 = A: row holders keep read and write both 409; 「#34355 一并改回」 is withdrawn for the two-row-holder shape), so entry 18 stands as is. The two entries overlap only in naming the same 409 ambiguous-in-environment surface; their arrangements are disjoint (shipper vs. rows-only holder).

Landing order

Stays draft until #39099 merges (the coverage-test row then gets resolved against main). The flavor-2 ruling is in (7405866869).

Tests

  • packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts, new describe [#34348] …: three packages (two enabled shippers, one disabled), file SQLite with a reboot, both registration orders. Every bare door (dispatcher plain, /layers, /published, _env; REST plain, /layers, /published, /:type/:ns/:name _env; execution read) answers 200 with the row; /layers is [null, 'environment row', 'environment row']; after the REST and dispatcher bare PUTs the stored rows are ['active:null:edited on …'] and every read serves the edit. CONTROL: with no unbound row every door answers 409 RESOURCE_CONFLICT naming the two enabled shippers and nothing is stored.
  • Ablation (base versions of the four source files restored): 4 failed, the 2 CONTROLs passed.
  • Round 1 CONTROLs, both registration orders, before and after a reboot, every bare door on both transports: X (unbound row + a row bound to A) and Y (+ rows bound to A and B) serve no environment row (Y answers 409 everywhere); E (an unbound row stored with package_id = '', written under the engine, which stores '' as null) answers 409 everywhere. The flavor-1 test now also deletes the row naming no package and reads 409 naming the shippers again. Ablation: the round-0 predicate restored -> X and Y fail (4); the predicate's empty-binding guard removed -> E still passes on the read guards alone (they bear weight independently).
  • Pin sweep: no existing pin of the same meaning to flip; the metadata-protocol: a package-less row beside two packages' rows of one name (no shipper) is served by store order on the plain read while /layers refuses — follow-ups of PR #33182 (#32607) #33210 / metadata-protocol: a package-less row beside a disabled holder and served holders is served by save order on the plain read and /published, while /layers refuses naming the disabled package #34440 pins cover rows-only flavor 2 and stay as they are; the disabled-only arm is untouched.
  • CONTROL added to the existing [#33210] three-rows pins (ruling 7405866869): the save naming no package answers 409 RESOURCE_CONFLICT naming both row holders and writes nothing (three active rows, unchanged), in all three save orders, before and after a reboot, so reads and writes agree on flavor 2. Whole file: 207 passed; runtime typecheck exit 0.

Acceptance notes

  • Reads and writes naming no package give the same answer beside two enabled shippers when the environment stores its own row.
  • No existing behaviour moves outside that arrangement (CONTROL test, the untouched pins above).

Verification

Read first (by risk):

  1. protocol-meta-item-reads.ts — the environmentRow skip of packagelessScopedRead and the envelope skip.
  2. protocol-exact-qualifier.ts — the marked _env refusal.
  3. protocol-environment-row-beside-shippers.ts — the arrangement judgement.

Two-minute check: pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-disabled-holder-served-stack.test.ts -t 34348 — expect 12 passed.

Local runs
  • @objectstack/metadata-protocol full vitest: 24011 passed (round 1); tsc --noEmit exit 0.
  • @objectstack/runtime src/domains/meta: 3084 passed (round 1); pnpm run typecheck exit 0.
  • @objectstack/objectql src/package-scoped + src/protocol: 2060 passed. @objectstack/rest src/meta: 2427 passed.
  • @objectstack/spec src/migrations: 255 passed, 3 todo (includes the new coverage row).
  • dispatch-gates --ran (round 1, head f77171a): 98 derived, 98 run, 0 NOT-MEASURED (derived zero). check:doc-authoring first exited 1 on the tracker id in the two new error strings (a real finding, fixed in f77171a); five spec checks first exited 3 on a stale spec dist and exited 0 after rebuilding it.
  • dispatch-gates --ran (round 0): 98 derived families, 98 run, 0 NOT-MEASURED (derived zero, every exit code recorded, all 0). Eight first exited 1/3 on missing prerequisite builds (spec .d.ts, create-objectstack dist, shallow clone) and exited 0 on rerun after building them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1

…eside two enabled shippers on every bare read

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1
…s served by the bare reads

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1
…as an ADR-0087 semantic entry

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1
@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 Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

21 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 c1853de6bf79cad6907352a3d7f5e846ac424ffa.

⛔ 10 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 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 186 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 c1853de6bf79cad6907352a3d7f5e846ac424ffa → packageMentionDocs.

Which tree this was computed on

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

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

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

…e bare save as the bare reads do

Flavor 2 (a name two packages hold only as stored rows) keeps read and
write both 409: the existing three-rows pins now also assert the save
naming no package refuses naming both holders and writes nothing.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 6a1c209 · 2026-12-04T09:02Z

L1-a thread starts the at-tier contract review of this head as an isolated sub-agent (schema face: the new packages/spec/src/migrations/entries/semantic/19.* entry), in parallel with its L1 read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6a1c20923443b00af8dd671fb8f7ceaf801bfe08
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.environment-row-beside-two-shippers-bare-read-served.ts + packages/metadata-protocol/src/protocol-environment-row-beside-shippers.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-exact-qualifier.ts

Inputs read: card #34348 (body and all 14 comments, rulings 6942981052, 7187358430, 7187668758 and 7405866869 included), PR #39557 (body, 9 files, net diff against main at merge base 198301bd), and the check-runs on the head. The remainder of the diff (the runtime test file, the coverage-test row, the changeset prose) is the lane seat's ACCEPT. Everything below marked "read in the tree" was read on the branch head and not run.

① Derived judgments

  • Accept-set, bare reads (plain, /layers, /published, _env, execution read) of a by-package type, two or more enabled code shippers, one package-unbound active row, no other stored row: 409 to 200 serving the row. Right. This is the cell ruling 6942981052 (b) keeps after 7187668758 and 7405866869, and it matches the bare save, which packagelessHolderRefusal leaves unrefused when address.unbound (protocol-save.ts) and which then writes the unbound row.
  • Accept-set, the same shippers and unbound row with a stored row bound to one or more of the shippers beside it: 409 to 200 as well. Wrong. See M1.
  • Two enabled shippers and no unbound row: still 409 naming the shippers. Right (predicate returns false on servedUnbound.length === 0; CONTROL test in the diff).
  • A disabled shipper counts for nothing: right (enabledShippers filters isPackageDisabled; one enabled beside one disabled stays one holder).
  • Flavor 2, two enabled row-only holders and an unbound row: unchanged, 409 on read and save. Right against ruling 7405866869: with no code shipper enabledShippers.length is below 2 and the predicate is false; entry 18 is untouched, neither superseded nor retired (ruled term 1); the bare-save CONTROL is added to the existing [#33210] pin (ruled term 2).
  • A sealed managed type's unbound row: still declined (declinesStoredRow in the predicate, the same function the stored step of readMetaItem asks). Right.
  • Strict draft read: untouched on the item face (request.state !== 'draft'). Right.
  • _env admission: admitEnvironmentQualifier now marks its two-or-more-holders refusal for by-package types; the doors admit _env only when the plain read serves an item stating no package. Right for the registered cell; see N1 for the marker.
  • Public surface: no key, schema or route added or removed; one new ADR-0087 semantic entry and its STAYS_LISTED row (deployment). Right.
  • Gate verdicts: every check-run on the head concluded success or skipped, except one cancelled run of the PR-body guards whose later run succeeded. Check Changeset, Governed Surface Queue Guard, Spec property liveness and the v18 to v19 source upgrade are green.

② Semver level

Clause-②: yes. patch on @objectstack/metadata-protocol and @objectstack/spec is the right level: Metadata-protocol: none, and a non-protocol widening ships patch (AGENTS.md, Post-Task Checklist step 3). Both declaration lines are in the PR body and the changeset body, and the changeset carries its one ADR-0087 marker naming the registered entry. The changeset's "Unchanged" list repeats the overreach of M1 (it does not name the bound-row case) and should move with the fix.

③ Boundary flags

  • open_questions 1 (flavor 2): answered by ruling 7405866869, option A. The diff complies for the row-only shape. M1 is the same precedence applied to shippers that also hold a stored row.
  • open_questions 2 (?package=SHIPPER answers 409 while an unbound row is stored): not answered by this PR. Answer: option A, file a card. The new entry sends callers to that address (S2), and after this change a shipper's own item has no serving read in this arrangement. Escalated to the seat.
  • Dev flags: the file surface grew by three files, covered by claim amendment 7405675174. The ADR-0150 D3 dated note is routed to the weekly ADR revisions card (ruled term 3). The _env side reading is filed as Package-unbound row beside two row-holder packages: after a reboot the _env refusal names only one holder, by registration order #39572 (ruled term 4). The PR stays draft behind flow conditions: a date or datetime ordered against a number publishes clean and faults at run time, in every spelling #39099 for the coverage-test row.
  • SQL push-down: no finding. The predicate filters the item's own active rows, already read once per read on the item face and shared through judgeHost; the layered read adds one read of the same rows, only when two or more enabled packages ship the name. No id materialisation and no in-app join.

④ Design judgment

M1 (must-fix) — servesEnvironmentRowBesideShippers does not look at stored rows bound to a package, so the reads move in cells where the save does not edit the row they serve.

  • The predicate filters the active rows down to the unbound ones and hands only those to packagelessAddress. Its last line, .unbound, is then true whenever the filter kept a row at the member; candidates is never read. The module docblock and the PR body present that call as a condition of the arrangement. It is a member filter and nothing else.
  • Cell X, shippers A and B, the unbound row, and a row bound to A (read in the tree): the bare save computes packagelessAddress over all rows, gets candidates = [A], passes packagelessHolderRefusal because unbound is true, and resolves address.packageId = A: it writes A's row and answers 200. With this diff every bare read answers 200 with the unbound row (environmentAction forces packageId: null, contentPackageId: null). The save answers 200 and the next read does not show the saved body. The bare delete takes A's row too, so the entry's own remedy removes the wrong row.
  • Cell Y, the same with rows bound to A and to B: the bare save answers 409 (address.candidates.length above 1), the /layers door answers 409 (packagelessLayeredReadRefusal, same count), and with this diff the plain read, /published, _env and the execution read answer 200 with the unbound row. On main every one of them answers 409.
  • Against the contract: ruling 6942981052 requires reads and writes to give the same answer; ruling 7405866869 adopts the precedence of analysis 7404667136 (a package's own stored copy outranks an unowned row, then the holders are counted and two are refused), which keeps both cells at 409. The entry's acceptance criterion says "for every name two or more enabled packages ship while the environment stores a package-unbound row" that after a bare save the reads "answer the saved body"; it is false in X and Y. packagelessContentPackage already names the distinction on main ("several ship it and a row is bound to one").
  • Reachable from stored data: the comment at the write-address block of protocol-save.ts records that the bare save used to mint an unbound row beside the package's own row. No test in the diff stores a bound row beside the unbound one.
  • Fix direction: judge the same rows the save judges (all served active rows at the member) and require no binding to an enabled package before serving the unbound row; narrow the entry surface, the acceptance criterion and the changeset to match; pin X and Y as CONTROLs on both transports.

S1 (should-fix) — under environmentRow nothing checks that the item served is the unbound row. readMetaItem skips the resolver's refusal and, when the stored step yields no item, falls through to the metadata service and registry.getItem, whose answer for a name two packages ship follows registration order. One trigger, read in the tree: the predicate counts a row whose package_id is the empty string as unbound, but the content read asks package_id: null and rowMatchesOverlayWhere compares (stored ?? null) === value, so that row is not found and one shipper's code item is served 200 with its envelope, where main answers 409. The _env judge guards this case (a stated package keeps the refusal); the plain, /published and execution reads do not, and /layers answers three null layers. Fix direction: when environmentRow is set and the read reaches the code layers, throw the resolver's refusal.

S2 (should-fix) — the entry's replacement tells a caller that relied on the 409 to read the name "with ?package=PACKAGE". In this arrangement that read is refused 409 (triage re-measure 7187321400, analysis 7404667136, and the dev's open question 2), so the sentence reads as a serving address and is not one. State what ?package= answers there, or drop it and keep the delete remedy (once M1 makes the delete remove the row the reads serve).

N1 (nit) — the two-enabled-holders refusal is marked with DISABLED_HOLDERS_ONLY_REFUSAL. The constant's docblock in protocol-exact-qualifier.ts and the three door docblocks (rest qualified route, runtime dispatcher, import mapping) still describe the mark as "a name only disabled packages hold", and the doors' withheld arm admits _env to the plain read's 404 without asking the judgment. No case was found where the plain read of a name with two enabled holders answers no item without refusing, so no answer moves; the name and the prose are now wrong. Follow-up: rename the mark or correct the docblocks.

N2 (nit) — the pins cover dashboard only. The entry claims every type the registry reads by package; a bundled type at a named member (email_template) and flow with a declared override are not pinned. Follow-up card, measure first.

The entry file itself is well formed against its neighbours (entry 18 shape, id matches the file name and the changeset marker, STAYS_LISTED class deployment with a reason) and correctly leaves entry 18 standing. Its scope sentence is the part M1 and S2 change.

Implemented-by: claude/project-thread-l0sg2o
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Filled brief handed to the isolated at-tier reviewer whose record is the comment above (adopted by this L1-a thread):

Contract review brief — PR #39557 @ 6a1c20923443b00af8dd671fb8f7ceaf801bfe08 (card #34348)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/migrations/entries/semantic/19.environment-row-beside-two-shippers-bare-read-served.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #34348: its body and EVERY comment (rulings and earlier records included)
· PR #39557: its body, its file list, and the net diff against main at 6a1c20923443b00af8dd671fb8f7ceaf801bfe08
· the check-runs on 6a1c20923443b00af8dd671fb8f7ceaf801bfe08: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/migrations/entries/semantic/19.environment-row-beside-two-shippers-bare-read-served.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is the reviewer scratch dir/pr-39557/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · REWORK · #39557 @ 6a1c209234 · Area: ot-build · read 2026-12-04T09:10Z

Contract review record 7406921440 (at-tier, isolated, adopted here) is FAIL on this head: one must-fix, two should-fix. I confirmed M1 in the tree. servesEnvironmentRowBesideShippers passes only the package-unbound rows (servedUnbound) to packagelessAddress, so a stored row bound to one of the shippers never enters the judgement. Owed in the patch round, by id:

  • M1 (must-fix): the arrangement must account for rows bound to a shipper. Take the precedence ruling 7405866869 adopts: a package's own stored copy outranks an unowned row. Add the two cells the record names as pinned cases, each asserting the bare reads and the bare save/delete give the same answer: (X) shippers A and B, the unbound row, plus a row bound to A; (Y) rows bound to both A and B.
  • S1 (should-fix): under environmentRow, the served item must be the unbound row, or the read refuses as on main. It must not fall through to a shipper's item picked by registration order. Pin the package_id: '' row case the record names.
  • S2 (should-fix): the new ADR-0087 entry's replacement points at ?package=PACKAGE, which this arrangement refuses. Correct the replacement text.
  • N1, N2 (nits): optional in the same round (the stale DISABLED_HOLDERS_ONLY_REFUSAL docblock wording, and a pin beyond dashboard).

L1 (TIER_DEFAULT remainder):

  • Ruling 7405866869 ② is met: the bare-save CONTROL is in the [#33210] three-rows pin (409 RESOURCE_CONFLICT, both row holders named, rows unchanged). Entry 18 is untouched.
  • Landing to-dos for the seat, recorded now: ③ the dated note under ADR-0150 D3 goes on the weekly ADR revisions card; ④ the _env side reading is filed as a finding.
  • l1-face flags changeset for @objectstack/runtime, but the only runtime file is a test, and runtime's files[] is dist, README.md and CHANGELOG.md, so no changeset is owed. It also flags all-checks for one PR-body guards run that was cancelled (job 144921425921); the same check name then succeeded on this head (job 144921762680). Neither blocks.
  • Changeset, sentence by sentence: Before and Now match the diff for the cells the tests pin. "Reads and writes give the same answer" is false in cells X and Y until M1 is fixed, so re-read this sentence on the next head. "Unchanged … ?package=PACKAGE answers as before" is true.
  • The body says the PR stays draft until flow conditions: a date or datetime ordered against a number publishes clean and faults at run time, in every spelling #39099 merges and the coverage row is merged with main. The next head therefore carries both the M1/S1/S2 fix and the main merge. Send it back through the seat for the L2 delta (M1, S1, S2 closed by id) and the L1 delta.

…rs only where the bare save addresses it

Contract review round 1: the arrangement now judges every active row the
reads serve at the member, as the save does, so a row bound to a package
beside the unbound one leaves the reads as they were. A read judged to
serve the environment's row that does not read it gives the resolver's
refusal instead of a shipper's code item, on the item and layered reads.
The entry's replacement no longer points at ?package=, and its surface
and acceptance criterion name the narrowed arrangement.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1
@github-actions github-actions Bot added size/l and removed size/m labels Dec 4, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head f77171a · 2026-12-04T10:31Z

L1-a thread runs the at-tier delta of record 7406921440 on this head (same isolated reviewer), in parallel with its L1 delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f77171a399cf0926dc92da836d15362c58160da0
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.environment-row-beside-two-shippers-bare-read-served.ts + packages/metadata-protocol/src/protocol-environment-row-beside-shippers.ts, packages/metadata-protocol/src/protocol-meta-item-face.ts, packages/metadata-protocol/src/protocol-meta-item-reads.ts, packages/metadata-protocol/src/protocol-meta-layered-reads.ts, packages/metadata-protocol/src/protocol-exact-qualifier.ts

Delta review of record 7406921440 (FAIL on 6a1c2092). Inputs read: the card's comments (none newer than ruling term record 7406027971), the PR's net diff against main at this head (9 files, merge base 198301bd), the delta between the two heads (commits 7abc328994 and f77171a399, 7 files), and the check-runs on this head. Everything below was read in the tree and not run.

① Derived judgments

  • Accept-set, the registered cell (two or more enabled code shippers, one package-unbound active row at the member, no row bound to a package beside it): bare reads 409 to 200. Right, unchanged from the first round.
  • Accept-set, the unbound row beside a row bound to one shipper (X) or to both (Y): no longer moves. Right. The predicate is false there, so every read takes the same path as on main.
  • An unbound row stored with the empty string as its binding (E): does not make the arrangement. Right, and conservative: the content read asks package_id: null and would not find it.
  • Every other judgment of the first round (no unbound row, disabled shipper, flavor 2 against ruling 7405866869, sealed managed row, strict draft read, _env admission, no key or route change) is untouched by the two commits and stands.
  • Gate verdicts: 63 check-runs success, 15 skipped, none failed or cancelled on this head.

② Semver level

Clause-②: yes. patch on @objectstack/metadata-protocol and @objectstack/spec stands (Metadata-protocol: none; a non-protocol widening ships patch). The changeset's "Unchanged" list now names the bound-row case and cites ruling 7405866869; it matches what the diff publishes.

③ Boundary flags

  • open_questions 1 (flavor 2): answered by ruling 7405866869, complied with, as in the first round.
  • open_questions 2 (?package=SHIPPER answers 409 while an unbound row is stored): the entry now states that answer in its own words. The card is still the seat's to file; the escalation of the first round stands.
  • SQL push-down: no finding. The predicate still filters the item's own active rows already read for the read; the second packagelessAddress call is over those same rows in memory.

④ Design judgment

No must-fix, no should-fix.

M1: closed

  • servesEnvironmentRowBesideShippers now hands packagelessAddress every active row at the member the reads do not decline, whatever its binding, and requires unbound with candidates.length === 0. That is the condition under which the bare save resolves no package and writes the unbound row (protocol-save.ts, the write-address block), so the reads move only where the save edits the row they serve.
  • Pinned: CONTROLs X and Y on both transports, both registration orders, before and after a reboot; Y asserts 409 RESOURCE_CONFLICT at every door, X asserts no door serves the environment's row.
  • The entry's surface and acceptance criterion, the module docblock and the changeset are narrowed to "no row bound to a package beside it at the same member".

S1: closed

  • readMetaItem: when environmentRow is set and step 1 served no item, or served one that states a package, the read asks the resolver, which refuses naming the shippers, before any code layer is reached. The guard sits after the draft returns and before step 1b, so no later layer can answer.
  • getGenericMetaItemLayered: the same guard when no overlay was read, in place of three null layers.
  • The empty-string binding no longer makes the arrangement, and CONTROL E pins 409 at every door with the raw column asserted to hold the empty string.

S2: closed

  • The replacement now says ?package=PACKAGE also answers 409 while the row is stored and gives the bare delete as the remedy. The delete is pinned: 200, no active row left, every bare read back to 409.

N1: closed

  • The constant's docblock in protocol-exact-qualifier.ts states that the mark also rides the two-enabled-holders refusal and means "ask the read naming no package". The door docblocks in the rest and runtime packages are outside this diff and can follow in prose.

N2: open, as a nit

  • The pins still cover dashboard only. Accepted as a follow-up card, measure first; it does not hold the verdict.

New on this head:

N3 (nit) — a row bound to a DISABLED package beside the unbound row now keeps the reads at 409, while the bare save still edits the unbound row there (servedPackagelessSaveAddress answers packageId: null). That is the state on main, not a regression, and the entry's surface excludes it honestly. It is a remaining read and write disagreement in a cell where ruling 7187668758 says a disabled holder counts for nothing. Follow-up card.

N4 (nit) — both S1 guards end in a plain Error if the resolver does not refuse (a shipper disabled between the judgment and the read). That path would answer 500 where a 404 or a retry is the truthful answer. No trigger outside a race. Follow-up, or leave as an accepted deviation.

Implemented-by: claude/project-thread-l0sg2o
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · ACCEPT (delta) · #39557 @ f77171a399 · Area: ot-build · read 2026-12-04T10:34Z

  • L2 delta: record 7408893862 (CONTRACT_REVIEW_TIER, same isolated reviewer as 7406921440, claim 7408848968) is PASS on this head. M1, S1, S2 and N1 are closed by id. N2, N3 and N4 are nits, left for follow-up cards. I adopt it: its Scope: holds the entry file (hits) plus the protocol files that implement it, and the independence pair is unchanged.
  • My REWORK 7406947391, item by item:
    • M1: confirmed in the tree. servesEnvironmentRowBesideShippers now hands packagelessAddress every served active row at the member, whatever its binding. It moves the reads only when the bare save would address the unbound row (unbound, no candidates). Cells X and Y are pinned as CONTROLs on both registration orders, before and after a reboot. The old-predicate ablation reds X and Y.
    • On my "reads and save give the same answer" ask for X: the acceptance is now scoped to the arrangement where the bare save edits the unbound row. Beside a bound row the reads stay as on main, and the changeset and the entry say so. I accept that narrowing, as the L2 does. Read/save agreement in cell X is then the state main already has, not something this PR claims.
    • S1: confirmed. readMetaItem and the layered read throw the resolver's refusal when the environment row was judged served but not read. A package_id: '' row does not make the arrangement (CONTROL E, 409 at every door).
    • S2: confirmed. The replacement text says ?package= answers 409 while that row is stored, and gives the bare delete as the remedy. The delete is pinned (200, then the reads are back to 409).
  • Changeset, re-read sentence by sentence: "Now" and "Unchanged" match the narrowed arrangement, including the new "beside a stored row bound to a package … the reads answer as before". The l1-face flag changeset for @objectstack/runtime is benign: the only runtime file is a test, and runtime's files[] is dist, README.md and CHANGELOG.md.
  • Gates at f77171a399: 63 success · 15 expected-skip names · 0 failed · 0 pending, mergeable clean.

Still owed before landing, per the body: the PR stays draft until #39099 merges, then it merges main. That merge gets a delta only if it moves more than the coverage-row conflict. The landing to-dos from 7406947391 still stand: ③ the ADR-0150 D3 dated note on the weekly ADR card, and ④ the _env side reading filed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-04T11:21Z · Seat record · land PR #39557 (#34348, flavor 1) at head 1863f63a50.

Merged via the queue into main with commit 38f702c Dec 4, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-l0sg2o branch December 4, 2026 12:04
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