From eef14d7bce0cfe6c7fb00270bf2b02c92aae8bce Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 16 Aug 2026 22:54:04 +0200 Subject: [PATCH] Move the trace-harness detail into the verification doc Adding it to the handoff pushed that file to 280 lines -- the handoff is not exempt from the cap it exists to enforce. The usage, the two caveats (stubs always exit 0; unstubbed binaries run for real) and the proof it catches both bug classes now live in docs/shell-split-verification.md, which is the file dedicated to exactly this. The handoff keeps a pointer. Also dropped the per-directory count table, which carried a "do not work from this table" warning and went stale every session, and compressed the co-agent narrative to the diagnostic commands worth keeping. 280 -> 246. Recorded there too: the harness needs no main(), which matters because none of the remaining near-miss shell targets have one, so verify_shell_split.sh cannot check any of them. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY --- docs/shell-split-verification.md | 37 ++++++++++++++++ refactor_claude_todo_resume.md | 74 +++++++++----------------------- 2 files changed, 57 insertions(+), 54 deletions(-) diff --git a/docs/shell-split-verification.md b/docs/shell-split-verification.md index 1aeb2302..67921da9 100644 --- a/docs/shell-split-verification.md +++ b/docs/shell-split-verification.md @@ -52,6 +52,43 @@ the system, and diff the generated artifacts against a detached worktree at the pre-split commit. That comparison is what proved the fix — same file set, every text artifact byte-identical. +### `trace_shell_split.sh` — the run, made routine + +`meta/scripts/trace_shell_split.sh` (added 2026-08-16) does the stubbed run for +you. It shadows ~30 mutating binaries (`sudo`, `pacman`, `systemctl`, `adb`, +`nft`, `mount`, `mkinitcpio`, `reboot`, …) with `PATH` stubs that record each +call and exit 0, runs the script, and prints a diffable trace: exit status, +stubbed calls in order with arguments, stdout, stderr. + +```bash +# baseline, in a detached worktree at the pre-split commit +meta/scripts/trace_shell_split.sh