Skip to content

docs(campaign): Campaign 31 Perl Repair-Routing Production Bridge (plan, scout-verified + adversarially reviewed) - #1393

Closed
EffortlessSteven wants to merge 1 commit into
mainfrom
docs/perl-campaign-31-plan
Closed

EffortlessSteven wants to merge 1 commit into
mainfrom
docs/perl-campaign-31-plan

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

What this PR does

Establishes Campaign 31 (Perl Repair-Routing Production Bridge) as a durable, scout-verified plan before any implementation begins. Docs + tracker only — no production code.

  • Adds Campaign 31 to docs/IMPLEMENTATION_CAMPAIGNS.md (status: tracker, not active — the active manifest remains use-case-spec-spine).
  • Adds a focused tracker at .ripr/goals/perl-repair-routing.toml (lane 2, status: tracker).

Why document-first

The repo's AGENTS.md doctrine is explicit: "File or update the ripr-swarm issue or repo spec before implementation. Repo specs are durable truth; issues track execution state; chat history is not the plan." This PR is that durable truth for the Perl productionization effort. It turns the incoming assessment into a verified, dependency-ordered, adversarially-reviewed campaign that subsequent implementation PRs execute against.

How the plan was built

  1. Scout verification (4 parallel read-only agents) — every load-bearing claim in the incoming assessment was checked file:line against the actual code in both ripr-swarm and perl-lsp-swarm before the plan was written. Findings:

    • The assessment was substantially correct.
    • Key refinement: the perl-lsp ripr-facts exporter is not a from-scratch build — perl-lsp already produces a serde-serializable FileFactShard; the exporter is a thin new LaunchAction variant.
    • Key refinement: SUPPORT_TIERS.md is actually the most honest surface (no Perl row); the over-claim drift is concentrated in 6 specific surfaces, not "everywhere."
    • The consumer validator (24 strict conditions, 14 fail-closed dynamic boundaries) is already production-ready; the gap is the two bridges.
  2. Adversarial review (1 read-only agent, "assume the plan is wrong") — after the first draft, an adversarial pass checked 12 hypotheses. It confirmed 5 major + 6 minor issues, all fixed in this PR before push:

    • Campaign Status: active over-claim → corrected to tracker (only active.toml selects the active campaign).
    • pipeline/replace-stub was wrongly listed as depending on routing/perl-extensions → corrected (pipeline dispatch keys off the enabled-languages list, not route()).
    • consumer/productionize was wrongly listed as depending on consumer/typed-runner-commands → corrected (the validator is unreachable until the pipeline wires it).
    • Claim-control surface list missed OUTPUT_SCHEMA.md, the root ripr.toml.example, and the config.rs:237 error string → added.
    • The e2e test hand-waved the cross-repo CI story (ripr-swarm CI can't build perl-lsp) → made explicit: CI runs the ripr half against a committed expected packet; the full two-binary loop is verified locally in the PR.
    • The gap_state="actionable" vs repair_packet_ready=false vocabulary was silently deferred → shipped a dedicated claim-control/gap-state-vocabulary-note work item + issue.
    • Tracker used status = "deferred" (invalid per README) and omitted the stackable field (would break check-goals on promotion) → corrected to blocked with notes + added stackable to all work items.
    • consumer/productionize blast radius was understated → corrected: the entire perl.rs module (~1900 lines) becomes production code, not just the new trait impl.

End state (campaign complete, not this PR)

One real Perl repository flows end-to-end: perl-lsp ripr-facts → ripr finding → perl_preview_card.v1 on every output surface. All authority flags (public_repair_packet, repair_packet_ready, agent_packet_ready, gate_candidate, badge_candidate, ripr_zero_candidate) remain false. End-state is preview/advisory, not a support-tier promotion.

Scope of this PR

Two files, docs + tracker only:

  • docs/IMPLEMENTATION_CAMPAIGNS.md — Campaign 31 section (verified ground truth, objective, non-goals, 14 work items with dependency-ordered table, commands, review policy).
  • .ripr/goals/perl-repair-routing.toml — focused tracker manifest (lane 2, 14 work items with status/stackable/branch/acceptance/commands, promotion-safe vocabulary).

Non-goals of this PR

  • Any production code change.
  • Any spec/proposal/ADR status flip (SPEC-0064, PROP-0018, ADR-0018, ADR-0019 stay proposed).
  • Adding lang-perl to default features.
  • Promoting Campaign 31 to active.toml (maintainer decision).

Linked issues

Verification

cargo xtask check-goals       # PASS (exit 0)
cargo xtask check-doc-index   # PASS (exit 0)
cargo xtask precommit         # PASS (exit 0)

Changed surfaces inspected

  • docs/IMPLEMENTATION_CAMPAIGNS.md — appended Campaign 31 only; no existing campaign touched.
  • .ripr/goals/perl-repair-routing.toml — new file; sibling to existing focused trackers (python-repair-routing.toml, etc.).

Risks considered

  • Plan-internal consistency: the adversarial pass caught the dependency-graph and status-vocabulary drift before push; check-goals now passes.
  • Cross-repo coordination: exporter work lands in perl-lsp-swarm, consumer in ripr-swarm; the e2e work item's CI story is now explicit (ripr-half in CI, full loop in PR).
  • Cardinal-sin seam: every work item's acceptance criteria re-states that all authority flags must stay false; the end state requires it; no work item flips them.
  • Rework risk: claim-control was reframed from "drop perl" to "clarify perl as scaffold" so the bridge PRs don't churn the same lines re-adding it.

Residual assumptions

  • The maintainer may choose to reorder Lane 0 vs Lane 1 vs Lane 2 start; the tracker marks dependencies, not a mandated start order. Lane 0 (claim-control) and consumer/typed-runner-commands are all unblocked and could start immediately in parallel.
  • Promotion of Campaign 31 into active.toml is out of scope for this PR and is a separate maintainer decision.

Closes #1379 (planning phase). Implementation PRs will reference their individual work-item issues.

Records the verified ground-truth state of the Perl adapter (cfg-test-only
scaffold, no production routing, lang-perl not default) and the campaign to
close the two missing production bridges (perl-lsp ripr-facts exporter +
ripr consumer out of cfg(test)).

Campaign objective: one real Perl repo flows end-to-end
perl-lsp ripr-facts -> ripr finding -> perl_preview_card.v1 on every output
surface. Public repair/agent packets stay disabled; end-state is
preview/advisory, not a support-tier promotion.

Adds Campaign 31 to docs/IMPLEMENTATION_CAMPAIGNS.md and a focused tracker
at .ripr/goals/perl-repair-routing.toml. Ground truth was scout-verified
file:line before the plan was written (assessment claims checked against
actual code in both ripr-swarm and perl-lsp-swarm).

Umbrella: #1379. Work-item issues: #1380-#1391.
@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 21, 2026

Copy link
Copy Markdown

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 24 minutes and 35 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

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

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

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: 4514883b-f911-4c27-895e-e096ae4c9186

📥 Commits

Reviewing files that changed from the base of the PR and between 7b28510 and 89b5565.

📒 Files selected for processing (2)
  • .ripr/goals/perl-repair-routing.toml
  • docs/IMPLEMENTATION_CAMPAIGNS.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/perl-campaign-31-plan

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.

@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: 89b55653d8

ℹ️ 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".

| `claim-control/changelog-09` | pending | Correct CHANGELOG 0.9.0 Perl over-claim wording to "scaffold". |
| `claim-control/support-tier-row` | pending | Add explicit "Perl scaffold/blocked" row to `docs/status/SUPPORT_TIERS.md`. |
| `claim-control/config-and-doctor` | pending | Clarify (not remove) Perl as scaffold/not-yet-functional across all user-facing config + doctor + schema-doc surfaces: `config.rs:79-87` embedded example AND root `ripr.toml.example:55-61`, `config.rs:237` parser error string, `docs/CONFIGURATION.md`, doctor Tip block (`commands.rs:4103-4110`), and `docs/OUTPUT_SCHEMA.md` perl_preview_card description. The parser at `config.rs:234,246` already fails closed when the feature is off, so the load-bearing honesty is in code; this item is wording/clarification to avoid implying the adapter is functional. Reframed as "clarify" (not "drop") so the bridge PRs do not churn the same lines re-adding Perl. |
| `exporter/launch-action` | pending | perl-lsp: add `LaunchAction::RiprFacts` variant + CLI flag. Blocked until bridge work begins. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add the missing tracker rows to the campaign table

The Campaign 31 work-item table skips exporter/schema-file even though the new tracker manifest defines it as the first Lane 1 contract-freezing step, and both exporter/launch-action and exporter/packet-emitter are blocked on it. Agents are instructed to recover long-running work from docs/IMPLEMENTATION_CAMPAIGNS.md plus .ripr/goals, so this mismatch makes the schema-pinning PR disappear from the durable human plan and invites out-of-order exporter work; add the missing row (and keep any deferred manifest-only items in sync) so the docs and tracker describe the same queue.

Useful? React with 👍 / 👎.


[[work_item]]
id = "exporter/schema-file"
status = "blocked"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Add structured blockers to blocked work items

These blocked items encode their dependency only inside the prose acceptance field, but the goals validator expects blocked work to carry blocked_by or blocked_reason (xtask/src/main.rs rejects blocked items without either field when this tracker is promoted into active.toml). That contradicts the manifest's promotion-safe note and leaves agents without machine-readable sequencing; add blocked_by for real intra-tracker dependencies and blocked_reason for external/deferred blockers.

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Closing in favor of a restructured plan. The original Campaign 31 plan kept the Perl-local PerlStrictActionability as the actionability flip authority, which violates ADR 0019 (line 83-86: "An adapter MUST NOT introduce a parallel, mirror, or inline validator; a language-local repair_packet_ready boolean; or a bespoke packet renderer"). The shared GapRecord + validate_agent_gap_record_packet authority (agent_seam_packets.rs:880, already used by TypeScript) is the mandated path.

A scout-verified restructure follows: (1) route Perl through the shared GapRecord validator like TypeScript does; (2) emit concrete discriminators (the shared missing_discriminator field already exists at gap_decision_ledger.rs:149 — no contract change needed); (3) gate relations by reason (Perl-local, threading into existing RelatedTestGrip); (4) typed runner commands. Scope upgrades from "preview loop" to "usable alpha" across 4 phases / 18 PRs.

This branch's commits are preserved for the historical record. A fresh planning PR with the restructured Campaign 31 will follow. Issues #1380-#1392 are likewise being closed with pointers to the new phased issues.

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.

[successor implementation train: #3216] Campaign 31 — Perl Repair Routing Lane

1 participant