Skip to content

feat(perl): add real producer two-binary proof - #1491

Merged
EffortlessSteven merged 7 commits into
mainfrom
perl-real-repo-evals-v1
Jul 7, 2026
Merged

EffortlessSteven merged 7 commits into
mainfrom
perl-real-repo-evals-v1

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

Objective

Add the ripr-side Perl preview proof that consumes the merged perl-ripr-facts producer and proves the three CPAN-alpha outcomes through the real producer -> ripr two-binary harness.

Summary

  • Accept the canonical perl-ripr-facts producer while keeping perllsp and perl-lsp as compatibility producer names.
  • Align RIPR packet fingerprint recomputation with the producer's semantic SHA-256 recipe.
  • Treat change:unresolved as the intentional unbound-relation sentinel, while still rejecting truly dangling relation change IDs.
  • Fail closed on dynamic-dispatch limitations tied to change, relation, oracle, file, owner, or provenance evidence.
  • Add a real producer two-binary harness for actionable weak, already observed, and dynamic-limited Perl fixture outcomes.
  • Update SPEC-0064, fixture contracts, support-tier wording, capability metadata, and traceability for the preview boundary.

Claim Boundary

This PR establishes a fixture-scoped working preview proof for the Perl producer/consumer loop. It does not claim Perl alpha support, real-repo precision, public badge support, release readiness, or repair-packet authority. The remaining promotion blocker is real-repo producer evidence, including at least five real Perl repo receipts.

Local Proof Commands

  • cargo test -p ripr --features lang-perl h1_dynamic_dispatch_limitation_blocks -- --test-threads=1 - pass, 2 passed
  • cargo test -p ripr --features lang-perl analysis::language::perl -- --test-threads=1 - pass, 77 passed
  • cargo test -p xtask perl_lsp_facts_exporter_fixture_accepts_supported_producers -- --test-threads=1 - pass, 1 passed
  • PERL_RIPR_FACTS=H:\Code\Rust3\perl-lsp-swarm-ripr-facts-cli\target\agent\perl-ripr-facts.exe cargo test -p ripr --features lang-perl --test perl_two_binary_harness -- --test-threads=1 - pass, 1 passed
  • cargo check -p ripr --features lang-perl --all-targets - pass with existing Perl preview dead-code warnings
  • cargo xtask check-fixture-contracts - pass
  • cargo xtask check-capabilities - pass
  • cargo xtask check-traceability - pass
  • cargo xtask check-doc-index - pass
  • cargo xtask check-support-tiers - pass
  • cargo xtask check-spec-format - pass
  • cargo xtask check-spec-numbering - pass
  • cargo fmt --check - pass
  • git diff --check - pass

Upstream Dependency

Producer PR EffortlessMetrics/perl-lsp-swarm#3470 is merged and green. The two-binary harness was run against the merged perl-ripr-facts binary from that worktree.

Non-goals

No managed producer invocation from normal ripr check, no real-repo receipt promotion, no Perl support-tier promotion beyond preview wording, and no public release claim.

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

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1d5d90e9-067f-4c69-87c8-fd060cc2a08f

📥 Commits

Reviewing files that changed from the base of the PR and between b45abaf and 9c2875c.

📒 Files selected for processing (6)
  • .ripr/traceability.toml
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/perl/tests.rs
  • docs/status/SUPPORT_TIERS.md
  • metrics/capabilities.toml
  • xtask/src/main.rs

Summary by CodeRabbit

  • New Features

    • Expanded Perl repair-routing support to recognize the canonical producer and its compatibility wrappers.
    • Added broader end-to-end Perl test coverage for actionable, observed, and limited outcomes.
  • Bug Fixes

    • Tightened packet validation and fingerprint handling for Perl fact ingestion.
    • Improved handling of unresolved relation references and boundary/limitation cases.
  • Documentation

    • Updated Perl contract and support-status docs to reflect the new producer naming and current support level.

Walkthrough

This PR makes perl-ripr-facts the canonical Perl fact producer, updates ingestion and classification rules, expands strict-actionability and limitation handling, reworks the two-binary harness, broadens xtask validation, and refreshes related docs, traceability, and fixture fingerprints.

Changes

Perl fact packet producer canonicalization

Layer / File(s) Summary
Producer acceptance and fingerprinting
crates/ripr/src/analysis/language/perl/mod.rs
Adds supported-producer constants and validation, updates digest formatting, and tightens repo path validation and exporter error wording.
Relations and evidence gating
crates/ripr/src/analysis/language/perl/mod.rs, crates/ripr/src/analysis/language/perl/tests.rs
Allows the unresolved relation sentinel, changes related-test evidence gating to unavailable packets, and adjusts exposure classification and related tests.
Strict actionability and limitation blocking
crates/ripr/src/analysis/language/perl/mod.rs, crates/ripr/src/analysis/language/perl/tests.rs
Converts limitation kinds to strings, adds strict-actionability matchers and dynamic-dispatch helpers, expands evidence-id collection, and updates boundary-scoping behavior and related tests.
Two-binary proof harness
crates/ripr/tests/perl_two_binary_harness.rs
Reworks the Perl two-binary harness to build per-case worktrees, run the canonical exporter invocation, parse JSON output, and assert the three outcome paths with structured checks.
Fixture validation broadening
xtask/src/main.rs
Broadens xtask fixture validation to accept canonical and compatibility producer names, and updates the matching acceptance and guard tests.
Spec and fixture updates
docs/specs/RIPR-SPEC-0064-perl-fact-packet-contract.md, docs/status/SUPPORT_TIERS.md, metrics/capabilities.toml, fixtures/perl_cpan_alpha/*, fixtures/perl_lsp_facts_exporter/*, .ripr/traceability.toml
Updates the contract, support-tier, capability, README, traceability, and packet fingerprint fixtures to match the canonical producer naming and updated packet digests.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

Poem

I hopped through packets, neat and bright,
From perl-lsp to perl-ripr-facts in flight.
Strings and sentinels, clues aligned,
Three outcomes tested, truth defined.
Thump! says the rabbit—facts feel right.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the objective and proof, but it omits most required template sections and source-of-truth links. Add the missing template sections: Swarm/Source Boundary, Source-of-truth Links, Scope Classification, Support/Policy Impact, Rollback, Traceability, Static Language Check, CI Economics, Engineering Check, and Gates.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding a real producer two-binary proof.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch perl-real-repo-evals-v1

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ast-grep (0.44.1)
xtask/src/main.rs

ast-grep timed out on this file


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.

@coderabbitai coderabbitai Bot added the codex label Jul 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b45abaf3f2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +303 to +307
|| packet.has_blocking_dynamic_dispatch_limitation_for_change(change)
} else {
related_evidence
.iter()
.any(|ev| packet.has_blocking_dynamic_boundary(change, Some(ev)))
related_evidence.iter().any(|ev| {
packet.has_blocking_dynamic_boundary(change, Some(ev))
|| packet.has_blocking_dynamic_dispatch_limitation(change, ev)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Suppress repair gaps for limitation-only Perl blockers

When a dynamic_dispatch blocker comes from limitations rather than dynamic_boundaries (for example, an empty-ref/global limitation or one tied to the change/oracle but no boundary fact), these new checks set has_boundary so the class becomes static_unknown, but the canonical-gap block below still attaches a canonical_gap_id and suggested test fields whenever the change has a concrete discriminator because canonical_gap_identity_for_change_with_assertion_shape only suppresses dynamic-boundary facts. That lets a named-limitation packet still emit repair-shaped output, contrary to SPEC-0064's fail-closed limitation boundary; suppress canonical gaps/suggestions when has_boundary is true or make gap identity account for limitation blockers too.

Useful? React with 👍 / 👎.

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
crates/ripr/src/analysis/language/perl/mod.rs (1)

2888-2909: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove the unused BoundaryKind::blocks_strict_actionability helper. Actionability now flows through limitation_kind_blocks_strict_actionability, and has_blocking_dynamic_boundary no longer consults boundary.kind. The PartialEmitter note is inconsistent with this diff; it is added here and in the enum.

🤖 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 `@crates/ripr/src/analysis/language/perl/mod.rs` around lines 2888 - 2909, The
BoundaryKind::blocks_strict_actionability helper is now unused and should be
removed, since actionability is already determined by
limitation_kind_blocks_strict_actionability and has_blocking_dynamic_boundary no
longer checks boundary.kind. Update the Perl analysis code around BoundaryKind
to drop this method entirely, and keep PartialEmitter only where it is
intentionally referenced in the enum or other active logic so the
boundary/actionability paths stay consistent.
🤖 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/status/SUPPORT_TIERS.md`:
- Line 45: Update the Perl repair routing row in SUPPORT_TIERS.md to use a tier
label that is defined on the page. The current value in the support tier column
is not part of the documented vocabulary, so either change it to the existing
blocked tier or add planned to the tier definitions and use it consistently.
Keep the rest of the RIPR-PROP-0018 and RIPR-SPEC-0064 summary text unchanged.

In `@xtask/src/main.rs`:
- Around line 81337-81387: The acceptance test in
perl_lsp_facts_exporter_fixture_accepts_supported_producers only covers two
producer names and misses the third supported alias. Update the producer loop in
this test to include "perl-lsp" alongside "perl-ripr-facts" and "perllsp", so
validate_perl_lsp_facts_exporter_fixture_corpus_at is exercised for all accepted
producer names.

---

Outside diff comments:
In `@crates/ripr/src/analysis/language/perl/mod.rs`:
- Around line 2888-2909: The BoundaryKind::blocks_strict_actionability helper is
now unused and should be removed, since actionability is already determined by
limitation_kind_blocks_strict_actionability and has_blocking_dynamic_boundary no
longer checks boundary.kind. Update the Perl analysis code around BoundaryKind
to drop this method entirely, and keep PartialEmitter only where it is
intentionally referenced in the enum or other active logic so the
boundary/actionability paths stay consistent.
🪄 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: ee071090-479b-4cc2-8c64-f972002eaf7a

📥 Commits

Reviewing files that changed from the base of the PR and between abdc35b and b45abaf.

📒 Files selected for processing (15)
  • .ripr/traceability.toml
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/perl/tests.rs
  • crates/ripr/tests/perl_two_binary_harness.rs
  • docs/specs/RIPR-SPEC-0064-perl-fact-packet-contract.md
  • docs/status/SUPPORT_TIERS.md
  • fixtures/perl_cpan_alpha/README.md
  • fixtures/perl_cpan_alpha/expected/regression-packets/actionable-weak-ok.json
  • fixtures/perl_cpan_alpha/expected/regression-packets/already-observed-exact-is.json
  • fixtures/perl_cpan_alpha/expected/regression-packets/dynamic-limited.json
  • fixtures/perl_lsp_facts_exporter/SPEC.md
  • fixtures/perl_lsp_facts_exporter/expected/ripr-perl-facts-v1.json
  • fixtures/perl_lsp_facts_exporter/expected/ripr-perl-source-test-oracle-facts-v1.json
  • metrics/capabilities.toml
  • xtask/src/main.rs

Comment thread docs/status/SUPPORT_TIERS.md Resolved
Comment thread xtask/src/main.rs Resolved
@codecov

codecov Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.34043% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ripr/src/analysis/language/perl/mod.rs 96.80% 4 Missing ⚠️
xtask/src/main.rs 98.41% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EffortlessSteven

Copy link
Copy Markdown
Member Author

CI status on head 9b257fd:

  • Green: codecov/patch,
    ust-coverage,
    ust-tests-junit, source-of-truth, ub-review, cargo-deny, dependency-review, pr-plan, CodeRabbit, and GitGuardian Security Checks.
  • Remaining blocker: Ripr Rust Small Result, from Ripr Rust Small on CX43 job 85684336810 in run 28885054460.
  • Failure mode: pre-build infrastructure guard, not a branch test failure. The job exits before checkout/build at ci-disk-guard /mnt/ci-scratch 35: /mnt/ci-scratch reports 19 GB free and needs 35 GB. The log shows the dominant disk consumer is /mnt/actions/_work/adze-swarm at 65 GB, while /mnt/ci-scratch itself is tiny.
  • This matches the existing runner-hardening/tempfail lane in ci: harden self-hosted runners; size disk guards per host class; consume tempfail (exit 75) as fallback signal #1058; docs/PROOF_ROUTING.md classifies disk-guard exit 75 as an infrastructure tempfail rather than proof failure.

@coderabbitai coderabbitai Bot removed the codex label Jul 7, 2026

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
crates/ripr/src/analysis/language/perl/mod.rs (1)

2843-2843: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Fail closed on unknown limitation kinds. LimitationFact.kind is now a free-form string, and validate_ingestion() does not reject unknown labels. A typo or new label will skip has_blocking_limitation() and can incorrectly allow strict actionability; validate the kind set or treat unknown kinds as blocking.

🤖 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 `@crates/ripr/src/analysis/language/perl/mod.rs` at line 2843,
validate_ingestion() currently accepts any LimitationFact.kind string, which can
let typos or unexpected labels bypass has_blocking_limitation() and incorrectly
mark items actionable. Update the validation path in the Perl analysis module to
explicitly whitelist the known limitation kinds, or otherwise make unknown kinds
fail closed by treating them as blocking. Use the LimitationFact.kind field and
the has_blocking_limitation() logic as the key places to enforce this behavior.
xtask/src/main.rs (1)

85179-85210: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Add a scratch step id to these jobs
outputs.scratch_status reads steps.scratch.outputs.status, but rust-cx43, rust-cpx42, and rust-cx53 never define a step with id: scratch, so the output stays empty and the rust-github tempfail fallback won’t fire.

🤖 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 `@xtask/src/main.rs` around lines 85179 - 85210, The rust-cx43, rust-cpx42, and
rust-cx53 jobs reference steps.scratch.outputs.status in outputs.scratch_status
but never define a step with id scratch, so the status never propagates. Add a
step id named scratch to the existing scratch-preparation step in each job (the
one invoking ci-disk-guard) so the output can be read by rust-github and trigger
the tempfail fallback correctly.
🤖 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 `@xtask/src/main.rs`:
- Around line 85222-85240: The tempfail diagnostics in the rust-github/result
workflow only expose CX43, even though the rust-github if condition also depends
on rust-cpx42 and rust-cx53. Update the result job’s env and echo steps to
capture and print all three scratch statuses, and reference the same runner
names used in the rust-github condition so the fallback source is visible
regardless of which runner tempfails. While touching the rust-github condition,
parenthesize the mixed &&/|| expression for readability and to make the intended
grouping explicit.
- Around line 7509-7541: The new "hosted fallback conditional job" entry is
missing from the assertion coverage added alongside the other checks. Update the
relevant test/assertion block in main logic around the existing fallback and
docs-detection assertions so it includes a matching assertion for this symbol,
using the same pattern as the neighboring entries to keep the guard coverage
consistent.

---

Outside diff comments:
In `@crates/ripr/src/analysis/language/perl/mod.rs`:
- Line 2843: validate_ingestion() currently accepts any LimitationFact.kind
string, which can let typos or unexpected labels bypass
has_blocking_limitation() and incorrectly mark items actionable. Update the
validation path in the Perl analysis module to explicitly whitelist the known
limitation kinds, or otherwise make unknown kinds fail closed by treating them
as blocking. Use the LimitationFact.kind field and the has_blocking_limitation()
logic as the key places to enforce this behavior.

In `@xtask/src/main.rs`:
- Around line 85179-85210: The rust-cx43, rust-cpx42, and rust-cx53 jobs
reference steps.scratch.outputs.status in outputs.scratch_status but never
define a step with id scratch, so the status never propagates. Add a step id
named scratch to the existing scratch-preparation step in each job (the one
invoking ci-disk-guard) so the output can be read by rust-github and trigger the
tempfail fallback correctly.
🪄 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: 1d5d90e9-067f-4c69-87c8-fd060cc2a08f

📥 Commits

Reviewing files that changed from the base of the PR and between b45abaf and 9c2875c.

📒 Files selected for processing (6)
  • .ripr/traceability.toml
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/perl/tests.rs
  • docs/status/SUPPORT_TIERS.md
  • metrics/capabilities.toml
  • xtask/src/main.rs

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
crates/ripr/src/analysis/language/perl/mod.rs (1)

2843-2843: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Fail closed on unknown limitation kinds. LimitationFact.kind is now a free-form string, and validate_ingestion() does not reject unknown labels. A typo or new label will skip has_blocking_limitation() and can incorrectly allow strict actionability; validate the kind set or treat unknown kinds as blocking.

🤖 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 `@crates/ripr/src/analysis/language/perl/mod.rs` at line 2843,
validate_ingestion() currently accepts any LimitationFact.kind string, which can
let typos or unexpected labels bypass has_blocking_limitation() and incorrectly
mark items actionable. Update the validation path in the Perl analysis module to
explicitly whitelist the known limitation kinds, or otherwise make unknown kinds
fail closed by treating them as blocking. Use the LimitationFact.kind field and
the has_blocking_limitation() logic as the key places to enforce this behavior.
xtask/src/main.rs (1)

85179-85210: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Add a scratch step id to these jobs
outputs.scratch_status reads steps.scratch.outputs.status, but rust-cx43, rust-cpx42, and rust-cx53 never define a step with id: scratch, so the output stays empty and the rust-github tempfail fallback won’t fire.

🤖 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 `@xtask/src/main.rs` around lines 85179 - 85210, The rust-cx43, rust-cpx42, and
rust-cx53 jobs reference steps.scratch.outputs.status in outputs.scratch_status
but never define a step with id scratch, so the status never propagates. Add a
step id named scratch to the existing scratch-preparation step in each job (the
one invoking ci-disk-guard) so the output can be read by rust-github and trigger
the tempfail fallback correctly.
🤖 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 `@xtask/src/main.rs`:
- Around line 85222-85240: The tempfail diagnostics in the rust-github/result
workflow only expose CX43, even though the rust-github if condition also depends
on rust-cpx42 and rust-cx53. Update the result job’s env and echo steps to
capture and print all three scratch statuses, and reference the same runner
names used in the rust-github condition so the fallback source is visible
regardless of which runner tempfails. While touching the rust-github condition,
parenthesize the mixed &&/|| expression for readability and to make the intended
grouping explicit.
- Around line 7509-7541: The new "hosted fallback conditional job" entry is
missing from the assertion coverage added alongside the other checks. Update the
relevant test/assertion block in main logic around the existing fallback and
docs-detection assertions so it includes a matching assertion for this symbol,
using the same pattern as the neighboring entries to keep the guard coverage
consistent.

---

Outside diff comments:
In `@crates/ripr/src/analysis/language/perl/mod.rs`:
- Line 2843: validate_ingestion() currently accepts any LimitationFact.kind
string, which can let typos or unexpected labels bypass
has_blocking_limitation() and incorrectly mark items actionable. Update the
validation path in the Perl analysis module to explicitly whitelist the known
limitation kinds, or otherwise make unknown kinds fail closed by treating them
as blocking. Use the LimitationFact.kind field and the has_blocking_limitation()
logic as the key places to enforce this behavior.

In `@xtask/src/main.rs`:
- Around line 85179-85210: The rust-cx43, rust-cpx42, and rust-cx53 jobs
reference steps.scratch.outputs.status in outputs.scratch_status but never
define a step with id scratch, so the status never propagates. Add a step id
named scratch to the existing scratch-preparation step in each job (the one
invoking ci-disk-guard) so the output can be read by rust-github and trigger the
tempfail fallback correctly.
🪄 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: 1d5d90e9-067f-4c69-87c8-fd060cc2a08f

📥 Commits

Reviewing files that changed from the base of the PR and between b45abaf and 9c2875c.

📒 Files selected for processing (6)
  • .ripr/traceability.toml
  • crates/ripr/src/analysis/language/perl/mod.rs
  • crates/ripr/src/analysis/language/perl/tests.rs
  • docs/status/SUPPORT_TIERS.md
  • metrics/capabilities.toml
  • xtask/src/main.rs
🛑 Comments failed to post (2)
xtask/src/main.rs (2)

7509-7541: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check whether "hosted fallback conditional job" has a corresponding assertion.
rg -n '"hosted fallback conditional job"' xtask/src/main.rs

Repository: EffortlessMetrics/ripr-swarm

Length of output: 218


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the assertion block around the cited lines.
sed -n '85280,85360p' xtask/src/main.rs

printf '\n--- SEARCH: exact label across repo ---\n'
rg -n '"hosted fallback conditional job"|hosted fallback conditional job|docs-detection guard|scratch tempfail output|tempfail fallback predicate|normalized tempfail fallback result|normalized docs detection failure' .

printf '\n--- SEARCH: nearby assertion patterns in xtask/src/main.rs ---\n'
rg -n 'assert|expect|contains|guard check|new check entries|fallback conditional job|docs-detection guard|scratch tempfail output|tempfail fallback predicate' xtask/src/main.rs

Repository: EffortlessMetrics/ripr-swarm

Length of output: 50385


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- TARGETED FILE RANGE ---\n'
sed -n '85300,85360p' xtask/src/main.rs

printf '\n--- TARGETED CONTEXT FOR HOSTED FALLBACK LABEL ---\n'
rg -n -C 4 'hosted fallback conditional job|docs-detection guard|scratch tempfail output|tempfail fallback predicate|normalized tempfail fallback result|normalized docs detection failure' xtask/src/main.rs

printf '\n--- TARGETED ASSERTION-STYLE SEARCH ---\n'
rg -n -C 3 'assert.*hosted fallback conditional job|contains.*hosted fallback conditional job|hosted fallback conditional job.*assert|hosted fallback conditional job.*contains' xtask/src/main.rs

Repository: EffortlessMetrics/ripr-swarm

Length of output: 257


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo '--- TARGETED FILE RANGE ---'
sed -n '85300,85360p' xtask/src/main.rs

echo
echo '--- TARGETED CONTEXT FOR HOSTED FALLBACK LABEL ---'
rg -n -C 4 'hosted fallback conditional job|docs-detection guard|scratch tempfail output|tempfail fallback predicate|normalized tempfail fallback result|normalized docs detection failure' xtask/src/main.rs

echo
echo '--- TARGETED ASSERTION-STYLE SEARCH ---'
rg -n -C 3 'assert.*hosted fallback conditional job|contains.*hosted fallback conditional job|hosted fallback conditional job.*assert|hosted fallback conditional job.*contains' xtask/src/main.rs

Repository: EffortlessMetrics/ripr-swarm

Length of output: 5372


Add an assertion for hosted fallback conditional job
This new guard check is not covered by the assertion block for the other added entries; add a matching test assertion for it.

🤖 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 `@xtask/src/main.rs` around lines 7509 - 7541, The new "hosted fallback
conditional job" entry is missing from the assertion coverage added alongside
the other checks. Update the relevant test/assertion block in main logic around
the existing fallback and docs-detection assertions so it includes a matching
assertion for this symbol, using the same pattern as the neighboring entries to
keep the guard coverage consistent.

85222-85240: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Asymmetric tempfail diagnostics: only CX43's scratch status is surfaced.

rust-github's if gates on tempfail from all three runners (rust-cx43, rust-cpx42, rust-cx53), but the result job's env only captures CX43_SCRATCH_STATUS, and neither of the two echo steps actually reference it. If rust-cpx42 or rust-cx53 is the one that tempfails, the diagnostic output gives no indication of which runner triggered the fallback, and CX43_SCRATCH_STATUS itself appears to go unused. Consider capturing all three scratch statuses and echoing them for parity with the fallback condition.

Also consider parenthesizing the mixed &&/|| condition for clarity, even though evaluation order (&& before ||) already matches the apparent intent:

♻️ Suggested clarity + parity fix
   rust-github:
     if: >-
-      needs.detect-docs-only.result == 'success' &&
-      needs.route.outputs.router_target == 'github' ||
+      (needs.detect-docs-only.result == 'success' &&
+      needs.route.outputs.router_target == 'github') ||
       needs.rust-cx43.outputs.scratch_status == 'tempfail' ||
       needs.rust-cpx42.outputs.scratch_status == 'tempfail' ||
       needs.rust-cx53.outputs.scratch_status == 'tempfail'
     steps:
       - name: Proof route dry-run (advisory)
         run: cargo xtask proof route --base "$BASE_SHA" --head "$HEAD_SHA" || true
   result:
     name: Ripr Rust Small Result
     env:
       DOCS_DETECT_RESULT: ${{ needs.detect-docs-only.result }}
       CX43_SCRATCH_STATUS: ${{ needs.rust-cx43.outputs.scratch_status }}
+      CPX42_SCRATCH_STATUS: ${{ needs.rust-cpx42.outputs.scratch_status }}
+      CX53_SCRATCH_STATUS: ${{ needs.rust-cx53.outputs.scratch_status }}
     steps:
       - run: echo "disk-guard tempfailed; GitHub-hosted fallback succeeded"
       - run: echo "docs-surface detection result was $DOCS_DETECT_RESULT"
+      - run: echo "scratch status: cx43=$CX43_SCRATCH_STATUS cpx42=$CPX42_SCRATCH_STATUS cx53=$CX53_SCRATCH_STATUS"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

  rust-github:
    if: >-
      (needs.detect-docs-only.result == 'success' &&
      needs.route.outputs.router_target == 'github') ||
      needs.rust-cx43.outputs.scratch_status == 'tempfail' ||
      needs.rust-cpx42.outputs.scratch_status == 'tempfail' ||
      needs.rust-cx53.outputs.scratch_status == 'tempfail'
    steps:
      - name: Proof route dry-run (advisory)
        run: cargo xtask proof route --base "$BASE_SHA" --head "$HEAD_SHA" || true
  result:
    name: Ripr Rust Small Result
    env:
      DOCS_DETECT_RESULT: ${{ needs.detect-docs-only.result }}
      CX43_SCRATCH_STATUS: ${{ needs.rust-cx43.outputs.scratch_status }}
      CPX42_SCRATCH_STATUS: ${{ needs.rust-cpx42.outputs.scratch_status }}
      CX53_SCRATCH_STATUS: ${{ needs.rust-cx53.outputs.scratch_status }}
    steps:
      - run: echo "disk-guard tempfailed; GitHub-hosted fallback succeeded"
      - run: echo "docs-surface detection result was $DOCS_DETECT_RESULT"
      - run: echo "scratch status: cx43=$CX43_SCRATCH_STATUS cpx42=$CPX42_SCRATCH_STATUS cx53=$CX53_SCRATCH_STATUS"
"#;
🤖 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 `@xtask/src/main.rs` around lines 85222 - 85240, The tempfail diagnostics in
the rust-github/result workflow only expose CX43, even though the rust-github if
condition also depends on rust-cpx42 and rust-cx53. Update the result job’s env
and echo steps to capture and print all three scratch statuses, and reference
the same runner names used in the rust-github condition so the fallback source
is visible regardless of which runner tempfails. While touching the rust-github
condition, parenthesize the mixed &&/|| expression for readability and to make
the intended grouping explicit.

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