Repository navigation
fix(lastcode): restore cleanup snapshots and CI validation - #417
Conversation
The shared resolver folds shim arguments into its escaped command string. Assert the full resolver result and CI launch line so command and argument escaping remain covered. Carry-Group: build-ci
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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
Combine the active and archived shell snapshot partitions for cleanup ownership checks. Complete the dependency fixture path lookup and keep settlement tests on deterministic process and mount inventories. Carry-Group: incubator
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 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". |
…PR watches (#419) Waiting on a LastCode PR had two observers: the standalone **Wait for PR** polling Action and the native `watch_pull_request` watch. 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: - **The polling Action is retired.** This removes `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 call `watch_pull_request`, then run `pnpm lastcode:pr-gates` once. If it reports `pending`, they end the turn, then rerun the check on each wake. - **`pnpm lastcode:pr-gates` is 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 of `pending`, because the native watch cannot wake for a run that never starts. - **Native watches wake on reactions.** The watch's change fingerprint now includes reactions on top-level PR conversation comments: each reaction's total count plus the sorted logins of its first 10 reactors, read through GitHub's `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. - **Stricter merge checks.** Before merging, and again under the merge lock, the guard now requires a finished, clean Codex review of the current head and zero unresolved review threads, as well as an exact successful CI run. A disabled CI workflow no longer counts as passing. - **Receipt fix (#418).** Before reading the verdict and the reviewed head, the check strips only the known anchored `<!-- 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-gates` CLI, 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](https://claude.com/claude-code) Carry-Source-Ref: refs/lastcode/carry-sources/pr-419/b366f99f2516101d63a8ac6d52ecca2fc923dc1e Carry-Source-Base: 830f356 Carry-Source-Head: b366f99
Cleanup read only the active half of the shell snapshot, omitting archived thread owners from dependency retention and shared-worktree protection. Read both partitions from the same snapshot, complete the fixture's narrow owner-path lookup, and use deterministic process and mount inventories in settlement tests.
The Windows CI command-shim test also expected obsolete split-argument output. Assert the current combined escaped command line and its CI launch result.
Validation: 323 cleanup tests and 48 CI serialization/shared resolver tests passed. Three Windows-only execution tests were skipped on macOS. Targeted formatting/lint and Quick CI passed for
4cda92305cf948d251039dc7b70ba888394bd3a8against08b53cc049152b980c688e48700be20b240c48e2.Implemented by GPT-6.1 Sol using the Codex harness.