Skip to content

Revalidate late source events once with the same healthy watcher and deadline - #50

Merged
AlexanderLevenskikh merged 2 commits into
mainfrom
fix/dec01-bounded-source-retention
Dec 1, 2026
Merged

AlexanderLevenskikh merged 2 commits into
mainfrom
fix/dec01-bounded-source-retention

Conversation

@AlexanderLevenskikh

@AlexanderLevenskikh AlexanderLevenskikh commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Accepted on 2026-12-01

Merged as 180cd9c89167a301a86617f8ca9285bcbe8d6d8b after nine successful original jobs on 8299d5b and 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. 8299d5b76499d591909be5066011cb6cb6f8c096 closes both paths with TIMEOUT. The two new controls failed on fe659e7 and 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.

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.
@AlexanderLevenskikh
AlexanderLevenskikh merged commit 180cd9c into main Dec 1, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant