Repository navigation
Fix retention scan and pre-execution cancellation races - #2108
Merged
Merged
Conversation
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
This was referenced Oct 5, 2026
JAORMX
marked this pull request as ready for review
October 5, 2026 13:54
Resolve review deadline and read-batch cancellation interactions while preserving canonical ordered results. Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Merged
2 tasks
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.
Summary
Routine fixes for inherited failures that blocked verification of #1920. No provider-recovery feature or new public API is introduced here.
Regression proof
Deterministic tests failed before the fixes. Coverage includes enumerate-then-remove and header-open races; wrapped-error and permission/corruption/symlink controls; mixed denied/prepared/canceled batches; canonical event/session pairing; no execution after cancellation; evidence cleanup; and transport disconnect during preparation. Existing transport assertions were retained, not relaxed.
Main refresh and verification
Conflict-resolution merge:
e14994977ba7a0a0bd045e85a03c18145c2e73a9, incorporating mainc65826ecc381da28e66bd93c634856823dd90fdewithout rewriting history.The merge preserves main's review preparation after human approval and its review-deadline cancellation guards, together with this PR's ordered read-batch results and cancellation close-out. The pre-approval cancellation test now expects no evidence preparation, matching main; separate tests retain exactly-once prepared-evidence cleanup coverage.
After resolving the conflicts, focused engine tests and targeted race tests passed. JSONL inventory/health, live server projection, and directly relevant app deadline tests passed. A broader app test selection exceeded its 180s bound and is not claimed passed; the narrowed directly relevant selection passed. Independent security and merge-semantics reviews found no blockers, important findings, or advisories.
Before this refresh, affected package suites, focused race/repetition tests, and the full local non-race suite passed. Full local lint/race completion was limited by local execution resources and is not claimed green. As directed by the operator, focused local tests plus CI provide verification without making the capacity of their only computer a readiness blocker. The PR remains ready for human review; required CI checks on the current head must pass before merge.
Integration
This baseline repair remains separate from the recovery plan (#1912) and implementation (#1920). Accounting and provider-display changes previously published as #2097/#2098 are consolidated into #1920; those redundant PRs are closed.
Merge this baseline repair before the dependent recovery implementation. Humans retain merge authority. No PR merged or deployment performed.
Relates to #1912 and #1920.