2843ffde
docs: record the 2026-09-02 hygiene run
a73x 2026-09-02 09:28
Commit message
docs/decisions.md
| Old | New | ||
|---|---|---|---|
| @@ -7781,3 +7781,42 @@ listening" instead of someone's real daemon. The usage block grew a line | |||
| 7781 | with `[HOST]`, so the boot leg's absolute refusal bound moved 15 -> 16, | 7781 | with `[HOST]`, so the boot leg's absolute refusal bound moved 15 -> 16, |
| 7782 | re-derived the way its comment derives it (above complaint-plus-usage, | 7782 | re-derived the way its comment derives it (above complaint-plus-usage, |
| 7783 | below the ~20-line Debug panic floor). | 7783 | below the ~20-line Debug panic floor). |
| 7784 | |||
| 7785 | ## 2026-09-02 — hygiene run: figures, dead pub, a socket leak filed | ||
| 7786 | |||
| 7787 | **What was measured.** Every figure in CLAUDE.md's reading guide was | ||
| 7788 | re-run with `wc -l`: `client.zig` and `wallview.zig` had each grown a | ||
| 7789 | hundred lines past their stated size, one server test file and one wall test | ||
| 7790 | file sat a few lines over their "none over" bounds, and the comment ratio | ||
| 7791 | read 36% of Zig bytes as whole `//` lines, not the 44% stated (the method is | ||
| 7792 | now named beside the number). `tools/deadcode.sh` listed twenty `pub` decls | ||
| 7793 | referenced by nothing outside their own file; every one lost its `pub` and | ||
| 7794 | the compiler agreed. `client_core.zig` was the one module root without a | ||
| 7795 | `//!` header (collab 2432d35e, closed). `make check` and `make ci` green | ||
| 7796 | before and after: 107 e2e scenarios, 38 convergence points, agent 10/10, | ||
| 7797 | throughput within its bounds. | ||
| 7798 | |||
| 7799 | **What was found and not fixed.** Five `mux-ask-<pid>.sock` files sat in | ||
| 7800 | the real `$XDG_RUNTIME_DIR`, every pid dead: the wall unlinks its prompt | ||
| 7801 | socket on the normal exit and on error returns, and nowhere else, so a | ||
| 7802 | wall that dies by SIGHUP or a kill leaves one per death. Filed as collab | ||
| 7803 | f97d2808 with the two fix shapes; the five were removed by hand. Patch | ||
| 7804 | 3262d8a5 (collectLeafIds propagates its allocation failure, the forge-3 | ||
| 7805 | spike's first product) cherry-picks cleanly onto main and passes | ||
| 7806 | `make check`; it is verified, not merged. `.zig-cache` is 124 GB on a disk | ||
| 7807 | with 272 GB free — not cleared, because a clear costs every build a cold | ||
| 7808 | start and nothing was blocked on the space. Also left as found, for the | ||
| 7809 | owner to decide: the `stash@{0}` of 2026-08-30, whose flagged comments in | ||
| 7810 | `main.zig` no longer exist; the `origin/worktree-web-client-spec` branch | ||
| 7811 | (one 2026-08-11 spec commit never merged); `wall` and `wall.bak` in the | ||
| 7812 | state dir, retired with the wall file; and sixteen `/tmp/e2e*.out` | ||
| 7813 | captures from 2026-09-01 hand runs. | ||
| 7814 | |||
| 7815 | **What `/tmp` said.** 12,008 `mux-e2e-out-<pid>.*` captures from 161 dead | ||
| 7816 | runs over six days, the `.h*` suffixes of the hosts group — killed | ||
| 7817 | `E2E_ONLY` loops, since a run that reaches its trap sweeps `$OUT.*` and | ||
| 7818 | today's full `make ci` left none. Everything older than today was removed; | ||
| 7819 | today's 1,875 stayed. And 31 `mux-agent-<pid>-<hash>` dirs from dead | ||
| 7820 | daemons, four of them left by the green ci run itself, so the leak in | ||
| 7821 | collab 68dc4c90 is reached by the suite's own legs and the leak sweep does | ||
| 7822 | not count it; noted there, removed here. | ||