Repository navigation
refactor(lastcode): retire the Wait for PR action in favor of native PR watches - #419
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41285d83b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
ed642d3 to
5f3aa8c
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f3aa8cbb8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7513e4e3c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
b7513e4 to
eb430d6
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eb430d6b4b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
eb430d6 to
96a2552
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 96a2552989
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
96a2552 to
c52d46a
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c52d46a82d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Observe named reactions on the signed-in account's comments once, including review completion without a new comment. Include reaction counts in GitHub watch fingerprints. Carry-Group: upstream-bugfixes Carry-Observation: Review completion may arrive as a reaction without editing the request comment.
Use the native PR watcher as the sole passive observer. Remove the polling command, saved Action declaration and target-selection workflow; update skills and guidance for one-shot gate checks. Carry-Group: resumable-actions Carry-Observation: Independent PR wait mechanisms caused duplicate agent continuations and stale review waits.
Preserve exact GitHub CI and current-head review checks in a bounded command and the merge guard. Recognize the versioned Codex review receipt envelope without accepting unrelated prefixes or stale-head results. Carry-Group: build-ci Carry-Fix: #418 Carry-Observation: A clean versioned review receipt was ignored because its envelope preceded the verdict.
Carry-Group: upstream-bugfixes
Carry-Group: upstream-bugfixes Carry-Fix: #419 (comment)
Carry-Group: build-ci
Carry-Group: upstream-bugfixes
Carry-Group: upstream-bugfixes
Carry-Group: upstream-bugfixes
Carry-Group: build-ci
Carry-Group: resumable-actions
Carry-Group: build-ci
Carry-Group: resumable-actions
Carry-Group: resumable-actions
c52d46a to
b3e8e71
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3e8e71e25
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Carry-Group: upstream-bugfixes
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cdde56c697
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Carry-Group: upstream-bugfixes
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa07d87340
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Carry-Group: resumable-actions
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b366f99f25
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
) lastCode kept its own `review-pr` and `babysit` skills, which had drifted from the copies in other projects. Global `review-loop`, `babysit` and related skills are now installed from the owner's dotfiles ([lasto-env #29](https://redirect.github.com/lastobelus/lasto-env/pull/29)). This PR removes the two project skills and moves lastCode's own landing rules to where the global skills read them. **Merge order:** merge right after lasto-env #29, back to back. ## What changes - **Removed:** `.agents/skills/review-pr/` and `.agents/skills/babysit/` (`.claude/skills` is a symlink to `.agents/skills`, so both entries go). - **`lastcode-pr` "Babysit and Merge"** takes over the lastCode-specific babysit rules the global skill can't know: - the gate check's `attention` reasons (`observation-failed`, `mergeability-unknown`, `review-stalled`, `ci-not-registered`); - quiet-deadline handback; - Quick CI checkout and receipt identity; - verifying that the merged tree matches the reviewed head; - no Full CI for ordinary PRs; - Intel builds only on a separate request. Its `#wait-for-remote-gates` link now names the global `babysit` skill's Wait section. - **`lastcode-pr` gate check:** `pnpm lastcode:pr-gates` needs a checkout with dependencies installed, because `pnpm` installs them first. Without one, the agent takes the `babysit` snapshot with `gh`, judges the `attention` reasons from it, and doesn't install dependencies just for the gate. - **AGENTS.md:** the old "When babysitting" bullet is folded into the PR watch rule, which now also records that the saved `Wait for PR` Action is retired (#419). Local Reviews (`:194`) is unchanged. - **`implement-plan`** runs its review rounds through `review-loop`, and keeps its `light`/`heavy`/N-round depth words. Its ordered review lenses go away; a separate eval is still measuring whether lenses earn their cost. - **`docs/lastcode/release.md`:** the `#wait-for-remote-gates` link now points to `lastcode-pr#babysit-and-merge`. - **Evals:** `evals/mcp-tool-use/cases/pull-requests.ndjson` cases `quiet-watch-stalled-review-handback` and `quiet-watch-pending-gates-handback` read `.agents/skills/babysit/SKILL.md` as context. They now read `lastcode-pr/SKILL.md`, where that guidance moved. Their assertions are unchanged. - **Left alone:** - `scripts/lastcode-checkpoint.ts:452` (ignored recovery path `.agents/skills/babysit`): harmless once the directory is gone; removing it is a follow-up. - `_references/external-review-mechanics.md` and `stacked-pr-babysit.md`: still used by `lastcode-pr`, `review-plan`, `import-upstream-pr` and the release docs. ## Skill injection resolved The repository's external git hook used to symlink an older `babysit` skill into any checkout that didn't track one. [agent-contexts #12](https://redirect.github.com/lastobelus/agent-contexts/pull/12) removed that injection, so landing this PR no longer brings the old skill back. ## Checks - `git grep` finds no remaining links to `skills/review-pr`, `skills/babysit` or `#wait-for-remote-gates`. The only remaining mention is `scripts/lastcode-checkpoint.ts:452`, above. - No local Quick CI: the change is docs, skills and two eval context paths; GitHub CI is the required gate. - The two changed eval cases weren't run (they call paid models). Claude Opus 5.5 in Claude Code (T3 Code). Carry-Source-Ref: refs/lastcode/carry-sources/pr-613/9e25348d4460466746a61581835b293191c04bc4 Carry-Source-Base: bf969b0 Carry-Source-Head: 9e25348
Waiting on a LastCode PR had two observers: the standalone Wait for PR polling Action and the native
watch_pull_requestwatch. They woke the same thread twice, queued duplicate polling continuations that kept churning the daily build, and needed two sets of guidance that drifted apart. Clean reviews were also easy to miss. A Codex review that finished with only a reaction never woke the native watch, and the readiness check did not recognize a clean review whose versioned receipt marker came before the verdict. On #417, a clean review sat unrecognized until the wait timed out after 30 minutes.Changes:
lc-wait-for-pr, its waiter script and tests, and the docs and agent guidance that pointed to it. The native watch is now the only passive observer. Agents callwatch_pull_request, then runpnpm lastcode:pr-gatesonce. If it reportspending, they end the turn, then rerun the check on each wake.pnpm lastcode:pr-gatesis a one-shot check. It reads GitHub CI and review state for the exact PR head, never polls or sleeps, and never approves or merges. When no CI run has registered for the exact head and base and no review is pending, it reports attention instead ofpending, because the native watch cannot wake for a run that never starts.reactors. A count increase or a changed reactor name wakes the thread, so a new reaction from someone else on the signed-in account's comments wakes it even when the review posts no new comment. Each reaction is reported once, across pushes and incomplete reads. The cheap fingerprint covers only the 100 most recently updated conversation comments. A reaction on a review, an inline review comment, or an older conversation comment is noticed at the next full read, which can take up to about 30 minutes. The full read keeps the existing limit of 1,000 conversation comments, but now takes the 1,000 most recently updated, so a new review request is always included. On a PR with more comments than that, reactions on the earliest ones can be missed, and the read reports that it was truncated.<!-- codex-review-receipt:v1 -->marker and normalizes LF/CRLF line endings. Author, head, timing, and findings checks are unchanged. Unrelated prefixes and results for an old head are still rejected.Validation: focused
pr-gates,pr-gatesCLI, and GitHub CI tests pass. Focused GitHub API, provider, and JSON decoding tests pass, including a 101-comment regression and the reactor-name fingerprint. Count-watch, shared, client, and contract tests affected by this change pass. The generated watch fingerprint query was run against GitHub's live GraphQL API, which accepted it, and its response decoded into the expected fingerprint.Fixes #418
Background: the research draft in #286 explored this direction. This PR supersedes it.
Implemented with GPT-6.1-Sol using Codex. Guidance and independent review by Claude Opus 5.5 (High) through T3 Code / Claude Code.
🤖 Generated with Claude Code