Repository navigation
fix(metadata-protocol): the environment's own row of a name two enabled packages ship is what the reads naming no package serve - #39557
Conversation
…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
📓 Docs Drift CheckThis PR changes 2 package(s): 21 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 186 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
…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
|
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 |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv Contract reviewServed-tier: Inputs read: card #34348 (body and all 14 comments, rulings 6942981052, 7187358430, 7187668758 and 7405866869 included), PR #39557 (body, 9 files, net diff against ① Derived judgments
② Semver levelClause-②: yes. ③ Boundary flags
④ Design judgmentM1 (must-fix) —
S1 (should-fix) — under S2 (should-fix) — the entry's N1 (nit) — the two-enabled-holders refusal is marked with N2 (nit) — the pins cover 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 Implemented-by: VERDICT: FAIL |
|
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 @
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv L1-a · REWORK · #39557 @ 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.
L1 (
|
…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
…w read errors Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1
|
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. |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv Contract reviewServed-tier: Delta review of record 7406921440 (FAIL on ① Derived judgments
② Semver levelClause-②: yes. ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. M1: closed
S1: closed
S2: closed
N1: closed
N2: open, as a nit
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 ( N4 (nit) — both S1 guards end in a plain Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv L1-a · ACCEPT (delta) · #39557 @
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 |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB 2026-12-04T11:21Z · Seat record · land PR #39557 (#34348, flavor 1) at head
|
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.
packages/metadata-protocol/src/protocol-environment-row-beside-shippers.ts:servesEnvironmentRowBesideShippersjudges 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);withEnvironmentRowAdmissionmarks the_envrefusal so the_envdoors 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'sambiguous-in-environmentrefusal for that arrangement and serve the package-less row without a package envelope. The strict draft read is untouched.protocol-meta-layered-reads.ts:/layersand/publishedreport 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.?package=(409 there), and names the delete remedy; N1 theDISABLED_HOLDERS_ONLY_REFUSALdocblock names its second use (the door docblocks inrest/runtimeare left for a follow-up).19.environment-row-beside-two-shippers-bare-read-servedplus 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=PACKAGEanswers 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
main198301b 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 same409 ambiguous-in-environmentsurface; 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;/layersis[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 409RESOURCE_CONFLICTnaming the two enabled shippers and nothing is stored.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).[#33210]three-rows pins (ruling 7405866869): the save naming no package answers 409RESOURCE_CONFLICTnaming 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
Verification
Read first (by risk):
protocol-meta-item-reads.ts— theenvironmentRowskip ofpackagelessScopedReadand the envelope skip.protocol-exact-qualifier.ts— the marked_envrefusal.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-protocolfull vitest: 24011 passed (round 1);tsc --noEmitexit 0.@objectstack/runtimesrc/domains/meta: 3084 passed (round 1);pnpm run typecheckexit 0.@objectstack/objectqlsrc/package-scoped+src/protocol: 2060 passed.@objectstack/restsrc/meta: 2427 passed.@objectstack/specsrc/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-authoringfirst 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-objectstackdist, shallow clone) and exited 0 on rerun after building them.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibz4RKVYKiPb6yqBVY1