session-runner: the ready-for-session queue drains unattended on the workstation — Ben's laptop stops being the trigger (ADR 0174 tail) #538
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#538
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
ADR 0174 moved most parked work off Ben into
ready-for-session— but a session today still starts from Ben's laptop by hand. Ben's ask (2026-08-14): automate the kick-off so the session queue drains without him.The trust boundary already exists: the workstation runs unattended
claudewith host standing today (healer, reporter — host env, droplet ssh keys, FORGEJO_TOKEN). A session-runner extends that same standing from "heal reds" to "work the session queue"; it is NOT a new credential grant to sandboxed workers.Sketch
ready-for-sessionticket with no opendepends_onblockers (reuselist-ready-tasks.shmechanics with the label swapped); skip when one is already claimed (agent-working-style marker or lock file), one at a time.claude -pin a dedicated checkout with the host env sourced (rehearsal-env.sh— tokens ride the #510 failover), prompt = the ticket body + ADR 0174 rails: post the ruling/close-report on the ticket, commit only its own files, never touch one-way-door items, escalate toready-for-humanwith a## Why humanline when it hits one.SESSION_RUNNER=0), limit-lib guard (rides #510's failover + park), Mattermost notice per ticket outcome,no-triagerespected, per-ticket timeout, evidence dir per run like the reporter's.ready-for-humanby definition now); GUI/eyeball work (#471-class).Why session (this ticket itself)
Builds workstation machinery +
.sandcastle/-adjacent scripts (#445 protected paths) — an interactive session lands it; the standing-authority question was settled by Ben's explicit ask + the existing healer precedent.Acceptance
ready-for-sessionticket filed while Ben is away gets picked up within a tick, worked, and closed-or-escalated with a ticket-posted report; nothing on his laptop was involved.BUILT, INSTALLED, ARMED —
aee072c+ff01530(session-landed under ADR 0174).What exists:
.sandcastle/session-runner.sh+session-runner-prompt.md+tests/session-runner-test.sh(7 offline groups, TDD red-first). Cron on matou-workstation:*/10sourcingrehearsal-env.sh, running from the dedicated clone/home/dev/session-runner/ourcloud(never the shared swarm checkout; self-updates via fetch+reset each tick; its git-ignored.sandcastle/.envcarries the forge token).Acceptance evidence:
kill switch is on — quiet tick; also honoursSESSION_RUNNER=0. Checked before any network.session in flight — tick absorbed.agent-blocked+ comment, #510 limit failover + park.agent-working, ran claude, classifiedYou've hit your weekly limit, parked, released the claim (#425 back to bareready-for-session), no fail counted, log at~/.local/state/matou-session-runner/logs/run-425-20260814T181519Z.log.CLAUDE_CODE_OAUTH_TOKEN_Borg secret +rehearsal-env.shexports): until then every tick quietly limit-parks (≤1 notice/hour). First natural pick will be #319 (oldest), then up the queue. Watch Mattermost for the:white_check_mark: session-runner worked #Nnotices.Controls: kill =
touch /home/dev/session-runner/ourcloud/.sandcastle/session-runner.off(orSESSION_RUNNER=0); pin =SESSION_RUNNER_PICK=<n>; state/logs =~/.local/state/matou-session-runner/. Escalations arrive asagent-blocked+ a ticket comment naming the log.