Files
dotfiles/scripts
David F GliddenandClaude Opus 5 70440db147 [FIX] REVIEWED-131: build (e) and (c), and annotate the digest per (b)
(e) parked_workers reads ~/.claude/jobs/<id>/state.json's respawnFlags — harness
state, not the session, so its enforcement does not depend on the party checked.
Fails to NOT ESTABLISHED, never to safety: a missing dir, an unparseable
state.json, and an absent respawnFlags are each enumerated rather than counted as
"no parked workers" (cond. 1).

(c) human_turns counts genuine human turns in a transcript, discounting
hook-injected and /clear-/exit records. Retrospective by construction and says so.
Output names which control produced each line (cond. 2).

(b) the OPEN QUESTION field is marked orientation-not-instruction, in the code and
in the output, explicitly not a control (cond. 3).

Two corrections found while building. json was never imported, which the top-level
guard would have turned into WAKE DIGEST UNAVAILABLE at every session start — the
selftest caught it on first run. And the first draft asserted that a STOPPED job
carrying the flag would take a turn on restart; whether the daemon respawns a
stopped job is NOT ESTABLISHED, and it now says so rather than claiming either way.

previous_session() lifted out of sec_unwrapped so both consumers share one
definition of "the session before this one" — this file already refuses a second
definition of "an item".

Controls run in both directions, two of them against the real transcripts:
b7e7eb39 (the unattended session) returns 0 human turns, this session returns 10.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wn9mxsFjHJkzYjuDdrtxwp
2026-08-31 11:49:02 +02:00
..