📝 Gremlins code verdict, grotto plan-structure brainstorm, journal

This commit is contained in:
2026-10-16 22:47:59 +02:00
parent bef84b3391
commit dff19572ab
3 changed files with 199 additions and 0 deletions
@@ -195,6 +195,13 @@
- User: push as is, they want to see it. Pushed `headless-forks` at 0f31ef4 (3.1–3.7 done; 3.8 still running in the Athanor, so its commits will need a second push). Not merged.
- User: arrive at a timely end; nothing left is essential. Stopped the Athanor mid-3.8 (it was starting the full suite; no processes left behind). Skipped the Phase 3 review. Committed the unfinished 3.8 changes (README line, version bump in both manifests) as WIP `ab1d945` and pushed. The branch `headless-forks` is the prototype record, **not for merge**.
- Session closed here. Direction the user is weighing: a minimal rewrite, with blocking Bash calls plus `run_in_background` (the harness's own background and notifications), no detached supervisor, only the needed commands. Or straight to the Rust app.
- 22:41 — User asked for a subagent verdict on the code. Dispatched general-purpose (opus, 25 min timebox): keep/delete/minimal version, plus a usability check (`where` + one tiny live happy-path smoke) → reports/2026-10-16-22-gremlins-code-verdict.md.
- The user's thoughts on grotto (plans need code structure; happy path first, then abstractions, then iterate; Opus can throw code away; simplify via match and layering; how much can Opus write in one go?) are recorded in brainstorm/2026-10-16-22-grotto-plan-structure.md.
- Code verdict back (claude-opus-5-5): reports/2026-10-16-22-gremlins-code-verdict.md.
- It works: a live happy path on sonnet-5-5 (init, train, spawn with a cache hit, usage, expire) ran clean for $0.09, nothing left running. It is careful and well tested, but 4–5× too big.
- About two thirds is detached-process policing; most of the rest is unrequested heuristics.
- Recommendation: keep stream parsing, usage and cache accounting, env scrub, the argv builder and templates; replace the supervisor with a blocking call under `run_in_background`; ~600–800 lines.
- Pre-rewrite check: does TaskStop on a backgrounded Bash call kill the claude.exe grandchild?
## Adepts