Repository navigation
Revalidate late source events once with the same healthy watcher and deadline - #50
Merged
Merged
Conversation
Recheck the original deadline after entering the publication lock and after filtering the delivered event suffix. Add deterministic controls for both paths and preserve the existing timeout invalidation.
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.
Accepted on 2026-12-01
Merged as
180cd9c89167a301a86617f8ca9285bcbe8d6d8bafter nine successful original jobs on8299d5band independent review. The one remaining macOS Py3.12 job ran and passed on the targeted second attempt (job 142731056585). Earlier cancellations and exact-window regressions are retained below.Continuation checkpoint — 2026-12-01
Independent review reproduced two paths that could accept at the original deadline: waiting for the watcher publication lock and filtering the delivered event suffix.
8299d5b76499d591909be5066011cb6cb6f8c096closes both paths withTIMEOUT. The two new controls failed onfe659e7and passed on the fix. All 12 focused retention tests passed on native Windows Python 3.14.3. Independent recheck confirmed both refusals and watcher cleanup.The full original matrix is running on the new head in 46668921026. The earlier run 46656103174 retains both attempts. Its initial macOS jobs did not acquire a hosted runner, and the bounded retry also executed no macOS tests before the new-head run. No prior success is being counted toward the changed head. Merge remains held pending all nine jobs.
Current native CI checkpoint — 2026-12-01
Run 46656103174, exact head
fe659e7b7cd40ff5ae974cf22c1787104cdd11b9: 6 SUCCESS, 3 macOS CANCELLED; merge held. Each Ubuntu Python 3.12/3.13/3.14 and Windows Python 3.12/3.14 job ran 873 tests successfully, including all ten new retention controls. Linux owned-tree tests also passed. Both Windows jobs explicitly passed the native watcher checks.All macOS arm64 jobs remained unallocated and GitHub reported
The job was not acquired by Runner of type hosted even after multiple attempts, with a capacity-constraints notice. No runner was assigned and no tests ran there. This is an infrastructure cancellation, not a passing native check. Preserve the matrix and old attempt; finish the original required gates when runner capacity is available. No rerun, release or model call was performed for this checkpoint.Problem
The retained native Windows series 46650876381 has 11 passes and one failure. In the failed attempt, notifications for packages/app and packages/legacy straddle the full source capture: the first causes strong revalidation and the late second makes retention refuse despite a matching manifest. The exact failed receipts and artifact identity are preserved here. No event is assumed harmless from its path or post-verdict metadata.
Change
After a matching manifest, only a healthy delivered RELEVANT_EVENT refusal permits one additional complete capture. Keep the same candidate watcher, its full history and the original deadline. Final acceptance requires the full manifest to match, unchanged root/project identities, proven delivery and a quiet new suffix. Save the covered prefix cursor so later continuations do not repeatedly rescan it. Delivery/overflow/thread/identity failures, a first manifest mismatch, continuous events and timeout still refuse. Errors discovered during old-watcher stop and failed replacement arming cannot become manifest-only success.
Validation
31 focused controls pass locally; two Windows-only controls remain for native CI. The split-notification regression fails against original 1113e47 and passes with exactly two captures on the repair. Negative controls cover file mutation, transient restoration during the final interval, same-byte root replacement, overflow, stop/arm failure, continuing events and the original deadline. Public sanitization passes. Two independent code reviews completed; MCP instrumentation kwargs compatibility is prepared separately for the subsequent repin.
Evidence boundary
This preserves the existing healthy-event strong-revalidation policy. Callers must abandon a refused continuation; no persistent snapshot poisoning is introduced. Historical run 46615397868 and MCP issue #53 remain separate evidence. Changed native Core CI and a new MCP wheel/Windows series are required before runtime qualification; no package release or model call occurs here.