Repository navigation
fix(agent): define the refusal subject in the shared artifact identity validator (#9500) - #9701
Conversation
…y validator (#9500) #9632 and #9547 each passed alone; together the foreign-producer refusal referenced a subject only the repo-exposure route defined. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015jyhvmnQnqYgyfnycQYsvx
|
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 19 minutes. View limit details
Comment |
|
Dependency coordination for the existing main compile repairs: #9699 and #9701 both address the undefined Independent downstream reproduction: on main Queued #9657 and #9704 are waiting for the accepted repair to land on main; neither is creating another artifact repair. Please record the accepted candidate, the other candidate's disposition, and the landing receipt through the existing owner flow so both queues can resume from a compilable basis. This comment does not select, close, rerun, or take over either repair. |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the changelog accurately describes the behavioral side effect that check-findings now shares the foreign-producer refusal.
- Confirm the PR evidence does not identify a changed-behavior test that specifically distinguishes both artifact routes' foreign-producer refusal, but compilation and 199 agent tests cover the stated regression and existing behavior.
- Confirm the claim that both artifact routes refuse a foreign producer depends on both routes entering the shared validator; caller enumeration was not supplied in the patch.
Refuted
- The changelog overclaims behavior outside the changed validator.; refuted because: The claim is limited to the shared validator's foreign-producer refusal and explicitly identifies both affected routes; no additional public API change is asserted.
- The binding is declared after the validator's early code and therefore cannot support the existing subject reference.; refuted because: The declaration is the first statement in the function, while the changed hunk shows identity checks and later control flow that consume the binding.
- Extracting subject construction to a shared helper would reduce duplication and improve consistency across artifact routes.; refuted because: Only one in-scope label branch (check-findings) uses the binding in the changed diff; introducing a shared helper for a single call site would exceed smallest-complete-fix scope and entangle a compile-only fix with refactor of all routes.
- The binding appears after the point of use.; refuted because: The diff places it at the start of validate_artifact_identity, before the existing validation logic that references subject; Rust locals remain in scope through the remainder of the function.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Independent exact-head source review clears c318250: no introduced blocking finding. Complete diff and changed files inspected, head rechecked unchanged. This repairs the undefined subject with the same "agent verify {label} artifact" text. The alternative #9699/#9701 implementations are semantically equivalent for this repair; inline temporary borrowing is valid through the String-returning call, and the local binding changes only allocation timing. Existing forged-version negative/genuine-positive and CLI metadata-drift controls cover version rejection; neither candidate adds tests. This is source review, not independently executed qualification. Preserve the already agreed single-winner disposition in #9699 comment6341509183: consume the two existing required campaigns, land only an eligible exact-head winner, and retire the duplicate with the landing pointer. #9598 can then integrate the repaired main and re-review its new head before final qualification. No additional campaign requested. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: c318250
repository_pr: EffortlessMetrics/ripr-swarm #9701
review_scope: The one added subject binding in crates/ripr/src/agent/artifact.rs, changelog.d/9500-agent-verify-subject-compile.md, and the downstream shared-validator paths described below.
existing_qualification: https://github.com/EffortlessMetrics/ripr-swarm/actions/runs/39781755670 ; Rust gate job 119834875750 ; referenced controller/integration object be62533 (refs/pull/9701/merge).
pinned_artifact_blob: 3b1d5e733d6c6f709020db14f8da155c428c79d4
Independent source review by /root/verify_main_build_repair (not the patch author; read-only pinned GitHub objects and API receipts), 2026-10-22 13:21 UTC.
integration_basis: PR/run event base dfb71a8. Existing qualification controllers reference the corresponding PR merge object below. Independently observed main a48f7f3 is three commits ahead of that base; compare shows changes outside agent/artifact.rs. The complete pinned current-main artifact source equals each candidate after exactly that candidate's stated repair. No rebase or new qualification is requested for that unrelated main movement.
claim_boundary: Restore compilation after the #9547/#9632 composition by constructing the existing "agent verify {label} artifact" subject in validate_artifact_identity. Preserve the foreign-version refusal wording and current-version gate. Do not claim a new producer-authentication guarantee, a newly designed compatibility policy, full final qualification, or release readiness.
changed_surfaces_and_semantic_owners_inspected: Complete changed-file patches, PR bodies and #9703; full pinned agent/artifact.rs; foreign_producer_refusal; validate_repo_exposure_artifact; validate_check_findings_artifact; validate_verify_snapshot routing; shared ArtifactIdentitySpec/identity validation; current-version comparison; and repo_exposure_validation_rejects_forged_producer_version with its genuine positive control and three forged-version negative cases. The relevant calls and identity gate have no target-specific conditional compilation. Repository AGENTS.md, review-pr, finish-pr, current PR template, routed-rust triggers, branch required-check summary and active main ruleset were also inspected.
correctness_and_counterexample: label is a parameter of the shared validator. Constructing the same existing subject locally removes the unbound lexical reference. foreign_producer_refusal consumes &str synchronously and returns an owned String, so the temporary borrow in #9699 does not escape its statement; the local binding in #9701 is also valid. Both repo-exposure and check-findings routes still reach the same unchanged producer-version comparison. Returning the old &subject without a local binding restores the reported E0425 at line 719, which the baseline native cargo-check evidence recorded at #9699 (comment) discriminates. This review did not launch that baseline again or manufacture a new execution receipt. Existing exact-candidate hosted compilation stages provide the repaired-side control; their individual step receipts are listed below.
blocking_findings: None in the production repair or #9701 changelog within the stated compile-restoration boundary.
non_blocking_suggestions: #9699 formats only on the refusal path; #9701 formats on every validator invocation. The small extra allocation in #9701 is not a material blocker for this compile repair. No production, schema, generated-output, dependency, process, network, security-setting, or packaging change beyond the reviewed one-line repair is present. The existing helper's repo-exposure-specific diagnostic wording is inherited; neither patch redesigns it.
refuted_or_stale_findings: Provider quota notices are missing external review, not a clean review. The zero submitted-review and zero inline-thread inventories observed initially do not supply substantive review; this record supplies independent source inspection only. #9709 is already closed unmerged, with its duplicate disposition pointing to #9701.
proof_and_ci_observed: Both existing exact-head qualification runs have successful admission, repository-policy preflight, workspace/all-target check, all-features ripr target check and strict workspace Clippy. At the latest 13:19 UTC job inventory, Required Rust tests was still in progress. Required doctests, golden contracts, fixture contracts, verdict corpora and Schema producer sweep were pending. Neither required Ripr Rust Small Result had been emitted. These are observed job-step statuses, not a claim to have retrieved terminal gate logs or rerun local tests. Supplementary Rust-only feature lanes and Windows-advisory-subset jobs had passed on both heads.
proof_or_review_missing: Terminal required-run and aggregate-result receipts; complete relevant gate logs/artifacts and actual checkout provenance from those terminal receipts; final fresh reviews, all inline threads and Conversation inventory; final head and main/source applicability readback. Existing PR-body empty/missing template lines also need the supplied metadata repair. The source inspection alone is not permission to skip these gates.
affected_currentness_dimensions: Exact production source and public claim checked for both candidate heads; current artifact source unchanged apart from the repair; no test stimulus or oracle changes; #9701 adds only the reviewed compile-fix changelog. Refresh the integration dimension if relevant source/configuration changes and refresh all final remote inventories before merge.
residual_assumptions_and_non_claims: No local executable was built or run by this reviewer; no CLI output execution, full-workspace completion or all-main health is claimed. No extra qualification, workflow refresh, source write, branch update, Ready transition or merge was performed. The installed routed-rust workflow listens to pull_request labeled, merge_group, main push and workflow_dispatch, not edited/review/comment events; this statement does not claim that metadata cannot trigger any other workflow.
disposition: REVIEW_INCOMPLETE for final merge convergence while existing hosted qualification and final inventories remain pending. Independent source inspection is complete with no blocking source finding. Preserve #9699 (comment): first exact-head required green wins, normal protected expected-head squash, other candidate closed as superseded with the actual landed commit, no additional qualification runs. Before acting, check whether the owner already landed the repair.
main does not compile until #9701 lands (E0425 on the refusal subject in validate_artifact_identity); the one-line change is identical to #9701's and no-ops once main carries it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU
…le fix Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ
…#9590) * fix(rust): bind implicit-call withholding to a value of the impl type (#9540) An operator, drop, iteration or dyn call now withholds a gap only when the test applies the syntax to a value of the impl's type and a strong assertion observes the result. A type named beside an operator on integers, a field operand, a discarded result and a receiver of another type keep the gap. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(rust): keep implicit-call withholding unless the use is provably unrelated (#9540) Review showed requiring a proven binding re-keeps tested code whose operand comes from a helper, constant or tuple, a false actionable. Keep a gap only for a literal or other-typed operand, a discarded result, or a receiver of another type. Statement bounds now nest braces, ident_before is UTF-8 safe, and PartialOrd keeps its method forms. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(rust): keep implicit-call withholding for shadowed, factory-built, destructured and mutated operands (#9540) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(rust): a postfix access after a unary operand is not the impl type (#9540) -Money(1).0 negates the field, so the operand is not a Money. It is now Unknown, which still withholds, and cannot later be credited as Bound. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(agent): name the subject at the foreign-producer refusal in validate_artifact_identity #9632 passed `subject`, a local of a different function, so the lang-rust lane failed to compile. Build the label where it is used. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(rust): keep implicit-call withholding for postfix, primitive-Self and match-arm operands Review of 1d47a1b found three narrow cases where the provably-unrelated rule could keep a gap although the impl is called: a postfix [ or ? on a bare unary operand, a literal operand when Self is a primitive, and a match-arm pattern that rebinds the name. Each now reads Unknown. Spec text covers the rules the first review added; two public-API controls cover for-loop and match-arm rebinding. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ * fix(agent): take main's artifact.rs after #9701 landed the same compile fix Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UZcvvTYPGoc4M6akrD8PNJ --------- Co-authored-by: Claude <noreply@anthropic.com>
…th literals (#9636) (#9702) * fix(python,typescript): credit a same-file assertion helper called with literals (#9636) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * fix(python,typescript): harden helper inlining, add spec rules and traceability (#9636) Also restores a build break on main in agent/artifact.rs (undefined subject in validate_artifact_identity). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * chore: take main's artifact.rs (fixed upstream in #9701) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * fix(python,typescript): harden helper inlining (class rebind, string prefix, reparse fallback) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * test(typescript): measure the helper-inline refusals on the inline pass itself main's same-file assertion-helper pre-pass (decision 19) credits shapes the helper-inline pass refuses, so the refusal tests assert on the pass directly. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * docs(spec): place helper-inline rule in order as Rule 17, link decision 19, note helper_assertions Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * test(python): keep the arbitrary-name helper case unresolved with a computed argument A same-file helper called with a literal is now credited by helper_inline (RIPR-SPEC-0028); the unresolved-form check uses a shape it still refuses. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WJr6YizPnC777wfxAd9ubU * test(app): init the #8727 start-command stub with already_present false (merge repair of main 0285907) * test(app): keep one already_present init after merging main's duplicate repair (#10027) --------- Co-authored-by: Claude <noreply@anthropic.com>
…-hop result (#9329) (#9642) * feat(analysis): resolve a method hop and its tuple-struct receiver field in helper transfer A helper chain may now cross one receiver call on a typed parameter into a unique inherent self method (HelperHop::receiver), and the entry's receiver argument is read as a canonical constructed string from Type(<literals>) or a const fn constructor over literals and same-file constants. self.<index> is the only projection that binds, and the cell never reaches an owner row. Every other shape keeps the earlier stop or withdraws the rows. A free-function callee no longer counts a caller whose only mentions are receiver calls. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * fix(analysis): keep a method-hop chain from relating tests by receiver-call name A free-function owner reached through a method-hop chain is related to a test only through the chain entry: a call fact whose sole mention of the owner's name is a receiver call (expected.to_string() in a test helper) no longer relates the test by name, which had hidden the helper_owner_call relation and let the changed boundary read as a weak gap on a discriminated edit. A method hop never forwards a result and is declined by the weak-oracle and effect-target checks, so the verdict stays propagation_unknown. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * test(corpus): add authored method-hop cases and document the method hop in RIPR-SPEC-0158 Six authored cases with real-mutant truth: a boundary row read through a method hop and const-constructor receiver, a row-near-boundary trap, a rebound receiver, a non-literal constructor argument, a second unreadable constructor, and the to_string name collision. Adds the spec behavior, acceptance examples, test mapping and changelog fragment. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * style(analysis): use approved prose in receiver_value comment Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * style(analysis): satisfy clippy for method-hop helpers Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * feat(analysis): bind a multi-caller helper chain through the one caller a test reaches A callee with several direct callers (a Display::fmt beside the to_string_as method) declined the whole chain. Resolve each caller on its own and keep the chain of the single caller a related test reaches; a caller no test reaches contributes nothing. Decline, naming the edge, when no caller is reached, when two are reached, when a test calls the callee itself, or when the callee has more than eight callers. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * fix(analysis): carry the test file through the method-hop receiver cell Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * docs(spec): cover the multi-caller rule in SPEC-0158, traceability and changelog Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * fix(analysis): refuse a shadowed constructor, a &mut self method hop and parenthesized literals as receiver cells A test-local binding of the constructor name, a method that may change the field before the owner reads it, and a quoted literal holding a parenthesis each produced a wrong or dropped row (Devin review on #9602). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * feat(analysis): pair a check helper's assertion on a forwarded method-hop result A test helper whose only statement is an assert_eq! on the method hop's receiver call (b.to_string_as(si)), over methods that hand the owner's result back unchanged, observes the owner's result. Count that chain as forwarding at propagation and pair the helper's discriminating assertion with the transferred boundary row on the helper-call line, reusing the helper-loan pairing shape and the shared forwarding validators. A dropped, let-bound, transformed or shadowed result still abstains. A receiver call of a free owner's name (expected.to_string()) no longer makes the expected side "computed through the owner", which capped the exact pin to weak and read a discriminated edit as a gap. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * test(corpus): label the bytesize-shaped method hop and its multi-caller negatives Extend authored-method-hop with an owner that has a second, unreached Display caller (positive), a helper reaching two callers, a method that transforms the result and a helper that drops it. Truth comes from cargo test on a copy outside the workspace, mutant by mutant. The three existing method-hop rows move from limited to credited, credited and gap. Document the multi-caller and asserting-entry rules in RIPR-SPEC-0158. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * fix(analysis): bind each hop below an asserting entry to the indexed callee A hop whose file imports or macro-defines the callee name, or whose body rebinds it, no longer lets the asserting-entry admission count the observed result as the changed owner's (std::cmp::min vs a local min). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * Merge origin/main; port the #9701 compile fix for agent/artifact.rs main does not compile until #9701 lands (E0425 on the refusal subject in validate_artifact_identity); the one-line change is identical to #9701's and no-ops once main carries it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * docs(changelog): name the corpus rows #9329 moves Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139yZZvBRARmzGM2cfgBUuQ * Merge origin/main; repair the traceability.toml damage main's tip carries Main's tip (280e020) landed .ripr/traceability.toml with the RIPR-SPEC-0288 entry truncated: its outputs array is unterminated, the following [[behavior]] header for RIPR-SPEC-0289 is missing, and the 0288 metrics array is absent. tomllib rejects main's tip file at line 18162 and cargo xtask check-traceability fails on every PR merge ref built on it. This merge restores the three missing pieces exactly as the sibling entries and RIPR-SPEC-0288's own spec (line 198: unit_test_pass_rate) declare them. tomllib parses the result (303 behavior entries) and cargo xtask check-traceability passes. * fix(app): supply already_present in the backslash-root stub fixture Main's #8989 added RustTestStub.already_present but landed without updating the hand-built stub in next_repair_start_preserves_a_literal_backslash_unix_root, so cargo check --workspace --all-targets fails E0063 on main's tip (0285907) and on every merge ref built on it — reproduced locally on the exact tree before this fix. The stub models a brand-new empty integration file, so the faithful value is already_present: false, matching the sibling initializers at test_stub.rs:1668 and :1725 and the producer in analysis/test_stub.rs. cargo check -p ripr --all-targets now passes and cargo test -p ripr --lib app::test_stub is 23 passed, 0 failed. --------- Co-authored-by: Claude <noreply@anthropic.com>
Summary
Main's
riprlib does not compile:crates/ripr/src/agent/artifact.rs:719usessubject, whichvalidate_artifact_identitydoes not define (E0425). #9632 added the foreign-producer refusal there; #9547 had already moved the shared identity checks into that function, wheresubjectis not in scope. Each was green alone.The fix binds
subjectinsidevalidate_artifact_identitywith the same wording the repo-exposure route uses (agent verify {label} artifact), so refusals read alike.Side effect, intended by #9632: the check-findings route from #9547 now also refuses a foreign producer version.
Swarm / Source Boundary
This PR targets
EffortlessMetrics/ripr-swarm.ripr-swarmNo publishing, release, signing or secret surface is touched.
Source-of-truth Links
Proposal: none (compile-restoration incident)
Spec: none (the existing #9500 refusal contract is unchanged)
ADR: none (no architecture change)
Plan item: none (incident repair tracked by #9703)
Governing issue or accepted claim: #9500
Acceptance delta (one sentence): Main compiles again, with the foreign-producer refusal covering both artifact routes.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/fix-main-agent-artifact-subject
Stack parent or prerequisite PR (if any): none
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): Pending exact-head required qualification under #9699 (comment): the first passing candidate lands with expected-head protection; the other closes as superseded with the landed commit recorded. No additional qualification is requested. #9709 is already closed as a duplicate of #9701.
Validation
cargo test -p ripr --lib --no-runexits 0 on this head (it failed on main b0c9c2e with E0425), andcargo test -p ripr --lib agent::passes 199 tests.cargo fmt --checkis clean. I did not run full precommit locally; hosted required CI on the exact head covers it.Generated by Claude Code