Skip to content

ci: verify complete member evidence for PR admission with real fallback - #4805

Merged
zackees merged 6 commits into
masterfrom
ci/4748-attested-pr-admission
Nov 13, 2026
Merged

zackees merged 6 commits into
masterfrom
ci/4748-attested-pr-admission

Conversation

@zackees

@zackees zackees commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

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.

Executed queue baseline job Job ID Runner wait (s) Execution (s)
Build 🧱 / Fast Gate ⚡ 131626291016 3 338
Build 🧱 / Rust Cross Lint 🦀 (release targets) 131626291029 3 333
Build 🧱 / Rust Tests 🦀 (windows-2025-vs2026) 131626291049 3 611
Build 🧱 / Rust Tier 2 (macos-26) 131626291052 3 934
Build 🧱 / Windows Link Check 🔗 (x86_64-pc-windows-msvc) 131626291063 3 232
Build 🧱 / Cross Compile 🧰 (mac-arm64,win-x64) 131626291121 4 261
Build 🧱 / Rust Tier 2 (windows-2025-vs2026) 131626291147 3 960
Build 🧱 / Rust Tests 🦀 (macos-26) 131626291512 4 674
Build 🧱 / Rust Cross Lint 🦀 (x86_64-pc-windows-msvc) 131628528463 185 411
Build 🧱 / Rust Cross Lint 🦀 (aarch64-apple-darwin) 131628528469 275 362
CI Gate ✅ 131632599859 98 23

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.

@zackees zackees changed the title test(ci): expect immutable PR scope while retaining master push coverage ci: verify complete member evidence for PR admission with real fallback Nov 13, 2026
@zackees
zackees enabled auto-merge November 13, 2026 02:32
@zackees
zackees disabled auto-merge November 13, 2026 02:38
@zackees
zackees enabled auto-merge November 13, 2026 02:39
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit cd93034 Nov 13, 2026
78 of 80 checks passed
@zackees
zackees deleted the ci/4748-attested-pr-admission branch November 13, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant