Files
RedBear-OS/local
kellito e1c2e79584 build: wire make scratch-rebuild + postmortem to 13-session
Two follow-up items from the #10 PARTIAL commit (0f8ad8a50):

1. Added `make scratch-rebuild` target to the Makefile. The
   v2 of scratch-rebuild.sh supports running without --dry-run
   but there was no actual make wrapper for it. The new
   target runs the script in non-dry-run mode (deletes
   target/<arch>/{build,sysroot,stage.tmp}/ per recipe in
   the closure and re-cooks in dep order). JOBS=N (default 4)
   controls the parallel rebuild workers. Verified end-to-end:
   the rebuild correctly deletes the 6-recipe closure's
   build dirs and starts a parallel cook. m4 succeeds; bison
   fails (missing host toolchain dep) — the failure is
   correctly captured to the log without aborting the script.

2. Updated BUILD-SYSTEM-V6-HARDENING-POSTMORTEM.md to reflect
   the 13-session / 9.5-DONE / 120-Python-test state:
   - Added Session 13 entry covering #10 foundation + tests
     + the Python regex gotcha discovered during testing
     (`^[[:space:]]*` vs `^[\s]*`)
   - Updated test count: 99 -> 120 Python (now 7 test files
     in local/scripts/tests/, was 4 at session 1)
   - Updated scope line (12-session -> 13-session)
   - Updated durability caveat (10 most recent commits -> 11
     most recent commits; added `0f8ad8a50` and `9e5794ea7`)
   - Updated 'What remains uncommitted' table
   - Updated commit history table with rows for
     `827895d32`, `9e5794ea7`, `0f8ad8a50`
   - Added `test_scratch_rebuild.py` row to test coverage
     table

BUILD-SYSTEM-IMPROVEMENTS.md was already updated in the
#10 commit (PARTIAL status, make target table, Implemented
#10 entry). This commit re-confirms those updates after
the postmortem rebalance.

Total state:
  - 9.5/10 build-system improvements DONE (1 PARTIAL on #10)
  - 120/120 Python tests + 27/27 Rust tests pass
  - 10-job Gitea Actions pipeline

The build-system hardening arc is now as complete as a
single-session work scope allows. Further work requires
either the multi-day #10 full L-sized verification, the
multi-week #7A QML gate, or one of the larger blocked cooks
(sddm, KF6 dep chain).
2026-06-12 16:24:34 +03:00
..