Skip to content

docs(metadata-protocol): rollbackToPackageCommit docblock says each step records its revert commit; the record is best effort #33486

Closed

Description

@objectstack-fleet

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Filing gate: ① (a follow-up owed by work in flight). Contract review 6884842817 on PR #33465 (card #32504) found that the "revert commit is recorded" claim overstates what the code does, and sent the copy outside that diff to a follow-up.

What is wrong

The rollbackToPackageCommit docblock in packages/metadata-protocol/src/protocol.ts (on main, just above async rollbackToPackageCommit(request) says each step "reverts the item's neighbours and records its revert commit". The record write is best effort. recordPackageCommit (protocol-package-commit-record.ts) catches every error, including an unprovisioned sys_metadata_commit, logs once at info (unprovisioned) or at error, and returns null. revertCommit then leaves revertCommitId out of its answer and returns normally. So a step that returns may have recorded nothing, and that revert is then on no package-commit timeline and cannot itself be reverted as a commit.

Fix

Prose only, in that docblock: "attempts its own revert commit (best effort: when the commit store is unprovisioned or the write fails, nothing is recorded and the answer omits revertCommitId)". This matches the ADR-0067 amendment that PR #33465 adds. A patch changeset for @objectstack/metadata-protocol is owed, because TSDoc ships in the .d.ts.

Out of scope

Whether revertCommit or rollbackToPackageCommit should become atomic is a maintainer decision. The ADR-0067 amendment's "What this amendment does not decide" section names it.

Blocked-by: #33465 (same ADR wording; land after it)

Activity

  1. added
    finding
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · lease:E1 · p3 · pm:queue · 2026-11-14T22:46Z

    ⛔ Not a claim.

    Docblock prose in protocol.ts (E1 is the hot-file owner): the revert-commit record is best effort. p3.

  3. added
    documentation
    domain:server
    pm:queue
    on Nov 14, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jRsWwTRkuRCyQwvpAG

    Claim: server area-lease pilot (#33059), area E1, dispatched by seat domain:server#5 · p3 · folded set #33563 (lead) + #33564 + #33486 (p3 ride-along), this card is the ride-along · executed by an os-dev card thread · posted at 2026-11-15T09:12Z
    Session: session_01QsR2jSn6n7eb34wbyxhZja
    Account: zhuangjianguo
    Branch: claude/project-thread-gv2u7w
    Worktree: objectstack-issue-33563
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/metadata-protocol/src/protocol-package-commits.ts (revertCommit, readRevertableCommit, rollbackToPackageCommit docblock), protocol.ts only for docblock or facet wiring, their tests, a changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default (no path-derived mandate; dispatch-gates --tier at 53f5a4c9), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: metadata-protocol revertCommit reports outcomes it did not achieve (objectstack) | none | every AI-authoring revert and rollbackToPackageCommit step
    Thread-read: 6885409950
    Premise: holds
    Serial constraints cleared: #33621 (os-elon-musk: protocol-save.ts, registry-question.ts) and #33570 (seed-loader.ts) do not touch this function; protocol.ts is E1's hot file and this seat holds E1. Fold gates ①–⑤ answered in the order: same defect shape, one file, all graded, each checkable alone, look-alikes #33127 #32958 excluded.
    Order: /mnt/project-files/server-seat-5/order-33563.md · governing text: the revertCommit docblock and ADR-0067 D3 (as merged in #33465); the code aligns with them.


    Generated by Claude Code

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

    @objectstack-fleet
    ContributorAuthor

    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).

    Reading Value
    PR #33805, state MERGED
    Card closed (completed) by the PR's closing keyword

    State change: pm:dispatched removed. Domain, area, lease and priority labels stay.

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

Metadata

Metadata

Assignees

Labels

documentationdomain:serverfindingpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions