Repository navigation
Description
Goal
Make LastCode pull-request babysitting stop consuming agent turns while GitHub CI and Codex review are merely pending. A resumable Wait for PR Project Action performs the waiting; the originating thread resumes only when the agent can or should act.
Deliver the workflow through two coordinated repositories:
- LastCode owns the polling helper, focused tests, and checked-in
t3.jsonAction. agent-contextsowns the LastCode-specificbabysitskill that launches the Action and retains review, fix, validation, and merge judgment.
Slice 1: Wait for PR
The Action is branch-scoped and read-only. It resolves the single open pull request for the current worktree branch and observes one exact (PR, head SHA, base SHA) boundary.
It returns when:
- a new current-head Codex review completes, whether clean or finding-bearing;
- current-head CI fails or is unexpectedly cancelled;
- CI succeeds after the current-head review was already completed and handled before this Action launch;
- the PR head or base changes, mergeability becomes blocked, the PR closes, authentication fails, or polling fails.
It keeps waiting when CI succeeds while the current-head Codex review is still pending. Pending includes an active Codex eyes reaction or a requested review with no exact-head terminal result.
Review detection is deterministic: exact-head formal reviews and threads, Codex comments naming the reviewed commit, and reactions on the relevant trigger comment. Ambiguous evidence remains pending. No model classifier is included.
The skill handles existing review artifacts before launch, so the Action treats its launch snapshot as the handled baseline. If the agent rejects a review without a commit, it can relaunch the Action and wait for CI. If it pushes a fix, all old review and CI evidence is stale and the new head starts a fresh cycle.
Done when
- focused tests cover pending review, new clean review, new finding-bearing review, CI success while review remains pending, CI failure, stale head/base, and ambiguous review evidence;
t3.jsonexposes Wait for PR through the normal Project Action import path;- the
agent-contextsbabysitskill validates and appears in a fresh LastCode thread; - the implementation PR dogfoods the waiter once against real GitHub CI/review state.
Excludes
- the separate resumable Full CI Action;
- automatic setup, installers, migrations, repair flows, or manual-polling fallback;
- compatibility behavior or support for older LastCode versions;
- Luna or another model-based review classifier;
- automatic review requests, review disposition, code changes, replies, thread resolution, full local CI, or merge inside the waiter.
Follow-up slice
Add a separate resumable Run Full CI Action so the agent can choose when local exact-head validation should run. It must remain independent rather than being automatically chained from Wait for PR. Stacked delivery is available if that later slice genuinely depends on this one.
Activity
lastobelus commentedon Aug 25, 2026
Work intent
feat(lastcode): wait for PR gates in an Action (#88)
lastobelus commentedon Aug 25, 2026
Slice 1 shipped
37d74659after an exact-head clean Codex review, zero unresolved review threads, and full local CI for headea9dd617against base96407036.babysitskill is canonical and active.This issue remains open for the separately scoped resumable Run Full CI action. Both issue project items remain In Progress for that follow-up.
lastobelus commentedon Aug 25, 2026
Slice 2 work intent
feat(lastcode): add resumable full CI action (#92)
lastobelus commentedon Aug 25, 2026
Slice 2 shipped
68c82e44after a clean exact-head Codex review, zero unresolved threads, and a successful resumable Run Full CI action for headf2a554e5against base7069222b.7a9cdf55; the canonical LastCode babysit skill now chooses independently between Wait for PR and Run Full CI.Both project items are Done. This completes the issue.
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
47 remaining items
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)
feat(lastcode): wait for PR gates in an Action (#88)
feat(lastcode): add resumable full CI action (#92)