Handle transient CI snapshot propagation before Nightly eligibility verdicts
Current master follow-up (2026-11-12)
This update records the remaining behavior on the audited master. The historical report and earlier delivered work are retained below; current code paths are Rust rather than the retired Python helpers.
Problem
The retry loop checks elapsed time before some rereads but can accept successful data after API work has already exceeded the allowed retry window.
Reproduction and evidence
Audited canonical master 69a67c6e0fb700f37ee6114f5a66d37ee13771a5 (0.0.1-alpha-dev). Matching checkout-built compiler/std were used for compiler probes on Linux amd64 with Rust 1.89.0 and LLVM 21.1.8. Artifact inspection, mocked/projection checks and foreign-target object emission are identified below and are not native execution on those operating systems.
Executed the existing tools/tests/publication.rs Remote fixture through an Api wrapper that delays the jobs request by 150 ms and delegates every other response unchanged. Call eligible_with(remote, 10, Duration::from_millis(10), std::thread::sleep). The scaled maximum is 60 ms; observed elapsed was about 222 ms and result was Ok(Identity). The real default interval is 10 seconds with a 60-second window. No live GitHub workflow or release was modified by this fixture.
Scope
Propagate one monotonic remaining deadline through eligibility API requests/pagination and reject late success. Keep the approved retry identity/all-required-jobs-success policy.
Starting points: tools/src/publication.rs:318.
Completion criteria
- [ ] Delayed API/pagination cannot turn an expired check into success.
- [ ] Settled in-budget snapshots pass, while API errors and actual CI failures remain distinct.
- [ ] Retain exact run/attempt/source and rejection of skipped/cancelled/failed jobs.
Original report (historical)
Motivation
eligible() reads the successful run identity and jobs separately. A mocked completed/success run with an in-progress job snapshot is rejected; the same exact identity passes once jobs settle, while a skipped job remains rejected. This matches the class of propagation lag observed during prior recovery.
Starting point: tools/ci/nightly.py:89.
Validation
Audited canonical Wave 540728c2eb6cc12f5c69c3fb3fdb96e07ba059a4 (0.0.1-alpha-dev), whose tree matches the local checkout. Validation: Executed eligible() against lag/settled/skipped API fixtures; no current workflow mutation. Executed compiler probes use the matching checkout-built compiler and std on Linux amd64 (Rust 1.89.0 / LLVM 21.1.8). Source/header or mocked checks are not native execution on another OS.
Scope
Design a bounded re-read for the same canonical run/attempt/source identity. Never replace all-jobs-success with report-only success or accept skipped jobs, another attempt or another SHA.
Related: #831, #966. These links do not claim those broader or completed scopes are unfinished.
Design discussion required
This issue records a proposal or an unresolved contract; it is not approval to choose new semantics. Please mention @LunaStev to discuss the design before starting implementation.
Completion criteria
- [ ] Transient propagation can settle within a fixed attempt/time bound.
- [ ] Actual failed/skipped/cancelled jobs and changed identities never pass.
- [ ] Tests use controlled API snapshots; no extra workflow dispatch or success-state manipulation is introduced.