Repository navigation
Description
verify: end-to-end mini-repo Perl loop (perl-lsp exporter -> ripr preview card)
Campaign: #1379 (Campaign 31) — capstone
Work item: verification/end-to-end-mini-repo (Lane 3 — end-to-end proof)
Tracker: .ripr/goals/perl-repair-routing.toml
Branch: verify/perl-end-to-end-mini-repo
Depends on: ALL of exporter/* (Lane 1) + consumer/* + routing + pipeline + ingestion (Lane 2)
Revision note (adversarial-review pass): the original issue hand-waved the cross-repo CI story ("verify the artifact by running both binaries") without explaining how ripr-swarm CI obtains a perl-lsp binary from a separate repo. This revision makes the CI story explicit and honest: ripr-swarm CI runs the ripr half against a committed expected packet; the full two-binary loop is verified locally before merge.
Problem
Campaign 31's load-bearing claim: one real Perl repository flows end-to-end from perl-lsp ripr-facts to a ripr preview card. Until demonstrated by a test that runs the loop, the campaign isn't complete — individual work items could pass unit tests while the joint loop is broken (schema drift, evidence-key mismatch, pipeline-not-dispatched). Per AGENTS.md verify-the-artifact: "Gates passing, tests passing, and a builder's own 'all gates pass' are weak oracles for behavior." This work item is the strong oracle.
Cross-repo CI story (must be explicit)
perl-lsp is a separate repo (EffortlessMetrics/perl-lsp, dev tree perl-lsp-swarm). ripr-swarm CI has no workflow that builds it. So the e2e test cannot, by default, run the full two-binary loop in ripr-swarm CI. The honest v1 approach:
- In ripr-swarm CI: the e2e test runs ONLY the ripr half, with the input being the committed expected packet (
fixtures/perl_lsp_facts_exporter/expected/ripr-perl-facts-v1.json) standing in for a live perl-lsp output. This is already the fixture pattern (fixtures/perl_lsp_facts_exporter/SPEC.md:10-11states RIPR consumes the packet "without launching perl-lsp"). The CI test asserts the ripr consumer produces the expected Finding/preview-card from that packet. - Locally, before merge: the contributor runs BOTH binaries (builds perl-lsp, runs
perl-lsp ripr-facts --out facts.json, thenripr check --perl-facts facts.json --json) and pastes the actual command sequence + output snippet into the PR description. This is the verify-the-artifact step that CI cannot do. - Optional later PR: add a ripr-swarm CI job that checks out + builds perl-lsp to run the full loop in CI. NOT required to close this campaign; tracked as a future enhancement.
This split is honest: CI proves the ripr half; the PR proves the joint loop. Neither alone is sufficient.
Scope (ripr repo)
Add an end-to-end integration test against the sample mini-repo (fixtures/perl_lsp_facts_exporter/input/: lib/My/App.pm source, t/app.t test).
Test design
-
CI test (ripr half only): load the committed expected packet, run
ripr check --perl-facts <expected packet> --diff <mini-repo diff> --json. Assert:- ≥1
Findingwithlanguage == "perl",language_status == "preview",class == "weakly_exposed". - Finding carries
perl_preview_card.v1. - Card renders on every surface: run with
--json,--sarif,--github, default human, gap-ledger Markdown; assert Perl card appears in each. - All authority flags
false:public_repair_packet,repair_packet_ready,agent_packet_ready,gate_candidate,badge_candidate,ripr_zero_candidate. Onlypublic_projection_readyistrue. gap_state == "actionable"ANDrepair_packet_ready == false(the current contract; seeclaim-control/gap-state-vocabulary-note).
- ≥1
-
Negative path: no
--perl-facts→ named limitation, no Perl finding, no panic, Rust analysis unaffected. -
Local two-binary loop (PR description proof): contributor runs:
# in perl-lsp-swarm, built perl-lsp ripr-facts --schema ripr-perl-facts-v1 --root <mini-repo> --out facts.json # in ripr-swarm, built with --features lang-perl <worktree>/target/debug/ripr.exe check --perl-facts facts.json --diff <mini-repo diff> --json
and includes the command sequence + a JSON snippet in the PR description.
Failing fixture / proof
cargo test -p ripr --features lang-perl --test perl_end_to_end
cargo xtask goldens check
cargo xtask dogfood
cargo xtask check-prCapture actual JSON output as a blessed golden so future drift is caught. Run the absolute worktree binary (<worktree>/target/debug/ripr.exe, not a long ../ that escapes to a stale binary — per AGENTS.md).
Acceptance
- CI e2e test exists and passes (ripr half against committed expected packet).
- Perl finding present on JSON, human, SARIF, GitHub, gap-ledger surfaces.
- All authority flags
false; onlypublic_projection_readyistrue. - Missing-packet path produces named limitation, not error/panic.
- Output captured as blessed golden.
-
cargo xtask goldens check,dogfood,check-prpass. - PR description shows the actual two-binary command sequence + JSON snippet from the local run (not just "tests pass").
Dependencies
- ALL of Lane 1 (
exporter/schema-file,exporter/launch-action,exporter/packet-emitter). - ALL of Lane 2 (
consumer/typed-runner-commands,consumer/productionize,routing/perl-extensions,pipeline/replace-stub,ingestion/integrity-checks).
Capstone — cannot start until everything else lands.
Non-goals
- Real external Perl repos (
dogfood/real-repo-and-receipts, deferred). - Public repair packets (stay false).
- Performance testing.
- Gap-id reconciliation (deferred).
- A CI job that builds perl-lsp (optional future enhancement, not required to close).
Campaign closeout
When this lands + merges, Campaign 31 is complete. End state — preview/advisory Perl loop working end-to-end, all authority flags false, claim-control drift corrected — achieved. Update .ripr/goals/perl-repair-routing.toml status to closed and docs/IMPLEMENTATION_CAMPAIGNS.md Campaign 31 Status: to complete. Cross-link umbrella #1379 with a closeout comment.
Risk
Schema drift between the two repos is the most likely failure mode. If it happens, the test is doing its job — do NOT weaken the test to make it pass; fix the drift.
Activity
EffortlessSteven commentedon Jun 21, 2026
Superseded by the restructured Campaign 31 plan. This issue was scoped under the original plan, which violated ADR 0019 by keeping the Perl-local
PerlStrictActionabilityas the actionability flip authority (ADR 0019 line 83-86 explicitly forbids parallel/mirror validators and language-localrepair_packet_readybooleans). The restructured plan routes Perl through the sharedGapRecord+validate_agent_gap_record_packetauthority, mirrors the TypeScript projection pattern (typescript_gap_record_for+validator_parity_*tests), and upgrades the target from "preview loop" to "usable alpha" across 4 phases / 18 PRs.See the refreshed umbrella #1379 and the new planning PR for the phased issues. The substantive content of this issue is preserved and folded into the appropriate new phased issue.