Repository navigation
docs(adr): ADR-0067 records the revert doors after #33805 - #34063
Conversation
… changes A dated status-line entry, a new 2026-11-15 Amendment section, and in-place marks on the 2026-11-14 Amendment and on D3's first bullet. Append and mark only: no historical text is rewritten. The reading is the code on main at fb79d47. Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: PR #34063 for card #33850. Inputs: the card body and its three comments (6895981114, 6898265358, 6898503897), the PR body, the file list, the net diff against main ① Derived judgmentsEach fact the amendment adds, against main:
Findings:
② Semver levelNone. One file under ③ Boundary flags
④ Design judgment
One must-fix (M-1), one should-fix (S-1), four nits (N-1 to N-4), one observation outside the diff (O-1). No security item. Implemented-by: VERDICT: FAIL |
Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
…l does not Review round 1. The 2026-11-15 Amendment now lists the five faults the revert reads after an item's row write, and the heal outcomes that answer no stop beside the mutation event and the fill as what still does not reach failed[]. The title, the Status entry and the in-place marks are narrowed to match, the 2026-11-14 "Recorded by" paragraph is marked, and function-local names are replaced by prose and public-symbol anchors. Append and mark only. Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Delta record for PR #34063 (card #33850) after record 6898709078, which was a FAIL on ① Derived judgmentsThe first record's findings:
New and changed sentences, against main:
New findings:
② Semver levelNone, as before. One file under ③ Boundary flags
④ Design judgment
No must-fix. One should-fix (S-2) and one nit (N-5) are open. With a should-fix open, this record does not yet clear the head for an approval request. Implemented-by: VERDICT: PASS |
Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
Review round 2. The 2026-11-15 Amendment no longer counts what still does not reach failed[]: the heal outcomes are an open list on either limb, with the object_extension re-registration and a view container's member views added. The Status entry says "not reported" where it said "only logged". Append and mark only. Claude-Session: https://claude.ai/code/session_01ADHkmSFzVdDvrh768eFPoV Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv Contract reviewServed-tier: Second delta record for PR #34063 (card #33850). It follows record 6898709078 (FAIL on ① Derived judgmentsThe findings the last record left open:
New and changed sentences, against main:
New findings: none. ② Semver levelNone, as before. One file under ③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
…es the caller (objectstack-ai#34138) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9Dnx7PUeFruJdBHdG9Tmzjt)_ Fixes objectstack-ai#34077 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只在 ADR-0094 里加注记,不改代码。状态行加一条 2026-11-15 修订;9 月 4 日修订里那句「投影器失败只记日志、不报给调用方」后面、该修订表格正下方、D2 下同一说法的 9 月 4 日注记里,各加一个⚠️ 指针。原文一个字不改。 - 为什么改:PR objectstack-ai#33805 之后,撤销一次提交(`revertCommit`)时投影器失败,该条目会进 `failed[]`,整体回 `success: false`,调用方能看到;ADR 还写着「不报给调用方」,读者会被误导。按版本回滚(`rollbackMetaItem`)没变,仍然只记日志,原句对它照旧成立。 - 风险与回滚:纯文档、只增不删,不影响任何运行行为。回滚即 revert 本 PR 一个提交。 - 先看:`docs/adr/0094-sys-permission-set-pure-projection.md` 的四处新增:第 3 行状态行末尾、第 130–135 行(D2 注记内)、第 575–580 行(修订表格正下方)、第 599–609 行(9 月 4 日修订的 `projectionApplied` 一条下)。 - 两分钟验证:`git diff --word-diff origin/main...HEAD -- docs/adr/0094-sys-permission-set-pure-projection.md`,预期只有 `{+…+}` 新增,没有 `[-…-]` 删除。 - 需要你做的:请批准并合并,或批准后由席位落地。 ## What changes ADR-0094's 2026-09-04 amendment says, verbatim: "`rollbackMetaItem` and both `revertCommit` limbs declare no such key on their response types and objectstack-ai#14982 deliberately added none: there the projector is called and awaited, and a failure is logged without reaching the caller." Premise, read on `main` (`385ea1cc`), `packages/metadata-protocol/src/protocol-package-commits.ts`: - `revertCommit`, soft-remove limb and restore limb: each reads the projector's answer, and a `success: false` marks the item's step as not applied; an item with any such step settles into `failed[]` (row state named, the projector's own error text left on the log line) instead of `reverted[]`, and the revert answers `success: false`. Landed by PR objectstack-ai#33805 (`568f214a6c`), the sibling fix of PR objectstack-ai#34063. Pinned by `protocol.revert-commit-honest-outcome.test.ts` ("the projector failing on the restore limb…", "…on the soft-remove limb…"). - `rollbackMetaItem`: still `await host.runMutationProjector({...})` with the answer discarded, then `success: true`. **The 2026-09-04 sentence is kept for it** and the notes say so. - No `projectionApplied` key was added to either response type, so the first half of the sentence still holds; only "logged without reaching the caller" is stale, and only for the two `revertCommit` limbs. Four add-only insertions in `docs/adr/0094-sys-permission-set-pure-projection.md`; no existing character is removed or rewritten, no sentence moves: 1. `**Status**:` line: ` · **Amended** (2026-11-15, objectstack-ai#34077): …` appended in the form of the line's existing 2026-10-14 entry, narrowed to the `revertCommit` limbs, citing PR objectstack-ai#33805. 2. An in-place `⚠️ **Amended 2026-11-15 (objectstack-ai#34077 / PR objectstack-ai#33805)**` pointer indented under the 2026-09-04 bullet, right after the quoted sentence, anchored at `packages/metadata-protocol/src/protocol-package-commits.ts#revertCommit`. 3. **Beyond the card's two items (declared; accepted by review 6901691666):** the same pointer inside D2's own 2026-09-04 note, after "three of the seven call and await the projector without putting an outcome on the response." That note repeats the stale claim for the same two limbs; leaving one copy unmarked is the defect an at-tier review flagged on PR objectstack-ai#34063. Add-only, same narrowing. 4. **Fix round 1 (review 6901691666, S-1):** a⚠️ pointer directly below the amendment's door table, saying the `—` in the two `revertCommit` rows now means only that the answer carries no `projectionApplied` key, and that a projector failure there is reported through `failed[]` and `success: false`; the `rollbackMetaItem` row is unchanged. No table cell is touched. (N-2: the Status entry, text this PR adds, now names where the notes sit.) `docs/adr/README.md` is not regenerated: `adr-index` reports it current (the 0094 row's status cell truncates before the appended text). ## Tests None: docs-only diff, no code, no test. `skip-changeset` (`docs/adr/**` publishes nothing). ## Acceptance notes - Authoring ran in an isolated os-dev subagent pinned to the contract-review tier (`dispatch-gates --tier`: MANDATORY for `docs/adr/**`), effort xhigh, on this branch; this thread is served below that tier. Recorded here and in the report's deviations. - Same amendment, outside this card's surface, filed by the seat as objectstack-ai#34142 (serial after this card): its tripwire `git grep -c "this.runMutationProjector(" -- packages/metadata-protocol/src/protocol.ts` no longer answers `7`, because the call sites moved into facet files (`protocol-save.ts`, `protocol-history-and-publish.ts`, `protocol-diff-delete-load.ts`, `protocol-package-commits.ts`). The amendment itself says that answer means the table went stale. Not touched here. - Landing: expect Tier H (a grown Status line reads as -1/+1; the low-risk add-only reader refuses it). The PR stays a draft until a GOVERNED_APPROVERS approval. ## Verification Head `bd358f52` (fix round 1 on top of `2cc431b3`). `dispatch-gates --commands` derives the same 21 commands; all 21 re-run on this head, all exit 0; `--ran` reconciles: "21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero …)". The round on `2cc431b3` was also 21/21 exit 0. <details><summary>Gate record at bd358f5 (21 commands)</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:adr-index :: exit 0 pnpm check:adr-symbol-anchors :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> Add-only proof against `main`: `git diff --word-diff` shows 0 `[-…-]` runs over main's text (the line-3 word-diff inside the fix commit touches only text this PR added); stripping the four insertions reproduces the base file byte for byte. `git diff --check` clean; no control bytes. <!-- signed: domain:skills#2 · os-steve · session_01ADHkmT7hSxSj6X3GqfXJCn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Fixes #33850
Clause-②: no
Metadata-protocol: none
维护者速读
ba35dfd7时的样子。PR fix(metadata-protocol): revertCommit answers only what it achieved, and a revert is revertible #33805 和 PR fix(metadata-protocol): revertCommit reports a restored non-object item whose registry write-through faults #33979 合并后,撤销提交(revertCommit)会读五类行写入之后的故障,把条目放进failed[]并让success为 false;撤销提交记下每行被替换前的版本,所以「撤销这次撤销」能恢复;没有可恢复版本的条目会被点名而不是跳过。ADR 还在说旧行为。docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md文末新节的第一条和第三条(撤销读哪五类故障、哪些结果仍然不进failed[];第一轮的正文把这里写错了,后两轮改的都是这里);再看「What this replaces in the 2026-11-14 Amendment」清单;最后看 Status 行新增的那一条。pnpm check:adr-symbol-anchors && pnpm check:adr-index,预期看到 3632 个锚点全部解析,以及「docs/adr/README.md is current」。570a7460上为 PASS(记录 6898997083),但留了一条 should-fix 和一条 nit;处理它们之后的 heade6a8068b还欠一次增量契约评审,目前没有 PASS 记录指向这个 head。What changes
One file,
docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md, append and mark only (Prime Directive 13). No code, no test, no changeset.· **Amended** (2026-11-15, #33850 — …)entry is appended after the 2026-11-14 one. The line still opens withAccepted, so the index reading does not move (adr-index --report: README current).## Amendment (2026-11-15, #33850). It records what the two revert doors do onmain, read off the code atfb79d47c:failed[]with the row state, andsuccessis false: the registry write-through's answer, any storage advisory, the projector'ssuccess: false, the heal's answered stop where a row was removed, and a later throw.object. The non-object write-through faults and the heal's answered stop came with PR fix(metadata-protocol): revertCommit reports a restored non-object item whose registry write-through faults #33979.failed[]: registry heal outcomes that answer no stop, on either limb (an open list: among them the registry refusing to unregister a removed object, a package-scoped refusal of the baseline read, a degraded baseline read, a storedobject_extensionthat cannot be registered again, and the heal of a view container's member views, whose answer is not kept), the mutation event, and the stored-expression fill.reverted[].failed[], and nothing is written. Every revert commit recorded before PR fix(metadata-protocol): revertCommit answers only what it achieved, and a revert is revertible #33805 has that shape.rollbackToPackageCommitdocblock now says so (the[#33486]sentence, quoted).failed[].TL;DR 3's parenthetical and D3's second-bullet parenthetical still hold, so they are not marked.
Review round 1 (record 6898709078, FAIL on
36487820)failed[]. There are three: the heal outcomes that answer no stop were missing. The section now lists the five faults the revert reads, and lists the heal outcomes beside the mutation event and the fill. The section title, the Status entry, the mark on "does not decide" and the first "What this replaces" entry now say "the faults the revert reads". The mark at the top of "What the doors do" says the 2026-11-14 account of the heal (not reported, item inreverted[]) is still true for those outcomes. Each outcome was checked againstprotocol-registry-hydration.ts#restoreArtifactRegistryViewonmain.revertCommit,rollbackToPackageCommit,restoreArtifactRegistryView,RegistryHealStop,RegistryWriteThroughRequest).Review round 2 (record 6898997083, PASS on
570a7460, one should-fix and one nit open)failed[]. The heal outcomes are an open list ("among them") on either limb. Two outcomes are added, each checked onmain: for a removedobject_extension, a stored extension that cannot be registered again is only logged atwarn(protocol-class-head.ts#resyncStoredObjectExtensions); and the member views of a view container are healed byprotocol-registry-hydration.ts#reconcileViewExpansions, which does not keep the heal's answer, on the soft-remove limb and, through the write-through of a restored container, on the restore limb.Authoring tier. The ADR text, in all three rounds, was written by an isolated os-dev subagent pinned to the model tier fable (CONTRACT_REVIEW_TIER), because
docs/adr/**requires that tier and the card thread is served below it.Tests
No test changes. A docs-only diff has nothing to ablate. The text cites the existing pin,
packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts, by its describe and it names; that suite was not run locally (the diff touches no package) and runs in CI.Acceptance notes
main. Each was checked against the code atfb79d47c. Main has moved to63db7240since; the files the section reads (protocol-package-commits.ts,protocol-registry-hydration.ts,protocol-class-head.ts,protocol.ts,protocol-package-commit-record.ts, the pin test) are unchanged across that range.0bbb211f, for metadata-protocol: registry write-through faults for non-object types are only logged, so revertCommit cannot report them #33851). The section names both PRs and says which did what.revertCommitsays "one item per row the walk changed", but the soft-remove limb also adds a plan item when it found no row to remove. The ADR section states what the code does. class: observation, carrier: none.origin/mainthe diff has two removed lines, and each is a prefix of the line that replaces it (the Status line and D3's first bullet). Everything else is insertion: +209 / -2.Verification
All readings are on head
e6a8068b(round 2's fix commit on top of a merge oforigin/mainat63db7240). Round 2 handled S-2 and N-5.git diff --name-only origin/main...HEADlists the ADR file only.Derived gates: 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE(exit 0): "Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN." and "21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3)."The one build the list needs,
pnpm turbo run build --filter='@objectstack/lint...' --concurrency=2, ran under the verify lock:VERDICT command-exit 0 · held the lock 1s(a cache replay of round 0's 86 s build).ADR registry, status line and anchors
pnpm check:adr-index(exit 0): "adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green." The new Status entry needs no README regeneration, so the file surface stays at the one ADR.pnpm check:adr-symbol-anchors(exit 0): "3632 anchors across 156 records resolve — 1057 symbol (1030 declaration, 27 literal), 2523 file-level, 52 cross-repo, 6 exempt, 73 continuation. 0 line anchors survive". On the base treefb79d47cthe same gate read 3622 anchors, 1050 symbol, 2520 file-level, 72 continuation. The difference is this PR's anchors, all resolving.pnpm check:adr-anchors(exit 0). It is in the derived list above.CI is not awaited here; its check-runs are the authority for every family outside the 21.