Repository navigation
fix(proof): generate a value-free --lib build selector - #1488
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Generate and validate library build commands src/proof/intent.rs |
Library build commands omit the target name after --lib. Tests check broker acceptance of the generated command, rejection of the former form, and continued handling of library and non-library intents. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Possibly related issues
- M3d: prepare and verify the next SHA-bound release candidate #816: This change updates typed library build arguments and broker admission, which relates to the issue’s focused-execution contract. It does not establish release acceptance.
Merge Risk: 
Minimal · up to 4fe17
-
The library command template uses the correct switch, while named targets remain intentionally unsupported. No merge-blocking defect was identified.
Architecture risk: 
Medium · up to 08e85
-
The change affects 1 system.
Changed systems:
srcArchitecture concerns
No architecture-level concerns identified.Review details
-
Systems and components
- observed — src (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in src/proof/intent.rs:
build_commandnow appends a target name only for non-library targets; library builds emit--libwithout the library name. - observed — Modified behavior in src/proof/intent.rs: Adds a test confirming that a selected library target resolves to
cargo check --locked --package ub-review --lib, that the broker accepts its arguments, and that the former command with an appended library name is refused. - observed — Modified behavior in src/proof/intent.rs: Updates the expected library build command to omit the target name after
--lib.
Reliability and maintainability
- inferred — Risk-relevant change factors for src: blast_radius_2; direct_dependents_2
-
Pre-merge checks: 
2 · 
3
-
Failed checks: 3 warnings Passed checks: 2 passed-
Full details: Out of Scope Changes check
-
Explanation
The whole-PR diff changes only
src/proof/intent.rs. The production change is limited to library command generation. The added tests cover the command parser, package scope, selector preservation, and the linked issue behavior. No unrelated parser, policy, timeout, retry, dependency, deployment, or configuration change is present.
-
Full details: Linked Issues check
-
Explanation
The change fixes the command template:
build_commandemitscargo check --locked --package <package> --lib, and it keeps names for bin, test, example, and bench selectors. The tests reject the old--lib <library>form and verify broker parsing. However, issue#1486also requires semantic library resolution to produce broker-admitted argv.resolve_build_targetstill rejects named library targets for both::and/, and the new test asserts that refusal. The current PR description explains this contract change, but it does not satisfy the directly linked issue requirement.Resolution
Update the linked issue requirement or change the implementation and tests so the required named library intent resolves to the exact broker-admitted value-free
--libcommand. Keep the old trailing-library form rejected.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Full details: Description check
-
Explanation
The description provides extensive change scope, verification evidence, policy status, and limitations, but it does not follow the required template. It omits the required Summary, Policy receipts, Verification checklist, CI budget, and Agent notes headings and does not state the planned CI budget band.
Resolution
Reformat the description using all required template sections. Add the Summary, Policy receipts, Verification checklist with completed items, CI budget with the planned band and any reason for elevated cost, and Agent notes sections. Preserve the existing technical evidence under the relevant headings.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checks the build command line--lib stands clear, with no name in tow
The broker accepts the valid form
The old form meets a firm “no”
Hop, hop, tests confirm the flow
|
Lightweight secondary handoff from the existing PR1484 owner, requested by the parent after the original cloud owner's resume failed. Exact PR1488 head remains Authenticated native read confirms baseline38865317532 passed all seven evidence jobs plus aggregate. At this inspection required gate38865317209 is still in progress at the contained candidate gate step. This is the existing run; no additional CI was requested. Formal reviews and inline comments are empty. CodeRabbit's completed exact-head notice reports no actionable comments; it is distinct from a formal approval or protected gate pass. Source overlap inspection:1488 changes only Parent delivery session |
Exact-packet qualification follow-throughParent requested independent artifact/protection/review inspection using this executor's working access. Head Gate artifact12030988474: 396,824bytes, downloaded SHA256 The green contained wrapper is advisory; Required execution remains unproven. Native This is the existing missing-adoption dependency owned by #992/#1475, with the owner-controlled composition in #1484. No new scheduler defect in this repair is demonstrated. PR1484 has fresh Required3/3 receipts but remains separately held at RIPR29/max0; its receipts cannot qualify this different revision. Do not duplicate its repair or transplant evidence between candidates. Coverage is failed, native exit101, not merely an unavailable upload. All four inspected small-PR packets fail the same three existing Authenticated current protection reads succeeded: main requires Keep Draft under the parent's requested complete-qualification condition: the raw access gap is resolved, but this exact candidate has no passing Required executions and has failed coverage evidence. This is not a claim that GitHub's status protection is red. Existing admission/coverage owners must return their qualified prerequisites; then refresh the actual candidate/base and perform the normal necessary qualification. No Ready/merge, new build, CI dispatch/rerun, threshold, pin, suppression, budget, protection, release or deployment change was made. |
|
Verified — this is a silent semantic break, the sharpest finding of this session: merge-tree exits 0 with zero conflicts (tree Clean textual merge, broken candidate: main's #1508 refuses the exact intent this PR's test requires to succeed. GitHub shows Also reconcile the premise: the body says "Fixes #1486", but #1508's landed contract supersedes #1486's bounded repair (issue still OPEN) — either re-target the PR against #1508's contract (package-level checking or unresolved) or withdraw it with #1486 updated. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Current-main composition finding — preserve the narrowed proof contract
Source-only continuation review, candidate08e857720403e989db02778fa862a7cd86705266 versus current mainbe803ab3865c5488db0145d56fbef2f041458364, actual src/proof/intent.rs bloba80c89b03d380121ae6d4f42bc020f9059031cfd. I did not edit this branch, execute tests, request CI, change Draft or grant merge clearance.
The value-free --lib generator correction remains sensible at its narrow syntax boundary. However, the PR's new library_build_resolution_produces_a_broker_approved_command regression assumes named library resolution is currently supported. Main's resolve_build_target now deliberately returns Err for every candidate with Some(target), with guidance to use cargo-package:<package> only when package-level checking answers the proof question. The current intended behavior is refusal rather than generating or silently broadening a named-target proof.
Consequently, carrying the new positive test unchanged onto main conflicts with the current consumer contract: its .map_err(...)? returns before the command assertion. This is directly observed source flow, not a claimed newly executed test failure. Do not remove the refusal or reactivate named targets merely to make this older PR's test pass.
Bounded integration direction: preserve the existing current-main named-target refusal and its controls. The latent generator syntax repair can be tested directly with a renamed library and the production broker parser, alongside exact named-bin/test/example/bench selector preservation and old invalid-command rejection. Retain a separate resolver-level negative control and positive supported package-level route. If the intended product scope is instead to enable named-target proofs, that requires its own selected approved resolver/broker contract and evidence, not an incidental merge of this historical fix. Reuse the author's historical RED/GREEN and independent extracted-source/native-Cargo evidence with their original scope; they do not qualify the changed current-main resolution policy.
This avoids both losing a valid small syntax correction and accidentally changing proof authority. Keep the existing #1486 ownership and current Draft hold; no duplicate PR, pin/threshold/workflow change, live model run or release is requested.
|
Continuing the existing #1486/#1488 transaction as owning lead; no parallel PR or worker. Current head remains 08e8577; current main is 1b62f77, intent.rs blob a80c89b03d380121ae6d4f42bc020f9059031cfd. I am integrating the bounded value-free --lib generator correction with current main, replacing this PR's stale positive named-target resolution test with direct generator/broker checks plus explicit named-library refusal and supported-package controls. The current resolver's blanket named-build refusal, timeout/admission rules and all newer main tests will remain intact. Historical source/native-Cargo RED/GREEN stays attributed to its original revisions; this environment currently has no Rust toolchain and the ordinary source checkout failed DNS, so no new local Rust execution is claimed. One converged successor on this same PR will receive the installed ordinary qualification; no workflow, pin, threshold, suppression, provider, release or protection change is part of this repair. |
… builds Merge main 1b62f77 into the existing #1488 candidate, preserving every main path except the bounded intent.rs repair. Retain the original value-free --lib production fix and correct template oracle. Replace the stale named-library resolver-positive test with direct generator/broker checks, exact resolver refusal for both label separators, supported package resolution, and all four named-selector preservation controls. Refs #1486 and review5719571465. Historical execution remains revision-scoped; current successor source review completed, fresh hosted qualification pending. No local Rust execution, new suppression, policy change, pin, workflow, release or proof-authority expansion is claimed.
Exact fmt failure in baseline41163596599/job124426267385 requests only expanding the six-element expected argv array. Preserve every token, oracle and production byte. Other six baseline workers passed on parent4fe1780, but that is not successor qualification. No workflow, suppression, threshold, source behavior or named-target authority change.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head source, execution and integration judgment
Owning lead review of head 1c125a0, candidate tree8449de134c33087c3adaf4eefac1f5d797188723. The earlier composition finding in review5719571465 is addressed: the library template and production literal parser are tested directly; named-library model intents remain rejected for both separators, package-level requests remain supported, and all four non-library selectors retain their names. Existing actual-metadata request/planner/refusal controls are unchanged. Only intent.rs changes relative to main (+69/-2); no allowlist, timeout, threshold, suppression or policy broadening.
Actual current-main qualification
Independent baseline41164369215 passed all seven evidence workers and finalizer on exact1c125a0. Downloaded artifact13028675607 is526bytes, SHA25697c96977eaa0a97517a53717bfcf7bc1135167a385d2008f826a726df8ea7e56; CRC valid; candidate SHA and protected-base authority681def59 agree.
Required gate41164370899 passed execution, verifier and upload. Its actual admission is base681def59d005d3b0b922f23832d73e52c46a84d5 + head1c125a0, reviewed merge bc2abc6, combined tree e59a62bea6ef8b055cb398b63341cd792a882586. Native Git commit readback verifies those ordered parents/tree. This run already includes #1382's intervening archive-onboarding main change; the PR metadata's older base is not substituted for the executed merge subject.
Downloaded gate artifact13028566157:908447bytes, SHA2568d6d631fd10da471616214b4e8386a693465ff957af6d199a53a71a935ba90b5; all247 entries CRC-valid,7059435 expanded bytes. Recomputed domain-separated canonical digest 2ad83e44ad8d1d0522a9f4b8f12deafd4e3eaf24f6d5ba4a60c5c7e2bcc58142, diff digest ab15bef667deb4519bf9c0f6a2ebdebc01a43c5b95f065a10935f3fc75c20ac6, and the single changed-path digest agree with admission. Dirty=true remains explicit; this is not independent clean-worktree custody proof.
Both actual ordinary and instrumented workspace commands exit0: 1362 binary tests; 98 CLI passes/one intentional subprocess-driver ignore; every later target passes. The newly landed archive harness contributes5 passing tests and one explicitly manual ignored rehearsal. Total1595 top-level passes/two intentional ignores; the nested one-test child summary is not double-counted. All16 proof-intent tests—including the new direct template/refusal control, existing named-kind scheduling negatives and supported-intent positives—pass in both runs. LCOV is3107651bytes, SHA256cee4e973cbe870dd936ceb4f89c8ec6996fda2725471a3253814c2691f6a7839; telemetry job124430324660 actually uploads it. Changed-line coverage remains not_collected; no frozen archive rehearsal execution is claimed.
RIPR0.10.0 schema0.6 records4 raw findings: two exposed calls58511130/4cb7325e, predicateb0c44d40 propagation_unknown and closing-tokend0462a72 static_unknown. Zero raw exposure gaps, zero suppressed and zero unsuppressed gaps, empty preview_skipped. The unchanged max0 gate passes. Unknowns are not promoted, and broad unrelated test associations in the raw static report are not the justification for source correctness; exact direct runtime assertions and retained historical native-Cargo evidence are scoped separately. No waiver or new suppression.
Review disposition and limits
CodeRabbit comment6210101014/run c084107a-ba83-4fab-a7f0-9e74fc21a000 reviewed production-identical4fe1780 with no actionable source finding. Final1c125a0 changes only rustfmt layout of the expected argv array, verified by native commit diff. The latest CodeRabbit check is a quota skip, not a fresh clean review. Formal review readback contains the prior lead COMMENT and no inline threads. This is the owning lead's distinct source/result judgment, not an invented independent agent, formal approval or local Rust execution.
The first integrated baseline's formatting failure and cancelled gate41163598116 remain failures/incomplete evidence. They are not the source of this final gate clearance. Current source's broader limitations remain Required proof1/3, planner0/3, model-off0/8 and39 shadow projection contradictions; publication reconciliation is coherent/not_needed. Enforcement PASS does not assert full product proof or useful live review.
#1486 remains open for the historical named-intent semantic requirement, as recorded in comment6538382709; this PR uses a non-closing reference. The scoped template correction is technically ready for ordinary protected integration. The old Draft/source-composition hold is lifted by this review, subject to normal current required checks and exact-head/main revalidation. No release, workflow/protection change, provider run or publication authority follows.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Ready-event qualification addendum to review5720953344: no source movement. Latest ordinary baseline41165161087 passes all seven workers and finalizer. Latest required gate41165160783/job124431023871 passes execution, verifier and upload; telemetry124432564132 actually uploads coverage. The fresh packet has the identical canonical base681def59/head1c125a0/reviewedbc2abc6/treee59a62b subject and digest2ad83e44ad8d1d0522a9f4b8f12deafd4e3eaf24f6d5ba4a60c5c7e2bcc58142. Main readback remains681def59.
Downloaded artifact13028851800:914964bytes, recomputed SHA256781d6096e809b9e4e55c744c2e3abeafc29c2ddf097b3db4f56a073c537eb142,247 CRC-valid entries/7074414 expanded bytes. Both actual workspace runs exit0,1362 binary/98CLI passes, all16 intent controls and all later targets;1595 top-level passes/two intentional ignores. Fresh LCOV3107646bytes/SHA25674451055820fa53a71591884ed3b0e5f8adeab7dc5e348ac769fbdf8baae1afa. RIPR remains4findings/2unknown/0gaps/0suppressions with strictmax0 passed. Dirty admission and the broader proof/model/shadow limits remain unchanged in scope; no blanket product clearance.
The normal Ready-triggered replacement checks are now terminal and inspected, rather than bypassed using the older green. No manual rerun or new source change was requested. The existing exact-source review and its explicit #1486 non-closure remain applicable. Proceed only via normal protected expected-head merge; no release or authority expansion.
Delivered result
Merged through the normal protected expected-head path as
ed1d15957bfd0f1f26c8f45b46a402ac5723b3adat 2026-10-31 03:46 UTC. Native Git readback confirms ordered parents main681def59d005d3b0b922f23832d73e52c46a84d5 and qualified head1c125a0078251000b35ee16f9e0e2a640e321e59. Landed treee59a62bea6ef8b055cb398b63341cd792a882586equals the actual tested merge tree. First-parent comparison is exactly src/proof/intent.rs, +69/-2; every unrelated main file is preserved.Refs #1486, intentionally not closing it. The original issue also requested successful named-library model-intent resolution; current main deliberately refuses named focused-build intents. This PR corrects the latent Cargo template without enabling that route or silently dropping the remaining issue requirement. Scope reconciliation6538382709.
Source contract
Generate value-free
--lib, never--lib <library>. Preserve package scope and target names for bin/test/example/bench templates. The refreshed regression directly exercises the generator and actual literal broker parser, rejects old syntax, pins exact named-library resolver refusal for both separators, verifies supported package resolution, and checks all four non-library selector names. Existing real-metadata request/planner/refusal/malicious controls are unchanged.Current source blob663f108bff0f8a39fa7e8df4b3335feec9ed4998. Original candidate08e8577 and main1b62f77 were retained as parents of integration4fe1780. Final1c125a0 changes only rustfmt layout of the expected argv array. Branch updates used expected-old-head non-forced fast forwards; no history rewrite or competing PR.
Final actual qualification
Ready-event baseline41165161087 passes all seven workers and finalizer: fmt, locked workspace/all-target check/tests, strict Clippy, docs, policy and verifier. Ready-event required gate41165160783, job124431023871, passes execution, artifact verification and upload. The replacement checks were allowed to finish and inspected before merge; earlier green did not bypass them.
Actual ordinary and instrumented workspace commands both exit0. Each executes 1362 binary tests,98 CLI passes and all later targets;1595 top-level passes/two intentional ignores, excluding the nested child pass from the total. All16 proof-intent tests pass in both modes. The ignores are the existing subprocess driver and the explicitly manual frozen-archive rehearsal; no archive rehearsal execution is claimed.
Fresh LCOV is3107646bytes, SHA256
74451055820fa53a71591884ed3b0e5f8adeab7dc5e348ac769fbdf8baae1afa. Telemetryjob124432564132 actually uploads coverage successfully. Changed-line coverage remains not_collected; execution coverage is not correctness proof.RIPR0.10.0/schema0.6 retains4 raw findings: exposed calls58511130/4cb7325e, propagation_unknown predicateb0c44d40, static_unknown closing tokend0462a72. Zero exposure gaps, zero suppressions, empty preview_skipped; unchanged max0 passes. Unknowns are not promoted, and unrelated broad static test associations are not used as runtime proof.
Exact packet and review
Final gate artifact13028851800:914964bytes, independently recomputed SHA256
781d6096e809b9e4e55c744c2e3abeafc29c2ddf097b3db4f56a073c537eb142,247 CRC-valid entries/7074414 expanded bytes. Admission binds base681def59/head1c125a0/reviewed mergebc2abc6b22a6030ec86a82015694b397bd878935/combined treee59a62b. The canonical identity recomputes2ad83e44ad8d1d0522a9f4b8f12deafd4e3eaf24f6d5ba4a60c5c7e2bcc58142; diff digestab15bef667deb4519bf9c0f6a2ebdebc01a43c5b95f065a10935f3fc75c20ac6; changed path is exactly intent.rs. Dirty=true remains explicit, not independent clean-worktree custody proof.Lead technical review5720953344 and Ready-result addendum5721005697 retain source, actual results, identities and limits. CodeRabbit comment6210101014/run c084107a-ba83-4fab-a7f0-9e74fc21a000 reviewed production-identical4fe1780 without an actionable source defect; final whitespace-only delta was separately inspected. The latest CodeRabbit quota skip is not a fresh clean review. No invented independent agent, formal approval or local Rust execution. Inline-thread inventory was empty.
The preceding successful synchronize baseline41164369215 and gate41164370899 tested the same combined main tree and remain separately retained in review5720953344. Intervening #1382 archive-onboarding main changes were included in both actual successful gate subjects, not merely inferred compatible.
Failure history and limits
First integrated baseline41163596599 passed six workers but failed fmt on the expected array layout. Gate41163598116 was automatically cancelled during the corrective push and retained an incomplete packet/verifier failure. Neither supplies final clearance. Historical tests-first behavioral RED/GREEN and native-Cargo/extracted-source controls remain attributed to original08e857/base2fd7d42.
No dependency, new spawn, policy/exception, suppression, pin, threshold, workflow, timeout authority, permission, credential, provider spending, release or deployment change. No manual dispatch, unchanged failed rerun, paid review retry or duplicate post-merge suite. Installed synchronize/Ready qualification ran normally.
Broader packet limitations remain Required proof1/3, planner0/3, deliberate model-off0/8 and39 shadow projection contradictions; publication reconciliation is coherent/not_needed. This delivers template correctness, not named-build execution, full proof sufficiency, live-review usefulness, downstream adoption or sole-gate authority.