Repository navigation
fix(workspace): revalidate renumbered checkouts and settle acquisition failures - #684
Merged
Merged
Conversation
Accept a device-only change only when canonical checkout and Git paths, all directory inodes, and the same-volume relationship still match. Settle final acquisition failures through the existing pre-start failure path. Carry-Group: incubator Carry-Observation: Active-checkout admission and provider startup failure handling belong to the saved-workspace suspension feature.
Resolve the owner and saved checkout paths before checking device-only identity changes, and inspect the canonical source. Cover canonical and aliased saved bindings. Carry-Group: incubator
Keep the recorded canonical path as the historical location for device revalidation. Preserve equivalent aliases for lookup and capture through the canonical root; refuse renumbered legacy aliases whose prior location cannot be proved. Carry-Group: incubator
lastobelus
marked this pull request as ready for review
November 10, 2026 00:29
Codex Review Summary: ✅ CompletedThis 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. |
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? 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". |
lastobelus
added a commit
that referenced
this pull request
Nov 10, 2026
## Problem `lastcode-pr-gates` ignored the structured summary comment that Codex posts automatically on a PR. A PR with a finished, clean automatic review therefore still looked unreviewed to the gate. ## What changed `scripts/lastcode-pr-gates.ts` now reads that summary as review evidence. It counts only when the author is the existing trusted Codex bot, `code_review.status` is `completed`, the commit is the full exact PR head SHA, and both findings flags are booleans. Clean requires both flags to be false. If either is true, the summary is recorded as evidence but is not clean, so the findings keep blocking. Summaries feed the same aggregation as manual comments and reviews: a manual finding still blocks even when the automatic summary is clean. A newer manual request remains pending; summary edits cannot establish that it was answered. The existing handled marker clears automatic findings only when posted after the summary's latest edit. There are no guidance or doc changes. ## Testing - Fixtures match real metadata fetched from PR #684. - Six regression cases failed before the initial fix; two ordering regressions failed before the review fixes. - Gate and CLI tests: 53 passed. `check:changed`: passed. The known #677 unused-patch check was skipped because no dependency files changed. - Optional Quick CI stopped before checks because main advanced; GitHub CI remains the required gate. Carry-Group: build-ci Local review: Terra xhigh and Opus 5.5 high, two parallel rounds; both approved the final code. Review fixes prevent old handled markers from clearing edited findings and unrelated summary edits from answering newer manual requests. Implementation: GPT-6.1 Sol, Codex harness. Carry-Source-Ref: refs/lastcode/carry-sources/pr-687/5b326f35d58f90a71efa45de435d8114222e9f89 Carry-Source-Base: 5d364e9 Carry-Source-Head: 5b326f3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After a reboot renumbered an APFS filesystem's device number (
st_dev), an existing workspace could no longer open. Acquisition failed before normal startup error handling, so the run stayed on “starting” once its retries ran out.🔧 What changed
Revalidation. The new exception for a stale common-Git device number admits an unchanged active checkout only when all of these hold:
The saved native identity is then refreshed under the existing workspace lease. The persisted canonical
record.pathis the historical location anchor; aliases remain available for lookup, but an old alias-only record whose prior canonical target cannot be proved is refused after renumbering. Changed inode or path evidence still blocks admission.Failure settlement. Final acquisition failures now use the existing failure events for the run, attempt, root node, and readable error item. Interruption and retry behavior is preserved.
✅ Validation (draft)
Local review: 3 rounds with gpt-6.1-terra (xhigh) and Claude Opus 5.5 (high), approved for the scoped diff. Final Opus verdict: APPROVE. Terra confirmed the in-scope fixes and reported only the verified pre-existing cross-volume behavior retained as a follow-up.
🔍 Investigation
stat,mount, anddiskutilinspection showed the affected APFS filesystem takesst_devfrom its current BSD block-device number, while the saved checkout and Git directory inode numbers are unchanged.424c0114bdaf9cb31d3583239da88fc18a1a2b30, introduced the comparison. Current blame lands on the compiledincubatorcarry, whose contribution metadata preserves that source.origin/mainhas no suspension service. Upstream device comparisons protect current file descriptors, locks, temporary tokens, provider outcome files, clone eligibility, and filesystem boundaries. No equivalent persisted checkpoint/worktree-start identity comparison was found.dev, so old cleanup approval can go stale. That requires fresh review/build; it never authorizes deletion.🚧 Deliberate limits
🩹 Recovery after installing a build with this fix
Once the old stuck run has been interrupted through normal thread controls, send a new continuation. Installing alone does not reschedule an exhausted background operation.
Carry-Group: incubator
Implemented with Codex gpt-6.1-sol (xhigh) in T3 Code through the Codex harness.