Repository navigation
ci: verify complete member evidence for PR admission with real fallback - #4805
Merged
Merged
Conversation
zackees
enabled auto-merge
November 13, 2026 02:32
zackees
disabled auto-merge
November 13, 2026 02:38
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.
A complete signed same-repository member PR can now use immutable-base verification for admission. Event Data, CI Mode and CI Gate remain allocated; Format, selected Swift/data validation and compile/test jobs skip before allocating runners when their client contract is complete. Incomplete evidence retains real selected PR work, including actual clippy and Dylint for all six supported targets. The existing Fast Gate and main Cross jobs retain their full execution on partial evidence because they also own native compilation and test linking.
The verifier, tool pin, policy, path selector and selector dependency come from the immutable PR base. Authenticated public membership requires an exact successful public-membership response; otherwise a permitted active private-membership lookup is required. Both PR author and the authenticated signer of valid final HEAD must be active members. Forks, non-members, unsigned heads, trust/configuration edits, malformed/stale/wrong-tree evidence and API/verifier uncertainty retain real PR checks. Legacy Local-Gate records remain diagnostic. Tokens and permissions are unchanged. Local tooling and strict push refusal remain optional.
The merge queue executes every selected heavy lane regardless of client trailers, hosted proofs or verdict caches. Data changes also retain real queue validation. Required job names, the CI Gate context, RED-first development, all four port-test tiers, unchanged C tests/public headers and the preserved C++ websocket compatibility policy remain intact. Cross analysis supplies no native-runtime or target-build proof.
RED commit 940316e records failing planner/allocation, gate, format, queue and push regressions. The five requested regression suites now pass, along with the pinned-prooft integration suite. Tests use real temporary git commits and injected authenticated API responses, including private/public membership, outsider replay, each missing client gate, invalid bindings, trust edits, poisoned head selectors, malformed events, absent/skipped fallback work and multi-PR queue commits. The read-only review is clean. The single final full lint invocation ran with a 30-minute deadline and returned failure for one superseded scope assertion that expected a moving origin base. That assertion now checks immutable event-base scope and passes its focused test. The lint run's format and repository-wide Ruff checks passed; Rust validation remains owned by normal hosted PR CI. Full lint was not repeated, as requested. The verification-ratio hook initially refused before execution and explicitly allowed the identical retry that launched the sole lint run. Oversized read refusals were handled with the prescribed bounded slices.
Five additional test-only files update assertions for the superseded workflow allocation graph: ci/test_ci_scope.py, ci/test_qt_fastpath.py, ci/test_runner_pools.py and ci/test_windows_link_check.py and ci/test_master_push_scope.py. Their scope, cancellation, runner and fallback assertions are preserved. Production edits stay within the issue's file list. Ambiguity is resolved conservatively by running the complete Fast Gate/Cross jobs on partial client evidence.
This PR edits trust surfaces and intentionally receives real checks. A later ordinary source PR, after this policy becomes its immutable base, is required to observe the three-runner trusted path. Unit fixtures are routing evidence; no measured speed-up or genuine outsider run is claimed. No fork or self-hosted validation workflow was created.
Refs #4748
The initial trust-surface fallback (superseded by the queue-probe allocation fix) is Pull run 43352730320. Event Data job 131647460740 completed in 19 seconds after 3 seconds of runner wait; CI Mode job 131647460707 completed in 18 seconds after 3 seconds of wait. Windows Link, Fast Gate, C Cross Compile, extra cross-lint, Qt, Linux Tier 2 build and both native Rust/Tier 2 pairs started real execution. Their final execution durations remain pending. Local prooft 0.1 rejected the newer data/Swift schema and the push correctly continued without complete evidence.
The already-merged heavy-queue prerequisite has a successful real queue baseline, run 43346212612. This is baseline evidence for the required queue contract, not an assertion that this PR has completed its own queue run. Its observed jobs are listed below; this PR’s own queue evidence is pending normal admission.
A second RED commit, 31daa13, caught the queue-runner probe allocating on PRs. GREEN c7685e8 skips that job on PRs while preserving queue/manual behavior and hosted fallbacks. The dependent callers use explicit status functions, so a skipped probe does not skip PR execution. Both the complete merge-queue regression suite and scope suite pass after this final change, and the narrow read-only review is clean. The earlier fallback execution remains evidence of real coverage; its incomplete durations do not represent a completed final-head run.