Skip to content

analysis: route assertion-target return values - #859

Merged
EffortlessSteven merged 6 commits into
mainfrom
analysis/assertion-target-return-value-route
Jun 2, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
analysis/assertion-target-return-value-route

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • route assertion-target return-value owner-call absence to analysis/assertion-target-return-value-owner-call-tracing
  • preserve static-limitation/non-actionable status and avoid public repair packet promotion
  • update output schema/spec/capability/readme references and add a real-repair-attempt receipt row

Validation

  • cargo test -p ripr evidence_record_routes_assertion_target_return_value_owner_call_absence_limitation --lib -- --test-threads=1
  • cargo test -p ripr evidence_record_splits_assertion_target_owner_call_absence_limitation --lib -- --test-threads=1
  • cargo xtask dogfood
  • cargo xtask check-capabilities
  • cargo xtask check-output-contracts
  • cargo fmt --check
  • cargo xtask check-static-language
  • cargo xtask check-pr
  • git diff --check

Non-claims

  • does not make assertion-target affinity actionable
  • does not emit public repair packets for static limitations
  • does not change badge, LSP, PR, or CI semantics

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@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 Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@EffortlessSteven, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 20 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e3fea4d9-17cb-45c6-880e-0175cd3e9cd1

📥 Commits

Reviewing files that changed from the base of the PR and between 69c10a7 and 29ceb10.

📒 Files selected for processing (4)
  • README.md
  • docs/CAPABILITY_MATRIX.md
  • fixtures/real-repair-attempts/corpus.json
  • metrics/capabilities.toml

Walkthrough

This PR refines the Lane 1 repair loop by adding return-value-specific routing for assertion-target owner-call absence limitations. The core implementation detects when an assertion target is a ReturnValue and routes to a dedicated analyzer (analysis/assertion-target-return-value-owner-call-tracing) instead of generic affinity logic. Changes span code logic, tests, and the capability documentation system.

Changes

Lane 1 return-value owner-call routing refinement

Layer / File(s) Summary
Return-value routing implementation and test
crates/ripr/src/output/evidence_record.rs
Adds specialized conditional in static_limitation_repair_route_for_entry to detect assertion-target owner-call absence when the seam's assertion target is a ReturnValue, routing to analysis/assertion-target-return-value-owner-call-tracing. Introduces helper owner_call_absence_assertion_target_is_return_value(entry) and replaces the prior assertion-target owner-call absence test with a return-value-specific variant verifying the new routing.
Documentation and capability metadata
README.md, docs/CAPABILITY_MATRIX.md, docs/OUTPUT_SCHEMA.md, docs/specs/RIPR-SPEC-0031-lane1-evidence-quality-audit.md, fixtures/real-repair-attempts/corpus.json, metrics/capabilities.toml
Updates README with the current Lane 1 analyzer checkpoint identifier. Replaces prior next-checkpoint references from analysis/same-file-owner-call-tracing to analysis/assertion-target-return-value-owner-call-tracing in capability matrix and metrics. Clarifies routing contract in output schema and spec acceptance examples. Adds corpus fixture case and extends capability evidence list with non-actionable assertion-target return-value owner-call limitation routing.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A return-value seam finds its way,
Through owner-call assertions at play,
No longer blended in affinity's fold,
But routed with precision, a story retold,
Lane 1 grows sharper with each passing day! 🌟

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 42.86% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'analysis: route assertion-target return values' directly reflects the main change across all modified files: routing assertion-target return-value owner-call absence to a specific analyzer branch.
Description check ✅ Passed The PR description provides a clear summary of objectives, validation steps, and explicit non-claims, covering the key aspects of the change.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch analysis/assertion-target-return-value-route

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

…rget-return-value-route

# Conflicts:
#	metrics/capabilities.toml
@factory-droid

factory-droid Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Droid finished @EffortlessSteven's task —— View job


Droid review completed for PR #859.

Review Summary: Approved.

PR #859 adds a dedicated analyzer route for return-value assertion-target owner-call limitations while preserving static-limitation status. The core logic is sound — the new condition is correctly placed in the if-else chain and the helper function correctly combines SeamKind::ReturnValue with assertion target affinity. The test correctly validates the routing behavior.

Findings: 1 (1 P2 documentation inconsistency)

  1. [P2] fixtures/real-repair-attempts/corpus.json line 608: raw_evidence_refs contains an outdated route reference pointing to analysis/assertion-target-affinity-owner-call-tracing instead of the new analysis/assertion-target-return-value-owner-call-tracing.

Inspected surfaces: crates/ripr/src/output/evidence_record.rs (classifier routing logic), docs/CAPABILITY_MATRIX.md, docs/OUTPUT_SCHEMA.md, fixtures/real-repair-attempts/corpus.json, metrics/capabilities.toml.

Checks performed: Product contract, static language rules, evidence routing logic, output contracts, architecture seams, Rust policy, documentation consistency.

Validation signal: Observed test evidence_record_routes_assertion_target_return_value_owner_call_absence_limitation passes. Diff adds correct if-else condition and helper function.

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) June 1, 2026 23:37
…rget-return-value-route

# Conflicts:
#	metrics/capabilities.toml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/specs/RIPR-SPEC-0031-lane1-evidence-quality-audit.md`:
- Around line 251-253: The acceptance example uses weak language—change the
return-value split from "allowed to route" to mandatory so the contract requires
routing to analysis/assertion-target-return-value-owner-call-tracing for
return-value cases; update the sentence containing
analysis/assertion-target-affinity-owner-call-tracing and
analysis/assertion-target-return-value-owner-call-tracing to use normative
wording like "must route" (or "is required to route") and ensure any linked
fixtures/tests and expected outputs reflect this mandatory behavior.

In `@fixtures/real-repair-attempts/corpus.json`:
- Around line 612-615: Replace the generic route reference inside the
raw_evidence_refs array so the receipt points at the new analyzer route: change
the entry that currently contains
"analysis/assertion-target-affinity-owner-call-tracing" to the dedicated route
"analysis/assertion-target-return-value-owner-call-tracing" (i.e. update the
string in the array to
"target/ripr/reports/swarm-readiness.json:analysis/assertion-target-return-value-owner-call-tracing")
so the evidence row directly references the split route.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 575f48f7-1215-4d78-b621-8efe6c270a27

📥 Commits

Reviewing files that changed from the base of the PR and between 8e3fb9a and 69c10a7.

📒 Files selected for processing (7)
  • README.md
  • crates/ripr/src/output/evidence_record.rs
  • docs/CAPABILITY_MATRIX.md
  • docs/OUTPUT_SCHEMA.md
  • docs/specs/RIPR-SPEC-0031-lane1-evidence-quality-audit.md
  • fixtures/real-repair-attempts/corpus.json
  • metrics/capabilities.toml

Comment on lines +251 to +253
`analysis/assertion-target-affinity-owner-call-tracing`, with return-value
assertion-target owner-call absence allowed to route more narrowly to
`analysis/assertion-target-return-value-owner-call-tracing`, other affinity-based

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Make the return-value split mandatory in the contract.

This acceptance example now says the return-value case is merely “allowed” to use analysis/assertion-target-return-value-owner-call-tracing. That weakens the contract relative to the implementation/test intent in this PR: the generic assertion-target route would still read as compliant. Please make this route normative here (must / equivalent) so the spec, fixtures, and output expectations pin the same behavior.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/specs/RIPR-SPEC-0031-lane1-evidence-quality-audit.md` around lines 251 -
253, The acceptance example uses weak language—change the return-value split
from "allowed to route" to mandatory so the contract requires routing to
analysis/assertion-target-return-value-owner-call-tracing for return-value
cases; update the sentence containing
analysis/assertion-target-affinity-owner-call-tracing and
analysis/assertion-target-return-value-owner-call-tracing to use normative
wording like "must route" (or "is required to route") and ensure any linked
fixtures/tests and expected outputs reflect this mandatory behavior.

Comment on lines +612 to +615
"raw_evidence_refs": [
"crates/ripr/src/output/evidence_record.rs::tests::evidence_record_routes_assertion_target_return_value_owner_call_absence_limitation",
"target/ripr/reports/swarm-readiness.json:analysis/assertion-target-affinity-owner-call-tracing",
"target/ripr/reports/lane1-evidence-audit.json:assertion_target_affinity_return_value_missing_owner_call"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Point the receipt at the new analyzer route.

raw_evidence_refs still names analysis/assertion-target-affinity-owner-call-tracing, which is the generic route this case is splitting away from. For a route-split receipt, that leaves the new evidence row without a direct reference to analysis/assertion-target-return-value-owner-call-tracing. Updating the report ref to the dedicated route would keep the corpus traceable to the behavior this case is claiming.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@fixtures/real-repair-attempts/corpus.json` around lines 612 - 615, Replace
the generic route reference inside the raw_evidence_refs array so the receipt
points at the new analyzer route: change the entry that currently contains
"analysis/assertion-target-affinity-owner-call-tracing" to the dedicated route
"analysis/assertion-target-return-value-owner-call-tracing" (i.e. update the
string in the array to
"target/ripr/reports/swarm-readiness.json:analysis/assertion-target-return-value-owner-call-tracing")
so the evidence row directly references the split route.

"operator_note": "This is analyzer-route dogfood. It improves work allocation only; it does not prove owner-call reachability, emit public repair packets, or move badge/gate counters.",
"must_not_change": [
"do not treat assertion-target affinity alone as owner-call activation",
"do not promote return-value assertion-target limitations to public repair packets",

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.

[P2] raw_evidence_refs contains an outdated route reference

The new receipt entry for assertion_target_return_value_owner_call_route_split references target/ripr/reports/swarm-readiness.json:analysis/assertion-target-affinity-owner-call-tracing (the old generic route) in raw_evidence_refs, but the new behavior routes to analysis/assertion-target-return-value-owner-call-tracing. The reference should likely point to the new route or be removed if the generated artifact doesn't yet exist at that path. This appears to be a documentation inconsistency rather than a functional bug since generated artifacts are not present.

@codecov

codecov Bot commented Jun 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…-value-route' into analysis/assertion-target-return-value-route

# Conflicts:
#	metrics/capabilities.toml
@factory-droid

factory-droid Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Droid finished @EffortlessSteven's task —— View job


Droid is reviewing code and running a security check…

…rget-return-value-route

# Conflicts:
#	docs/CAPABILITY_MATRIX.md
@factory-droid

factory-droid Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Droid finished @EffortlessSteven's task —— View job



Droid review completed for PR #859 (Phase 2 validation).

Review Summary: Approved.

PR #859 adds a dedicated analyzer route for return-value assertion-target owner-call limitations while preserving static-limitation status. The core logic is sound — the new condition is correctly placed in the if-else chain and the helper function correctly combines SeamKind::ReturnValue with assertion target affinity. The test correctly validates the routing behavior.

Findings: 1 (1 P2 documentation inconsistency - posted as PR review comment)

  1. [P2] fixtures/real-repair-attempts/corpus.json line 608: raw_evidence_refs contains an outdated route reference pointing to analysis/assertion-target-affinity-owner-call-tracing instead of the new analysis/assertion-target-return-value-owner-call-tracing.

Inspected surfaces: crates/ripr/src/output/evidence_record.rs (classifier routing logic), docs/CAPABILITY_MATRIX.md, docs/OUTPUT_SCHEMA.md, fixtures/real-repair-attempts/corpus.json, metrics/capabilities.toml.

Validation signal: Observed test evidence_record_routes_assertion_target_return_value_owner_call_absence_limitation passes. Diff adds correct if-else condition and helper function.

"operator_note": "This is analyzer-route dogfood. It improves work allocation only; it does not prove owner-call reachability, emit public repair packets, or move badge/gate counters.",
"must_not_change": [
"do not treat assertion-target affinity alone as owner-call activation",
"do not promote return-value assertion-target limitations to public repair packets",

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.

[P2] Stale raw_evidence_ref points to old route instead of new route

In the new corpus entry assertion_target_return_value_owner_call_route_split, the second raw_evidence_ref points to target/ripr/reports/swarm-readiness.json:analysis/assertion-target-affinity-owner-call-tracing which is the old/generic route. Since this entry documents the new dedicated route analysis/assertion-target-return-value-owner-call-tracing, the reference should be updated to point to the new route path (e.g., target/ripr/reports/swarm-readiness.json:analysis/assertion-target-return-value-owner-call-tracing). This is a documentation consistency issue, not a code defect.

@EffortlessSteven
EffortlessSteven merged commit fe99196 into main Jun 2, 2026
19 checks passed
@EffortlessSteven
EffortlessSteven deleted the analysis/assertion-target-return-value-route branch June 2, 2026 00:04
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