Skip to content

ADR-0067 status line: the 2026-11-14 "What the doors do" amendment still describes revert before PR #33805 #33850

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

Loose end of PR #33805 (Fixes #33563 #33564 #33486, merged 11-15), carried by the seat.

维护者速读

  • 内容:只改 ADR-0067 的状态行,不改代码。fix(metadata-protocol): revertCommit answers only what it achieved, and a revert is revertible #33805 已经改了“回滚提交”的行为,但 ADR 里 11 月 14 日那段说明写的还是改之前的样子。
  • 改什么:写明回滚时记录真实的上一版本号,所以“回滚的回滚”能还原;写入后出错的条目进入失败列表,并写明行的状态;旧的回滚提交没有版本号的会被点名,不会跳过。
  • ADR 属受管文件,需要您亲手合并。

What to write

The 2026-11-14 amendment section "What the doors do" in ADR-0067 says two things that are no longer true after PR #33805: that a revert item's prevVersion is null, and that faults after the row write fall outside failed[]. On main now:

  • Each row's active version is read before its write and recorded as the revert item's prevVersion (existedBefore = the row was there). So revert-of-revert restores on both limbs. An existedBefore item with no prevVersion (every legacy revert commit) is named in failed[], and nothing is written.
  • An item whose row was written but whose registry write-through refused, whose storage sync was refused, whose projector answered success: false, or where a later step threw, goes into failed[] with the row state named, and success is false. The revert commit is built from the rows actually changed.
  • rollbackToPackageCommit's revert commit is best effort (the docs(metadata-protocol): rollbackToPackageCommit docblock says each step records its revert commit; the record is best effort #33486 docblock).

A dated status-line amendment citing PR #33805 records this. No code, test or changeset.

Reader

domain:skills (docs/adr/** is governed: maintainer merge). Size XS.


Generated by Claude Code

Activity

  1. added
    documentation
    priority:p2
    pm:queue
    domain:skills
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first-touch audit → domain:skills · p3 (from p2) · 2026-11-15T14:21Z

    ⛔ Not a claim. Requested by domain:skills#2 (mailbox comment 6895790921).

    ADR-0067's 2026-11-14 "What the doors do" amendment still describes revert as it was before PR #33805 (null prevVersion, post-write faults outside failed[]). The code on main is right and nothing waits on this text. It is a documentation accuracy fix, so p3 (#32997: docs). Maintainer merge (governed).

  3. added and removed
    priority:p2
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Claim: PM loop round 1
    Session: session_01ADHkmRxXmVQ41fqnaTPGAv
    Account: os-steve
    Branch: claude/project-thread-jpbomr
    Thread session: session_01ADHkmSFzVdDvrh768eFPoV
    Worktree: objectstack-issue-33850
    Domain: domain:skills
    Seat: domain:skills#2
    File surface: docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md only, append and mark only; skip-changeset (stop on breach; explain in the report)
    Container & model: XS, mode:thread, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY claude-fable-5-2 — docs/adr/** by the 2026-10-25 order), effort xhigh (the ADR floor); the thread is served below that tier, so authoring runs in an isolated os-dev subagent pinned to it on the same branch, recorded in the PR body and deviations.
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6895981114
    Premise: holds (PR #33805 merged 11-15; the 2026-11-14 "What the doors do" amendment still describes the pre-#33805 revert — each point re-verified against main's code by the author)
    Serial constraints cleared: none — no in-flight claim or open PR of this lane on ADR-0067.
    Ruling-ref: loose end of PR #33805; Steve opened p3 for the skills lane (2026-11-15T17:13Z) with p1/p2 first and none dispatchable. Order: /mnt/project-files/skills-seat2/standard-order.md + 33850-delta.md (project files). Claimed 2026-11-15T17:16Z.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmSFzVdDvrh768eFPoV
    os-dev-report

    {
      "issue": 33850,
      "status": "done",
      "branch": "claude/project-thread-jpbomr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34063",
      "session": "session_01ADHkmSFzVdDvrh768eFPoV",
      "premise_still_valid": true,
      "summary": "ADR-0067 only, append and mark only. A 2026-11-15 Amended entry on the Status line (it still opens with Accepted; adr-index says README current), a new 2026-11-15 Amendment section at the end, and three in-place marks: a warning blockquote at the top of the 2026-11-14 'What the doors do' section, a warning line under that amendment's second 'does not decide' bullet (the code answered both questions; atomicity stays open), and a parenthetical appended to D3's first bullet. All three card facts hold on main and are quoted from the code at fb79d47c (protocol-package-commits.ts revertCommit: rowWritten, notApplied, settle, the catch branch, replacedVersion, the existedBefore-with-no-version branch, items: revertPlan; protocol.ts rollbackToPackageCommit docblock, the [#33486] sentence). One attribution differs from the card: the non-object registry write-through faults and the soft-remove limb's heal stop reaching failed[] came with PR #33979 (0bbb211f, for #33851), not PR #33805 (568f214a); the section names both. TL;DR 3's parenthetical and D3's second one still hold and are not marked.",
      "tests": "No test changed and none run locally: the diff touches no package, and a docs-only diff has nothing to ablate. The cited pin is packages/metadata-protocol/src/protocol.revert-commit-honest-outcome.test.ts (four describes: [#33563], [#33564], two [#33851]); it runs in CI. All gate readings are on head 36487820.",
      "gates": "Head 36487820 (amendment commit 68e0d387 + merge of origin/main e71ecc1b). git diff --name-only origin/main...HEAD = the ADR file only. dispatch-gates --commands --repo objectstack-ai/objectstack: 21 commands, each exit 0 (exit captured to file before any pipe): check-adr-links (+ --self-test), check-closing-keyword-parity (+ --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, @objectstack/lint check:doc-formula-expressions, check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check:ci-filter-parity, check:closed-ceremony-text, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-prior-rulings, check:refd-timer-probe, check:watch-hint-literal. --ran (alone, exit 0): 'Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN' and a DERIVED zero. Lint closure build under the verify lock: 'VERDICT command-exit 0 · held the lock 86s'. adr-index: 'docs/adr/README.md is current, every record parsed'. adr-symbol-anchors: 3630 anchors resolve (base fb79d47c: 3622; +5 symbol, +3 file-level are this PR's). PR check-runs at report time (28): Check Changeset success; skipped: Auto Label, Packed-tarball smoke (opt-in) x2, 18.x upgrade harness (opt-in) x2, Queue verdict, Borrowed queue verdict, Schedule gate, plus a second Check Changeset and Check PR Size entry; in_progress: Lint (repo & tooling, scoped slot lookup & corpus, ESLint, CI release & engine, PM dispatch-gates, scoped query-options erasure, docs & code guards, scoped tooling self-tests), Type Check (consumer gates, debt ledger, workspace, source gates), filter, Governed Surface Queue Guard, Check Documentation Links, Check PR Size, PR-body guards. CI not awaited.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — mcp__github__pull_request_read (get, get_check_runs); no write tool",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, with labels skip-changeset and assignee os-steve in the same stroke, request fw-20261115T173308Z-3f0b56); this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/33850/comments via post-stamped). Two git pushes are not REST writes.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: none (observation) · carrier: none · noted, not filed: the comment above revertPlan in protocol-package-commits.ts says 'one item per row the walk changed', but the soft-remove limb pushes a plan item also when it found no row to remove (existedBefore false, prevVersion null). Reverting that item later removes nothing; no wrong answer at a public door. The ADR section states what the code does."
      ],
      "files_changed": [
        "docs/adr/0067-commit-history-and-rollback-for-ai-authoring.md"
      ],
      "line_budget": "n/a — no ratchet file touched (ADR +171 / -2; both removed lines are prefixes of their replacements)",
      "deviations": [
        "The ADR text was authored 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.",
        "The branch carries a merge of origin/main (36487820, onto e71ecc1b): after the first push, dispatch-gates reported STALE TREE (main had moved 5 commits and two files the families derive from had changed), so main was merged and every gate was run on the merged head. git diff fb79d47c origin/main -- packages/metadata-protocol/src/ is empty, so the reading at fb79d47c stands.",
        "The shallow clone was deepened by 400 commits to find the merge commits of PR #33805 and PR #33979 with git log --grep.",
        "The worktree /home/user/objectstack-issue-33850 was made by the card thread and is left in place for it (not removed by this run).",
        "The 2026-11-14 'Recorded by' paragraph and its individual stale bullets carry no mark of their own: the one blockquote at the top of the section names the stale points, and the new section lists each replaced sentence.",
        "The PR body's first line is the harness attribution comment, as the dispatch order requires; no other HTML comment was written."
      ]
    }

    Stamped 2026-11-15T17:34Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    ACCEPT → PR #34063 comment 6899262793 (head e6a8068b, Tier H, held for the maintainer; at-tier review 6898709078 FAIL → delta 6898997083 → delta 6899250735 PASS on this head). O-1 filed as #34077.

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:skills#2 · os-steve · session_01ADHkmRxXmVQ41fqnaTPGAv

    Landed: PR #34063 merged at merge commit 22438726f35d0aa868f8c7570eac8d3fa2761302 (head e6a8068b; merge queue; Tier H, merged by os-zhuang), recorded 2026-11-16T05:19Z; card closed by its Fixes line. pm:dispatched released.

  9. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationdomain:skillspriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions