Repository navigation
fix(ci): require candidate CLI proof for changed release-note commands - #16014
Conversation
|
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 27 minutes. View limit details
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Reviewed e670646 against aaf5155. I traced the public-guide executable contract through its extraction, help lookup, line diagnostics, and the product-free revision consumer. A separately compiled comparison against the original extractor produced identical line, ordered command-word, and ordered flag observations for all 16 governed documents (234 invocations). The #15674 base and group retain the same 29 release-note invocations; appending an invalid flag changes the comparison.
The changed decision is bound to the raw Git blob IDs. Moving prose and changing example values preserves the flag checker input, while adding a flag, changing the command path, or dropping an invocation widens even against a repaired working copy. A new prose-only document remains eligible and a new CLI example widens. An unbound changed list widens for release notes. Protected precommit and all five Markdown contract executions remain in the hosted workflow.
The 154 library, 24 docs gate and 25 frontdoor tests passed on Windows, alongside strict focused Clippy. The canonical public guide binary imports ripr and release archive support, so its full candidate-product execution belongs to the pending protected run. This source disposition is limited to the new widening decision. No unresolved source finding.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Source review found one release blocker at e670646. The candidate archive copies only the three paths in HELP_HARNESS_FILES. After help_contract.rs began importing common/doc_invocations.rs, that archived subset stopped compiling. I materialized exactly the three committed blobs under an isolated H directory and ran rustc --edition=2024 --test --emit=metadata. It failed to read common/doc_invocations.rs. Adding that single file made the identical command succeed. Please retain the standalone harness contract and exercise the production roster after the correction. The parsed release-note projection otherwise preserves the ordered command paths and flags used by the existing candidate help consumer, and unsupported Git changes widen.
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Independently re-reviewed e102270. I extracted just the three committed files from the installed candidate help harness roster and reproduced a successful standalone Rust test compile. Those same three inputs had failed at the previous head. The scoped docs gate compares both the parsed help inputs and the complete raw lines containing possible command examples, including continuations. Changed, removed, flagless and bracketed command examples widen to the candidate contract. Unavailable historical inputs and unknown Git transitions still require full proof. The normal hosted gate keeps its full precommit obligations.
Summary
A release-note edit can change the command path or flag that the public guide contract checks against candidate CLI help. The scoped docs gate now compares the original and candidate Git blobs with the same parser as that contract. A changed ordered command/flag sequence requires candidate CLI proof. Surrounding prose can keep the same projection. Changed source lines containing a ripr command prefix and shell continuations also require candidate proof, including bracketed flags and bare commands outside the flag parser.
Swarm / Source Boundary
Source-of-truth Links
Governing issue or accepted claim: #14644 Leaf A. The existing full precommit obligation is governed by #2258, and #14989 governs the candidate public guide contract.
Spec: RIPR-SPEC-0060, release-note CLI inputs to the scoped docs gate, with the new revision test mapped in .ripr/traceability.toml.
Acceptance delta (one sentence): A release note that changes
ripr check --diffto a different command or introduces an undocumented flag can no longer earn the standalone scoped docs-gate pass.Candidate Relationships
#15900 merged the independent whole-tree document-role prerequisite. This change advances the same #14644 lane. #15971 covers hosted cache save behavior. Neither replaces the other.
Scope
The product-free consumer uses the public-guide parser embedded by the existing candidate help contract. Revision mode uses Git object identities and compares the ordered paths and flags. Non-UTF-8 or missing blobs, deleted destinations, and unknown modes widen. Direct changed-list mode lacks historical bytes and requests revision mode or full proof for release notes.
Scope Classification
Proof
cargo test --offline --locked -p repo-policy --test docs_gatepassed 24 tests on Windows. The new test exercises additions, removals, new flags, different commands, prose changes, opaque bracketed and bare examples, multiline continuations, dirty working copies, and missing revision context.cargo clippy --offline --locked -p repo-policy --lib --test docs_gate -- -D warningspassed.Claim Boundary
The normal hosted docs gate continues running the full precommit table and candidate CLI contracts. This change establishes a product-free reason to widen; a matching projection alone cannot qualify an executable or authorize reuse of a previous run.
CI Economics
The modified-file path reuses the two Git blob reads already needed for heading retention. The change does not dispatch an extra job.
Rollback
Revert this single PR to restore the prior docs-gate eligibility decision.