Repository navigation
v1.12.1 — log rotation carries the stage line and versions the archive
Summary
The first real log rotation, run with the v1.12.0 procedure, came back with two DRIFT it had not anticipated:
- The stage line moved to the archive. Check 16 reads
Stage:from_log.mdonly, so a set pastdraftreported a transition that never happened. The rotate entry now carries**Stage:** <status> → <status>, marked as carried. - The archive had no version. Named in
Edits:without a line count and blob, it is a set file check 16 asks a version of. It is now recorded inArchived:andEdits:with both.
The procedure also contradicted itself: it kept recent rounds in _log.md and still numbered the rotate entry R<k+1>. The rotate entry is now numbered after the last round, opens as a stub like any round, and the split is verified to reassemble the original byte for byte before either file is written.
Documentation only; audit.py unchanged. After applying the amended steps, the rotated set audits clean.
Test plan
-
python3 tests/test_audit.py— 283/283