Skip to content

fix(ci): select capability docs checks from lossless path records (#10065) - #10230

Merged
EffortlessSteven merged 2 commits into
mainfrom
test/10065-capability-docs-selector
Oct 28, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
test/10065-capability-docs-selector

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

Capability documentation checks select relevant paths containing quotes, tabs, backslashes or newlines. The selector consumes successful NUL-delimited Git output before matching literal pathname boundaries. Failed Git remains a failure; a successful empty diff selects nothing.

This is the source-selector portion of #10065 follow-up 3. Source review and focused proof are complete. The prerequisite repairs are present in the verified receiving subject. The unchanged selected candidate is proceeding to the normal required qualification route.

Source-of-truth Links

Proposal: none
Spec: none; existing capability-docs selector contract in #10065 follow-up 3
ADR: none
Plan item: #10065 follow-up 3, source-selector repair only
Governing issue or accepted claim: #10065 (documentation gate path-selector proof and verified quoted-path repair)
Acceptance delta (one sentence): Successful Git NUL records for ordinary and hostile relevant documentation paths select exactly the two existing capability checks; unrelated or empty changes select neither, and Git failure cannot be reported as empty changes.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): test/10065-capability-docs-selector
Stack parent or prerequisite PR (if any): no source stack; #10616 and #10663 prerequisites are landed and verified in the receiving subject
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): none
Accepted winner and losing candidate disposition (when decided): this existing candidate remains selected; no replacement

Exact candidate and change

  • Source base: 8b3b83d9363523e601a026856a64be1bb72b0854.
  • Preserved red regression commit: 78388a578bda32d52fc7b0588b23bf355e845bc0.
  • Head: cff7c8f286f301992aa06992b7e84b41fb21c79e.
  • Tree: be8ac9d7c07b1c98bcc6fdf259909ac9883180f9.
  • Four files, +259/-4: workflow selector, real-Git routing tests, existing xtask source-shape assertion and Internal / CI changelog.

The selector retains the existing diff range and --no-renames, then invokes cargo xtask capability-docs --check and cargo xtask check-capability-producers once, in that order. An EXIT trap removes the temporary pathname file. Both command failures propagate. Event admission, trust boundaries, permissions, runner configuration, gate inventory and shell budget are unchanged.

Evidence

The prior exact-head inspection record retains the original Cargo evidence: routing suite 13 passed, exact xtask assertion 1 passed, policy preflight, ci-policy, check-fast and precommit exited 0. These remain evidence for their original source and execution epoch; this continuation did not replay them. The original red record remains preserved.

Retained independent verification from October 26 on the unchanged candidate:

  • Actionlint 1.7.7 passed the complete changed workflow, exit 0. It also passed that workflow in the current-main combined checkout.
  • A PyYAML 6.0.3 parse located the actual docs-gate step and verified its event bindings and default Bash execution semantics. Running that parsed step with real Git under bash -e passed 40 checks.
  • Those checks cover add/edit/delete for both exact documentation paths and quote/tab/newline/backslash/Unicode spec paths; unrelated and forged records; both rename directions; successful empty changes; invalid Git; relevant-looking partial output followed by exit 17; first and second capability-command failure; and temporary-file cleanup.
  • The original line-oriented selector and a mutation removing -z both failed the relevant-path expectation as intended.
  • Parsed selector SHA-256: 38486d88f628a77161a4f545ff038a5d2935759f84ac9048d90191100986951d. It is identical at the candidate, observed GitHub merge subject and current-main combined tree.
  • Independent exact-head review inspected the full four-file diff, semantic owner, failure paths and discriminating oracles; no material source defect. git diff --check passed.

This addresses review 5641964806's YAML-extraction question: the retained Rust harness extracts the committed shell by indentation; the added independent observation parses YAML before execution. Neither test claims execution by the Actions service. Cargo argv were recorded with controlled failures, not execution of the capability producers. The original hosted docs-only exercise and unusual-filename acceptance by full precommit remain outside this proof.

Integration and qualification

The earlier #10586 wait is resolved. The actual GitHub merge subject is 28d6f1e115c8dade4c60c5a90f39d22e5e9a0f9b, parents 51c542eb6a5329fcb76a5ac4ffd6f1ed36a8615f and the candidate, tree fc2afcd223b92982eb51698d592f6518b0322ed2. Both landed prerequisites are ancestors: #10616 at de14869b8c9ba7ec3f8f03b3dec5422dd37cc1c8 and #10663 at e4b0aafb8532b1bd18de7f3d187ccde1ba67311d. #10663 incorporates #10660's relabel; #10660 itself closed unmerged.

The integrated candidate delta remains four files, +259/-4. The capability step, selector-specific harness/tests and xtask shape function are byte-identical to the reviewed candidate. The retained 40 controls retain their original execution identity. Upstream changes to the surrounding harness correctly isolate the aggregate summary step and supply the shard/late-eligibility inputs. No selector or oracle repair is needed.

Actionlint 1.7.7 passed the actual receiving workflow, exit 0. Independent affected-dimension review found no material source or integration defect and judged the candidate eligible for normal Ready plus qualification. Fetched main aaa12f61b45a7675e9615f07b3f18d775a505ee9 adds no relevant workflow/harness changes after the receiving basis. No behind-only restack or unchanged proof replay.

The supported installed qualification request remains the merge-ready label after Ready. No required Ripr Rust Small Result exists for this head yet. Existing advisory results and skipped jobs do not satisfy it. Final approval requires inspection of actual checkout identity, required gates, complete applicable test/shard coverage and late eligibility.

Continuation

Owner / governing claim: resumed delivery continuation for #10230 / #10065 follow-up 3; existing candidate remains the sole implementation.
Candidate: unchanged cff7c8f286f301992aa06992b7e84b41fb21c79e; current receiving subject and prerequisites above.
Review: independent source and affected integration review satisfactory; REVIEW_INCOMPLETE only for required qualification and final judgment.
Validation: retained 40 selector controls and exact-head Cargo evidence remain applicable; new receiving-workflow actionlint passed.
Dependency: former #10586 prerequisite resolved through verified #10616 landing; #10663 integration also verified.
Next: mark the unchanged selected candidate Ready, apply the supported qualification request once, inspect actual checkout and every required test job, obtain and verify final independent exact-head review, then separately revalidate and perform protected expected-head squash.

Rollback: revert the coherent selector repair, tests and changelog. #10065 stays open for its other follow-ups and the original hosted docs-only exercise.

@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 25, 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 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 154 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: 80cf9998-c653-4f65-9f38-dbe24e7bb2d3
Commits

Reviewing files that changed from the base of the PR and between c70c809 and cff7c8f.

Files selected for processing: 4
  • .github/workflows/routed-rust.yml
  • changelog.d/10230-capability-docs-paths.md
  • tools/repo-policy/tests/docs_only_routing.rs
  • xtask/src/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@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.

Author COMMENT — exact-head inspection record incorporating fresh-context internal review; not a GitHub approval.

reviewed_head_sha: 78388a5
integration_basis: source base 8b3b83d; published main c70c809 had no delta in the workflow or retained test file.
claim_boundary: #10065 follow-up 3 selector proof only.
changed_surfaces_and_semantic_owners_inspected: full +180/-0 test diff; retained docs-only detector, capability selector and Git C-quoting; literal Cargo command order/failure propagation; existing private fixture/process owner and Unix scope.
blocking_findings: active regression at tools/repo-policy/tests/docs_only_routing.rs:198 exposes an existing false-negative selector for quote/newline docs/specs paths. This candidate remains red until that contract is dispositioned/repaired.
proof_and_ci_observed: author base 7/7 pass; current same-source binary 11 pass/1 fail exit 101, independently rerun by fresh-context internal reviewer; rustfmt and diff whitespace exit 0. Published head/diff/Draft state read back. No additional blocking test/oracle defect found.
proof_or_review_missing: Cargo test blocked before compilation by offline oxc_ast_visit resolution; current aggregate/precommit/Clippy/hosted qualification unrun. Gemini/CodeRabbit comments report quota limits, which supply no substantive review; their statuses are not clearance.
residual_assumptions_and_non_claims: Cargo argv are recorded, not executed. The observed filename predicate gap does not demonstrate acceptance by earlier precommit gates, registered-spec validation, or capability-check bypass. Local replay does not satisfy the original hosted docs-only PR exercise.
disposition: REPAIR_REQUIRED for the retained regression; REVIEW_INCOMPLETE for merge. Preserve Draft and the exact candidate. No Ready/merge-ready/dispatch transition is authorized here.

@EffortlessSteven EffortlessSteven changed the title test(ci): preserve capability docs selector proof and quoted-path counterexample (#10065) fix(ci): select capability docs checks from lossless path records (#10065) Oct 25, 2026

@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.

Author COMMENT — current published-head synthesis incorporating independent internal review; not a GitHub approval.

reviewed_head_sha: cff7c8f
integration_basis: source base 8b3b83d; current-main source combination 9766ac5 + head produced clean tree d4ae918b52a1452f3a22133548d7f3f6ed2beddb.
claim_boundary: #10065 follow-up 3, selector proof and the verified quoted-path repair only.
changed_surfaces_and_semantic_owners_inspected: complete published four-file +259/-4 patch; retained Actions step, real-Git fixture harness, source-shape companion and Internal / CI fragment.
blocking_findings: none in source/focused proof. The earlier quote/newline false-negative finding is repaired at this head; the red test commit 78388a5 remains preserved.
proof_and_ci_observed: Cargo routing suite 13 passed/exit 0; exact xtask shape test 1 passed/exit 0; policy preflight, ci-policy, check-fast, precommit and offline PR-body validation exit 0. Current-head reports bind cff7c8f... / base 8b3b83d... and four changed records. Check-fast ran 12 gates including strict workspace Clippy and its selector agrees with independent Git output. Worktree doctor retained its behind-main-only hygiene failure; no unrelated restack.
independent_review: reviewer bound the exact commit/tree, inspected full and repair-only diffs, independently compiled the retained harness with installed Rust 1.95.0, and observed 13 passed/exit 0 without editing source. No material findings.
oracle_challenges: removing -z loses the expected subject; quotePath true/false preserve NUL records; relevant quote/newline/tab/backslash paths select; hostile unrelated records and empty diffs refuse; both rename sides select; partial relevant-looking Git output with exit 17 never reaches Cargo; selected-command exit 23 and cleanup are preserved.
published_head_and_conversations: exact head, Draft state, complete patch and body were read back. No inline threads were returned; that alone is not semantic review. Provider quota notices remain missing provider evidence.
proof_or_review_missing: required hosted Rust qualification, original hosted docs-only PR exercise, combined-tree execution and final integration judgment. Observed automatic push-triggered ub-review run 40169682933 and read-only wheel run 40169682943 were in progress; no duplicate request was made. Skipped advisory lanes are not passes.
residual_assumptions_and_non_claims: fixture Cargo calls record routing and controlled exits, not execution of the two capability producers; unusual filenames are not claimed accepted by full precommit. Gates, trigger/refusal coverage, permissions, command order, producer inventory, cells implementation and workflow cap remain unchanged.
disposition: source/focused proof satisfactory; REVIEW_INCOMPLETE for merge. Keep Draft. Public Ready authorization remains pending; no Ready, qualification label, alternate dispatch or merge was attempted.

@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 one verification check before upstream.

Verification questions

  • Confirm the Rust harness derives executable shell by locating YAML text and stripping indentation, so it can validate copied behavior without proving Actions parses and runs that exact block.

Refuted

  • Changing core.quotePath=false alone would make hostile pathname selection reliable.; refuted because: Rejected: the real-Git mutation proves line-oriented output remains unsafe even with the quote-path pin, motivating the NUL-record format.
  • The workflow's docs-only route may run capability checks for unrelated or forged path records.; refuted because: The case arm matches only the two exact capability paths or docs/specs/*; regression controls cover neighboring, embedded-newline, and unrelated paths.
  • Changing the selector to --name-only -z would create a compatibility or portability regression in the Ubuntu workflow.; refuted because: Git, Bash read -d, mktemp, and the Actions run shell are available in the targeted Linux job; the implementation uses standard POSIX-adjacent Bash behavior already used by the workflow.

Parked follow-ups

  • The source-shape xtask assertion confirms selector fragments exist but is not itself an independent behavioral oracle for hostile pathnames.
  • The routing test is tightly coupled to YAML text extraction and repeats workflow literals in xtask tests, creating a small maintenance duplication risk.

Evidence gaps

  • The PR claims capability documentation checks select paths containing quotes, tabs, backslashes, or newlines, but the packet lacks successful actionlint output and the scheduled cargo-test receipt.
  • Model proof intent was rejected by deterministic validation.

EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member Author

Owner / governing claim: #10230 / #10065 follow-up 3 source-selector repair.

Landed: protected squash 8aa7046dd58f57ec4255b081191e240eacc1644e; reviewed head cff7c8f286f301992aa06992b7e84b41fb21c79e. GitHub readback confirms merged PR and main at that squash; landed tree d43f11b0031e52ea310c8714a37f294fc062e7d7 equals the independently inspected current-main composition.

Review: final exact-head author COMMENT 5679401267 records independent substantive REVIEW_READY and is not a platform approval. It was accepted and read back before the separate expected-head protected merge.

Validation: run 40647331886, attempt 1, passed for integration 28d6f1e115c8dade4c60c5a90f39d22e5e9a0f9b. All four shards and the complete-cover verifier passed: 22,610 tests, zero duplicate, missing or extra subjects. Prior 40 real-Git selector controls, exact-head source proof and actionlint remain applicable.

Acceptance: source selector repair landed. #10065 remains open for the original hosted docs-only exercise and other follow-ups; this source PR did not exercise the docs-only job.

@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.

Exact-head inspection record; COMMENT disposition.

reviewed_head_sha: cff7c8f
integration_basis: observed merge d155095 (parents 494a296 and reviewed head; tree 5934c53d9dee63c96f8621c16179b6a4cf9c3344). Current main aeeedda composes cleanly to tree 34cc8b4bdcefbe864ab446b75a317901c77f6d61.
claim_boundary: #10065 follow-up 3, source-selector repair only.
changed_surfaces_and_semantic_owners_inspected: full four-file diff; docs-gate event bindings and Bash error behavior; successful Git NUL transport; literal path matching; exact two Cargo commands and failure propagation; temporary cleanup; real-Git tests, xtask companion and changelog.
blocking_findings: no material source defect. Required qualification remains absent; centrally owned #10586 has an applicable inherited test failure and an unlanded repair.
non_blocking_suggestions: retained source-shape assertion is maintenance coverage, not an independent behavioral oracle.
refuted_or_stale_findings: review 5641964806 correctly identified the Rust harness's indentation extraction limitation. Actionlint 1.7.7 now exits 0 on both candidate and current-main composition. Independent PyYAML parsing plus execution of the parsed step supplies a separate parser/behavior observation. No claim that the Actions service executed this docs-only path.
proof_and_ci_observed: independent read-only reviewer found no material source/oracle issue at the exact head. New parser-based real-Git probe passed 40 checks, including quote/tab/newline/backslash positives, all relevant add/edit/delete operations, hostile unrelated negatives, rename sides, empty successful Git, failed and partial-output Git, both command failures, cleanup, original-selector and missing-NUL controls. Parsed script SHA256 38486d88f628a77161a4f545ff038a5d2935759f84ac9048d90191100986951d is identical in all three source subjects. Diff whitespace check passed. Prior Cargo 13-test and policy/preflight evidence retains review 5641874027's original provenance. Current inline-thread lookup returned no threads; this was not used as semantic clearance. Existing advisory successes/skips were inventoried and are not required qualification.
proof_or_review_missing: current required Rust qualification, actual job checkout and complete test/shard subject verification, disposition of any later findings, final exact-head integration judgment. Original hosted docs-only exercise remains a separate #10065 residual.
affected_currentness_dimensions: implementation, stimulus and oracle source unchanged; parser evidence and receiving-tree review refreshed. Current main's required workflow differs from the older merge subject, so future job evidence must identify actual workflow/source and all executed tests.
residual_assumptions_and_non_claims: Cargo calls were recorded, not capability-producer execution; no full precommit acceptance of unusual fixture filenames. #10586's binding/test/helper/manifest blobs match between current main and observed merge subject; no duplicate repair or affected test rerun. No source edits, gate changes or behind-only restack.
disposition: source/focused proof satisfactory; REVIEW_INCOMPLETE for merge. Retain Draft until the canonical #10586 repair is landed and verified in the receiving subject, then complete normal qualification and final review. This record is not merge approval.

@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.

Independent affected-dimension review incorporated into this exact-head COMMENT record.

reviewed_head_sha: cff7c8f
integration_basis: actual GitHub merge 28d6f1e; parents 51c542e and reviewed head; tree fc2afcd223b92982eb51698d592f6518b0322ed2.
claim_boundary: #10065 follow-up 3, lossless capability-doc pathname selection only.
changed_surfaces_and_semantic_owners_inspected: full four-file integrated candidate delta; current docs-gate and required-result interactions; selector shell, test extraction and literal oracles; upstream shard and late-eligibility integration.
blocking_findings: none in source or inspected composition.
refuted_or_stale_findings: the #10586 prerequisite wait is resolved. #10616/de14869b8 and #10663/e4b0aafb8 are verified ancestors of the receiving subject. #10663 carries #10660's relabel; #10660 did not itself merge.
proof_and_ci_observed: actionlint 1.7.7 on the actual receiving workflow exited 0; diff whitespace check passes. Selector step SHA256 38486d88f628a77161a4f545ff038a5d2935759f84ac9048d90191100986951d, selector-specific tests and xtask shape function are unchanged from the reviewed candidate. Retained 40-control execution and original exact-head Cargo proof remain applicable with their original provenance; no unchanged proof replay. Independent reviewer verified result_step() scopes summary extraction correctly, GITHUB_TESTS_RESULT and ELIGIBILITY_RESULT bindings match current result semantics, and the not_applicable PR control correctly refuses. Fetched main aaa12f6 adds no relevant workflow/harness delta beyond the receiving basis.
proof_or_review_missing: required Rust qualification, actual checkout and complete applicable gate/test/shard subject verification, late eligibility, then final current-head independent approval.
residual_assumptions_and_non_claims: no new Cargo execution is claimed; original native proof is preserved. Fixture Cargo invocations record routing rather than execute capability producers. Original hosted docs-only exercise remains a separate #10065 residual. No current inline threads or later source findings were returned; that is not semantic clearance by itself.
disposition: eligible for normal Ready and the supported merge-ready qualification request. REVIEW_INCOMPLETE for merge until the named proof and final judgment exist. No merge approval is issued by this record.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 28, 2026 07:00

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin 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.

Final exact-head inspection — author COMMENT incorporating an independent reviewer’s REVIEW_READY disposition. This is not a GitHub platform approval.

reviewed_head_sha: cff7c8f
integration_basis: tested merge 28d6f1e, tree fc2afcd223b92982eb51698d592f6518b0322ed2. Current main a1cedd7 composes cleanly with this head to tree d43f11b0031e52ea310c8714a37f294fc062e7d7; relevant workflow and routing-test files have no intervening delta.
claim_boundary: #10065 follow-up 3, lossless capability-doc path selection.
changed_surfaces_and_semantic_owners_inspected: complete four-file change; NUL records, literal matching, Git failure, temporary cleanup, command ordering and failure propagation; test stimulus and independent oracle; surrounding workflow and current integration.
blocking_findings: none identified. The previous YAML-extraction question is addressed by independent YAML parsing, actionlint and real-Git controls.
proof_and_ci_observed: independent reviewer inspected run 40647331886 attempt 1 and its actual checkout 28d6f1e on gates and all shards. All six selector tests and the xtask shape test passed. Required gates, actual capability checks and doctests passed. Four shards reported 5744, 5674, 5618 and 5574 passing tests. Verifier job 122693992644 bound them to the same run, attempt and checkout and established 22610 tests with zero duplicate, missing or extra subjects. Required result and late eligibility passed. Prior 40 hostile-path real-Git controls remain applicable to unchanged selector bytes.
proof_or_review_missing: no source or required-check gap identified. The separate original docs-only exercise remains outside this source PR.
residual_assumptions_and_non_claims: docs-only job was skipped because this PR changes workflow and tests; no hosted docs-only exercise is claimed. No platform approval is represented by this COMMENT.
disposition: independent substantive exact-head inspection is REVIEW_READY. Revalidate live head, findings, required checks and composition before separate normal protected expected-head squash.

@EffortlessSteven
EffortlessSteven merged commit 8aa7046 into main Oct 28, 2026
61 checks passed
@EffortlessSteven
EffortlessSteven deleted the test/10065-capability-docs-selector branch October 28, 2026 07:51
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