Skip to content

v0.292.1

Choose a tag to compare

@ben-s-github-releaser ben-s-github-releaser released this 12 Nov 04:48
· 1768 commits to master since this release
  • docs: the resume's cwd rule now carries an orphan branch, so path B can be used for the case it exists for. The rule named one source — the session registry (~/.claude/sessions/<pid>.json, field cwd) — and refused a session whose record carries no cwd. ⚠️ Those two requirements cannot both hold for an orphan, and the collision is structural rather than incidental: a registry entry is deleted when its session exits (this repo's CLAUDE.md registry table states it for the ~/.claude/sessions/<pid>.json row; scripts/who-needs-me.py and scripts/session-exit-record.py restate it), and the auto-resume gate's own liveness clause reads no live id on any id (agents/goal-drive.md, step 3) — so the source the recipe names is absent by construction exactly when the recipe is needed. Measured 2026-10-10 on this host: 38 of 38 sampled registry records carried a live pid (no stale residue to fall back on), and 3162 of 3204 top-level session transcripts had no live registry entry. The rule now resolves from the first of two sources — the registry, then the session's transcript (find ~/.claude/projects -name "<session-id>.jsonl", its first entry carrying a cwd) — and the refusal is corrected to guard a cwd-less record rather than a missing one: a record that exists without a cwd is still refused, while a session with no record selects the transcript. ⚠️ The transcript's first cwd, never its last and never the project-directory name, and both alternatives are rejected on measurement rather than taste: the first cwd-carrying entry equals the registry's cwd for 38 of 40 live sessions (one exception a symlink alias — Personal → private-personal — the other a genuine drift, the transcript recording the launch directory), while the last entry differs for 21 of 39, because it records where the session had cd'd to — several of those landing outside every configured vault that item 8 refuses; the project-directory name is a lossy re-encoding (- is both its separator and a legal path character) that can carry a symlink alias. ⚠️ Three surfaces that restated the rule now point at its single home, and one of them was restating a source that could not work at all: the path-B recipe above it, commands/open.md § 3.1, and agents/goal-drive.md step 3's To resume hand-over — that last one being the actor the auto-resume gate itself runs in, whose rows are orphans by the gate's own precondition, so it was the site where the missing field would actually have been read. § 3.1 read the value from session-liveness.py --list --json, which lists live sessions only — structurally empty for the resume branch it sits in. ⚠️ Every pointer cites it as "resume decisions item 3", never a bare item 3. § Spawn a worker holds two numbered lists, and a bare item N in this document means the readiness ladder, whose item 3 is an unrelated check — so a pointer written the obvious way lands the reader on the wrong item and breaks the consolidation it exists to make. The vault-side copy (65 Runbooks/Supervisor - Install and Operate.md § Step 4) lives outside this repo and is not pinnable from here. Change set: docs/fleet-surface.md, commands/open.md, agents/goal-drive.md, CHANGELOG.md.