Skip to content

CI: make PR checks attestation-only; client runs lint/clippy/Dylint (all targets); merge queue is the heavy gate #4743

Open
7 of 7 issues completed

Description

@zackees

Context and maintainer decision

PR checks should be as light as possible: verify client evidence before admission, then run the heavy checks on the actual merge result in the merge queue. ./push must run lint, clippy and Dylint for all six supported platform/architecture targets and stamp only completed passes. This is an authorized migration task, not an invitation to remove coverage.

Audit: 2026-11-12, master cba99f2f60864c13be2b49c1be9c4a2633b2f9ba. Read AGENTS.md, docs/ci-tooling.md, local-gate.toml, ci/ci_scope.py, push, and the existing workflow/called-job graph. No code was changed for this audit.

Measured PR inventory and disposition

The required gh run list --event pull_request --limit 30 --json databaseId cohort includes many Claim bot runs. Five most recent Pull runs sampled: 43311469790, 43309681983, 43299675903, 43287646182, 43230460324. Jobs API was paginated: 36–38 jobs per run, not just the first 30. Durations below are successful executed-job medians, start-to-completion, excluding runner wait, skipped jobs and failures; n is the number of successful observations. These are a small, source-heavy cohort, not population estimates or billed minutes. — means no executed observation, not zero cost.

Current skip distinction: “Local-Gate” below means existing local-gate verification, which also emits Ci-Attestation trailers. A Ci-Attestation produced by prooft soldr alone is not currently wired to the skip outputs: the newer verifier only reports. Do not infer an accepted client stamp merely from observing a skipped job; hosted lane proofs also exist.

PR job / existing workflow job id What runs today Observed median (n); range where useful Already skippable? Destination
Event Data / build-project.yaml:check-event Event parsing, path scope, platform/build matrices 18s (5), 14–24s No Keep on PR; inexpensive scope selection
CI Mode / build-project.yaml:ci-mode Local-gate trust verification, optional trailer report, three hosted proof lookups 29s (5), 26–44s No Keep on PR; one base-owned prooft-backed decision
Format / check-format.yaml:checks Swift diff, Flatpak manifest and Qt XML validation, ci self-tests 2m03s (5), 1m24s–2m06s No Client+attest; real PR fallback; queue reruns
Format / check-format.yaml:swift-format Swift formatting on macOS when Swift changes — No Client+attest when tool available; real PR fallback; queue reruns
Fast Gate / build-project.yaml:rust-tests-linux clang-format, gersemi, ruff/ratchets, rustfmt, host clippy and Dylint, changed-crate tests incl. relevant GNU-oracle link, touched Linux targets 9m46s (1); 2 skipped and 2 failed executions (7m09s/7m25s) Local-Gate lint+dylint+rust-test; hosted rust-test proof may skip test step Client+attest lint/tests; touched Linux target compilation moves to queue for trusted PRs; full real PR fallback
Windows Link Check / rust-windows-link Linux-hosted MSVC link of every test binary 4m50s (5), 4m37s–5m49s Explicitly no Merge queue only for trusted PRs; real PR fallback for outsiders
Cross Compile / cross-compile Path-selected C/C++ Windows/macOS host-group cross compile — No Merge queue only for trusted PRs; real PR fallback
Rust Cross Lint / rust-cross-lint, Windows x64 clippy, Dylint and test --no-run, own runner 5m28s (1) Local-Gate cross or hosted cross proof Client+attest; queue reruns; expand lint targets below
Rust Cross Lint / same, macOS arm64 Same 6m19s (1) Same Same
Rust Cross Lane Proof / rust-cross-proof Publish combined pass only after both targets succeed 4s (1) Not a check; absent when no pass to publish Remove PR runner allocation on attested path; queue reporting may publish, never skip heavy queue execution
Rust Tests Windows / rust-tests-windows Native Rust tests, format/clippy, applicable Qt SDK validation 10m12s (3), 7m17s–11m25s Local-Gate native coverage; Linux-only stamp insufficient Merge queue only for trusted PRs; real PR fallback
Rust Tests macOS / rust-tests-macos Native Rust tests, format/clippy, applicable Qt SDK validation 12m09s (3), 9m03s–14m58s Same, macOS-native Same
Rust Tier 2 Windows / rust-tier2-windows Unchanged C tests against hybrid and C reference, native platform harness 16m11s (5), 14m56s–19m04s Local-Gate windows-native Merge queue only for trusted PRs; real PR fallback
Rust Tier 2 macOS / rust-tier2-macos Native Tier 2 against both implementations 16m37s (3), 15m22s–19m30s Local-Gate macos-native Same
Rust Tier 2 Linux build / rust-linux-tier2-build Build C reference/hybrid suite and test bundle 12m23s (3), 8m28s–18m05s Existing Tier 2 Local-Gate output or hosted proof guards build Merge queue only for trusted PRs; real PR fallback
Rust Tier 2 Linux tests OFF / rust-linux-tier2 matrix Complete C reference suite 6m15s (3), 6m07s–6m20s Indirect: build skipped, shards do not run Same
Rust Tier 2 Linux tests ON / same Complete hybrid suite 6m26s (3), 6m08s–6m27s Same Same
Qt Frontend Linux / linux-qt-frontend Path-selected Qt frontend compilation/tests — No Merge queue only for trusted PRs; real PR fallback
Validate Data / ci.yml:validate-data Compatibility and services JSON/schema checks when data changes (runner always allocated on PR) 19s (5), 16–33s No Client+attest, scoped before allocation; queue reruns; real PR fallback
CI Gate / ci.yml:ci-gate Aggregate direct/called job results; jobs API catches cancellations 12s (3), 8–21s No Keep required name CI Gate ✅; validate explicit expected coverage
Tier 2 Lane Proof / ci.yml:tier2-lane-proof Publish successful Tier 2 evidence after gate 4s (1) Not a check No PR allocation on attested path; optional queue publication outside gate
Claim bot / claim-bot.yaml:claim → org claim/claim Issue ownership/governance, independent workflow 16s (1), 43313224044 No Keep only meaningful PR governance events; unrelated-event allocation filtering already belongs to #4460
Hardware Windows / vcam-audio-hardware.yaml:windows Download previously scheduled package, install VB-Cable, saved profile/recorded audio qualification 1m38s (2), 1m34s–1m42s No Existing nightly/manual exception: remove PR trigger, schedule existing workflow; not admission evidence for merge SHA
Hardware macOS / same macos Previous package + virtual microphone HAL driver/tone qualification 2m30s (2), 2m26s–2m34s No Same

Hardware timing uses its two latest successful PR runs, 42146564678 and 42145282792, 2026-11-06; these jobs trigger only for the workflow or ci/vcam_audio_hw.py changing. They are not in the five Pull samples.

Declared but not executable on a normal obs-rust PR today: ci-pre:cache-janitor (master push only), ci.yml:cancel-superseded and final cache-janitor (queue only), update-documentation (obsproject owner only), Flatpak runtime reuse/setup/cache transport probes and consumers (manual only), full macOS/Windows/Ubuntu/Flatpak builds and rust-cross-lint-release (full/release events), rust-linux-tier2-done (master push only). Keep their event boundaries. welcome.yaml uses pull_request_target, not pull_request; it is governance, outside this compile/test inventory. Security scans/sanitizers/packaging remain nightly/manual/release, not PR or queue.

Wiring verified today

  • push:121-161: prooft >=0.1 first (prooft soldr); deprecated soldr lint rust --attest --format json → ghd attest stamp --evidence fallback. Missing/failed evidence warns and can still push unless PUSH_REQUIRE_ATTESTATION=1.
  • build-project.yaml:1619-1633: ci_lint local-gate verify --trust sets skip outputs; ci_lint attest verify is gated by ATTEST_MODE, verifies only host fmt/clippy/Dylint/test, and explicitly never changes skips. No ATTEST_MODE repository variable was returned at audit time.
  • ci-attestations.yml maps host fmt/clippy/Dylint/test, two cross lint targets and optional native gates; it has no gates for the three extra release lint targets, Windows linking, format validators or JSON validation.
  • ci/local_gate.py:710-756: cross = Windows x64 + macOS arm64; release adds Windows arm64, macOS x64 and Linux arm64. Host is Linux x64 in the standard lane. Cross also links tests for the two main targets; extra targets lint only.
  • forge-ci/prooft README: per-gate, tree/parent or declared-input binding, freshness and base-owned policy; missing gates mean real CI. These trailers are an honesty contract, not signed execution evidence. Its queue-credit feature is intentionally not adopted by this plan: the queue must recompute heavy checks.

Decisions and trust boundary

  1. Trusted fast path: same-repository PR, author AND authenticated head signer are active obs-rust org members, GitHub reports the final exact HEAD commit signature valid, and every selected client gate has fresh valid evidence under base-owned policy. Resolve identity/membership using authenticated APIs; author association alone is insufficient (private membership exists). An unavailable/denied lookup, unknown signer or unsigned final stamp uses real PR CI, never a skip. Verification proves identity only; a trusted member can still lie about running a command.
  2. Read verifier code, gate mappings and tool pins from the immutable PR base. PR edits to trust surfaces (push, ci/**, .github/**, local-gate.toml, ci-attestations.yml, toolchain/config manifests) force real selected PR checks. Do not execute head code to obtain skip decisions. No pull_request_target compilation, privileged token on fork code, or write-token expansion to resolve membership.
  3. Client evidence can replace PR formatting, self-tests, lint/clippy/Dylint and actually executed unit/differential tests, only gate by gate. Cross compilation never proves native tests, Tier 2 runtime, hardware/packaged behavior or ABI execution. Compile-only/link-only and native/test gates stay distinct. Preserve the old real-run path for forks, non-members, malformed/stale/missing evidence, trust edits and API errors. Outsiders can open RED PRs without a working local toolchain.
  4. All targets means exactly Linux x64/arm64 (x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu), Windows x64/arm64 MSVC (x86_64-pc-windows-msvc, aarch64-pc-windows-msvc), macOS x64/arm64 (x86_64-apple-darwin, aarch64-apple-darwin). Run clippy AND Dylint for all six through soldr. Keep existing oracle exclusions for cross lint, but preserve required links as separate queue coverage.
  5. The queue recomputes the selected heavy lanes on immutable merge-group base/head diff, even with valid client trailers or hosted input proofs. Shared/core changes retain native runtime coverage; path scope is allowed, proof skips are not. Restore queue coverage before removing PR execution. Runnerless cancellations, missing or unexpectedly skipped required matrix legs block. Preserve MQ_RUNNER_LABELS, hosted fallbacks, independent maintenance and required CI Gate ✅ name.
  6. Strict client refusal remains opt-in during rollout; a complete stamp is required for the fast path, never for contributing. Stamping changes the message, so any trusted signed fast path must sign the final stamped commit; never treat a pre-amend signature as valid. If signing is unavailable use normal PR CI.
  7. No new workflow files, changes to public headers/C tests, product Rust ports, speculative security integrations, admin merges or ruleset bypasses. Hardware qualification moves to a schedule in its existing workflow because it tests an older package, not the merge candidate; this follows the existing nightly packaging policy.

Prior decisions, duplicates and changes of policy

Searched open/closed issues for attestation, local gate, client, prooft, Cross Lint, dylint, shift left, plus open PRs and attestation-only titles/bodies. No equivalent open issue covers this complete migration. The following overlap is deliberate and should not create parallel implementations:

Delivery and validation

Native sub-issues carry the independently landable work, exact files, RED tests and acceptance criteria. Implement the base-owned verifier, full client target evidence and client validators, then restore and enforce queue coverage, then cut over PR routing. Hardware scheduling is independent. Each implementation records focused local RED → GREEN evidence and observes normal PR/queue checks; do not create extra CI workflows or fork CI to prevalidate.

The final rollout must show a trusted fully attested PR with only scope/verifier/aggregate runner allocation (plus necessary governance), an unattested fork/non-member with real selected PR checks, and a queue run executing every selected heavy leg despite valid stamps. Report per-event job count, successful execution time and runner wait separately; do not assert latency savings from this small audit sample.

Recommended implementation order: #4744 (base-owned verifier), #4745 (all-target client Rust evidence), #4746 (client validators), #4747 (heavy queue execution), then #4748 (PR routing cutover). #4749 (nightly hardware scheduling) is independent and can land at any time. These six work items are attached as native sub-issues, each with an exact file list, RED test and acceptance criteria. #4748 requires all four preceding implementation contracts merged; #4747 must land before heavy PR coverage is removed. All six are fully specified and labeled ready.

Sub-issues

Sub-issues

7 of 7 Issues completed
Loading 7 sub-issues

Activity

  1. zackees commented on Nov 13, 2026

    @zackees
    MemberAuthor

    Claiming: prooft ecosystem compatibility in ./push (pool slot obs-studio3). 1. Record the installed writer rejecting the current data/swift policy. 2. Use the existing immutable upstream ecosystem-support pin for the client writer and add regression coverage. 3. Verify attestation, lint, and publish a focused PR. This is a partial follow-up and will only reference this issue.

  2. added
    ready
    on Nov 13, 2026
  3. zackees commented on Nov 13, 2026

    @zackees
    MemberAuthor

    Claiming: end-to-end attested-skip verification in pool slot obs-studio3 (maintainer-assigned scope). 1. Clarify the host-only lint entry point versus complete ./push client evidence without touching the verifier trust surface. 2. Run PUSH_REQUIRE_ATTESTATION=1 ./push and inspect every PR job and attestation decision. 3. Fix blockers with RED/GREEN evidence, compare an unattested baseline, and queue the resulting PR. First PR after the strict client gate completes.

  4. zackees commented on Nov 13, 2026

    @zackees
    MemberAuthor

    End-to-end probe #4828 reached the real hosted verifier with a signed final head and 19 valid gates (local immutable-base verification: trusted=true, fast_path=true). Hosted CI Mode job 131743539181 instead timed out after 120 seconds executing the base-owned ci/gh_graphql.py fallback. That fallback installs ghd from the initial git source pin, whose soldr PEP 517 backend compiles the Rust CLI on a cold runner. PR checks therefore fell back to Fast Gate, Windows linking and cross lint. I am fixing the cold bootstrap to consume the exact published ghd 0.2.1 binary wheel with source builds disabled, with RED/GREEN regression coverage, then will re-run the ordinary probe after the fix is in its immutable base. Auto-merge on #4828 is held during this repair.

  5. moved this from Tracker to In progress in obs-rust Multiviewon Nov 13, 2026
  6. zackees commented on Nov 13, 2026

    @zackees
    MemberAuthor

    Probe result: complete client evidence did not produce hosted skips because the cold base-owned GraphQL wrapper timed out after 120s; selected Fast Gate, Windows MSVC link and cross lint really executed. #4828 now repairs that bootstrap using the exact published ghd 0.2.1 wheel with source builds disabled (RED then GREEN, focused tests, fresh-cache launch in 2.261s, and another complete strict client gate). Auto-merge is armed on signed head 8f5b6ff; required run 43386672253 is waiting for runners. This CI trust-surface repair must run real checks. Actual hosted verification-only allocation is still unproven and must be tested after it lands; native sub-issue #4834 is ready with the precise probe and evidence requirements. Initial full job/log inventory and baselines are retained in the pool report directory. Returning the slot clean and retiring as requested.

  7. zackees commented on Nov 13, 2026

    @zackees
    MemberAuthor

    Claiming: ./push CI-pinned soldr bootstrap and clean toolchain environment (pool slot obs-studio3). 1. Add and run RED regression tests for pin selection and inherited overrides. 2. Resolve the exact existing CI pin automatically through uv, isolate the proof environment, and document PATH/explicit selection. 3. Run ./lint and a strict complete attested push, then open and queue a focused PR. This is the assigned reproducibility follow-up; it does not take over the verifier probe owned by #4828/#4834. First PR expected this session.

  8. moved this from In progress to Tracker in obs-rust Multiviewon Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions