Repository navigation
fix(lastcode): Wait for Checkpoint finds terminal state of wrapped runs - #584
Conversation
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. Nice work! 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". |
Match terminal scheduler and supervisor identities observed under the active launchd run. Preserve fail-closed handling for missing or unrelated state. Carry-Group: incubator Carry-Fix: #529 Carry-Observation: Extends scheduler-versus-supervisor attribution introduced in Incubator. The repair depends on that contribution adding launchdPid and separating those process identities.
56bd455 to
bbd974b
Compare
|
@codex review |
|
Corrected the carry replay assignment in The final source/test tree is byte-for-byte identical to reviewed head |
|
Codex Review: Didn't find any major issues. Delightful! 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". |
## Problem After carry compilation, `check:changed` can miss earlier integrated repairs. The retained compilation can rewrite ancestry, so a merge-base comparison may pick the wrong boundary. A diff against the last child then covers only the last patch. Earlier fixes in the same repair batch never reach lint, format, or affected-package checks. ## Fix Add paired `--baseline <commit>` and `--candidate <commit>` options to the existing `check:changed`. - **Diff:** a direct tree diff between the two endpoints, using their resolved full commit identities. Ancestry is not consulted. - **Candidate guard:** the candidate must be the exact `HEAD` of a clean checkout with no pending Git operation. This is checked again after the checks finish, so a change mid-run fails. - **Coverage:** every integrated repair path goes to the existing format, lint, and affected-package checks. - **Unchanged:** ordinary positional-ref behavior, checkpoint fail-fast lint, final Full CI, exact candidate publication, and the separate advisory cache. ## Tests The regression builds an unrelated rewritten snapshot with sequential and merged delegated repairs. - It shows the last patch alone omits earlier paths. - All 3 repair paths then reach lint, format, and affected-package selection. - Also covered: invalid inputs, dirty, incomplete, or wrong candidate, and changes during the checks. ## Validation - ✅ Regression failed before the implementation. - ✅ Focused tests: 27 in the helper, 6 in the command. - ✅ `scripts` typecheck, lint/format, knip, and `check:changed`. - ✅ Parent-owned Quick CI passed on pre-rebase head `76fec5ea8f6c970d7f308a66839fe4295c5442df` against base `1efd2d45871f052ab791e4cd6f9d176533ef3b28`. That receipt is historical; current-head GitHub validation is required. - ✅ Same-base carry compilation for PR #585: Carry-Group assignments validated; compiled tree equals head `83adda023db533f6b3a1dd17f7de53e7a9eeabab` on base `e864910bae68e7e1c1b99091b9ccca09c29b9089`. Fresh changed-file checks and carry compilation passed after rebasing onto the #584 merge. Exact-head GitHub CI and Codex review are pending for `83adda023db533f6b3a1dd17f7de53e7a9eeabab`. Related: #577 (not closed by this PR). Implemented with GPT-6.1 Sol (high) through the Codex harness. Carry-Source-Ref: refs/lastcode/carry-sources/pr-585/83adda023db533f6b3a1dd17f7de53e7a9eeabab Carry-Source-Base: e864910 Carry-Source-Head: 83adda0
🐛 Problem
Symptom: Wait for Checkpoint reports
no-stateafter a run that succeeded.Cause: the launchd job wraps the scheduler in another process. The terminal record names the scheduler, but the waiter is watching the outer wrapper, so the two never match.
🔧 Fix
The observer stays conservative. If a wrapped run's descendant identities were never observed, it still reports missing state.
✅ Validation
no-state.vp run check:changed origin/lastcode/mainpasses.56bd455788905266edd9803cd1cd5ce93b047562against base1efd2d45871f052ab791e4cd6f9d176533ef3b28.🔗 Links
Closes #529. Part of #577; this does not close the checkpoint modernization umbrella.
Implemented with gpt-6.1-sol (high reasoning effort) through the Codex harness in T3 Code.