I2761 — A branch that renumbered its decision away claims nothing at the old number
Count a ref as claiming an ADR identity only while its tip carries the document, so that renumbering one of two colliding decisions clears the collision for the other branch.
PŘIPRAVENO vlna 0 · p1 · profil implementation · bezpečné paralelně
Součást development-runtime — The runtime has a development surface.
Připraveno. Všechny závislosti jsou hotové, takže majordomus plan start I2761 bude přijato.
Cíl
Count a ref as claiming an ADR identity only while its tip carries the document, so that renumbering one of two colliding decisions clears the collision for the other branch.
Proč
On 2026-10-16 two sessions took ADR 0168 within minutes: #947 (the d8 mesh segment) and #1293 (I1101). The landing seat decided that #947 keeps 0168, and #1293 renamed its decision to 0169 and pushed. #947's commit was still refused by the pre-commit hook with `identity 0168 is also claimed by .ai/repo/adrs/0168-what-an-adoption-leaves-behind-is-measured-not-remembered.md, on: docs/adoption-footprint-forensics`. mj_adr_collisions asks which refs contain the commit that once added the path, and #1293's branch still contains that commit in its history. No branch carried the document any more, and the only way past was --no-verify, which this repository forbids.
Aktuální stav
mj_adr_collisions reports a collision for every path that any ref's history ever added, for as long as any ref contains that add-commit, whether or not the document still exists at the ref's tip.
Cílový stav
A ref claims an identity while `git cat-file -e <ref>:<path>` holds. A path that no current tip carries is no collision, whereas one in an unreferenced commit is still reported as before. The allocator (`adr next`) is unchanged: a withdrawn identity stays spent there.
Rozsah
- lib/adr.sh
- test/cases/271_adr_allocation.sh
- .ai/repo/project/issues/I2761.yaml
Závislosti
Žádné. Tento úkol je kořenem grafu.
Kritéria přijetí
- adr check passes on a branch taking an identity whose other claimant renumbered its document away and pushed
- the renumbered document still collides at its new number, naming the branch
- případ 271 selže proti masteru bez změny
Validace
- bash test/run.sh 271_adr_allocation
- bin/majordomus plan validate
Požadované důkazy
- renumbered_claim_case
Důkazy
Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.
Časová osa
- zahájeno
- —
- ověřeno
- —
- dokončeno
- —
Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.
Canonical record: .ai/repo/project/issues/I2761.yaml. Read it back with majordomus plan show I2761.