Repository navigation
ci(admission): interim fail-closed history-sync qualification route (#12437) - #12486
Conversation
A same-repository PR is a validated history-sync subject only when the `history-sync` label was last applied by an admin or maintain role, the body declares `History-sync source: <other repo>@<full sha>` and `History-sync destination base: <full sha>`, the source is on the other repository's default branch, source S and base B are ancestors of the exact head H, B is an ancestor of the live base tip, and S is not reachable from B. It is honored only on the merge-ready pull_request request; the merge_group path is unchanged and squash-only. A validated subject passes only the size caps, as history_sync_admitted. rust-gates binds the tested merge ref G to (base tip, H), B and S before recording `not_applicable:history_sync:<H>` in place of the diff-scoped PR-evidence producers; every other gate runs. Ripr Rust Small Result accepts that record only for a history_sync_admitted admission of the same head, and the late recheck requires the label to still be present.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 13 minutes. View limit details
|
|
Triage: inherited E0061 via the wheel build (workflow-only PR cannot produce a Rust arity error). Rebase/re-run after the main arity repair; candidate logic unaffected. |
|
@codex address both current unresolved review threads on this existing Draft branch only. Expected current head 1. Validated history sync must never take the docs-only success pathA validated sync is a history/composition transaction even when its net file diff is Markdown-only. Carry the trusted Required controls:
Use the existing trusted admission output; do not reimplement history-sync validation in the routing job. 2. Add the required durable contract and traceabilityAdd or amend the appropriate CI/admission spec under
Update the PR body with the exact spec and test symbols. Run focused admission self-tests, routing/Result tests including the new docs-only sync controls, Rust-gate workflow contract, spec/traceability/docs/workflow policy, strict relevant Clippy and formatting. Report exact results and limitations. Keep the route interim and Draft. No Ready/merge-ready request, settings change, queue activation, broad trigger change, history-sync label application to #12009, or merge. |
|
You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Current-head review: two repairs required before this can leave Draft
The history-sync identity and fail-closed ancestry work is useful, but the current source has one material qualification bypass and one durable-contract gap.
1. Admitted docs-only sync can skip product qualification
detect-docs-only runs before trusted admission. Every Rust implementation lane then skips when that output is true, and Result accepts the docs gate before requiring a successful implementation lane. A valid history sync whose net diff is Markdown-only can therefore satisfy the required result without build/fmt/Clippy/policy/goldens/package/test execution.
history_sync_admitted may replace only the diff-scoped PR-evidence producers with the exact typed not_applicable:history_sync:<H> receipt. It may not take the docs-only product shortcut.
Repair on this branch:
- derive an effective docs-only value after trusted admission;
- force effective docs-only false for
history_sync_admitted, failing closed on missing/contradictory admission; - use that value in every implementation-lane condition and in
Result; - add controls proving ordinary docs-only PRs retain the docs route, admitted docs-only syncs execute an implementation lane, missing implementation/evidence cannot pass, and non-admitted typed skips still fail.
2. Add spec-to-test-to-code traceability
The route changes admission, ancestry, evidence applicability, and protected-result semantics across roughly 1,000 lines. Add one bounded history-sync qualification spec plus its index/traceability entry, mapping source S, destination base B, PR head H, tested composition G, authorized label actor, full-SHA ancestry rules, the exact diff-scoped exception, universal obligations that remain mandatory, and the interim pre-queue-only lifetime.
Do not add another workflow or broaden the exception. Keep the PR Draft until the revised source and focused workflow/admission/Result tests are published and re-reviewed.
|
Taking the existing Scope: repair the docs-only qualification bypass; preserve privileged-label authorization through final eligibility; bind final eligibility to the tested source/base/head; add the bounded specification and executable negative controls. No settings change, queue cutover, admin merge, source-history merge or publication is authorized by this comment. I will use an expected-head lease for any branch update and leave the PR Draft until the affected source and execution evidence are complete. Other work on this branch should coordinate here rather than push concurrently. The older #12437 description's two-parent-head rule is superseded by the existing S/B/H/G identity model. Repair descendants of the imported merge remain valid heads; the tested composition, not the tip's parent count, is the integration subject. |
|
Execution checkpoint against published head I reproduced the docs-only false green by extracting and executing this head's actual Local repair now:
Executed: 22 actual Bash scope/result controls; 26 continuity-helper controls using injected canonical-validator/API boundaries; seven targeted source mutations rejected; YAML plus all 16 literal Bash run blocks parse; largest nonblank block remains within the existing 92-line limit. The Git patch applies cleanly to an isolated copy of the recorded workflow and reproduces all four working files. Patch SHA256 No additional qualification request, settings mutation, merge or queue activation was made for this PR. The exception remains an interim history-sync route under #12437, not the ordinary queue-only lifecycle. |
|
Resuming the retained repair on this existing PR from exact head The prior 22 actual Bash controls and 26 continuity controls pass again. I added 20 canonical-validator/CLI transport controls: the positive uses the actual admission function bodies; malformed graph/source/role and unpaged/failed transport cases refuse; CLI execution uses a local read-only The ordinary queue-only destination is unchanged. This PR is the separately owned exceptional history-sync route from #12437; its source work is not activation or history-import authorization. |
|
Disposition at head 70439b1: not touched. Reasons: (1) it is actively owned; the 2026-11-03 13:52Z comment says a writer is repairing the docs-only false green and continuity binding on this PR, with an expected-head update pending, and the branch also has stated conflicts; (2) it is the interim route for the #12009 step-1 history-sync, which is a pending project-owner (Steven) decision; (3) it edits routed-rust.yml/rust-gates.yml/candidate_admission.py, so it needs a Rust/hosted build to qualify. Not superseded: main has no history-sync admission. Unblocks it: Steven's decision on the #12009 route, the owner's pushed repair, then conflict merge with main and exact-head Result plus review of record. Generated by Claude Code |
…12437) Preserve the newer source-review disposition and ownership claim observability while rebasing the history-sync admission, exact-head continuity witness, and full-scope product qualification on main. Local proof: 48 history-sync Python tests; candidate and hard-cut self-tests; trusted-bundle replay; workflow YAML parse and budgets. Rust policy/hosted gates remain pending.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
No actionable findings emitted in this integration review.
Inspected surfaces: full 18-file delta against observed main f2ba7ed38f23155281878af65079de274e56fb52; the five formerly conflicting files; canonical history-sync validation, live continuity helper, diff-scoped PR evidence skip, routed scope and Result; RIPR-SPEC-0413 and its traceability; the two resolved Devin findings. Exact reviewed head: c0afce5308a2d6cd5985601d4b39dcd5060d8435.
Checks performed: actor/label and source/base/head admissibility, queue rejection, strict Git parent and tree binding, contradictory admission status, docs-only net-diff bypass, successful implementation requirement, per-lane typed evidence, current-head review-disposition precheck, late authorization recheck from the trusted bundle, concurrent-claim observability, action/workflow permissions and run-block budget.
Why no comments: the merged tree preserves both control profiles; the historical docs-only false green is closed by an executed scope selection plus a final Result invariant. The spec/code/test map is present. Two GitHub review threads were answered and resolved. The local candidate merge tree equals the published GitHub tree d07209b38cbf4aa82f42f85407d68aeeda2689f6.
Residual risk: native Rust/xtask workflow-policy tests, required product gate, and live authorization APIs have yet to be observed green for this exact head. This is a source-review disposition, not a release or merge qualification.
Validation signal:
- Observed: Python history-sync tests 48/48; candidate-admission and release-cut self-tests; trusted-bundle replay 7/7; both workflow/action YAML parse; 329-line composite budget and 92-line routed budget;
git diff --checkclean. Current-head GitHub Source of Truth and Windows Gate have passed. - Reported: prior Windows-host Rust proof on old head
70439b1in the PR body. - Not verified:
cargo xtask check-workflows, Rust xtask policy and routed tests at this head (Cargo 1.95.0 not available in this executor), the requiredRipr Rust Small Result(not yet requested), and live label/permission/merge protection.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
No actionable findings emitted in this integration review.
Inspected surfaces: 18-file delta against the observed main base, the five former conflicts, canonical history-sync admission, live continuity helper, diff-scoped PR evidence, routed scope and Result, SPEC-0413 mappings, and the two resolved Devin threads. Exact head: c0afce5.
Checks performed: privileged label event and source ancestry, strict Git parent and tree binding, docs-only net-diff handling, mandatory implementation execution, per-lane typed evidence, late live recheck from the trusted bundle, concurrent-claim observability and CI permission boundaries.
Why no comments: both control profiles survive the merged tree. The previously demonstrated docs-only bypass is closed by the executed scope and Result checks. Policy mapping and cross-language regression coverage are present.
Residual risk: hosted Rust qualification and live permission/label readbacks remain separate acceptance gates.
Validation signal:
- Observed: 48 Python history-sync tests pass; admission and hard-cut self-tests pass; trusted-bundle replay 7/7 passes; workflow YAML parse, 329/92 run-block budgets, diff whitespace and Git tree identity verified. Current-head Source of Truth and Windows Gate passed.
- Reported: historical Windows-host Rust checks on the predecessor candidate.
- Not verified: Rust workspace policy tests on this exact head, the required routed Result, and protected integration acceptance.
Preserve both PR-evidence summary fields by combining their printf calls. The failed hosted preflight on run 41783407381 reported 32/31 nonempty lines; the amended local YAML now measures exactly 31. No workflow allowlist budget or gate was weakened.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
No actionable findings emitted on exact head f4b82c1.
Inspected surfaces: full history-sync source and workflow contract from the integrated predecessor, plus the one-file Rust-gate summary repair. The newer commit combines two summary rows into one printf while retaining their separately named values and order.
Checks performed: the output still displays both PR-evidence outcome and typed scope; executable nonempty Rust-gate run-block length is 31, matching the registered allowance. Rechecked workflow YAML parsing, the source/base/head and trusted-review controls, and the resolved review findings. Published Git tree 90378a663e57b4a8516e0635c0a5317422352865 matches local bytes.
Residual risk: current-head Rust policy/xtask and full product qualification must be established by the hosted gate. Live authorization and the protected merge path are separate acceptance requirements.
Validation signal:
- Observed: 31-line budget, YAML parse, diff whitespace and exact tree identity. The predecessor had 48 history-sync controls and seven trusted-bundle cases passing, plus completed Source of Truth and Windows Gate.
- Reported: historical Windows Rust proof in the PR body.
- Not verified: full hosted Rust qualifications for f4b82c1 and live special-import acceptance.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact source-reviewed head: adf278e65b1335ec718300cf60b1b3b2b624ae2d (tree a06428ba708fe45faa52d30f46c70fbde6eee5a6), ordinary controller PR #12486 under #12437.
This is a one-file fast-forward delta from f4b82c1: the existing policy/process_allowlist.txt entry for the routed_dispatch_result.rs test harness now records four literal Command::new sites, matching the four sites inspected in source. The two added sites exercise private Git-history setup and local PR-evidence Bash replay; they introduce no production process authority, credentials, or dispatch. A duplicate shard entry was avoided because the policy parser rejects duplicate declarations.
The earlier integration preserved the current main ownership-claim/Result logic, admission controls and history-sync scope, with 48 focused Python cases, trusted-bundle replay and YAML/line-budget checks. The immediately preceding hosted run reached repository policy preflight and surfaced this exact count mismatch; the new head carries its bounded policy repair. All existing inline review threads were answered and resolved.
Source review is head-bound. Hosted Rust, extension and normalized Result qualification remain independent observations.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- The rust-gates skip trusts reusable-workflow inputs for admission reason, H, S, and B, so a caller can synthesize the skip without trusted admission.
- The security invariant depends on GitHub API token permissions and live label/collaborator/event reads that were not established in the available local evidence.
Verification questions
- Confirm the admission controls cover malformed declarations, unauthorized label events, moved or unreadable graph facts, source containment, and ordinary admission fallbacks, but do not distinguish a non-default-branch source commit from a source commit reachable only through another branch.
Refuted
- The typed evidence contract is duplicated across admission outputs, rust-gates output, and Result parsing, increasing drift risk.
- The admission validator appears to require the source SHA to be reachable in the destination repository, even though the source SHA is declared in the other repository.
Parked follow-ups
- The history-sync route has sibling enforcement points rather than a single shared authorization primitive, so future changes may need coordinated updates across admission, continuity, workflow, and Rust tests.
- The live continuity witness checks the integration commit's ordered parents but does not independently verify that the recorded tree is the tree of the tested pull_request merge composition beyond that parent binding.
Evidence gaps
- Exact-head cargo-test qualification is not established by the supplied evidence.
- Model proof intent was rejected by deterministic validation.
- The new Rust and Python regression controls are substantial, but the shared packet reports ripr and actionlint failures and cargo-test as receipt-absent.
…test mapping (#12437) Preserve the existing admission/qualification behavior, add the required headings and explicit non-goals/metrics, and map the three Rust Result/PR-evidence controls.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact reviewed source head 74b58c43c1d8e7fb17695301a61b76ee106f7a98 (tree ab95695ab6d541819a912090453c6b3b8145a196) for ordinary controller PR #12486, governed by #12437.
This two-file documentation and traceability delta preserves the existing history-sync contract text while adding the repository's required specification headings (Problem, Behavior, Required Evidence, Non-Goals, Acceptance Examples, Test Mapping, Implementation Mapping, Metrics). It also explicitly maps the three executable Rust Result/PR-evidence controls and records the existing unit_test_pass_rate metric. The spec's previous Draft-only assertion now accurately distinguishes source review from exact-head hosted qualification.
Prior head adf278e6 passed check-process-policy and check-policy-all in hosted run 41786769582; check-spec-format then identified the absent headings. The current patch was verified against the formatter's exact heading list, TOML parses with six mapped tests, and git diff --check is clean. The earlier 48 focused history-sync controls, trusted admission bundle and source-reconciliation review remain intact. All two inline review threads were answered and resolved.
Exact-head hosted product and normalized required-result proof remain separate from this source review.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head source review for 6c671361ad0385ff821f881ddb3c2a0aabe5a708 (tree 9b87e94a745bce1209c00caf581ce30b0522fb46).
Reviewed the three contract failures surfaced by hosted run 41788990533 against the actual source, not merely their failure summaries:
- Shard 1: rust-gate inventory required two independent printf rows although the workflow now emits the real
pr_evidenceoutcome and scope in one ordered printf to meet the 31-line budget. The test now pins both arguments, the actual output binding and adversarial swaps/fabricated successes. - Shard 2: the positive history-sync Result fixture supplied
history_sync_admittedwithout the matchingADMISSION_HISTORY_SYNC=validatedauthority. The fixture now supplies the real authority and successful live composition; negatives verify absent/rejected authority, docs-only scope, failed composition and merge-group exclusion. - Shard 3: the hosted-cache writer test still pinned the detector's old guard when admission now deliberately selects full scope for history sync. The test pins the admission-scoped guard and guards the main-push detector-to-admission forwarding with mutations that would retire the cache writer.
The older two inline findings are resolved. No new source issue identified in these three repairs. Local git diff --check, 22 history-sync scope tests and 26 live-composition tests pass. Rust toolchain is unavailable in this workspace; hosted fmt, compile, policies, full shards and protected Result remain required before integration. This source review does not claim hosted qualification.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head source review for 0bd3a49d5a4ebe603c3c8daa441734693cb8f1ff (tree ea38947100a3fc7d110349c61824e9fdbc670f17).
This head changes only the formatting of two expressions in xtask/tests/rust_gate_workflow_contract.rs to match the exact cargo fmt --check diff emitted by hosted Rust gates job 126464042625 (run 41797127897). The tested predicate, summary bindings and adversarial controls are semantically unchanged from source-reviewed head 6c671361. Confirmed local tree/remote blob identity and git diff --check. The 48 Python history-sync controls passed on the predecessor and are unaffected.
Hosted rustfmt, compilation, policy, shard tests, and the required Result must still qualify this exact head before merge.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head source review for 0fa27e8138bcf6c0b55f71023dab459330032513 (tree 9f968d57b22066dbb5a32a8d1a58c049b99bc4b7).
This head applies the two remaining rustfmt hunks exactly as reported by hosted job 126466286629 (run 41797638171), in tools/repo-policy/tests/hosted_cache_continuity.rs and xtask/tests/routed_dispatch_result.rs. The earlier head 0bd3a49d had already applied the two rustfmt hunks in xtask/tests/rust_gate_workflow_contract.rs. Re-read the full original formatting log: the combined four hunks now match the formatter's emitted transformations across all three changed files.
No semantic predicates, source-control decisions, or test cases changed from the previously reviewed 6c671361. The locally committed tree and remote blobs match, and git diff --check passes. New hosted Rust qualification, shard tests and protected Result are still required.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact-head source review for 2083656c3c3ef932f94a09514320c6c7c926b5ba (tree cd1c80a781e6af6bf9b516140f832ac72f697673).
Hosted run 41798398504 passed the full Rust gates and VS Code e2e. Three of four shards succeeded; shard 1 reported one failure: xtask::support_tier_fast_route::committed_spec_declarations_reach_actual_check_fast_dispatch, whose canonical no-impact fixture was rejected because RIPR-SPEC-0413's first Support-tier impact: entry was none. This governs..., not the parser's exact None form.
Reviewed xtask/src/main.rs::spec_support_tier_impact_is_none: its first nonempty entry normalizes to lowercase and accepts exactly none or none for ...; the previous sentence is neither. This head changes only the spec's first entry to None. and retains the original explanation in the following paragraph. The validator now recognizes an explicit no-impact declaration; no product, authority, or support tier changes. The previous three source-contract repairs passed in shards 1–3 except for this independent spec failure; shard 4 also passed.
Local committed tree and remote Git blob match; git diff --check passes. Full hosted requalification and the protected Result on this exact head are still required before merge.
There was a problem hiding this comment.
Confirmed findings
- The seeded thread already reports that rust-gates trusts caller-provided admission reason/head/S/B rather than trusted admission evidence; the current diff still wires those values as reusable-workflow inputs.
Verification questions
- Confirm continuity tests inject a fake validator, so they do not exercise the production history_sync_check or production gh_api_json transport.
- Confirm the candidate-admission self-test covers malformed and moved graph facts, while the live fixture proves only identity/readback mechanics; no test combines both implementations.
- Confirm the final Result checks typed evidence consistency but cannot establish that rust-gates received authority from the trusted admission bundle.
Evidence gaps
- The exact-head Rust qualification receipt is absent, so compilation and runtime behavior of the changed test fixtures are not established by this lane.
- The required exact-head hosted Rust qualification has no cargo-test receipt in the supplied evidence; the PR body explicitly says new hosted qualification remains required.
- Actionlint failed and zizmor was unavailable, so workflow syntax/security validation is not established by the available packet.
- Hosted evidence is missing for whether the workflow token can read label events and collaborator permissions.
- Model proof intent was rejected by deterministic validation.
- The current packet lacks successful executable evidence for the changed workflow and Rust contracts.
- No additional public sibling-path finding is justified from the supplied diff; hosted qualification and live permission/readback checks remain separate acceptance obligations.
Parked follow-ups
- History-sync authorization and composition rules are duplicated across Python admission, live readback, workflow shell checks, Result shell, and Rust test fixtures, creating multiple policies for one exception.
Governing issue or accepted claim: #12437
Acceptance delta (one sentence): A validated history-sync PR (owner-applied
history-synclabel, declared source and destination-base SHAs proven against the PR head) is admitted past the ordinary size caps and qualifies with every non-diff-scoped lane, while only the diff-scoped PR-evidence producers record a typednot_applicable: history_sync.Current head and acceptance — November 4, 2026
Merged by normal protected squash as
ac513a19f4e156a55b4abf51eb78e9bc98cb06e8on November 4, 2026. Exact-head Rust qualification completed before merge. The actual labeled source-sync canary remains separate and pending.Current head
2083656c3c3ef932f94a09514320c6c7c926b5barepairs one support-tier declaration rejected by the actual Rust test suite, on fully formatted and source-reviewed head0fa27e813. Its sole file isdocs/specs/RIPR-SPEC-0413-history-sync-exact-composition-qualification.md. The local committed treecd1c80a781e6af6bf9b516140f832ac72f697673matches the remote. Earlier chain:6c671361fixed three contract tests;0bd3a49dand0fa27e813applied the full rustfmt diff;74b58c43fixed spec headings/traceability;adf278e6process allowance;f4b82c1workflow line budget;c0afce5integration with main.git diff --checkpassed locally at the integration tree.SOURCE_REVIEW_READYwas recorded for74b58c43as review #5764452456.merge-readyattempt 41782789589 refused a noncanonical review body before Rust allocation. The corrected review was checked with the actual parser and accepted by admission on 41783407381.f4b82c1combines two summaryprintfrows onto one executable line and preserves the 31-line budget.Command::newsites inxtask/tests/routed_dispatch_result.rsagainst the existing two-site process allowance. The new head changes that exact registered count to four with the test-only authority reason. Its VS Code extension e2e lane passed, but the required Result failed on process policy. All new-head Rust/xtask qualification remains to be established.check-process-policy,check-policy-alland the VS Code extension e2e lane. It reachedcheck-spec-format, which enumerated seven missing headings in RIPR-SPEC-0413. This head adds those exact headings, explicit non-goals and metrics, and three Rust Result/PR-evidence test mappings in traceability. Required proof is still outstanding for this head.74b58c43, passed Rust gates, policy, schema, VS Code e2e and shard 4. Shards 1–3 exposed three source-contract failures: compactedpr_evidencesummary row, missing history-sync authority in a positive Result fixture, and an outdated main cache-writer guard assertion. The final Result failed correctly. Current head6c671361repairs all three and adds adversarial negative checks.SOURCE_REVIEW_READYcomment review was recorded for the6c671361source repair. Local 22 history-sync scope + 26 live-composition Python tests, workflow parsing andgit diff --checkpassed. Rust cannot be run locally here.6c671361, butcargo fmt --checkstopped at two expression layouts inxtask/tests/rust_gate_workflow_contract.rs; hosted source provided the precise patch.0bd3a49dapplies exactly those two format-only differences. A new exact-headSOURCE_REVIEW_READYcomment review is recorded. Requalification of fmt, compiler, full shards and protected Result remains pending.0bd3a49dand exposed two additional rustfmt hunks in the other two changed Rust files. The previous log also contained these hunks; my first extraction was incomplete. Head0fa27e813applies them verbatim, completing the entire formatter diff. Exact-head review #5765347292 is recorded; new hosted Rust gates/shards/Result are still outstanding.0fa27e813, passed all Rust gates and VS Code e2e, and passed shards 2–4. Shard 1 reported exactly one failed test,xtask::support_tier_fast_route::committed_spec_declarations_reach_actual_check_fast_dispatch: RIPR-SPEC-0413's inlinenone. This ...was not the canonicalNonetoken expected by the checked validator. Head2083656cchanges only that declaration while retaining its explanation. Exact-head source review #5766152071 recorded; full rerun and protected Result are pending.2083656c, passed Rust gates, VS Code e2e, all four native Rust test shards, aggregate shard verification and the requiredRipr Rust Small Result. The two inline review threads are resolved;merge-readyand exact-headSOURCE_REVIEW_READYwere recorded. GitHub accepted the normal protected squash merge, andac513a19…maincompares identical.history-synclabel, a live labeled-sync canary, and an owner-approved protected merge-commit route; the repository remains squash-only for ordinary PRs.The older Windows-host proof below describes head
70439b1and is retained as history, not current-head acceptance. The controller's exact-head hosted Rust qualification and protected integration are now complete; actual owner-label API behavior and protected merge of a genuine history-sync subject are still unproven.What changed
An interim qualification route for history-preserving source⇄swarm sync PRs (#12009 step 1, the swarm→ripr promotion, and the post-release back-sync) under the currently installed
merge-readyrequest. It is valid only until queue-only enforcement (#4838). The successor is a history-sync profile in the #4984 design. No new workflow triggers.Admission (
candidate_admission.py, trusted bundle). A PR is a validated subject only if all of these hold; otherwise it gets exactly today's behavior:history-synclabel, most recently applied by an actor whoserole_nameisadminormaintain;pull_requestevent (the runner's event name, not an input);History-sync source: <owner/repo>@<sha>(repo on the allowlist and not this repo) and oneHistory-sync destination base: <sha>, both full 40-hex;The head's own parent shape is not authority, so repair commits after the sync merge are fine. A validated subject skips only the two size caps (
history_sync_admitted). Claim identity, competing-candidate, hard-cut, unresolved-thread and head-moved refusals all still apply.rust-gates.yml. Only under
history_sync_admittedonpull_request, and only after binding the tested commit G (G^1= base tip,G^2= H, no third parent; B in base tip; S in H and not in base tip), the diff-scoped producers (ripr-pr,--check,ripr-review-comments, impacted evidence,ripr-pr-summary,ripr-annotations, and their schema-sweep rows) are replaced by a visibletarget/ripr/pr/not-applicable.jsonrecord and the lane outputnot_applicable:history_sync:<H>. Build, clippy, fmt, the test shards, policies, goldens, packages and every other gate run unchanged.routed-rust.yml Result.
not_applicable:*record without a history-sync admission of this exact pull_request head.history-synclabel to still be present.Merge queue. Unchanged and squash-only. A two-parent queued commit is refused even with the label (new negative test).
Proof (Windows host, at
70439b1)candidate_admission.py --self-test: pass. A sweep of 19 single-check mutations (each check disabled or loosened) makes the self-test fail every time.release_cut_admission.py --self-testandtest_trusted_bundle.py --self-testpass.cargo test -p xtask --test hard_cut_admission_selftest: 21/21 (the output-count test was updated 11 → 15).cargo test -p xtask --test rust_gate_workflow_contract: 17/17.cargo test -p xtask --test routed_dispatch_result: all pass exceptmanual_admission_producer_does_not_supply_pr_qualification, which clears the environment sopython3resolves to the Windows Store launcher (host-only; expected to pass on Linux).cargo test -p repo-policy: pass.cargo xtask check-workflows: pass.cargo fmt --check: clean.routed_queue_resolution.rsis unix-only. It type-checks forx86_64-unknown-linux-gnu; hosted CI runs it.collaborators/{login}/permissionthrough the workflow token (admission job gainsissues: read). If either is refused, the route rejects and falls back to the ordinary oversized refusal (fail closed).Known limits (documented in MERGE_FLOW.md)
pull_request,routed-rust.yml/rust-gates.ymlcome from the PR merge ref, so the skip and Result logic are PR-supplied, as they already are for every gate. Admission runs from the trusted base bundle, so a PR changing admission is judged by the old code; this PR therefore takes the ordinary route.history_sync_live.pyreadback reruns the canonical admission validator and binds the latest label event, actor's current admin/maintain permission, live source and destination base, exact PR head and GitHub integration tree. The Result additionally checks label presence. This is a readback witness, not an atomic expected-base lease.EffortlessMetrics/riprseparately, alongside ripr integration(vscode): make standard LSP server state the single authority and retire split-brain CLI/artifact fallbacks #1627.