Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions docs/WORKTREES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1097,8 +1097,16 @@ a whole seat at once, and a long-lived seat branch never clears.
is in the vault (`CLAUDE.md` section 5). Without `-LedgerRepo` it reads this repository's stub,
which holds no item, and refuses. With it, every banner is read from that checkout's `origin/main`, pinned to one SHA that the report prints beside the
checkout's path, and a checkout with no `origin/main` refuses rather than read its local `main`. The
claims, branches and citations stay this repository's. Fetch the vault checkout first: a banner it
has not fetched reads as absent.
claims, branches and citations stay this repository's.

**Fetch the vault checkout first. A stale one errs both ways.** A banner it has not fetched reads as
absent, which holds a claim that is safe to release. An item reopened since its last fetch still
reads CLOSED there, which prints a release line for open work. So the run refuses a ledger it
cannot show is recent, a `-LedgerRepo` that shares a root commit with this repository, and one that
carries this repository's package, which is an engine checkout or a vault checkout last fetched
before 2026-09-26. The recency bound is a floor, not proof of a recent read: at least
`git fetch --append` can make an old fetch look recent. The conditions are in the script's header,
*A STALE LEDGER*, and are not copied here (BACKLOG #5480, items 5 and 10).

### The criterion is the project's own, and it is not "is the work done"

Expand All @@ -1110,6 +1118,20 @@ question is not whether the work finished but whether something durable has repl
> **SUPERSEDED** = the item exists in the backlog namespace on `origin/main` **and** its banner there
> already protects it — a CLOSED status glyph, or a do-not-rebuild banner naming the landing.

A do-not-rebuild banner does not count where any line of the banner carries an OPEN status symbol,
or a banner line opens with an unknown symbol in Unicode's Other Symbol category (most emoji). It
still counts where neither stands, so at least an item marked open only in words, such as
`**PARTIAL**` with no status symbol, supersedes on it. An item whose number stands more than once
supersedes only when every copy the script reads protects it. At least a copy whose heading number
uses digits outside Unicode's Basic Multilingual Plane, or has `\x1f` after its dot, is not read,
as on `origin/main`. A banner line opening with such an unknown symbol
holds the item; the report names the symbol and says to correct the ledger row, or to add the
symbol to the script's lists where the vault has adopted it as a status. An unknown symbol of
another category, at least an arrow or a letter, is not held on. Correcting the row is
also the remedy for every other held item whose copies do not each read as one open status, at least
a row with no status line. The script's `Get-BannerState` and its item index state the
exact rules (BACKLOG #5480, items 1 to 3).

Nothing else is ever proposed for release. Not age, not quiet, not a note saying the work is done.
The tool has **no `-Apply`** and will not grow one: `claim.ps1` owns the `.history` ledger and writes
the record before removing the file (BACKLOG #1068), and a second writer would be a second definition
Expand All @@ -1130,12 +1152,19 @@ Each was tried against the live data on 2026-08-18 and produced a wrong answer.
`SUPERSEDED` is a **floor** on what is safe to release, never a ceiling on what has landed. Every
other verdict is a question the instrument could not close, not a finding that the work is live:

- **BLOCKING** — nothing on `origin/main` protects the item, so the key is stuck in the worst way:
unclaimable *and* unbuilt. These are **grouped by branch**, because that is where the decision
lives — one *land it or abandon it* call cleared nine keys at once on the day this was written.
A claim that records no branch has no such decision, so those keys are listed one by one.
- **BLOCKING** means that not every copy of the item protects it on `origin/main`, so the claim stays.
Each key prints its own state, file and copies. Where every copy reads as one open status,
nothing protects the item, and the branch needs one *land it or abandon it* decision for those
keys. Held keys are **grouped by branch**: one call cleared nine keys at once on the day this was
written. A claim that records no branch has no such decision, so those keys are listed one by
one. Any other held key names its cause. Correct its ledger row and adjudicate again before any branch
decision: the item may already be built.
- **NO-ITEM** — the key is outside the backlog namespace (`ha-recheck-inc145`, `usage-forecast` on
the live registry). The instrument does not reach it. That is not a finding about the work.
A key also reads NO-ITEM where its copies would release it, but none stands, under the number as
the claim spells it, in a file that may release a key. Of files whose names differ only in case,
only the last one in git's order that holds an item heading may. The report names the file.
Rename files so no two names differ only in case.
- **STRANDED-REGISTERED** — half a removal. `prune-merged.ps1` owns it and releases as it removes.
- **UNREADABLE** — `claim_check.py` reads a malformed claim as *unclaimed*, so the key is already
ungated. Deleting the file would hide that rather than fix it.
Expand Down
Loading
Loading