AFK runs in lab — autonomous ready-for-agent resolution #61
Labels
No labels
bug
enhancement
in-progress
needs-info
needs-triage
p0
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/nixos#61
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?
What to build
labgains the ability to run AFK runs (seeCONTEXT.md): unattendedclaude --remote-controlsessions that each take oneready-for-agentissue from a project's own Forgejo tracker, resolve it in an isolated git worktree, and open a PR — manually from a per-project context menu, or automatically via a per-project toggle.Design is locked in ADR-0007 (
docs/adr/0007-lab-drives-afk-runs.md) and the AFK run / Instance (lab) glossary entries inCONTEXT.md. The code lives athosts/fw/vms/dev/modules/lab/.Key decisions (rationale in ADR-0007):
labselects + claims the issue (label flipready-for-agent → in-progress) and seeds the specific issue number into the prompt; the agent only resolves it and opens the PR.git worktreeon branchafk/<N>, parked under~/.local/state/lab/worktrees/— outside~/projects/so the scanner can't list it as a bogus project.claude --remote-controldoes not self-exit, so a run is "done" when a PR with headafk/<N>appears; it is a failure on session-death-without-PR or a ~45-min timeout.Slices (tracer bullets)
⋯menu (tracer; no blockers)(N ready)count hint (blocked by Slices 1, 3)Notes
originundergit.cloonar.com; non-Forgejo project cards show a disabled menu line.dominikneeds a one-timetea login addondev(covers both the lab's issue queries and the agent'stea pr create).needs-triageand never getsready-for-agent.Slices created (dependency order):
Dependency graph:
Triage #62 to
ready-for-agentfirst — it is the bootstrap (built by hand, since AFK runs don't exist yet to build themselves); #63–#66 become AFK-able once it lands.Closing this tracking epic — all slices are resolved:
(N ready)count hint — #66 (closed)Plus AFK-agent isolation hardening (#76). The ADR-0007 AFK-run capability is in place.
Note: Slice 5 (#66) was closed without landing in
main— the(N ready)hint is descoped rather than shipped. Reopen #66 if it's wanted later.