Skip to content

Docs: agent-lifecycle activity monitor + tmux contract fixes - #862

Merged
selfcontained merged 1 commit into
mainfrom
agt_e9d69b506fad/job-doc-ter-7bf43bff
Aug 1, 2026
Merged

Docs: agent-lifecycle activity monitor + tmux contract fixes#862
selfcontained merged 1 commit into
mainfrom
agt_e9d69b506fad/job-doc-ter-7bf43bff

Conversation

@selfcontained

@selfcontainedselfcontained commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Nightly docs audit (deep-dive: docs/04-agent-lifecycle.md, from Brain next_focus).

Audited: the lifecycle doc's state machine, reconciliation, and tmux contract sections against agents/reconciler.ts, agents/activity-monitor.ts, agents/tmux/runtime.ts, agents/tmux/session-name.ts, agents/manager.ts, and server/agent-lifecycle-runtime.ts. Diff since last audit (9d3913d) was refactor/test-only (#860, #861), so no diff-driven work.

Changed (all in docs/04-agent-lifecycle.md):

  • Added an Activity Monitor section — the backlog item this run cleared: pane-digest change detection over the last 100 lines, the two corrections (active pane → working "Activity detected"; 3-min-silent → idle "No recent activity detected"), the upsertLatestEventIfCurrent conditional-write guard, and metadata.source: "activity-monitor".
  • Orphan-session cleanup: now correctly documented as startup-pass only (reconcileAgents()) — the 30s tick is status-only.
  • Launch contract: shows the real bash -c wrapper (stderr tee to /tmp/dispatch_setup_<id>.log, exit capture to /tmp/dispatch_<session>.exit) that readSetupLogTail/readExitInfo consume, plus the post-launch tmux options.
  • Removed the stale Window name: main claim (never set anywhere).
  • Added the missing review value to the AgentRole list and fixed the standard bullet (persona launches get role review, not standard).

Deferred: nothing new backlogged; next run deep-dives docs/10-operations-runbook.md (not audited since ~June 12 — deploy-mechanism drift is a known pattern there).

🤖 Generated with Claude Code

…e tmux contract claims
- Add an Activity Monitor section: pane-digest change detection, the two
corrections (active pane -> working, 3-min-silent -> idle), the
conditional-write guard, and the metadata.source tag.
- Note that orphan-session cleanup runs only in the startup pass, not on
the 30s periodic tick, and that missing-session transitions emit a
system latest_event.
- Fix the launch contract to show the real bash -c wrapper (stderr tee to
the setup log + exit-code capture file the reconciler reads).
- Drop the stale 'Window name: main' claim (never set) and note edge-hyphen
trimming in session-name sanitization.
- Add the missing 'review' value to the AgentRole list.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@selfcontained
selfcontained merged commit 23551a6 into mainAug 1, 2026
1 check passed
@selfcontained
selfcontained deleted the agt_e9d69b506fad/job-doc-ter-7bf43bff branch August 1, 2026 04:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@selfcontained