Skip to content

test(perl): add source/test/oracle fact taxonomy fixtures - #999

Merged
EffortlessSteven merged 2 commits into
mainfrom
analysis/perl-source-test-oracle-facts
Jun 5, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
analysis/perl-source-test-oracle-facts

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

  • Add a second ripr-perl-facts-v1 fixture packet covering Perl source files, test files, oracle shapes, runners, limitations, and provenance.
  • Add an adapter regression that keeps strong exact Perl oracle shapes separate from smoke, mention-only, dies-only, unknown-helper, and dynamic-framework advisory evidence.
  • Register the new corpus case and traceability link for RIPR-SPEC-0064.

Boundary

This is preview/advisory fact intake only. It does not execute Perl, run test commands, emit canonical gap IDs, create repair packets, affect badges, or promote Perl to default gate authority.

Validation

  • cargo fmt --check
  • cargo test -p ripr --lib perl_fact_packet_adapter_preserves_source_test_and_oracle_taxonomy -- --nocapture
  • cargo check -p ripr --tests
  • cargo clippy -p ripr --lib --tests -v -- -D warnings
  • cargo xtask check-fixture-contracts
  • cargo xtask check-traceability
  • cargo xtask check-static-language
  • cargo xtask check-file-policy
  • cargo xtask check-output-contracts
  • cargo xtask precommit
  • git diff --check

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

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

@coderabbitai

coderabbitai Bot commented Jun 5, 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 48 minutes and 39 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: bb4f637c-dba7-4ebc-b8f8-b901957e8afd

📥 Commits

Reviewing files that changed from the base of the PR and between 0b5ee79 and 9f300af.

📒 Files selected for processing (1)
  • .ripr/traceability.toml

Walkthrough

This PR extends Perl fact packet handling by adding oracle strong-exact classification logic that depends on both oracle strength and oracle kind support. Taxonomy enums now support ordering operations, and PerlFactPacket gains filtering helpers. A comprehensive JSON fixture with source/test/oracle taxonomy, test case, specification assertions, and validation test ensures the feature works correctly.

Changes

Perl Oracle Strong-Exact Classification and Fixture Validation

Layer / File(s) Summary
Oracle strong-exact classification and fact packet helpers
crates/ripr/src/analysis/language/perl.rs
OracleKind adds supports_strong_exact() to declare eligible oracle kinds, and OracleFact implements is_strong_exact() combining oracle strength with kind support. Taxonomy enums (FileRole, OwnerKind, BehaviorHint, TestFramework, RunnerHint, OracleKind, RelationKind, ReachabilityHint, BoundaryKind, Runner, ProvenanceSource, Confidence) derive PartialOrd/Ord for collection operations. PerlFactPacket gains helper methods to filter/collect facts by role, framework, kind, strong vs advisory status, and runner verification commands.
Comprehensive fixture and validation test
fixtures/perl_lsp_facts_exporter/expected/ripr-perl-source-test-oracle-facts-v1.json, fixtures/perl_lsp_facts_exporter/corpus.json, fixtures/perl_lsp_facts_exporter/SPEC.md, crates/ripr/src/analysis/language/perl.rs, .ripr/traceability.toml
Adds a complete "ripr-perl-facts-v1" fixture packet with files, owners, changes, tests, oracles (strong and advisory), relations, runners, limitations, and provenance. Appends a source_test_oracle_taxonomy_batch_export test case to the corpus. Strengthens SPEC assertions to require strong exact oracle shapes and explicitly distinguish them from mention-only and advisory evidence. Implements perl_fact_packet_adapter_preserves_source_test_and_oracle_taxonomy test that validates fact packet helpers preserve expected file/test/oracle taxonomy counts, runner sets, oracle classifications, and absence of RIPR-derived gap claims. Updates traceability manifest with the new test reference.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

A rabbit hops through oracle trails,
Strong-exact facts and advisory tales,
With kind support and strength combined,
Perl packets sorted, facts refined,
Taxonomy preserved, the fixture prevails! 🐰

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers key aspects (summary, boundary, validation) but does not follow the full template structure with required sections like Swarm/Source Boundary checkboxes, Scope Classification, Support-tier Impact, or Policy Impact. Complete the PR description using the template: add Swarm/Source Boundary checklist, Scope Classification, Support-tier Impact, Policy Impact, and other required sections with explicit selections or 'n/a' where applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding Perl source/test/oracle fact taxonomy fixtures as test evidence.
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.

✏️ 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/perl-source-test-oracle-facts

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.

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.09091% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ripr/src/analysis/language/perl.rs 99.09% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EffortlessSteven
EffortlessSteven merged commit 00a3d60 into main Jun 5, 2026
18 checks passed
@EffortlessSteven
EffortlessSteven deleted the analysis/perl-source-test-oracle-facts branch June 5, 2026 09:57
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