Files
dotfiles/scripts
David F GliddenandClaude Opus 5 cb8cab58a8 [FIX] REVIEWED-132: widen the register-integrity control to the record
Option (a) on conditions 1-4. The check read only REVIEWED.md, only `##`, and only
headers starting with the literal word AMENDMENT. It now reads all three registers
at `##` and `###`, recognises ADDENDUM, and computes `originals` across registers
because a parent may be archived while its amendment stays open.

Condition 1's default is inverted: a header is an ORIGINAL only if it carries an
identifier and no marker. Compound headers are excluded from originals, not
admitted to them, so an ADDENDUM can no longer satisfy "an un-amended entry
exists" on behalf of a record that was replaced.

Condition 3 did its job on my own code. Enumerating rather than counting returned
89 against the item's 82; the surplus was six prose titles — "Citation amendment
(#2)", "Dream amendment" — matched by an upper-cased containment test and struck
off `originals`, which is the mirror of the bug being fixed and would have raised
false "the record was replaced" findings. Markers are now uppercase standalone
tokens, with controls in both directions. The enumeration then agrees with the
item's method at 82; the remaining +1 against the filed table is this session's
own later filing, reported rather than reconciled away.

⚠ The widening is the floor, not the fix: 48 of the blocks carry no item number
and are reported NOT ESTABLISHED, never passed. The prospective-convention
question belongs to PENDING-146 and is deliberately not decided here (cond. 5).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wn9mxsFjHJkzYjuDdrtxwp
2026-08-31 11:49:02 +02:00
..