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: registry write-through faults for non-object types are only logged, so revertCommit cannot report them #33851
applyRegistryWriteThrough's non-object branches catch and log their faults.
restoreArtifactRegistryView's heal does the same.
The file is shared with save and publish, so a view or permission write-through fault stays invisible to revertCommit, which since #33805 reports object write-through refusals in failed[].
Wanted
The non-object branches return a refusal the caller can read, instead of only logging. revertCommit then puts the item into failed[] with the row state named, as for objects. Check what save and publish do with the new refusal: they must not start failing where they succeed today without saying so in the changeset. Pins per type with an ablation.
Reader
domain:server area S5 (E1b: protocol-registry-hydration.ts, not protocol.ts). p2. Clause-② to be judged by the claim: a save door that newly refuses is narrowing.
Dedupe
Searched applyRegistryWriteThrough, restoreArtifactRegistryView, write-through fault logged: only #33563 and PR #33805.
Claim: area S4 (lease E1), #33751 §2 area-lease mode, p2 on the seat's order
Session: session_01QsR2jTkZnXtRhuEiiyidvJ
Account: zhuangjianguo
Branch: claude/area-E1-33851
Worktree: objectstack-e1-33851
Domain: domain:server
Seat: domain:server#5
File surface: packages/metadata-protocol/src/protocol-registry-hydration.ts (applyRegistryWriteThrough non-object branches, restoreArtifactRegistryView heal), protocol-package-commits.ts (revertCommit reading the new refusal), their tests, one changeset; no protocol.ts (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default judgment tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol registry write-through) | revertCommit's failed[] (PR #33805) covers objects only | an operator reverting a view, permission or other non-object commit whose registry write-through faults
Thread-read: none
Premise: holds (re-measured at origin/main by the dev before any edit). The claim's Clause-②: no assumes save and publish keep today's answers; if the fix makes either door newly refuse, the dev stops and reports before building (that would be the narrowing arm and needs a contract review).
Serial constraints cleared: PR #33825 (#32620, same file) merged; PR #33805 (protocol-package-commits.ts) merged. S5's #33832 (heal tier-2 baseline, filed serial after #33825) may touch protocol-registry-hydration.ts: told S5; ordinary concurrency, second lander resolves. S4 in flight: #32622 (protocol-meta-layered-reads.ts), #33456 (protocol.ts, protocol-artifact-lookup.ts, protocol-meta-item-reads.ts): disjoint. server#6 files not touched.
Pre-claim check (added to claim 6895262027 under the seat's binding rule; the claim was written before the rule arrived)
Pre-claim lane: domain:server area S4 (E1) because the fix is in packages/metadata-protocol/src/protocol-registry-hydration.ts and protocol-package-commits.ts
Pre-claim deps: PR #33805 (#33563) merged; PR #33825 (#32620, same file) merged; no Blocked-by on the card; protocol.ts not touched
Prior rulings read: docs/adr/0067 D3 (revertCommit restores "atomically" and answers honestly) and its 2026-11 "What the doors do" status paragraph, which describes today's behaviour: "the registry write-through … and the projector catch their own faults and log them, and their results are not read". PR #33805 already moved the object limb away from that description (review 6893528798 read it as status, not a ruling, keeping D3's promise); the status-line amendment is owed as #33850. No ⛔ line on write-through faults. No test pins the logged-only outcome as a requirement beyond the ones #33805 flipped. The order fences save/publish to today's answers, so no door's visible behaviour moves beyond the card's own "Wanted"; if that fence cannot hold the dev stops and the decision goes to the seat.
{
"issue": 33851,
"status": "done",
"branch": "claude/area-E1-33851",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33979",
"head_sha": "132336df9cc9212d4e67a94451ba035a56e4c937",
"session": "session_01QsR2jTkZnXtRhuEiiyidvJ",
"premise_still_valid": true,
"summary": "This PR does the write-through half, which is the card's ruling. The PR body says Part of #33851, so the card stays open. All three hypotheses were measured as true. H1: applyRegistryWriteThrough has two non-object branches, the overlay hydration (every type except object and object_extension) and the object_extension registration. Each caught its fault, logged it at warn and returned undefined. H2: the heal restoreArtifactRegistryView catches its stop at its outer catch and logs it at error. H3: revertCommit read only the object refusal. Before the fix, a revert of a view, permission or object_extension whose write-through threw answered success: true. A heal stop on the soft-remove limb answered success with action removed. The fix adds an opt-in field, answerFaults, to a new exported request type, RegistryWriteThroughRequest. Only revertCommit's restore limb sets it, so such an item now lands in failed[] with the row state named and the registry's code. Save and publish do not set it, and their answers and warn lines are unchanged, which the control pins and ablations A4 and A5 show. The heal half is not done: revertCommit can read the heal's stop only if the protocol.ts forwarder's declared return type changes from a Promise of void. protocol.ts is outside this claim, so that half is an open question.",
"tests": "packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts gains §3, a top-level describe with 12 cases: view, permission and object_extension each get a clean-revert control, a fault going to failed[], a save control and a publish control. Premise on unmodified source 63e47feeca: 3 red (the fault cases answered success true), 19 green. After the fix: 22 of 22 green. Ablations ran through scripts/ablation-replace.mjs; each landed and was restored to blob == HEAD with git diff HEAD empty. A1, the overlay branch does not answer: 2 red, 20 green. A2, the extension branch does not answer: 1 red, 21 green. A3, revertCommit does not set answerFaults: 3 red, 19 green. A4, the overlay branch answers every caller: 4 red, 18 green; the view save then answered an object-registry-refused advisory with the wrong object wording. A5, the extension branch answers every caller: 2 red, 20 green. The first A1 to A3 attempt was a no-op, because the replacement was a substring of the anchor and the tool refused it; they were re-run with distinct markers. Package suites: metadata-protocol typecheck exit 0 (the test file is in the program), test 341 files passed and 9 skipped, 22906 tests passed (lock VERDICT command-exit 0). objectql full suite: 597 of 597 files, 13173 of 13173 tests (VERDICT command-exit 0), after rebuilding metadata-protocol. After the origin/main merge, the revert, call-site and spelling pin files passed: 6 files, 62 tests. At the final head 132336df9c, the harness file passed 22 of 22 and tsc exited 0. pnpm lint: exit 0.",
"gates": "Local: dispatch-gates --ran at 132336df9c reconciled 66 derived families, each with its exit code recorded: 63 exit 0, and 3 are NOT MEASURED with exit 3 (PREREQUISITE NOT MET, each needs the whole workspace built): check:dual-build-cjs-loads, check:lean-entry-closure, check:type-check-debt. Body gates on the final body: check-closing-keyword-parity 0, check-partof-closing-keyword 0, check-changeset-no-major 0, check-adr-0087-registration 0. merge-tree --write-tree --name-only: clean against origin/main 895783a1e8, and clean against S5's claude/area-E1b-33832 head 9c4f75f36e, which has no open PR. None of the 68 open PRs shares a file of this diff. CI on PR #33979 at report time: Check Changeset, Lint (ESLint, PM dispatch-gates, CI/release/engine, docs & code, scoped, tooling self-tests), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard and PR-body guards were in_progress; Lint repo & tooling and scoped slot lookup were queued; the opt-in, queue and schedule jobs were skipped. This report does not wait on them.",
"dogfood_battery": "n/a: the PR title has no `!` and Clause-② has no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: pr_create through the fleet-write relay (POST repository_dispatch, which created pulls #33979), and this report comment through post-stamped (POST issues/33851/comments). git push is not counted.",
"deviations": [
"Test placement: my first commit put the tests in the shared harness file. When the seat's first rule (14:45Z) arrived, I moved them to a card-named file and added 3 rows to the engine-double ledger with --write. When the corrected rule (14:55Z) cited AGENTS.md ruling record 6583487846, I moved them back to the shared harness file as a top-level describe and dropped the ledger rows. In the net diff, scripts/ equals main. The PR body says this.",
"Direct dependents: objectql was run in full. runtime, cli, service-automation and cloud-connection were not run locally and are left to CI's Test Core. The reason is that the public surface does not change: protocol.ts is untouched, and the new type is not exported from the package entry.",
"The PR says Part of #33851 rather than Fixes, because the heal half named in the card's Where section is not done (see open_questions).",
"The PR body keeps the harness-written attribution comment as its first line, as the common order specifies."
],
"files_changed": [
".changeset/33851-revert-non-object-write-through-fault.md",
"packages/metadata-protocol/src/protocol-registry-hydration.ts",
"packages/metadata-protocol/src/protocol-package-commits.ts",
"packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts"
],
"line_budget": "+246 / -16 across 4 files (origin/main...HEAD)",
"open_questions": [
{
"question": "Should revertCommit's soft-remove limb report a stop of the registry heal (restoreArtifactRegistryView) in failed[]? Measured: when the heal stops on a registry throw, the revert of a created view or permission answers {success: true, action: 'removed'}, and the stop is only an error log line. For revertCommit to read the stop, the heal must return it. The protocol.ts forwarder declares a Promise of void, ProtocolHost derives its type from it, and the call-site pins require host.restoreArtifactRegistryView( in revertCommit.",
"options": [
"A: Change the forwarder's return type in protocol.ts to a Promise of (RegistryHealStop or undefined) (one line). The facet returns the stop from its outer catch, keeping the same error log. revertCommit's soft-remove limb pushes it to notApplied, and every other caller ignores it. Four axes. Real need: the same operator case the card names, measured, on the other limb. Long-term: it completes ADR-0067 D3's honest outcome on both limbs through one typed channel, contract-first. AI-error: the outcome is typed and loud, so it cannot be dropped silently. Scope: one line in protocol.ts, about 20 lines in the facet, 6 pins, no new gate. Cost: coordination with the E1 agent holding protocol.ts; whoever lands second resolves.",
"B: Thread the stop through a cast or a side channel, without editing protocol.ts. Rejected on the long-term and AI-error axes: it hides the contract behind a forwarder whose type says void.",
"C: Leave the heal stop log-only, and record it in ADR-0067's amendment as a known gap. Zero cost now, but revertCommit's docblock and D3 stay false on the soft-remove limb."
],
"recommendation": "A. Long-term reasonableness leads: it is the same typed outcome channel the restore limb now has, at one line of protocol.ts. It needs only the seat's permission to touch protocol.ts, as a follow-up on this card (the PR says Part of)."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat (domain:server) · noted, not filed: protocol.ts's private applyRegistryWriteThrough forwarder declares its own inline request type, and it should name RegistryWriteThroughRequest so the answerFaults field is visible there (cosmetic; protocol.ts is out of surface)",
"carrier: seat (domain:server) · noted, not filed: the unreleased .changeset/33563-revert-commit-honest-outcome.md says a non-object write-through fault 'is still not seen by the revert'. That becomes false for the restore limb once this PR lands. This PR's changeset says it replaces that line. Editing the older note would be a DELIBERATE CORRECTION outside this claim's surface.",
"carrier: seat (domain:server) · noted, not filed: restoreArtifactRegistryView's remaining-row loop ignores the write-through's answer, including an object's refusal (behaviour-changing, so it belongs with the heal-half decision above)"
]
}
{
"issue": 33851,
"status": "done",
"branch": "claude/area-E1-33851",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33979",
"head_sha": "999b09d9c3724b90db62df71dfb52afcf73ec569",
"note_pr": "https://github.com/objectstack-ai/objectstack/pull/34017",
"note_branch": "claude/area-E1-33851-note",
"note_head_sha": "7aa7cbdc3db5f82336685c3b69275d0150e49273",
"session": "session_01QsR2jTkZnXtRhuEiiyidvJ",
"premise_still_valid": true,
"summary": "The area chose option A, folded into PR #33979, so the PR now covers the whole card. Write-through half: the request type RegistryWriteThroughRequest has an opt-in, answerFaults; the two non-object branches answer their fault to a caller that sets it; and revertCommit's restore limb sets it. Heal half: restoreArtifactRegistryView returns a RegistryHealStop from its outer catch (the same error line is kept) and from its remaining-row loop (item 6: about 15 lines with its own pin, the same channel). revertCommit's soft-remove limb pushes the stop to notApplied when a row was removed, so the item lands in failed[] with 'its row was removed from sys_metadata', 'may still serve the removed row', the reason and its code. protocol.ts: the restoreArtifactRegistryView forwarder returns a Promise of (RegistryHealStop or undefined); the applyRegistryWriteThrough forwarder takes RegistryWriteThroughRequest (item 4); and the revertCommit docblock sentence that said non-object faults are not seen is corrected. Every other caller (save, publish, delete, publish undo, peer convergence) ignores the new answers, and control pins show their answers are unchanged. Item 5 was changed by the 14:5x order. The 33563 note is restored byte for byte on #33979, and my changeset says it supersedes the note's sentence. The one-sentence DELIBERATE CORRECTION is the separate text-only PR #34017 (Part of #33851), which must land after #33979. The new #33979 body (Fixes #33851) is written and gated but not patched: see deviations.",
"tests": "The harness file packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts has 31 cases. §3 (write-through) has 12 cases for view, permission and object_extension, and §4 (heal) has 9: for view and permission, a clean soft-remove control, a heal stop going to failed[], a delete control and a save-and-publish control, plus an action row of another package that the registry refuses, with a non-vacuity check that it is the remaining-row path. Premise for §4 on pre-fold source 2d23b49dd1: 3 red, 28 green. Ablations (ablation-replace, each restored to blob == HEAD with git diff HEAD empty), quoted red 'expected true to be false' on res.success: B1, the outer catch returns no stop: 2 red, 29 green. B2, the remaining-row refusal is dropped: 1 red, 30 green. B3, revertCommit does not read the stop: 3 red, 28 green. From earlier on §3: A1 2 red, A2 1 red, A3 3 red, A4 4 red (save then answered an object-registry-refused advisory for the view), A5 2 red. Locked battery at 999b09d9c3 with origin/main 68e726d631 merged (VERDICT command-exit 0, queued 6m18s after a first attempt's queue-timeout exit 99): the metadata-protocol closure build; typecheck exit 0; test 342 files passed, 9 skipped, 22923 tests passed; the metadata-protocol build; objectql 597 of 597 files, 13177 of 13177 tests. pnpm lint exit 0.",
"gates": "Local: dispatch-gates --ran at 999b09d9c3 reconciled 73 derived families, each with its exit code recorded: 70 exit 0, and 3 are NOT MEASURED with exit 3 (PREREQUISITE NOT MET, a whole-workspace build): check:dual-build-cjs-loads, check:lean-entry-closure, check:type-check-debt. Gates on the new #33979 body: closing-keyword parity 0, partof 0, changeset-no-major 0, adr-0087 0. Gates on the #34017 body: the same four, all 0. merge-tree --write-tree --name-only: clean against origin/main 68e726d631, #33885's head fa7fb66a7c and S5's claude/area-E1b-33832 head 9c4f75f36e. No open PR for #33308 was found, and no other open PR touches protocol.ts, protocol-registry-hydration.ts, protocol-package-commits.ts or the harness file. CI on #33979 at 999b09d9c3 is all green or skipped, none other: Check Changeset success (the earlier red on efd9752e is gone with the restore), Lint & Repo Gates success, TypeScript Type Check lanes success, Test Core 1-8/8 success, Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, PR-body guards success. CI on #34017 was not read: it has just opened.",
"dogfood_battery": "n/a: the PR title has no `!` and Clause-② has no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "4 REST writes over both rounds, all through scripts/pm: pr_create #33979 (relay repository_dispatch); the first os-dev-report comment on #33851 (post-stamped); pr_create #34017 (relay); and this updated os-dev-report comment on #33851 (post-stamped). git pushes are not counted. The #33979 body was not patched (see deviations).",
"deviations": [
"The #33979 body is not patched. The order said to patch it through the relay issue_patch with an HTML-comment signature trailer. os-dev.md binds a dev to write a PR body only at pr_create, never with PATCH; a change goes through the seat (seat-post-protocol.md). os-dev.md also bans HTML comments in GitHub text written by a dev. Where an order conflicts with os-dev.md, os-dev.md wins and the conflict is reported. The full replacement body (Fixes #33851, with 维护者速读, What changes and Tests updated) is gated (parity 0, partof 0, no-major 0, adr-0087 0) and is at /tmp/claude-0/-home-claude/d4fbf9ca-463b-59b4-b3c8-2e2af5ff0bb1/scratchpad/issue-33851/body2.md for the seat to write. Until it does, the live body still says Part of #33851 and describes the heal as not done.",
"Item 5 followed the later order: the 33563 note is restored byte for byte on #33979 (git diff against origin/main is empty for it), and the sentence is corrected only in #34017.",
"The first locked battery run hit queue-timeout (exit 99, another seat's build was holding the lock). The same slot was retaken and it ran to command-exit 0, so no per-file substitute was needed.",
"Direct dependents other than objectql (runtime, cli, service-automation, cloud-connection) were not run locally. CI's Test Core 1-8 is green on 999b09d9c3.",
"Test placement follows the corrected rule: §3 and §4 are top-level describes in the shared revert harness file (AGENTS.md ruling record 6583487846). No card-named file and no ledger rows are in the diff."
],
"files_changed": [
".changeset/33851-revert-non-object-write-through-fault.md",
"packages/metadata-protocol/src/protocol-registry-hydration.ts",
"packages/metadata-protocol/src/protocol-package-commits.ts",
"packages/metadata-protocol/src/protocol.ts",
"packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts",
"#34017 only: .changeset/33563-revert-commit-honest-outcome.md (one sentence)"
],
"line_budget": "#33979: +423 / -37 across 5 files (origin/main...HEAD). #34017: +1 / -1 in 1 file.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat (domain:server) · noted, not filed: in the heal, the object owner branch's unregisterObject refusal ('object x was deleted from sys_metadata but stays registered') is still a warn line that answers no stop. It is object-only and outside the ruling's outer-catch and remaining-row scope; it is listed in #33979's acceptance notes."
]
}
Claim amendment (claim 6895262027; PR #33979). The heal half was folded in under the area's ruling (option A).
File surface: adds packages/metadata-protocol/src/protocol.ts: two private forwarders (restoreArtifactRegistryView returns RegistryHealStop | undefined; applyRegistryWriteThrough takes RegistryWriteThroughRequest) and one revertCommit docblock sentence. The claim's "no protocol.ts" line predates the maintainer's 14:41Z drop of the one-writer rule.
Pre-claim deps: git merge-tree --write-tree --name-only at 999b09d is clean against origin/main 68e726d and PR #33885's heads fa7fb66 and e516f35 (the second was read by review-b).
Clause-②: no
Metadata-protocol: none
Landing close-out (pm-dispatch landing-operations B: a Fixes card closed by its merge drops its pm state label in the same stroke; this stroke was owed since the merge).
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Claim: area S4 (lease E1), #33751 §2 area-lease mode, p2 on the seat's order
Session:
session_01QsR2jTkZnXtRhuEiiyidvJAccount:
zhuangjianguoBranch:
claude/area-E1-33851Worktree:
objectstack-e1-33851Domain:
domain:serverSeat:
domain:server#5File surface:
packages/metadata-protocol/src/protocol-registry-hydration.ts(applyRegistryWriteThroughnon-object branches,restoreArtifactRegistryViewheal),protocol-package-commits.ts(revertCommit reading the new refusal), their tests, one changeset; noprotocol.ts(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default judgment tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: objectstack platform code (metadata-protocol registry write-through) | revertCommit's
failed[](PR #33805) covers objects only | an operator reverting a view, permission or other non-object commit whose registry write-through faultsThread-read: none
Premise: holds (re-measured at origin/main by the dev before any edit). The claim's
Clause-②: noassumes save and publish keep today's answers; if the fix makes either door newly refuse, the dev stops and reports before building (that would be the narrowing arm and needs a contract review).Serial constraints cleared: PR #33825 (#32620, same file) merged; PR #33805 (protocol-package-commits.ts) merged. S5's #33832 (heal tier-2 baseline, filed serial after #33825) may touch protocol-registry-hydration.ts: told S5; ordinary concurrency, second lander resolves. S4 in flight: #32622 (protocol-meta-layered-reads.ts), #33456 (protocol.ts, protocol-artifact-lookup.ts, protocol-meta-item-reads.ts): disjoint. server#6 files not touched.
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Pre-claim check (added to claim 6895262027 under the seat's binding rule; the claim was written before the rule arrived)
Pre-claim lane: domain:server area S4 (E1) because the fix is in
packages/metadata-protocol/src/protocol-registry-hydration.tsandprotocol-package-commits.tsPre-claim deps: PR #33805 (#33563) merged; PR #33825 (#32620, same file) merged; no Blocked-by on the card; protocol.ts not touched
Prior rulings read:
docs/adr/0067D3 (revertCommit restores "atomically" and answers honestly) and its 2026-11 "What the doors do" status paragraph, which describes today's behaviour: "the registry write-through … and the projector catch their own faults and log them, and their results are not read". PR #33805 already moved the object limb away from that description (review 6893528798 read it as status, not a ruling, keeping D3's promise); the status-line amendment is owed as #33850. No ⛔ line on write-through faults. No test pins the logged-only outcome as a requirement beyond the ones #33805 flipped. The order fences save/publish to today's answers, so no door's visible behaviour moves beyond the card's own "Wanted"; if that fence cannot hold the dev stops and the decision goes to the seat.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
os-dev-report
{ "issue": 33851, "status": "done", "branch": "claude/area-E1-33851", "pr": "https://github.com/objectstack-ai/objectstack/pull/33979", "head_sha": "132336df9cc9212d4e67a94451ba035a56e4c937", "session": "session_01QsR2jTkZnXtRhuEiiyidvJ", "premise_still_valid": true, "summary": "This PR does the write-through half, which is the card's ruling. The PR body says Part of #33851, so the card stays open. All three hypotheses were measured as true. H1: applyRegistryWriteThrough has two non-object branches, the overlay hydration (every type except object and object_extension) and the object_extension registration. Each caught its fault, logged it at warn and returned undefined. H2: the heal restoreArtifactRegistryView catches its stop at its outer catch and logs it at error. H3: revertCommit read only the object refusal. Before the fix, a revert of a view, permission or object_extension whose write-through threw answered success: true. A heal stop on the soft-remove limb answered success with action removed. The fix adds an opt-in field, answerFaults, to a new exported request type, RegistryWriteThroughRequest. Only revertCommit's restore limb sets it, so such an item now lands in failed[] with the row state named and the registry's code. Save and publish do not set it, and their answers and warn lines are unchanged, which the control pins and ablations A4 and A5 show. The heal half is not done: revertCommit can read the heal's stop only if the protocol.ts forwarder's declared return type changes from a Promise of void. protocol.ts is outside this claim, so that half is an open question.", "tests": "packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts gains §3, a top-level describe with 12 cases: view, permission and object_extension each get a clean-revert control, a fault going to failed[], a save control and a publish control. Premise on unmodified source 63e47feeca: 3 red (the fault cases answered success true), 19 green. After the fix: 22 of 22 green. Ablations ran through scripts/ablation-replace.mjs; each landed and was restored to blob == HEAD with git diff HEAD empty. A1, the overlay branch does not answer: 2 red, 20 green. A2, the extension branch does not answer: 1 red, 21 green. A3, revertCommit does not set answerFaults: 3 red, 19 green. A4, the overlay branch answers every caller: 4 red, 18 green; the view save then answered an object-registry-refused advisory with the wrong object wording. A5, the extension branch answers every caller: 2 red, 20 green. The first A1 to A3 attempt was a no-op, because the replacement was a substring of the anchor and the tool refused it; they were re-run with distinct markers. Package suites: metadata-protocol typecheck exit 0 (the test file is in the program), test 341 files passed and 9 skipped, 22906 tests passed (lock VERDICT command-exit 0). objectql full suite: 597 of 597 files, 13173 of 13173 tests (VERDICT command-exit 0), after rebuilding metadata-protocol. After the origin/main merge, the revert, call-site and spelling pin files passed: 6 files, 62 tests. At the final head 132336df9c, the harness file passed 22 of 22 and tsc exited 0. pnpm lint: exit 0.", "gates": "Local: dispatch-gates --ran at 132336df9c reconciled 66 derived families, each with its exit code recorded: 63 exit 0, and 3 are NOT MEASURED with exit 3 (PREREQUISITE NOT MET, each needs the whole workspace built): check:dual-build-cjs-loads, check:lean-entry-closure, check:type-check-debt. Body gates on the final body: check-closing-keyword-parity 0, check-partof-closing-keyword 0, check-changeset-no-major 0, check-adr-0087-registration 0. merge-tree --write-tree --name-only: clean against origin/main 895783a1e8, and clean against S5's claude/area-E1b-33832 head 9c4f75f36e, which has no open PR. None of the 68 open PRs shares a file of this diff. CI on PR #33979 at report time: Check Changeset, Lint (ESLint, PM dispatch-gates, CI/release/engine, docs & code, scoped, tooling self-tests), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard and PR-body guards were in_progress; Lint repo & tooling and scoped slot lookup were queued; the opt-in, queue and schedule jobs were skipped. This report does not wait on them.", "dogfood_battery": "n/a: the PR title has no `!` and Clause-② has no (narrowing) arm", "mcp_calls": "0", "api_writes": "2: pr_create through the fleet-write relay (POST repository_dispatch, which created pulls #33979), and this report comment through post-stamped (POST issues/33851/comments). git push is not counted.", "deviations": [ "Test placement: my first commit put the tests in the shared harness file. When the seat's first rule (14:45Z) arrived, I moved them to a card-named file and added 3 rows to the engine-double ledger with --write. When the corrected rule (14:55Z) cited AGENTS.md ruling record 6583487846, I moved them back to the shared harness file as a top-level describe and dropped the ledger rows. In the net diff, scripts/ equals main. The PR body says this.", "Direct dependents: objectql was run in full. runtime, cli, service-automation and cloud-connection were not run locally and are left to CI's Test Core. The reason is that the public surface does not change: protocol.ts is untouched, and the new type is not exported from the package entry.", "The PR says Part of #33851 rather than Fixes, because the heal half named in the card's Where section is not done (see open_questions).", "The PR body keeps the harness-written attribution comment as its first line, as the common order specifies." ], "files_changed": [ ".changeset/33851-revert-non-object-write-through-fault.md", "packages/metadata-protocol/src/protocol-registry-hydration.ts", "packages/metadata-protocol/src/protocol-package-commits.ts", "packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts" ], "line_budget": "+246 / -16 across 4 files (origin/main...HEAD)", "open_questions": [ { "question": "Should revertCommit's soft-remove limb report a stop of the registry heal (restoreArtifactRegistryView) in failed[]? Measured: when the heal stops on a registry throw, the revert of a created view or permission answers {success: true, action: 'removed'}, and the stop is only an error log line. For revertCommit to read the stop, the heal must return it. The protocol.ts forwarder declares a Promise of void, ProtocolHost derives its type from it, and the call-site pins require host.restoreArtifactRegistryView( in revertCommit.", "options": [ "A: Change the forwarder's return type in protocol.ts to a Promise of (RegistryHealStop or undefined) (one line). The facet returns the stop from its outer catch, keeping the same error log. revertCommit's soft-remove limb pushes it to notApplied, and every other caller ignores it. Four axes. Real need: the same operator case the card names, measured, on the other limb. Long-term: it completes ADR-0067 D3's honest outcome on both limbs through one typed channel, contract-first. AI-error: the outcome is typed and loud, so it cannot be dropped silently. Scope: one line in protocol.ts, about 20 lines in the facet, 6 pins, no new gate. Cost: coordination with the E1 agent holding protocol.ts; whoever lands second resolves.", "B: Thread the stop through a cast or a side channel, without editing protocol.ts. Rejected on the long-term and AI-error axes: it hides the contract behind a forwarder whose type says void.", "C: Leave the heal stop log-only, and record it in ADR-0067's amendment as a known gap. Zero cost now, but revertCommit's docblock and D3 stay false on the soft-remove limb." ], "recommendation": "A. Long-term reasonableness leads: it is the same typed outcome channel the restore limb now has, at one line of protocol.ts. It needs only the seat's permission to touch protocol.ts, as a follow-up on this card (the PR says Part of)." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (domain:server) · noted, not filed: protocol.ts's private applyRegistryWriteThrough forwarder declares its own inline request type, and it should name RegistryWriteThroughRequest so the answerFaults field is visible there (cosmetic; protocol.ts is out of surface)", "carrier: seat (domain:server) · noted, not filed: the unreleased .changeset/33563-revert-commit-honest-outcome.md says a non-object write-through fault 'is still not seen by the revert'. That becomes false for the restore limb once this PR lands. This PR's changeset says it replaces that line. Editing the older note would be a DELIBERATE CORRECTION outside this claim's surface.", "carrier: seat (domain:server) · noted, not filed: restoreArtifactRegistryView's remaining-row loop ignores the write-through's answer, including an object's refusal (behaviour-changing, so it belongs with the heal-half decision above)" ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
os-dev-report
{ "issue": 33851, "status": "done", "branch": "claude/area-E1-33851", "pr": "https://github.com/objectstack-ai/objectstack/pull/33979", "head_sha": "999b09d9c3724b90db62df71dfb52afcf73ec569", "note_pr": "https://github.com/objectstack-ai/objectstack/pull/34017", "note_branch": "claude/area-E1-33851-note", "note_head_sha": "7aa7cbdc3db5f82336685c3b69275d0150e49273", "session": "session_01QsR2jTkZnXtRhuEiiyidvJ", "premise_still_valid": true, "summary": "The area chose option A, folded into PR #33979, so the PR now covers the whole card. Write-through half: the request type RegistryWriteThroughRequest has an opt-in, answerFaults; the two non-object branches answer their fault to a caller that sets it; and revertCommit's restore limb sets it. Heal half: restoreArtifactRegistryView returns a RegistryHealStop from its outer catch (the same error line is kept) and from its remaining-row loop (item 6: about 15 lines with its own pin, the same channel). revertCommit's soft-remove limb pushes the stop to notApplied when a row was removed, so the item lands in failed[] with 'its row was removed from sys_metadata', 'may still serve the removed row', the reason and its code. protocol.ts: the restoreArtifactRegistryView forwarder returns a Promise of (RegistryHealStop or undefined); the applyRegistryWriteThrough forwarder takes RegistryWriteThroughRequest (item 4); and the revertCommit docblock sentence that said non-object faults are not seen is corrected. Every other caller (save, publish, delete, publish undo, peer convergence) ignores the new answers, and control pins show their answers are unchanged. Item 5 was changed by the 14:5x order. The 33563 note is restored byte for byte on #33979, and my changeset says it supersedes the note's sentence. The one-sentence DELIBERATE CORRECTION is the separate text-only PR #34017 (Part of #33851), which must land after #33979. The new #33979 body (Fixes #33851) is written and gated but not patched: see deviations.", "tests": "The harness file packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts has 31 cases. §3 (write-through) has 12 cases for view, permission and object_extension, and §4 (heal) has 9: for view and permission, a clean soft-remove control, a heal stop going to failed[], a delete control and a save-and-publish control, plus an action row of another package that the registry refuses, with a non-vacuity check that it is the remaining-row path. Premise for §4 on pre-fold source 2d23b49dd1: 3 red, 28 green. Ablations (ablation-replace, each restored to blob == HEAD with git diff HEAD empty), quoted red 'expected true to be false' on res.success: B1, the outer catch returns no stop: 2 red, 29 green. B2, the remaining-row refusal is dropped: 1 red, 30 green. B3, revertCommit does not read the stop: 3 red, 28 green. From earlier on §3: A1 2 red, A2 1 red, A3 3 red, A4 4 red (save then answered an object-registry-refused advisory for the view), A5 2 red. Locked battery at 999b09d9c3 with origin/main 68e726d631 merged (VERDICT command-exit 0, queued 6m18s after a first attempt's queue-timeout exit 99): the metadata-protocol closure build; typecheck exit 0; test 342 files passed, 9 skipped, 22923 tests passed; the metadata-protocol build; objectql 597 of 597 files, 13177 of 13177 tests. pnpm lint exit 0.", "gates": "Local: dispatch-gates --ran at 999b09d9c3 reconciled 73 derived families, each with its exit code recorded: 70 exit 0, and 3 are NOT MEASURED with exit 3 (PREREQUISITE NOT MET, a whole-workspace build): check:dual-build-cjs-loads, check:lean-entry-closure, check:type-check-debt. Gates on the new #33979 body: closing-keyword parity 0, partof 0, changeset-no-major 0, adr-0087 0. Gates on the #34017 body: the same four, all 0. merge-tree --write-tree --name-only: clean against origin/main 68e726d631, #33885's head fa7fb66a7c and S5's claude/area-E1b-33832 head 9c4f75f36e. No open PR for #33308 was found, and no other open PR touches protocol.ts, protocol-registry-hydration.ts, protocol-package-commits.ts or the harness file. CI on #33979 at 999b09d9c3 is all green or skipped, none other: Check Changeset success (the earlier red on efd9752e is gone with the restore), Lint & Repo Gates success, TypeScript Type Check lanes success, Test Core 1-8/8 success, Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Live E2E UI success, Test UI success, PR-body guards success. CI on #34017 was not read: it has just opened.", "dogfood_battery": "n/a: the PR title has no `!` and Clause-② has no (narrowing) arm", "mcp_calls": "0", "api_writes": "4 REST writes over both rounds, all through scripts/pm: pr_create #33979 (relay repository_dispatch); the first os-dev-report comment on #33851 (post-stamped); pr_create #34017 (relay); and this updated os-dev-report comment on #33851 (post-stamped). git pushes are not counted. The #33979 body was not patched (see deviations).", "deviations": [ "The #33979 body is not patched. The order said to patch it through the relay issue_patch with an HTML-comment signature trailer. os-dev.md binds a dev to write a PR body only at pr_create, never with PATCH; a change goes through the seat (seat-post-protocol.md). os-dev.md also bans HTML comments in GitHub text written by a dev. Where an order conflicts with os-dev.md, os-dev.md wins and the conflict is reported. The full replacement body (Fixes #33851, with 维护者速读, What changes and Tests updated) is gated (parity 0, partof 0, no-major 0, adr-0087 0) and is at /tmp/claude-0/-home-claude/d4fbf9ca-463b-59b4-b3c8-2e2af5ff0bb1/scratchpad/issue-33851/body2.md for the seat to write. Until it does, the live body still says Part of #33851 and describes the heal as not done.", "Item 5 followed the later order: the 33563 note is restored byte for byte on #33979 (git diff against origin/main is empty for it), and the sentence is corrected only in #34017.", "The first locked battery run hit queue-timeout (exit 99, another seat's build was holding the lock). The same slot was retaken and it ran to command-exit 0, so no per-file substitute was needed.", "Direct dependents other than objectql (runtime, cli, service-automation, cloud-connection) were not run locally. CI's Test Core 1-8 is green on 999b09d9c3.", "Test placement follows the corrected rule: §3 and §4 are top-level describes in the shared revert harness file (AGENTS.md ruling record 6583487846). No card-named file and no ledger rows are in the diff." ], "files_changed": [ ".changeset/33851-revert-non-object-write-through-fault.md", "packages/metadata-protocol/src/protocol-registry-hydration.ts", "packages/metadata-protocol/src/protocol-package-commits.ts", "packages/metadata-protocol/src/protocol.ts", "packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts", "#34017 only: .changeset/33563-revert-commit-honest-outcome.md (one sentence)" ], "line_budget": "#33979: +423 / -37 across 5 files (origin/main...HEAD). #34017: +1 / -1 in 1 file.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (domain:server) · noted, not filed: in the heal, the object owner branch's unregisterObject refusal ('object x was deleted from sys_metadata but stays registered') is still a warn line that answers no stop. It is object-only and outside the ruling's outer-catch and remaining-row scope; it is listed in #33979's acceptance notes." ] }objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Claim amendment (claim 6895262027; PR #33979). The heal half was folded in under the area's ruling (option A).
File surface: adds
packages/metadata-protocol/src/protocol.ts: two private forwarders (restoreArtifactRegistryViewreturnsRegistryHealStop | undefined;applyRegistryWriteThroughtakesRegistryWriteThroughRequest) and onerevertCommitdocblock sentence. The claim's "no protocol.ts" line predates the maintainer's 14:41Z drop of the one-writer rule.Pre-claim deps:
git merge-tree --write-tree --name-onlyat 999b09d is clean against origin/main 68e726d and PR #33885's heads fa7fb66 and e516f35 (the second was read by review-b).Clause-②: no
Metadata-protocol: none
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jTkZnXtRhuEiiyidvJ
Landing close-out (pm-dispatch landing-operations B: a Fixes card closed by its merge drops its pm state label in the same stroke; this stroke was owed since the merge).
State change:
pm:dispatchedremoved. Domain, area, lease and priority labels stay.fix(metadata-protocol): revertCommit reports a restored non-object it…
docs(changeset): the revert note says what revertCommit reports for a…
fix(metadata-protocol): the delete heal never registers a picked hold…