You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
metadata-protocol: a bare save of a member only the dependent holds rewrites the dependent's row while the bare read at that member answers 404, then 409 #35524
Bundled type email_template. Authored base package WA holds an en-US row; authored dependent WD (declares WA) holds an fr-FR row for the same member name.
GET /api/v1/meta/email_template/NAME?member=fr-FR → 404 (the base's address; the base has no fr-FR).
PUT /api/v1/meta/email_template/NAME with member fr-FR (in process saveMetaItem) → 200, rewrites WD's row.
The same bare read at fr-FR → 409RESOURCE_CONFLICT.
The write lands in a row the read never serves, and the read's answer changes after the save.
Rule
Epic ruling 6781691009 on #31527: "a write resolves its address exactly as the read at the same address resolves it", and "A 200 read followed by a 409 save blocks editing …"; #34348 ruling (b): "reads and writes give the same answer." Which of the two answers is right (the read follows the dependent, or the write refuses) is for the claiming lane to read against those rulings; not built over here.
Related: #34681 (PR #35450: the five bare write doors follow the row-held base), #34441 (PR #34644), #34348, #34682 (seat 4, bundle member selector).
Suggested-grade: p2 · domain:server · area:package.
Dedupe words: non-canonical member addition bare save dependent row read 404 then 409.
Triage: lands in domain:server · pm:queue; rationale: area:package · Bug · Severe·data wrong (a bare save at a member only the dependent package holds rewrites the dependent's row while the bare read answers "not found") · rare (environments where base and dependent both store that metadata) · measured → p2 as set.
Claim: PM loop round 1 · 2026-11-24T16:08Z
Session: session_01J8VVAj3FYe91JCMQZPS88h
Account: huangyiirene
Branch: claude/project-thread-g0avze
Worktree: objectstack-issue-35524
Domain: domain:server
Seat: repo:objectstack#2
Area: f2-I
File surface: packages/metadata-protocol/src/protocol-save.ts (packagelessRowHeldBaseAddress and the bare save's publish/draft address branch), packages/metadata-protocol/src/protocol-meta-item-face.ts (read only, unless rowHeldBaseAddressOf must export a helper), a new test file named for this card under packages/runtime/src/domains/ (beside meta-bare-write-doors-follow-base-34681.test.ts), the packageId description of the save request in packages/spec/src/api/protocol.zod.ts and its generated content/docs/references/api/protocol.mdx only if the exception sentence must name this cell, one .changeset/35524-*.md; no docs/adr/**, no skills/** (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled." (floor sonnet · default opus · ceiling fable), effort: high, reason: a ruling implementation with a design reading (which address the bare save takes at a member only the dependent holds), and the area order f2-I sets effort high
Clause-②: no
Metadata-protocol: none
Responsibility: this repo's metadata-protocol save path (protocol-save.ts: packagelessAddress filters by member, so at a member only the dependent holds the one candidate is the dependent and the save rewrites its row, while protocol-meta-item-face.ts rowHeldBaseAddressOf moves the bare read to the base, which answers 404) | none: PR #35450 moved the bare doors to the row-held base only where two or more packages hold the member; packagelessRowHeldBaseAddress's docblock says this cell "is not moved here" | any author saving a bundled type (email_template, translations) by name with no package, in an environment where an authored base and its dependent both store the name; no outside user report measured
Thread-read: 7012484364
Premise: holds for steps 1–2, step 3 unmeasured — at origin/main a73edb3, the bare read at a named non-canonical member the base holds no row of moves to the base (protocol-meta-item-face.tsrowHeldBaseAddressOf: return typeof overlayMemberValue(PLURAL_TO_SINGULAR[type] ?? type, member) === 'string' ? base : undefined;) and answers 404, pinned in packages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts (M1, M2, S2); the bare save takes packagelessAddress with one candidate (the dependent) and writes its row, because packagelessRowHeldBaseAddress returns early on address.candidates.length < 2. The card's step 3 (the read answering 409 after the save) is not derivable from the code read and was not reproduced: the dev measures it and reports; it is not built over. Same-day churn: 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。
Pre-claim lane: repo:objectstack seat 2, area f2-I (metadata-protocol save/read path, lease packages/metadata*/** and the spec docblocks the cards name); the new pin file under packages/runtime/src/domains/ is a new file only; domain:server.
Pre-claim deps: the card names no Blocked-by:; parent #34681 closed, PR #35450 merged 2026-11-19T14:54Z. node scripts/pm/overlap-check.mjs: empty change set before the claim (by construction; re-run before every push); no open PR names this card.
Prior rulings read: node scripts/pm/check-prior-rulings.mjs --card 35524 --paths packages/metadata-protocol/src/protocol-save.ts,packages/metadata-protocol/src/protocol-meta-item-face.ts --terms row-held,dependent,bundle_member,packagelessRowHeldBaseAddress → 4 ADR hits (ADR-0093 D7, ADR-0146 D2, ADR-0150 D9, ADR-0141 D1), none on this cell; thread: none. Binding text: epic ruling 6781691009 on #31527, 「a write resolves its address exactly as the read at the same address resolves it」; the read at this cell is ruled and pinned (#33210 (c), #34441): the docblock 「Where the base holds no row at the member, the read moves at a named non-canonical member only」. So the route is the write following the read (the card's second answer); the read is not changed.
Serial constraints cleared: none in flight on these files (PR #35450 merged); sibling cards #35529 (same area, rewrites the exception sentence and three door-request comments this fix may touch) and #35528 queue serially behind this card in area f2-I: fold refused at gate ① (#35524 changes behaviour, #35529/#35528 are text and pins).
{
"issue": 35524,
"status": "done",
"branch": "claude/project-thread-g0avze",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37069",
"session": "session_01J8VVAj3FYe91JCMQZPS88h",
"premise_still_valid": true,
"summary": "At a named non-canonical bundle member (email_template fr-FR) that only an authored dependent WD holds, over an authored base WA that holds only the canonical member, the bare read takes WA's address (404); the bare save now writes WA's row there (publish mode, REST PUT and in process) and the bare draft save writes WA's draft, exactly as the save naming WA does, leaving WD's row byte-unchanged, and the next bare read serves the saved content (200). packagelessRowHeldBaseAddress gained a one-holder arm that asks rowHeldBaseAddressOf (the read's own judgment); the draft doors' address (packagelessDraftAddress behind the draft save, strict draft read, per-item publish and draft discard) is wrapped by packagelessRowHeldBaseDraftAddress so the draft the bare draft save writes is the draft those doors act on (without that, the bare draft save then bare publish/read/discard broke: measured NO_DRAFT 404 / no-op). Step 3 measured: 409 RESOURCE_CONFLICT on main only where rows were stored after boot (the save's registry write-through named WD the only holder, the read at WA's address refused by the exact-qualifier judgment); on a kernel booted over the rows step 3 was 404. The bare read itself is unchanged; M1/M2/S2 pins green untouched.",
"step3_measurement": "main a73edb3cd7: rows stored after boot: GET fr-FR 404; PUT 200 rewrites WD's row (rows: WA/canonical 'base en', WD/fr-FR 'edited fr'); GET 409 RESOURCE_CONFLICT ('not held by package WA ... held by package WD'; ?package=WA&member=fr-FR also 409; registry holders after save = [WD]). Kernel booted over the rows: 404, 200 rewriting WD, 404 (also after a second reboot). Named save ?package=WA at fr-FR on main: 200, new WA fr-FR row, bare read then 200 at WA, so the stop rule did not trigger. This head: 404, 200 writing a new WA fr-FR row (WD row byte-identical), 200 at WA, in both registry states and after restart.",
"declarations": "Clause-②: no (narrowing): a bare write's landing row moves (WD's row -> WA's row, the epic ruling's 'D's row silently updated -> E's row (narrowing)' shape) and an accept set narrows (bare per-item publish of WD's lone draft at the cell 200 -> 404 NO_DRAFT, bare discard removed it -> no-op receipt naming it; both equal ?package=WA). Metadata-protocol: none: no key, accepted value or meaning of authored metadata moves, only the row a request naming no package addresses (as PR #35450 declared). Changeset patch with BREAKING banner, FROM/TO, ADR-0087 not-required (no-migration-prescription). PR title carries '!'. Spec untouched: the packageId exception sentence stays true; the earlier 'one package the item's active rows are bound to' sentence now has this cell as an exception at member grain, left to sibling #35529.",
"tests": "head 80f540b6. New pins packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts: Tests 6 passed (6); with meta-disabled-holder-served-stack.test.ts and meta-bare-write-doors-follow-base-34681.test.ts: Test Files 3 passed (3), Tests 178 passed (178). @objectstack/metadata-protocol test (at b7be6fce; the later commit only reshapes the facade wrapper argument): Test Files 369 passed | 9 skipped (378), Tests 23389 passed | 45 skipped. metadata-protocol typecheck exit 0 at 80f540b6, runtime typecheck (+check:test-typecheck) exit 0. Ablations via scripts/ablation-replace.mjs + rebuild + ablation-dist-preflight (marker present in 2 dist files each): A publish-mode one-holder arm blanked -> 3 failed | 3 passed (tests 1,2,5); B packagelessRowHeldBaseDraftAddress returns stored address -> 2 failed | 4 passed (tests 3,4), re-run on 80f540b6 same reading; C draft-save follow condition back to ambiguous-only -> 1 failed | 5 passed (draft save wrote package=WD). Each restored: blob == HEAD, git diff HEAD empty, git status clean; restore leg rebuilt, all three markers absent from 24 dist files, pins 6/6.",
"gates": "dispatch-gates --commands (75 families, tree f1813eb0): 73 exit 0; check:dual-build-cjs-loads exit 3 and check-plugin-teardown-shape --self-test exit 3 = PREREQUISITE NOT MET (missing full-tree dist / shallow clone), NOT MEASURED locally; check:facade-delegation-only exit 1 on that tree (my facade member was not a forwarding call) -> fixed in 80f540b6, re-run exit 0; on 80f540b6 also re-ran check:durability-log-level, check:nul-bytes, check:startup-registry-verdict: exit 0. --ran reconciliation with exit codes: 75 derived, 73 run, 2 NOT-MEASURED (derived from exit 3), 0 UNRUN. CI at 80f540b6 (PR check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards), Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success (shards skipped on PR), Live E2E UI success, Test UI success, Check Changeset success, Check PR Size success, PR-body guards success; UI lanes skipped by selector. No red.",
"dogfood_battery": "80f540b6 · os-verify-lock: VERDICT command-exit 0 (held 1839s, closure built at 80f540b6 by the first run, which was killed by the session cut-off before its verdict; the rerun ran the test step only on that build) · Test Files 487 passed | 3 skipped (490) · Tests 4127 passed | 68 skipped (4195) · no failures",
"files_changed": [
"packages/metadata-protocol/src/protocol-save.ts",
"packages/metadata-protocol/src/protocol.ts",
"packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts",
".changeset/35524-bare-save-follows-base-dependent-member.md"
],
"line_budget": "+395/-12 over 4 files (dispatch-gates: 407 changed lines, under the 3000 threshold); no skills/** touch",
"deviations": "File surface widened beyond the claim by one file: packages/metadata-protocol/src/protocol.ts (the facade's private packagelessDraftAddress now forwards through packagelessRowHeldBaseDraftAddress). Reason: moving the draft save alone broke the bare draft chain my change created (bare draft read and publish answered 404 NO_DRAFT, discard a no-op, measured), and packagelessDraftAddress is the one resolution all bare draft doors share; rule 3 (a defect my change triggers is fixed in this PR). This also moves the bare per-item publish and draft discard of WD's lone draft at the cell (narrowing, declared). protocol-meta-item-face.ts untouched; no spec touch; no docs/adr or skills touch. Local dogfood ran in two legs (build in the first, killed run; test in the rerun) on an unchanged head. Ablations A and C ran on f1813eb0 (before the facade-only commit); B re-run on 80f540b6. The scratchpad dir issue-35524 was also written by another process (a claim.md appeared and my dogfood.pid vanished); nothing of mine depended on it after that.",
"mcp_calls": "0",
"api_writes": "2 - fleet-write relay pr_create (POST pulls + POST issues/37069/assignees, run 45457371539, read-back identical 13977 bytes); post-stamped comment on issue 35524 (os-dev-report). git push x5 (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · reach: in process deleteMetaItem/historyMetaItem/diffMetaItem/rollbackMetaItem on a booted kernel (REST DELETE not mounted on the dispatcher) · evidence: at the dependent-only member (WA en-US row, WD fr-FR row) the bare read answers 404 (WA's address) while the bare delete removes WD's row ('Deleted ... (package=WD)'), the bare history returns WD's events and the bare rollback restores WD's row (measured on main a73edb3cd7 and on 80f540b6); epic ruling 6781691009 'a write resolves its address exactly as the read at the same address resolves it'. Seam: spec:SaveMetaItemRequest/DeleteMetaItemRequest packageId -> runtime:packagelessRowHeldBaseAddress callers in protocol-diff-delete-load.ts and protocol-history-slots.ts (two-or-more guard). Family of #34681/#35524; design question (nothing of the base's to remove or restore) · dedupe words: bare delete history rollback dependent-only member row-held base 404",
"class: b · reach: in process saveMetaItem on a booted kernel · evidence: base code package ships email_template 'shipmail' (en-US), dependent stores a fr-FR row; bare read ?member=fr-FR 404, bare save writes the dependent's customization row ('Saved customization overlay (package=D)'); pinned unchanged in the new test's CONTROLS. Seam: spec:SaveMetaItemRequest.packageId -> runtime:rowHeldBaseJudgment shipped-name exclusion vs packagelessContentPackage read · dedupe words: shipped base dependent added member bare save 404 overlay",
"carrier: #35529 · noted, not filed: SaveMetaItemRequestSchema.packageId sentence 'an active save then writes the row of the one package the item's active rows are bound to' now has this cell as an exception at member grain; rowHeldBaseAddressOf docblock says writes ask it only with two or more holders",
"carrier: none · noted in Acceptance notes: on main, historyMetaItem naming WA at fr-FR (WA holds no row there) answered RESOURCE_CONFLICT"
]
}
{
"issue": 35524,
"status": "done",
"branch": "claude/project-thread-g0avze",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37069",
"session": "session_01J8VVAj3FYe91JCMQZPS88h",
"premise_still_valid": true,
"head_sha": "db0a77a90995c5c6487a521978f1cd05d86b3062",
"summary": "Continuation of the same claim, one job: the full dogfood battery at the final head db0a77a9 (main 9171bed0 merged in by the relay). Closure built per os-dev rule 1 under the lock, then pnpm --filter @objectstack/dogfood test under the lock with no OS_TEST_SHARD and no path: green, no failures, so no fixture fix and no new commit. The PR body lacked the Skills-docs line the (narrowing) arm owes: added from the diff through the relay issue_patch (attribution lines kept first, trailer last), and the Verification dogfood bullet now cites this head's reading. Main was not merged again (no conflict, no main-caused red).",
"tests": "head db0a77a9 (git rev-parse HEAD in the worktree, clean tree): closure: os-verify-lock -c \"pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build\" -> VERDICT command-exit 0 (held 453s). Battery: os-verify-lock -c 'pnpm --filter @objectstack/dogfood test' (OS_VERIFY_LOCK_SLOT=issue-35524, NODE_OPTIONS=--max-old-space-size=4096, OS_TEST_SHARD unset) -> Test Files 487 passed | 3 skipped (490); Tests 4128 passed | 68 skipped (4196). No ablation: no tested behaviour changed in this continuation.",
"gates": "local: only the closure build and the dogfood battery above (no diff in this continuation, so no derived families owed; dispatch-gates --commands not re-run). CI at db0a77a9 (PR check-runs): 37 success, 18 skipped, 2 in_progress at report time (Check Changeset and PR-body guards, re-triggered by this run's PR body edit); success includes Lint & Repo Gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Build Core, Test Core (10/10 shards), Dogfood Regression Gate, Check Changeset, Check PR Size, PR-body guards (earlier run). 0 red.",
"dogfood_battery": "db0a77a90995c5c6487a521978f1cd05d86b3062 · os-verify-lock: VERDICT command-exit 0 · held the lock 2230s (37m10s) · waited 0s · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures",
"deviations": "PR body edited through the relay issue_patch to add the owed Skills-docs line (value: none, with the reason from the diff) and to replace the Verification bullet's dogfood sentence with this head's reading; the body's last non-empty line is the signed trailer the relay requires for a pull request body edit. Read-back: 14702 bytes sent, 14702 stored, identical (run 45594017185). Main moved to ede9b91f40 during the run; not merged (dispatch order: only on conflict or main-caused red).",
"files_changed": [],
"mcp_calls": "0",
"api_writes": "2 - fleet-write relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37069 (PR body, run 45594017185); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35524/comments (this os-dev-report). No git push.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
{
"issue": 35524,
"status": "done",
"branch": "claude/project-thread-g0avze",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37069",
"session": "session_01J8VVAj3FYe91JCMQZPS88h (dispatching PM session; subagent run)",
"head_sha": "ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed",
"premise_still_valid": true,
"summary": "Patch round for contract review S1, option (a). New predicate draftAddressFollowsRowHeldBase(address) = into !== null && key !== null in protocol-save.ts, asked by packagelessRowHeldBaseDraftAddress (the bare draft doors' address) and by the draft save's follow condition, so a draft address naming the package-unbound draft (key === null) at the dependent-only member keeps main's address: the bare draft read serves it, the bare per-item publish promotes it into the dependent's row, the bare discard removes it, the bare draft save adopts it into the dependent's draft and writes no draft bound to the base. Docblocks of the wrapper and the predicate say so; the changeset's Not moved names the sub-cell and its BREAKING banner now names a base holding a row at any other member (canonical or e.g. de-DE); declaration lines and ADR-0087 disposition unchanged. PR body mirrored via relay issue_patch (What changes, read-first, per-door, pins, ablation D, acceptance notes, verification), attribution lines first and trailer last kept.",
"s1_predicate": "key === null (address.key), not drafts.unbound. Measured at the cell in packagelessDraftAddress: with the dependent's row the one active holder, key === null with into !== null arises only when a package-unbound draft is stored and no draft of the dependent is (the drafts.unbound && !candidates.includes(own) arm). drafts.unbound is also true when the package-unbound draft sits beside the dependent's own draft; there the address names the dependent's draft (key = dependent), which is the declared move, so drafts.unbound would have un-moved a declared sub-cell. key === null is the reviewer's verbatim option (a) and the faithful reading.",
"tests": "New pin (describe of 4 tests, one per door) in packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts: package-unbound draft laid by a bare draft save at fr-FR while no package held the member, then WD's fr-FR row; rows asserted per door. At ae5ffb36: file Tests 10 passed (10); with the 34681 and disabled-holder files Test Files 3 passed (3), Tests 182 passed (182). @objectstack/metadata-protocol test: Test Files 370 passed | 9 skipped (379), Tests 23417 passed | 45 skipped (23462); typecheck exit 0; @objectstack/runtime typecheck (with check:test-typecheck) exit 0; lock VERDICT command-exit 0. As-on-main proof: merge-base 9171bed0a protocol-save.ts and protocol.ts checked out, metadata-protocol rebuilt (preflight: draftAddressFollowsRowHeldBase absent from dist), file ran Tests 5 failed | 5 passed (10) = moved pins 1-5 red, the 4 new pins + CONTROLS green; restored, both hash-ok vs HEAD, git status --porcelain 0 lines, rebuilt. Ablation (one, the new guard removed at both callers: ablation-replace anchor x1->x0, blob 78610389dd99->7f18ba1debbc, rebuild, ablation-dist-preflight --absent ok): Tests 3 failed | 7 passed (10) - draft save wrote draft:com.qa.authoredbase beside draft:null, publish 404 NO_DRAFT, discard left draft:null stored; the draft read leg stayed green (a control, not a guard). Restore: blob == HEAD 78610389dd99, git diff HEAD 0 bytes, rebuilt, restore preflight --absent ok on the mutated spelling, original marker count 1 in dist, Tests 10 passed (10).",
"gates": "Local: dispatch-gates --commands (repo objectstack-ai/objectstack, tree ae5ffb36ab, 4 paths vs merge base 9171bed0a): 75 families, 74 exit 0, pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (no full-tree dist) = NOT MEASURED, CI's. --ran with exit codes: 75 derived, 74 run, 1 NOT-MEASURED, 0 UNRUN. check-nul-bytes exit 0. check-commit-card-trailers exit 0 (8 commits clean); overlap-check VERDICT clean exit 0. CI at ae5ffb36: 37 success, 16 skipped, 0 failed (Check Changeset, PR-body guards re-run after the body edit both success, Test Core 1..10, TypeScript Type Check, Type Check workspace/source/consumer/debt, Lint & Repo Gates, Lint ESLint, Dogfood Regression Gate, Governed Surface Queue Guard, Build Core). test:repo and pnpm lint are CI's.",
"dogfood_battery": "ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed · closure pnpm --filter '@objectstack/dogfood^...' build VERDICT command-exit 0 · battery os-verify-lock: VERDICT command-exit 0 · held the lock 2279s (37m59s) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures",
"deviations": "(1) The new pin is a describe of four it blocks (one per door) instead of a single it, so the ablation reads per door; one ablation, run once on the split file (an earlier identical ablation on the single-it form went red at the draft-save assertion first, so it could not show the other doors; reported, not hidden). (2) Measured, not assumed: on main the bare draft save over the package-unbound draft adopts it INTO the dependent's draft (row becomes draft:WD), not a package-unbound draft; the pin and the changeset's Not moved say adopt it into the dependent's draft. (3) The draft-read leg does not turn red under the ablation; recorded in the PR body as a control. (4) Added an extra as-on-main run (not ordered) to prove the four pins hold main's answer. No main merge (no conflict, no main-caused red).",
"files_changed": [
".changeset/35524-bare-save-follows-base-dependent-member.md",
"packages/metadata-protocol/src/protocol-save.ts",
"packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts"
],
"mcp_calls": "0",
"api_writes": "2 - relay fleet-write issue_patch on PR #37069 body (run 45612815412, read-back 17902 bytes sent == stored, identical); post-stamped comment on #35524 (this report). Plus git push db0a77a909..ae5ffb36ab (not REST).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
{
"issue": 35524,
"status": "done",
"branch": "claude/project-thread-g0avze",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37069",
"session": "session_01J8VVAj3FYe91JCMQZPS88h",
"head_sha": "344fc148d28a5cbbb1ad4ba7cddcdca97d372a17",
"premise_still_valid": true,
"summary": "Patch round 2, the seat's route S2 option (b): the S1(a) key-null exemption is reverted, so the package-unbound-draft sub-cell (key null, a package in into, at a member only the dependent holds, over a base holding a row of another member) moves to the base for the draft-address wrapper and the draft save's follow. draftAddressFollowsRowHeldBase is reshaped to into !== null (still the one predicate both ask); the docblocks cite epic ruling 6781691009 and say what moves. The bare draft save now passes the base, so the repository's orphan-draft adoption does not run: it writes the base's draft and leaves the package-unbound draft untouched, the bare draft read reads back what was saved, the bare publish promotes the base's draft, and a second bare save writes no second draft. The bare discard at that sub-cell with no base draft now answers the named-base receipt (receiptPackageId in protocol-diff-delete-load.ts), measured on this head as \"No pending draft of email_template/NAME is bound to package 'com.qa.authoredbase', so nothing was discarded: its package-less draft remains.\" where the bare one had answered \"No pending draft for email_template/NAME.\". The changeset and PR body move the sub-cell from Not moved into FROM/TO; the declaration lines, banner and ADR-0087 disposition are unchanged. A probe before the report found that with no base draft the bare draft read, like the read naming the base, still serves the package-unbound draft; the first wording (\"no door acts on it\") was corrected in the docblock and the changeset at 344fc148d2, and pin (iii) now asserts the bare read equal to the named one. The stop rule did not trigger: the change stays inside packages/metadata-protocol/src/**, the test file and the changeset, and the three named regression files are green.",
"tests": "At 344fc148d2: 35524 file + meta-bare-write-doors-follow-base-34681 + meta-disabled-holder-served-stack: Test Files 3 passed (3), Tests 182 passed (182), with metadata-protocol and runtime typecheck in the same lock run (VERDICT command-exit 0). The 35524 file has 10 tests; the four S1 pins are reshaped into (i) bare draft save then bare draft read (rows equal to the save naming WA, package-unbound draft untouched, read ['saved fr', WA] equal to the named read); (ii) bare publish after the save equal to packageId WA (outcome and rows); (iii) with no base draft, bare draft read equal to named (['unbound fr', null]), bare publish equal to named [NO_DRAFT, 404], bare discard result equal to the named discard's (success, reset, receipt with the name blanked), rows; (iv) a second bare draft save leaves one WA draft. Ablations at 4f232bf2d8 (344fc148d2 leaves both guards byte-identical): E, the key-null exemption put back for both callers, via ablation-replace.mjs: anchor 1 -> 0, rebuilt, dist preflight marker present in 2 files, Tests 4 failed | 6 passed (10) (i to iv red), restored blob == HEAD 2c49e5ac9f32, git diff HEAD empty, rebuilt, marker absent from 24 files. F, the discard receipt guard removed (? draftAddress.into read as ? draftAddress.into && null): marker present in 2 files, Tests 1 failed | 9 passed (10) ((iii) alone: bare receipt 'No pending draft for email_template/NAME.' against the named one), restored blob == HEAD 1c2294d6482b, git diff HEAD empty, rebuilt, marker absent. metadata-protocol test at 4f232bf2d8 (344fc148d2 changes only a docblock there): Test Files 370 passed | 9 skipped (379), Tests 23417 passed | 45 skipped (23462).",
"gates": "At 344fc148d2. Local: metadata-protocol typecheck exit 0, runtime typecheck (with check:test-typecheck) exit 0. Derived (dispatch-gates --commands, 75 families, the same list as at 4f232bf2d8), run in a loop with exit codes recorded before any pipe: 75 exit 0 (check:type-check-debt under the lock, VERDICT command-exit 0, re-measure OK; check:dual-build-cjs-loads read the dogfood closure's dist: 125 entry points load). --ran: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). At 4f232bf2d8 the same loop had check:dts-closure exit 1 (plugin-audit dist read mid-rebuild by my concurrent dogfood closure build; exit 0 on re-run) and check:type-check-debt exit 3 (queue-timeout behind my own dogfood hold; exit 0 under the lock). Pre-push at each push: check-commit-card-trailers exit 0, overlap-check VERDICT clean exit 0, check-nul-bytes exit 0. CI at 344fc148d2: 53 check-runs, 37 success, 16 skipped, none failed (Test Core 1..10, TypeScript Type Check, Lint & Repo Gates, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards). After the final body edit PR-body guards re-ran: success; Check Changeset re-run: success.",
"dogfood_battery": "344fc148d2 · os-verify-lock: VERDICT command-exit 0 · held the lock 2915s (48m35s) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures (also green at 4f232bf2d8: 487/490 files, 4128 passed | 68 skipped)",
"deviations": "(1) A pin for the bare per-item publish with no base draft (equal to the named [NO_DRAFT, 404]) is folded into pin (iii), beside the discard, because the changeset now declares that answer. (2) The new receipt arm also covers the moved cell where the dependent's own draft and a package-unbound draft are both stored (candidates non-empty, unbound true): that bare discard now answers the named-base receipt too, not the #23495 one. Only the wrapper's moved address is 'none' with a package-unbound draft stored, so no cell on main changes. (3) The changeset is in the test commit (4f232bf2d8), not a commit of its own. (4) A third commit, 344fc148d2, after the first dogfood run: a probe (a temporary test file, never committed) measured that with no base draft the bare draft read, like the reads naming the base or the dependent, serves the package-unbound draft. The first wording said no door acted on it, so the docblock and the changeset were corrected and pin (iii) gained the bare-equals-named draft-read assertion. The derived gates and the full dogfood battery were re-run at 344fc148d2; the ablations were not, because the guards are byte-identical. (5) Two derived gates re-run after they collided with my own concurrent dogfood build (see gates). (6) Observation, not filed (reach unestablished; carrier: none): at that sub-cell with no base draft, the draft read naming the base serves the package-unbound draft while the publish and discard naming the base answer NO_DRAFT and a nothing-discarded receipt. Bare now equals named on all three; whether the named read's fallback to the package-unbound draft should be left as it is falls outside this card.",
"files_changed": [
"packages/metadata-protocol/src/protocol-save.ts",
"packages/metadata-protocol/src/protocol-diff-delete-load.ts",
"packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts",
".changeset/35524-bare-save-follows-base-dependent-member.md"
],
"mcp_calls": "0",
"api_writes": "4: git push x2 to claude/project-thread-g0avze (ae5ffb36ab..4f232bf2d8, 4f232bf2d8..344fc148d2; not REST). Fleet-write relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37069 x2 (the PR body; runs 45627366616 and 45639683342; read back 20825/20825 and 21221/21221 bytes, identical). post-stamped POST /repos/objectstack-ai/objectstack/issues/35524/comments x1 (this report).",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: at the package-unbound sub-cell with no base draft, the draft read naming the base (and now the bare one) serves the package-unbound draft while the publish and discard naming the base answer NO_DRAFT/404 and a nothing-discarded receipt; listed in the PR's Acceptance notes"
]
}
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server·pm:queue; rationale: area:package · Bug · Severe·data wrong (a bare save at a member only the dependent package holds rewrites the dependent's row while the bare read answers "not found") · rare (environments where base and dependent both store that metadata) · measured → p2 as set.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h
Claim: PM loop round 1 · 2026-11-24T16:08Z
Session:
session_01J8VVAj3FYe91JCMQZPS88hAccount:
huangyiireneBranch:
claude/project-thread-g0avzeWorktree:
objectstack-issue-35524Domain:
domain:serverSeat:
repo:objectstack#2Area: f2-I
File surface:
packages/metadata-protocol/src/protocol-save.ts(packagelessRowHeldBaseAddressand the bare save's publish/draft address branch),packages/metadata-protocol/src/protocol-meta-item-face.ts(read only, unlessrowHeldBaseAddressOfmust export a helper), a new test file named for this card underpackages/runtime/src/domains/(besidemeta-bare-write-doors-follow-base-34681.test.ts), thepackageIddescription of the save request inpackages/spec/src/api/protocol.zod.tsand its generatedcontent/docs/references/api/protocol.mdxonly if the exception sentence must name this cell, one.changeset/35524-*.md; nodocs/adr/**, noskills/**(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled." (floor sonnet · default opus · ceiling fable),effort: high, reason: a ruling implementation with a design reading (which address the bare save takes at a member only the dependent holds), and the area order f2-I sets effort highClause-②: no
Metadata-protocol: none
Responsibility:
this repo's metadata-protocol save path (protocol-save.ts: packagelessAddress filters by member, so at a member only the dependent holds the one candidate is the dependent and the save rewrites its row, while protocol-meta-item-face.ts rowHeldBaseAddressOf moves the bare read to the base, which answers 404) | none: PR #35450 moved the bare doors to the row-held base only where two or more packages hold the member; packagelessRowHeldBaseAddress's docblock says this cell "is not moved here" | any author saving a bundled type (email_template, translations) by name with no package, in an environment where an authored base and its dependent both store the name; no outside user report measuredThread-read: 7012484364
Premise: holds for steps 1–2, step 3 unmeasured — at origin/main a73edb3, the bare read at a named non-canonical member the base holds no row of moves to the base (
protocol-meta-item-face.tsrowHeldBaseAddressOf:return typeof overlayMemberValue(PLURAL_TO_SINGULAR[type] ?? type, member) === 'string' ? base : undefined;) and answers 404, pinned inpackages/runtime/src/domains/meta-disabled-holder-served-stack.test.ts(M1, M2, S2); the bare save takespackagelessAddresswith one candidate (the dependent) and writes its row, becausepackagelessRowHeldBaseAddressreturns early onaddress.candidates.length < 2. The card's step 3 (the read answering 409 after the save) is not derivable from the code read and was not reproduced: the dev measures it and reports; it is not built over. Same-day churn: 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。Pre-claim lane: repo:objectstack seat 2, area f2-I (metadata-protocol save/read path, lease
packages/metadata*/**and the spec docblocks the cards name); the new pin file underpackages/runtime/src/domains/is a new file only; domain:server.Pre-claim deps: the card names no
Blocked-by:; parent #34681 closed, PR #35450 merged 2026-11-19T14:54Z.node scripts/pm/overlap-check.mjs: empty change set before the claim (by construction; re-run before every push); no open PR names this card.Prior rulings read:
node scripts/pm/check-prior-rulings.mjs --card 35524 --paths packages/metadata-protocol/src/protocol-save.ts,packages/metadata-protocol/src/protocol-meta-item-face.ts --terms row-held,dependent,bundle_member,packagelessRowHeldBaseAddress→ 4 ADR hits (ADR-0093 D7, ADR-0146 D2, ADR-0150 D9, ADR-0141 D1), none on this cell; thread: none. Binding text: epic ruling 6781691009 on #31527, 「a write resolves its address exactly as the read at the same address resolves it」; the read at this cell is ruled and pinned (#33210 (c), #34441): the docblock 「Where the base holds no row at the member, the read moves at a named non-canonical member only」. So the route is the write following the read (the card's second answer); the read is not changed.Serial constraints cleared: none in flight on these files (PR #35450 merged); sibling cards #35529 (same area, rewrites the exception sentence and three door-request comments this fix may touch) and #35528 queue serially behind this card in area f2-I: fold refused at gate ① (#35524 changes behaviour, #35529/#35528 are text and pins).
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h
os-dev-report
{ "issue": 35524, "status": "done", "branch": "claude/project-thread-g0avze", "pr": "https://github.com/objectstack-ai/objectstack/pull/37069", "session": "session_01J8VVAj3FYe91JCMQZPS88h", "premise_still_valid": true, "summary": "At a named non-canonical bundle member (email_template fr-FR) that only an authored dependent WD holds, over an authored base WA that holds only the canonical member, the bare read takes WA's address (404); the bare save now writes WA's row there (publish mode, REST PUT and in process) and the bare draft save writes WA's draft, exactly as the save naming WA does, leaving WD's row byte-unchanged, and the next bare read serves the saved content (200). packagelessRowHeldBaseAddress gained a one-holder arm that asks rowHeldBaseAddressOf (the read's own judgment); the draft doors' address (packagelessDraftAddress behind the draft save, strict draft read, per-item publish and draft discard) is wrapped by packagelessRowHeldBaseDraftAddress so the draft the bare draft save writes is the draft those doors act on (without that, the bare draft save then bare publish/read/discard broke: measured NO_DRAFT 404 / no-op). Step 3 measured: 409 RESOURCE_CONFLICT on main only where rows were stored after boot (the save's registry write-through named WD the only holder, the read at WA's address refused by the exact-qualifier judgment); on a kernel booted over the rows step 3 was 404. The bare read itself is unchanged; M1/M2/S2 pins green untouched.", "step3_measurement": "main a73edb3cd7: rows stored after boot: GET fr-FR 404; PUT 200 rewrites WD's row (rows: WA/canonical 'base en', WD/fr-FR 'edited fr'); GET 409 RESOURCE_CONFLICT ('not held by package WA ... held by package WD'; ?package=WA&member=fr-FR also 409; registry holders after save = [WD]). Kernel booted over the rows: 404, 200 rewriting WD, 404 (also after a second reboot). Named save ?package=WA at fr-FR on main: 200, new WA fr-FR row, bare read then 200 at WA, so the stop rule did not trigger. This head: 404, 200 writing a new WA fr-FR row (WD row byte-identical), 200 at WA, in both registry states and after restart.", "declarations": "Clause-②: no (narrowing): a bare write's landing row moves (WD's row -> WA's row, the epic ruling's 'D's row silently updated -> E's row (narrowing)' shape) and an accept set narrows (bare per-item publish of WD's lone draft at the cell 200 -> 404 NO_DRAFT, bare discard removed it -> no-op receipt naming it; both equal ?package=WA). Metadata-protocol: none: no key, accepted value or meaning of authored metadata moves, only the row a request naming no package addresses (as PR #35450 declared). Changeset patch with BREAKING banner, FROM/TO, ADR-0087 not-required (no-migration-prescription). PR title carries '!'. Spec untouched: the packageId exception sentence stays true; the earlier 'one package the item's active rows are bound to' sentence now has this cell as an exception at member grain, left to sibling #35529.", "tests": "head 80f540b6. New pins packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts: Tests 6 passed (6); with meta-disabled-holder-served-stack.test.ts and meta-bare-write-doors-follow-base-34681.test.ts: Test Files 3 passed (3), Tests 178 passed (178). @objectstack/metadata-protocol test (at b7be6fce; the later commit only reshapes the facade wrapper argument): Test Files 369 passed | 9 skipped (378), Tests 23389 passed | 45 skipped. metadata-protocol typecheck exit 0 at 80f540b6, runtime typecheck (+check:test-typecheck) exit 0. Ablations via scripts/ablation-replace.mjs + rebuild + ablation-dist-preflight (marker present in 2 dist files each): A publish-mode one-holder arm blanked -> 3 failed | 3 passed (tests 1,2,5); B packagelessRowHeldBaseDraftAddress returns stored address -> 2 failed | 4 passed (tests 3,4), re-run on 80f540b6 same reading; C draft-save follow condition back to ambiguous-only -> 1 failed | 5 passed (draft save wrote package=WD). Each restored: blob == HEAD, git diff HEAD empty, git status clean; restore leg rebuilt, all three markers absent from 24 dist files, pins 6/6.", "gates": "dispatch-gates --commands (75 families, tree f1813eb0): 73 exit 0; check:dual-build-cjs-loads exit 3 and check-plugin-teardown-shape --self-test exit 3 = PREREQUISITE NOT MET (missing full-tree dist / shallow clone), NOT MEASURED locally; check:facade-delegation-only exit 1 on that tree (my facade member was not a forwarding call) -> fixed in 80f540b6, re-run exit 0; on 80f540b6 also re-ran check:durability-log-level, check:nul-bytes, check:startup-registry-verdict: exit 0. --ran reconciliation with exit codes: 75 derived, 73 run, 2 NOT-MEASURED (derived from exit 3), 0 UNRUN. CI at 80f540b6 (PR check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success (10/10 shards), Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success (shards skipped on PR), Live E2E UI success, Test UI success, Check Changeset success, Check PR Size success, PR-body guards success; UI lanes skipped by selector. No red.", "dogfood_battery": "80f540b6 · os-verify-lock: VERDICT command-exit 0 (held 1839s, closure built at 80f540b6 by the first run, which was killed by the session cut-off before its verdict; the rerun ran the test step only on that build) · Test Files 487 passed | 3 skipped (490) · Tests 4127 passed | 68 skipped (4195) · no failures", "files_changed": [ "packages/metadata-protocol/src/protocol-save.ts", "packages/metadata-protocol/src/protocol.ts", "packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts", ".changeset/35524-bare-save-follows-base-dependent-member.md" ], "line_budget": "+395/-12 over 4 files (dispatch-gates: 407 changed lines, under the 3000 threshold); no skills/** touch", "deviations": "File surface widened beyond the claim by one file: packages/metadata-protocol/src/protocol.ts (the facade's private packagelessDraftAddress now forwards through packagelessRowHeldBaseDraftAddress). Reason: moving the draft save alone broke the bare draft chain my change created (bare draft read and publish answered 404 NO_DRAFT, discard a no-op, measured), and packagelessDraftAddress is the one resolution all bare draft doors share; rule 3 (a defect my change triggers is fixed in this PR). This also moves the bare per-item publish and draft discard of WD's lone draft at the cell (narrowing, declared). protocol-meta-item-face.ts untouched; no spec touch; no docs/adr or skills touch. Local dogfood ran in two legs (build in the first, killed run; test in the rerun) on an unchanged head. Ablations A and C ran on f1813eb0 (before the facade-only commit); B re-run on 80f540b6. The scratchpad dir issue-35524 was also written by another process (a claim.md appeared and my dogfood.pid vanished); nothing of mine depended on it after that.", "mcp_calls": "0", "api_writes": "2 - fleet-write relay pr_create (POST pulls + POST issues/37069/assignees, run 45457371539, read-back identical 13977 bytes); post-stamped comment on issue 35524 (os-dev-report). git push x5 (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: in process deleteMetaItem/historyMetaItem/diffMetaItem/rollbackMetaItem on a booted kernel (REST DELETE not mounted on the dispatcher) · evidence: at the dependent-only member (WA en-US row, WD fr-FR row) the bare read answers 404 (WA's address) while the bare delete removes WD's row ('Deleted ... (package=WD)'), the bare history returns WD's events and the bare rollback restores WD's row (measured on main a73edb3cd7 and on 80f540b6); epic ruling 6781691009 'a write resolves its address exactly as the read at the same address resolves it'. Seam: spec:SaveMetaItemRequest/DeleteMetaItemRequest packageId -> runtime:packagelessRowHeldBaseAddress callers in protocol-diff-delete-load.ts and protocol-history-slots.ts (two-or-more guard). Family of #34681/#35524; design question (nothing of the base's to remove or restore) · dedupe words: bare delete history rollback dependent-only member row-held base 404", "class: b · reach: in process saveMetaItem on a booted kernel · evidence: base code package ships email_template 'shipmail' (en-US), dependent stores a fr-FR row; bare read ?member=fr-FR 404, bare save writes the dependent's customization row ('Saved customization overlay (package=D)'); pinned unchanged in the new test's CONTROLS. Seam: spec:SaveMetaItemRequest.packageId -> runtime:rowHeldBaseJudgment shipped-name exclusion vs packagelessContentPackage read · dedupe words: shipped base dependent added member bare save 404 overlay", "carrier: #35529 · noted, not filed: SaveMetaItemRequestSchema.packageId sentence 'an active save then writes the row of the one package the item's active rows are bound to' now has this cell as an exception at member grain; rowHeldBaseAddressOf docblock says writes ask it only with two or more holders", "carrier: none · noted in Acceptance notes: on main, historyMetaItem naming WA at fr-FR (WA holds no row there) answered RESOURCE_CONFLICT" ] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h
os-dev-report
{ "issue": 35524, "status": "done", "branch": "claude/project-thread-g0avze", "pr": "https://github.com/objectstack-ai/objectstack/pull/37069", "session": "session_01J8VVAj3FYe91JCMQZPS88h", "premise_still_valid": true, "head_sha": "db0a77a90995c5c6487a521978f1cd05d86b3062", "summary": "Continuation of the same claim, one job: the full dogfood battery at the final head db0a77a9 (main 9171bed0 merged in by the relay). Closure built per os-dev rule 1 under the lock, then pnpm --filter @objectstack/dogfood test under the lock with no OS_TEST_SHARD and no path: green, no failures, so no fixture fix and no new commit. The PR body lacked the Skills-docs line the (narrowing) arm owes: added from the diff through the relay issue_patch (attribution lines kept first, trailer last), and the Verification dogfood bullet now cites this head's reading. Main was not merged again (no conflict, no main-caused red).", "tests": "head db0a77a9 (git rev-parse HEAD in the worktree, clean tree): closure: os-verify-lock -c \"pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build\" -> VERDICT command-exit 0 (held 453s). Battery: os-verify-lock -c 'pnpm --filter @objectstack/dogfood test' (OS_VERIFY_LOCK_SLOT=issue-35524, NODE_OPTIONS=--max-old-space-size=4096, OS_TEST_SHARD unset) -> Test Files 487 passed | 3 skipped (490); Tests 4128 passed | 68 skipped (4196). No ablation: no tested behaviour changed in this continuation.", "gates": "local: only the closure build and the dogfood battery above (no diff in this continuation, so no derived families owed; dispatch-gates --commands not re-run). CI at db0a77a9 (PR check-runs): 37 success, 18 skipped, 2 in_progress at report time (Check Changeset and PR-body guards, re-triggered by this run's PR body edit); success includes Lint & Repo Gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Build Core, Test Core (10/10 shards), Dogfood Regression Gate, Check Changeset, Check PR Size, PR-body guards (earlier run). 0 red.", "dogfood_battery": "db0a77a90995c5c6487a521978f1cd05d86b3062 · os-verify-lock: VERDICT command-exit 0 · held the lock 2230s (37m10s) · waited 0s · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "deviations": "PR body edited through the relay issue_patch to add the owed Skills-docs line (value: none, with the reason from the diff) and to replace the Verification bullet's dogfood sentence with this head's reading; the body's last non-empty line is the signed trailer the relay requires for a pull request body edit. Read-back: 14702 bytes sent, 14702 stored, identical (run 45594017185). Main moved to ede9b91f40 during the run; not merged (dispatch order: only on conflict or main-caused red).", "files_changed": [], "mcp_calls": "0", "api_writes": "2 - fleet-write relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37069 (PR body, run 45594017185); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35524/comments (this os-dev-report). No git push.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h
os-dev-report
{ "issue": 35524, "status": "done", "branch": "claude/project-thread-g0avze", "pr": "https://github.com/objectstack-ai/objectstack/pull/37069", "session": "session_01J8VVAj3FYe91JCMQZPS88h (dispatching PM session; subagent run)", "head_sha": "ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed", "premise_still_valid": true, "summary": "Patch round for contract review S1, option (a). New predicate draftAddressFollowsRowHeldBase(address) = into !== null && key !== null in protocol-save.ts, asked by packagelessRowHeldBaseDraftAddress (the bare draft doors' address) and by the draft save's follow condition, so a draft address naming the package-unbound draft (key === null) at the dependent-only member keeps main's address: the bare draft read serves it, the bare per-item publish promotes it into the dependent's row, the bare discard removes it, the bare draft save adopts it into the dependent's draft and writes no draft bound to the base. Docblocks of the wrapper and the predicate say so; the changeset's Not moved names the sub-cell and its BREAKING banner now names a base holding a row at any other member (canonical or e.g. de-DE); declaration lines and ADR-0087 disposition unchanged. PR body mirrored via relay issue_patch (What changes, read-first, per-door, pins, ablation D, acceptance notes, verification), attribution lines first and trailer last kept.", "s1_predicate": "key === null (address.key), not drafts.unbound. Measured at the cell in packagelessDraftAddress: with the dependent's row the one active holder, key === null with into !== null arises only when a package-unbound draft is stored and no draft of the dependent is (the drafts.unbound && !candidates.includes(own) arm). drafts.unbound is also true when the package-unbound draft sits beside the dependent's own draft; there the address names the dependent's draft (key = dependent), which is the declared move, so drafts.unbound would have un-moved a declared sub-cell. key === null is the reviewer's verbatim option (a) and the faithful reading.", "tests": "New pin (describe of 4 tests, one per door) in packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts: package-unbound draft laid by a bare draft save at fr-FR while no package held the member, then WD's fr-FR row; rows asserted per door. At ae5ffb36: file Tests 10 passed (10); with the 34681 and disabled-holder files Test Files 3 passed (3), Tests 182 passed (182). @objectstack/metadata-protocol test: Test Files 370 passed | 9 skipped (379), Tests 23417 passed | 45 skipped (23462); typecheck exit 0; @objectstack/runtime typecheck (with check:test-typecheck) exit 0; lock VERDICT command-exit 0. As-on-main proof: merge-base 9171bed0a protocol-save.ts and protocol.ts checked out, metadata-protocol rebuilt (preflight: draftAddressFollowsRowHeldBase absent from dist), file ran Tests 5 failed | 5 passed (10) = moved pins 1-5 red, the 4 new pins + CONTROLS green; restored, both hash-ok vs HEAD, git status --porcelain 0 lines, rebuilt. Ablation (one, the new guard removed at both callers: ablation-replace anchor x1->x0, blob 78610389dd99->7f18ba1debbc, rebuild, ablation-dist-preflight --absent ok): Tests 3 failed | 7 passed (10) - draft save wrote draft:com.qa.authoredbase beside draft:null, publish 404 NO_DRAFT, discard left draft:null stored; the draft read leg stayed green (a control, not a guard). Restore: blob == HEAD 78610389dd99, git diff HEAD 0 bytes, rebuilt, restore preflight --absent ok on the mutated spelling, original marker count 1 in dist, Tests 10 passed (10).", "gates": "Local: dispatch-gates --commands (repo objectstack-ai/objectstack, tree ae5ffb36ab, 4 paths vs merge base 9171bed0a): 75 families, 74 exit 0, pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (no full-tree dist) = NOT MEASURED, CI's. --ran with exit codes: 75 derived, 74 run, 1 NOT-MEASURED, 0 UNRUN. check-nul-bytes exit 0. check-commit-card-trailers exit 0 (8 commits clean); overlap-check VERDICT clean exit 0. CI at ae5ffb36: 37 success, 16 skipped, 0 failed (Check Changeset, PR-body guards re-run after the body edit both success, Test Core 1..10, TypeScript Type Check, Type Check workspace/source/consumer/debt, Lint & Repo Gates, Lint ESLint, Dogfood Regression Gate, Governed Surface Queue Guard, Build Core). test:repo and pnpm lint are CI's.", "dogfood_battery": "ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed · closure pnpm --filter '@objectstack/dogfood^...' build VERDICT command-exit 0 · battery os-verify-lock: VERDICT command-exit 0 · held the lock 2279s (37m59s) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures", "deviations": "(1) The new pin is a describe of four it blocks (one per door) instead of a single it, so the ablation reads per door; one ablation, run once on the split file (an earlier identical ablation on the single-it form went red at the draft-save assertion first, so it could not show the other doors; reported, not hidden). (2) Measured, not assumed: on main the bare draft save over the package-unbound draft adopts it INTO the dependent's draft (row becomes draft:WD), not a package-unbound draft; the pin and the changeset's Not moved say adopt it into the dependent's draft. (3) The draft-read leg does not turn red under the ablation; recorded in the PR body as a control. (4) Added an extra as-on-main run (not ordered) to prove the four pins hold main's answer. No main merge (no conflict, no main-caused red).", "files_changed": [ ".changeset/35524-bare-save-follows-base-dependent-member.md", "packages/metadata-protocol/src/protocol-save.ts", "packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts" ], "mcp_calls": "0", "api_writes": "2 - relay fleet-write issue_patch on PR #37069 body (run 45612815412, read-back 17902 bytes sent == stored, identical); post-stamped comment on #35524 (this report). Plus git push db0a77a909..ae5ffb36ab (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }Generated by Claude Code
objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h
os-dev-report
{ "issue": 35524, "status": "done", "branch": "claude/project-thread-g0avze", "pr": "https://github.com/objectstack-ai/objectstack/pull/37069", "session": "session_01J8VVAj3FYe91JCMQZPS88h", "head_sha": "344fc148d28a5cbbb1ad4ba7cddcdca97d372a17", "premise_still_valid": true, "summary": "Patch round 2, the seat's route S2 option (b): the S1(a) key-null exemption is reverted, so the package-unbound-draft sub-cell (key null, a package in into, at a member only the dependent holds, over a base holding a row of another member) moves to the base for the draft-address wrapper and the draft save's follow. draftAddressFollowsRowHeldBase is reshaped to into !== null (still the one predicate both ask); the docblocks cite epic ruling 6781691009 and say what moves. The bare draft save now passes the base, so the repository's orphan-draft adoption does not run: it writes the base's draft and leaves the package-unbound draft untouched, the bare draft read reads back what was saved, the bare publish promotes the base's draft, and a second bare save writes no second draft. The bare discard at that sub-cell with no base draft now answers the named-base receipt (receiptPackageId in protocol-diff-delete-load.ts), measured on this head as \"No pending draft of email_template/NAME is bound to package 'com.qa.authoredbase', so nothing was discarded: its package-less draft remains.\" where the bare one had answered \"No pending draft for email_template/NAME.\". The changeset and PR body move the sub-cell from Not moved into FROM/TO; the declaration lines, banner and ADR-0087 disposition are unchanged. A probe before the report found that with no base draft the bare draft read, like the read naming the base, still serves the package-unbound draft; the first wording (\"no door acts on it\") was corrected in the docblock and the changeset at 344fc148d2, and pin (iii) now asserts the bare read equal to the named one. The stop rule did not trigger: the change stays inside packages/metadata-protocol/src/**, the test file and the changeset, and the three named regression files are green.", "tests": "At 344fc148d2: 35524 file + meta-bare-write-doors-follow-base-34681 + meta-disabled-holder-served-stack: Test Files 3 passed (3), Tests 182 passed (182), with metadata-protocol and runtime typecheck in the same lock run (VERDICT command-exit 0). The 35524 file has 10 tests; the four S1 pins are reshaped into (i) bare draft save then bare draft read (rows equal to the save naming WA, package-unbound draft untouched, read ['saved fr', WA] equal to the named read); (ii) bare publish after the save equal to packageId WA (outcome and rows); (iii) with no base draft, bare draft read equal to named (['unbound fr', null]), bare publish equal to named [NO_DRAFT, 404], bare discard result equal to the named discard's (success, reset, receipt with the name blanked), rows; (iv) a second bare draft save leaves one WA draft. Ablations at 4f232bf2d8 (344fc148d2 leaves both guards byte-identical): E, the key-null exemption put back for both callers, via ablation-replace.mjs: anchor 1 -> 0, rebuilt, dist preflight marker present in 2 files, Tests 4 failed | 6 passed (10) (i to iv red), restored blob == HEAD 2c49e5ac9f32, git diff HEAD empty, rebuilt, marker absent from 24 files. F, the discard receipt guard removed (? draftAddress.into read as ? draftAddress.into && null): marker present in 2 files, Tests 1 failed | 9 passed (10) ((iii) alone: bare receipt 'No pending draft for email_template/NAME.' against the named one), restored blob == HEAD 1c2294d6482b, git diff HEAD empty, rebuilt, marker absent. metadata-protocol test at 4f232bf2d8 (344fc148d2 changes only a docblock there): Test Files 370 passed | 9 skipped (379), Tests 23417 passed | 45 skipped (23462).", "gates": "At 344fc148d2. Local: metadata-protocol typecheck exit 0, runtime typecheck (with check:test-typecheck) exit 0. Derived (dispatch-gates --commands, 75 families, the same list as at 4f232bf2d8), run in a loop with exit codes recorded before any pipe: 75 exit 0 (check:type-check-debt under the lock, VERDICT command-exit 0, re-measure OK; check:dual-build-cjs-loads read the dogfood closure's dist: 125 entry points load). --ran: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN (exit 0). At 4f232bf2d8 the same loop had check:dts-closure exit 1 (plugin-audit dist read mid-rebuild by my concurrent dogfood closure build; exit 0 on re-run) and check:type-check-debt exit 3 (queue-timeout behind my own dogfood hold; exit 0 under the lock). Pre-push at each push: check-commit-card-trailers exit 0, overlap-check VERDICT clean exit 0, check-nul-bytes exit 0. CI at 344fc148d2: 53 check-runs, 37 success, 16 skipped, none failed (Test Core 1..10, TypeScript Type Check, Lint & Repo Gates, Dogfood Regression Gate, Governed Surface Queue Guard, Check Changeset, PR-body guards). After the final body edit PR-body guards re-ran: success; Check Changeset re-run: success.", "dogfood_battery": "344fc148d2 · os-verify-lock: VERDICT command-exit 0 · held the lock 2915s (48m35s) · Test Files 487 passed | 3 skipped (490) · Tests 4128 passed | 68 skipped (4196) · no failures (also green at 4f232bf2d8: 487/490 files, 4128 passed | 68 skipped)", "deviations": "(1) A pin for the bare per-item publish with no base draft (equal to the named [NO_DRAFT, 404]) is folded into pin (iii), beside the discard, because the changeset now declares that answer. (2) The new receipt arm also covers the moved cell where the dependent's own draft and a package-unbound draft are both stored (candidates non-empty, unbound true): that bare discard now answers the named-base receipt too, not the #23495 one. Only the wrapper's moved address is 'none' with a package-unbound draft stored, so no cell on main changes. (3) The changeset is in the test commit (4f232bf2d8), not a commit of its own. (4) A third commit, 344fc148d2, after the first dogfood run: a probe (a temporary test file, never committed) measured that with no base draft the bare draft read, like the reads naming the base or the dependent, serves the package-unbound draft. The first wording said no door acted on it, so the docblock and the changeset were corrected and pin (iii) gained the bare-equals-named draft-read assertion. The derived gates and the full dogfood battery were re-run at 344fc148d2; the ablations were not, because the guards are byte-identical. (5) Two derived gates re-run after they collided with my own concurrent dogfood build (see gates). (6) Observation, not filed (reach unestablished; carrier: none): at that sub-cell with no base draft, the draft read naming the base serves the package-unbound draft while the publish and discard naming the base answer NO_DRAFT and a nothing-discarded receipt. Bare now equals named on all three; whether the named read's fallback to the package-unbound draft should be left as it is falls outside this card.", "files_changed": [ "packages/metadata-protocol/src/protocol-save.ts", "packages/metadata-protocol/src/protocol-diff-delete-load.ts", "packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts", ".changeset/35524-bare-save-follows-base-dependent-member.md" ], "mcp_calls": "0", "api_writes": "4: git push x2 to claude/project-thread-g0avze (ae5ffb36ab..4f232bf2d8, 4f232bf2d8..344fc148d2; not REST). Fleet-write relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/37069 x2 (the PR body; runs 45627366616 and 45639683342; read back 20825/20825 and 21221/21221 bytes, identical). post-stamped POST /repos/objectstack-ai/objectstack/issues/35524/comments x1 (this report).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: at the package-unbound sub-cell with no base draft, the draft read naming the base (and now the bare one) serves the package-unbound draft while the publish and discard naming the base answer NO_DRAFT/404 and a nothing-discarded receipt; listed in the PR's Acceptance notes" ] }