Skip to content

ci(admission): interim fail-closed history-sync qualification route (#12437) - #12486

Merged
EffortlessSteven merged 10 commits into
mainfrom
ci/history-sync-route
Nov 4, 2026
Merged

EffortlessSteven merged 10 commits into
mainfrom
ci/history-sync-route

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #12437
Acceptance delta (one sentence): A validated history-sync PR (owner-applied history-sync label, 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 typed not_applicable: history_sync.

Current head and acceptance — November 4, 2026

Merged by normal protected squash as ac513a19f4e156a55b4abf51eb78e9bc98cb06e8 on November 4, 2026. Exact-head Rust qualification completed before merge. The actual labeled source-sync canary remains separate and pending.

Current head 2083656c3c3ef932f94a09514320c6c7c926b5ba repairs one support-tier declaration rejected by the actual Rust test suite, on fully formatted and source-reviewed head 0fa27e813. Its sole file is docs/specs/RIPR-SPEC-0413-history-sync-exact-composition-qualification.md. The local committed tree cd1c80a781e6af6bf9b516140f832ac72f697673 matches the remote. Earlier chain: 6c671361 fixed three contract tests; 0bd3a49d and 0fa27e813 applied the full rustfmt diff; 74b58c43 fixed spec headings/traceability; adf278e6 process allowance; f4b82c1 workflow line budget; c0afce5 integration with main.

  • Resolved the five original conflicts, preserving both history-sync validation/full product scope and main's newer ownership-claim observability, trusted review-disposition checks and routed Result logic.
  • Added the combined admission discriminator; 48 history-sync Python tests, admission and hard-cut self-tests, trusted-bundle replay (7 cases), YAML parsing and git diff --check passed locally at the integration tree.
  • Both earlier Devin findings were answered and their inline threads resolved. Current exact-head SOURCE_REVIEW_READY was recorded for 74b58c43 as review #5764452456.
  • First merge-ready attempt 41782789589 refused a noncanonical review body before Rust allocation. The corrected review was checked with the actual parser and accepted by admission on 41783407381.
  • The second run found a Rust-gate workflow-size excess (32 vs 31 nonempty lines); f4b82c1 combines two summary printf rows onto one executable line and preserves the 31-line budget.
  • Third run 41785179031 accepted the subject, reached repository policy preflight and showed four test-only Command::new sites in xtask/tests/routed_dispatch_result.rs against 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.
  • Fourth run 41786769582 passed check-process-policy, check-policy-all and the VS Code extension e2e lane. It reached check-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.
  • Fifth run 41788990533 admitted 74b58c43, passed Rust gates, policy, schema, VS Code e2e and shard 4. Shards 1–3 exposed three source-contract failures: compacted pr_evidence summary row, missing history-sync authority in a positive Result fixture, and an outdated main cache-writer guard assertion. The final Result failed correctly. Current head 6c671361 repairs all three and adds adversarial negative checks.
  • Exact-head SOURCE_REVIEW_READY comment review was recorded for the 6c671361 source repair. Local 22 history-sync scope + 26 live-composition Python tests, workflow parsing and git diff --check passed. Rust cannot be run locally here.
  • Sixth run 41797127897 admitted 6c671361, but cargo fmt --check stopped at two expression layouts in xtask/tests/rust_gate_workflow_contract.rs; hosted source provided the precise patch. 0bd3a49d applies exactly those two format-only differences. A new exact-head SOURCE_REVIEW_READY comment review is recorded. Requalification of fmt, compiler, full shards and protected Result remains pending.
  • Seventh run 41797638171 admitted 0bd3a49d and exposed two additional rustfmt hunks in the other two changed Rust files. The previous log also contained these hunks; my first extraction was incomplete. Head 0fa27e813 applies them verbatim, completing the entire formatter diff. Exact-head review #5765347292 is recorded; new hosted Rust gates/shards/Result are still outstanding.
  • Eighth run 41798398504 admitted 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 inline none. This ... was not the canonical None token expected by the checked validator. Head 2083656c changes only that declaration while retaining its explanation. Exact-head source review #5766152071 recorded; full rerun and protected Result are pending.
  • Ninth exact-head run 41807289093 admitted 2083656c, passed Rust gates, VS Code e2e, all four native Rust test shards, aggregate shard verification and the required Ripr Rust Small Result. The two inline review threads are resolved; merge-ready and exact-head SOURCE_REVIEW_READY were recorded. GitHub accepted the normal protected squash merge, and ac513a19…main compares identical.
  • The history-sync controller is on main. A future Merge ripr main into swarm (history-preserving sync, step 1) #12009 attempt still requires a refreshed exact P/B/H/G composition, genuinely authorized history-sync label, 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 70439b1 and 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-ready request. 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-sync label, most recently applied by an actor whose role_name is admin or maintain;
  • pull_request event (the runner's event name, not an input);
  • same-repo head and base;
  • the body declares exactly one History-sync source: <owner/repo>@<sha> (repo on the allowlist and not this repo) and one History-sync destination base: <sha>, both full 40-hex;
  • S is on the source repo's default branch;
  • S and B are strict ancestors of H;
  • B is an ancestor of the live base tip;
  • S is not reachable from B (an unread comparison rejects);
  • H unmoved during the reads.

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_admitted on pull_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 visible target/ripr/pr/not-applicable.json record and the lane output not_applicable:history_sync:<H>. Build, clippy, fmt, the test shards, policies, goldens, packages and every other gate run unchanged.

routed-rust.yml Result.

  • Fails if any succeeded lane carries a not_applicable:* record without a history-sync admission of this exact pull_request head.
  • Fails if, under such an admission, any succeeded lane lacks exactly that record.
  • The late eligibility recheck also requires the history-sync label 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-test and test_trusted_bundle.py --self-test pass.
  • 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 except manual_admission_producer_does_not_supply_pr_qualification, which clears the environment so python3 resolves 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.
  • Not run locally: routed_queue_resolution.rs is unix-only. It type-checks for x86_64-unknown-linux-gnu; hosted CI runs it.
  • Live API reads not yet observed: issue label events and collaborators/{login}/permission through the workflow token (admission job gains issues: 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)

  • On pull_request, routed-rust.yml/rust-gates.yml come 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.
  • The final trusted history_sync_live.py readback 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.
  • Swarm→ripr needs this route ported into EffortlessMetrics/ripr separately, alongside ripr integration(vscode): make standard LSP server state the single authority and retire split-brain CLI/artifact fallbacks #1627.

Devin Review

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.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 151 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 99e7a928-8611-475d-8f4a-1fb98cc5c1c5
Commits

Reviewing files that changed from the base of the PR and between f2ba7ed and 2083656.

Files selected for processing: 21
  • .github/actions/pr-candidate-admission/action.yml
  • .github/actions/pr-candidate-admission/candidate_admission.py
  • .github/actions/pr-candidate-admission/history_sync_live.py
  • .github/actions/pr-candidate-admission/test_history_sync_live.py
  • .github/actions/pr-candidate-admission/test_history_sync_scope.py
  • .github/pull_request_template.md
  • .github/workflows/routed-rust.yml
  • .github/workflows/rust-gates.yml
  • .ripr/traceability.d/history-sync-exact-composition-qualification.toml
  • changelog.d/12437-history-sync-route.md
  • docs/MERGE_FLOW.md
  • docs/spec-index.d/RIPR-SPEC-0413.md
  • docs/specs/RIPR-SPEC-0413-history-sync-exact-composition-qualification.md
  • policy/doc-artifacts.d/RIPR-SPEC-0413.toml
  • policy/process_allowlist.txt
  • policy/workflow_allowlist.txt
  • tools/repo-policy/tests/hosted_cache_continuity.rs
  • xtask/tests/hard_cut_admission_selftest.rs
  • xtask/tests/routed_dispatch_result.rs
  • xtask/tests/routed_queue_resolution.rs
  • xtask/tests/rust_gate_workflow_contract.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread docs/MERGE_FLOW.md Resolved
@EffortlessSteven

Copy link
Copy Markdown
Member Author

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.

@EffortlessSteven
EffortlessSteven marked this pull request as draft November 2, 2026 07:52

Copy link
Copy Markdown
Member Author

@codex address both current unresolved review threads on this existing Draft branch only. Expected current head 70439b171942540e841fd9514dfb759c12897ce6.

1. Validated history sync must never take the docs-only success path

A validated sync is a history/composition transaction even when its net file diff is Markdown-only. Carry the trusted history_sync_status=validated result into routing before implementation selection and force the existing non-diff-scoped implementation qualification path. Do not let docs-gate alone satisfy the required Result.

Required controls:

  • valid history-sync + docs-only diff still starts the intended Rust/product qualification lane(s);
  • every succeeded implementation lane under exact validated H carries exactly not_applicable:history_sync:<H>;
  • Result refuses if a validated history sync has no succeeded implementation lane, lacks the typed record, has the wrong H, or docs-gate is the only success;
  • ordinary docs-only PR behavior remains byte/semantically unchanged;
  • rejected/not-requested history sync cannot force product execution or emit the typed record.

Use the existing trusted admission output; do not reimplement history-sync validation in the routing job.

2. Add the required durable contract and traceability

Add or amend the appropriate CI/admission spec under docs/specs/ and register the spec-test-code mapping for:

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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits. You can see your limits in the Codex usage dashboard.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Taking the existing ci/history-sync-route candidate for the blocking repair work under Steven's instruction to work through the release plan. Starting subject: 70439b171942540e841fd9514dfb759c12897ce6.

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.

Copy link
Copy Markdown
Member Author

Execution checkpoint against published head 70439b171942540e841fd9514dfb759c12897ce6. Remote branch unchanged; local working repair is not yet a qualified/pushed candidate. No writer lock is being held by this session.

I reproduced the docs-only false green by extracting and executing this head's actual Summarize routed result Bash block: validated history-sync admission, DOCS_ONLY=true, docs gate success, and all implementation lanes skipped returns exit 0 / status pass. The repaired block returns failure for that same controlled stimulus.

Local repair now:

  1. Derives effective docs scope after trusted admission; consistent validated sync forces product scope, while ordinary docs behavior remains unchanged.
  2. Requires at least one succeeded implementation lane, exact not_applicable:history_sync:<H> evidence on every succeeded lane, and existing hosted shard success.
  3. Adds read-only history_sync_live.py using the canonical history_sync_check, pinned trusted source and a run-local digest over H/B/G/tree, declared source, current main, latest authorization label event and current admin/maintain role. Repeats that check immediately before final aggregation. This is continuity readback, not an atomic expected-base lease or independent GitHub protection proof.

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 4b5ef7aefacfa9e8c2e5021bc8783257290050b3c984cedcc5e239019ece7305 is retained in Steven's conversation evidence bundle. It is not committed here and cannot be treated as installed behavior. Remaining before publication/acceptance: exact current branch composition, durable spec/index/traceability registration, repository-native regression wiring and Rust/policy qualification, canonical-validator/transport integration and live API/protection canaries. SPEC-0407 is already assigned to cross-crate reach; do not reuse it.

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.

Copy link
Copy Markdown
Member Author

Resuming the retained repair on this existing PR from exact head 70439b171942540e841fd9514dfb759c12897ce6. I am the current writer for the routed-workflow history-sync scope/continuity repair and its focused regression files; no competing writer was present in the latest continuation. This is an additive, expected-head update, not a force-push or replacement PR. Draft remains in effect, and no qualification request, merge, settings or release operation is being made.

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 gh fixture, never live credentials. Local execution currently uses exact fetched production function slices because this executor lacks a full checkout/Cargo; the committed tests import the repository's full canonical module, so full-module/native execution remains an explicit acceptance requirement. Existing branch conflicts also remain separate from this repair.

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.

Copy link
Copy Markdown
Member Author

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --check clean. Current-head GitHub Source of Truth and Windows Gate have passed.
  • Reported: prior Windows-host Rust proof on old head 70439b1 in 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 required Ripr Rust Small Result (not yet requested), and live label/permission/merge protection.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 4, 2026 06:01
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_evidence outcome 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_admitted without the matching ADMISSION_HISTORY_SYNC=validated authority. 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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant