Skip to content

fix(ci): classify docs changes against immutable PR head - #7304

Merged
EffortlessSteven merged 2 commits into
mainfrom
fix/docs-only-pr-identity
Oct 11, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
fix/docs-only-pr-identity

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Scope

Implements #5071: classify the immutable PR contribution rather than unrelated main changes in a synthetic integration checkout. Preserve integration checkout, docs eligibility, required result, gates, permissions, cadence and runner policy. Wheel applicability and the Rust-only sibling remain separate.

Implementation

Bind the detector to validated immutable event base/head commits and a unique merge base. Recover missing history when possible, otherwise conservatively retain full proof. Empty, invalid, ambiguous or unavailable subjects and failed/partial diffs never authorize docs-only routing. NUL-safe paths and both rename sides are covered by tests of the production shell and workflow wiring.

Exact subject

Published head56dc41b9321a07113669b00f99f9605c8c37ec8c; tree68f5bf12492abc2b3b7dcaf0a1783c393ff6d5a5. Normal merge parents0e5e5905e84b7832ef0ce7a43e126c154c7f07a5 and3865a4d07e28c67be720c32692ed9896875bfda9. Local reviewed equivalent82ee26ff3e102cf04ba0286014b54d974ba0f132 has identical tree. The sole integration conflict preserved both exact process registrations. The three other candidate files are unchanged; all unrelated main changes survive. Current main8a2e358a089a03fa27ebece420c1d6b3f28283d0 has no owned-path overlap and merge-tree succeeds.

Executed proof and independent review

Pinned Rust1.95.0, jobs1. Combined repo-policy tests54/54 pass:34 unit,6 docs-routing,9 frontdoor,5 FutureClippy. Canonical process/workflow policy and precommit passed. Precommit548.3s selected exactly four candidate paths against base3865a4d, passed the full policy table and repo-policy/xtask all-target Clippy. Native exits0, no reserve stop and all owned processes settled. Independent /root/review_docs_routing_patch verified receipt identities/digest, source stamp, conflict resolution, publication tree/parents and current integration impact.

Original independent review also exercised advanced-base and missing-history cases, HEAD-substitution mutant, partial-diff failure and actual result-block rejection. The initial repaired-tree package run genuinely failed7frontdoor tests because a cached policy executable retained the prior checkout source stamp. Exact-source rebuild rebound the artifact and all54tests passed without source-byte changes. Red logs remain retained; #7318 separately addresses the build-script root cause. No guard was weakened.

Qualification boundary

Initial Ready did not produce routed qualification because newly landed main caused an actual conflict. That conflict is repaired; the PR returned to Draft and is eligible for its one repaired-head Ready refresh. Broad local check-fast remains NOT_ESTABLISHED under the disclosed host-resource limitation; scoped passes do not replace workspace/all-target proof. Hosted exact-head/current integration qualification and final REVIEW_READY remain pending. Naturally occurring docs-only/base-drift canary remains an issue acceptance item. Keep #5071 open until all acceptance evidence is complete; no blanket savings or merge-readiness claim.

@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 Oct 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

The included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits.

Next included review available in 6 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0ff6fe93-4324-4665-81e4-5b741a0feec8

📥 Commits

Reviewing files that changed from the base of the PR and between 3865a4d and 56dc41b.


📒 Files selected for processing (4)
  • .github/workflows/routed-rust.yml
  • changelog.d/5071-docs-only-candidate-identity.md
  • policy/process_allowlist.txt
  • tools/repo-policy/tests/docs_only_routing.rs

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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 marked this pull request as ready for review October 11, 2026 04:38
@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!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T04:42:09.675522Z 56dc41b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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

  • Tests do not exercise the trap 'rm -f "$changed"' EXIT path in the workflow under fixture harness - the fixture never sources the script via set -e trap inheritance in a way that fails after partial diff write. Partial-diff wrapper test only verifies outcome; minor.

Verification questions

  • Confirm test extracts production shell via YAML job boundaries and exact 'run: |' line; couples tests to workflow YAML structure.
  • Confirm wrapper PATH prepend lets test inject fake git; relies on test-isolation via PATH ordering not env sanitization.
  • Confirm actionlint sensor failed exit 1 and cargo-test receipt still pending (scheduled-late). Without actionlint re-clean and the live 54/54 repro we cannot independently confirm workflow lints and host integration qualification on the published tree. PR body itself states REVIEW_READY remains pending.

Refuted

  • Detector's new git fetch may rewrite refs and break the integration checkout that depends on full history being present; refuted because: Fetch is conditional on cat-file -e failing for the two SHAs and uses --no-tags origin BASE HEAD without touching local refs; checkout already has fetch-depth: 0 and integration commit is preserved by the test's rev-parse equality assertion.

Parked follow-ups

  • tools/repo-policy/tests/docs_only_routing.rs:203 — Fixture::run builds the bash Command via self.command("bash") which calls env_clear, so PATH prepend is safe. However, wrapper() injects git into PATH but the bash shell wrapper script itself is invoked via command -v git resolving through PATH in the test process; on systems where a shadow git already precedes the wrapper dir in the test harness PATH, the wrapper PATH-append order matters. Confirm wrapper dir is prepended (it is, via paths.extend(split_paths(...))) so this is OK; demoting to parked.

Copy link
Copy Markdown
Member Author

Final independent substantive review: REVIEW_READY for this implementation.

Reviewer /root/review_docs_routing_patch; exact head 56dc41b, tree 68f5bf12492abc2b3b7dcaf0a1783c393ff6d5a5. Full scope: detector, production workflow wiring/result, integration tests, process registration, changelog and conflict repair. Tested integration 82d52e8 combines this head with main8a2e358a089a03fa27ebece420c1d6b3f28283d0.

Required run38112238495 completed SUCCESS. Actual workspace/all-target/all-feature checks, strict Clippy, canonical policy/precommit, required tests, doctests, goldens, fixtures, verdict corpora and PR evidence passed. SHA-verified nextest artifact11693501294 records14,272 tests with zero failures/errors/skips, including all six docs-routing tests; context binds exact integration/run/attempt/Rust1.95/native exit0. Doctests:2pass/1ignored. Result logs bind detector success, docs_only=false, full GitHub proof success and docs gate skipped; authoritative result passed.

UB review adjudication: actionlint exit1 is only three inherited SC2034 warnings for unchanged router variables repo/workflow/run_id used by indirect expansion, not a changed detector defect. Explicit tempfile-deletion assertion is a nonblocking coverage suggestion; real Bash execution uses its EXIT trap without needing inheritance. YAML extraction and sanitized prepended wrapper PATH are verified. Earlier package-proof uncertainty is superseded by retained54-test local proof and hosted execution. No unresolved inline findings or requested changes remain.

Current main86b9eb95230f39e931204f3778ff0c5ed7a695a7 has no candidate overlap or changed identity acceptance prerequisite; exact head is clean/mergeable. No behind-only restack is warranted. Local broad check-fast remains unrun and is not relabeled as a local pass. The earlier stale shared-target failure remains recorded under #7318. A naturally occurring docs-only canary is still outstanding: merging this implementation does not close all #5071 acceptance. Normal protected squash must preserve rules/approvals; no bypass.

@EffortlessSteven
EffortlessSteven merged commit d9b2f86 into main Oct 11, 2026
27 of 28 checks passed
@EffortlessSteven
EffortlessSteven deleted the fix/docs-only-pr-identity branch October 11, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant