Repository navigation
Description
Part of #4743. Depends on merged #4744 (base-owned verifier), #4745 (complete client target evidence), #4746 (client validators), and #4747 (heavy queue restoration). Do not remove PR coverage until those contracts are on master.
Exact files
.github/workflows/build-project.yaml, .github/workflows/check-format.yaml, .github/workflows/ci.yml, local-gate.toml, ci-attestations.yml, ci/pr_attestation.py, ci/gate_jobs.py, ci/test_pr_attestation.py, ci/test_gate_jobs.py, ci/test_format_jobs.py, ci/test_merge_queue.py, ci/tests/test_push_rungs.py, AGENTS.md, README.md, docs/ci-tooling.md, docs/rust-port/coordination.md, docs/rust-port/testing-policy.md, .claude/skills/obs-worker/SKILL.md.
Route jobs using one decision
Load executable verifier/tool pins and policy from immutable PR BASE in CI Mode, read untrusted head commit/tree as data, and publish its tested output contract. Keep Event Data, CI Mode and required CI Gate ✅; no separate attestation runner. Replace the report-only ATTEST_MODE step and disconnected Local-Gate skip decision with the unified per-gate verifier. Never source/import head code for a trust decision or interpolate untrusted titles/messages into shell. Retain legacy diagnostics without granting complete fast-path status to partial legacy evidence.
On a trusted same-repo verified-member PR:
- Format/self-tests/Swift and Validate Data skip at job level only when relevant complete client gates pass or the base-owned path selector proves out-of-scope. Wire verifier results through workflow_call inputs so reusable jobs can make this decision before allocating runners. Swift diff selection must be available from Event Data, not a checks job that is now skipped.
- Fast Gate's lint/unit-test portion uses complete client evidence. Touched Linux target compilation is queue-only for this fast path: remove it from the client-proven job's coverage claim and route its existing steps to the queue branch. Do not call a client lint stamp a native target-build proof.
- MSVC link, C Cross Compile, Tier 2 build/shards, Qt and native Rust/Tier 2 become queue-only for this fast path. Native coverage is provided by the already-landed heavy queue sibling, not by cross-lint trailers.
- Cross clippy/Dylint PR execution is replaced by the complete six-target client gate set. Missing any relevant gate causes a real PR run for that work. Expensive runtime/compile work can move to queue only when the member meets the full selected client fast-path contract.
- No standalone proof-publisher runner starts when it has no newly executed lane to publish. Keep claim governance separate; its filtering is tracked by ci: 2026-11-09 queue stall — filter claim-bot runs before allocation; credit merge-group entries with keyed proofs #4460.
For forks, non-members (even with identical trailers), unsigned/unverified heads, API errors, trust-surface edits and missing/invalid/stale/partial evidence, retain real selected PR checks, with actual lint/clippy/Dylint for all six supported targets and current link/native/Qt/Tier 2 coverage. A missing gate may run only the affected check, but must never become a successful whole-job skip. Outsiders need no client tools to contribute; strict ./push enforcement remains opt-in. Push/release/manual behavior stays unchanged; merge_group always executes heavy selected checks regardless of evidence.
RED first: event-to-execution regression matrix
Extend ci/test_pr_attestation.py with end-to-end planner/workflow input fixtures (real temporary git commits, injected authenticated API data): trusted complete member head, trusted partial gates, fork replay, nonmember writer, private member success/denied lookup, unsigned head, stale/wrong-tree evidence, changed policy/workflow, docs-only, Swift/data change, malformed event, and merge_group of two PRs. Current workflow must fail the expected job-allocation assertions.
Extend gate tests: expected fallback work cannot silently skip; a missing verifier fails; a trusted full PR may pass with heavy jobs deferred only because its required client gates are proven and queue policy is active; queue missing/skipped heavy legs still fail. Add a compatibility fixture for old Local-Gate evidence and current prooft evidence. Keep API/network operations mocked in unit tests.
RED → GREEN commands: uv run --no-project ci/test_pr_attestation.py, uv run --no-project ci/test_gate_jobs.py, uv run --no-project ci/test_format_jobs.py, uv run --no-project ci/test_merge_queue.py, uv run --no-project ci/tests/test_push_rungs.py.
Acceptance and rollout evidence
- On a subsequent ordinary source PR by a verified member with all client evidence, Pull allocates only Event Data/CI Mode/CI Gate; Format, Swift, Validate Data and compile/test runners do not allocate. This implementation's own trust-surface PR intentionally gets real checks; do not weaken the policy just to demonstrate a skip.
- Capture a real fallback PR run and a real queue run; unit fixtures cover outsider cases if no genuine outsider PR is available. Do not create misleading fork/self-hosted CI. Record actual job names/IDs, skips, execution and queue wait separately. No unsupported claim of measured speed-up.
- Document self-reported proof, final-sign-after-stamp identity, private-membership fail-closed handling, exact six target set, optional local tooling, fallback and queue execution. Remove stale “report-only”, host-only and Linux-only-queue claims; retain RED-first, all four tiers, unchanged C tests/public headers and preserved websocket policy.
- No new workflows, security scanners, privileged fork compilation, label-driven scope, branch protection changes or queue bypasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Nov 13, 2026
Claiming: #4748 on ci/4748-attested-pr-admission. 1. Add RED event-to-execution and gate allocation regressions. 2. Wire immutable-base per-gate admission with conservative real-check fallback and mandatory heavy queue execution. 3. Run focused tests and final lint, then open a PR today with rollout evidence and Refs only.
ci: verify complete member evidence for PR admission with real fallba…
zackees commentedon Nov 18, 2026
Landed on master in #4805 (cd93034); verified the merge is an ancestor of origin/master and ci/gate_jobs.py exists there.