Skip to content

docs(campaign): Campaign 31 Perl Repair-Routing Usable Alpha (restructured plan, 2x adversarially reviewed) - #1412

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

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

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Jun 21, 2026 •

Copy link
Copy Markdown
Member

What this PR does

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

  • Adds Campaign 31 to docs/IMPLEMENTATION_CAMPAIGNS.md (status: tracker).
  • Adds a focused tracker at .ripr/goals/perl-repair-routing.toml (lane 2, status tracker, 18 work items + 2 blocked-deferred).

Why a restructure (supersedes PR #1393)

PR #1393 (closed) planned a "preview loop" that kept the Perl-local PerlStrictActionability as the actionability flip authority. That 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 authority is validate_agent_gap_record_packet (agent_seam_packets.rs:880), already used by the TypeScript projection (typescript_gap_record_for + validator_parity_* tests).

This PR restructures the target from "preview loop" to usable alpha and routes Perl through the shared GapRecord validator, across 4 phases / 18 PRs in two repos.

How the plan was built

  1. Scout verification (parallel read-only agents) — every load-bearing claim checked file:line against actual code in both ripr-swarm and perl-lsp-swarm before writing.
  2. First adversarial review — caught the ADR-0019 violation + 4 architectural corrections (shared GapRecord; concrete discriminator; relation gating by reason; typed commands).
  3. Second adversarial review (on the restructured plan) — found 1 blocker + 4 majors + 8 minors, all addressed in this commit before push.

Adversarial findings addressed in this commit

  • BLOCKER lsp(queue): project repair queue in Show Status #13 — the pre-existing bespoke Perl projection gap_record_from_perl_preview_finding (gap_decision_ledger.rs:755) + perl_preview_card renderer is itself an ADR-0019 parallel-renderer violation. PR 16 must decommission it or the campaign creates the exact drift surface it exists to prevent.
  • Major test(lsp): pin post-adoption editor contract #6 — no lang-perl CI matrix job; PR 11 adds one so the feature-gated path is exercised in CI.
  • Major sync: import current source main for swarm cutover #8 — no Perl entry in evidence-promotion-honesty-corpus; PR 16 adds a must_not_emit_repair_packet case + extends the parity loop (mechanical false-actionable gate).
  • Major badge: refresh public endpoints #9 — 5-repo/precision alpha gates were implied as mechanical; PR 18 honestly scopes them as human-judgment (no perl-real-repo-evals corpus yet) vs the mechanical gates.
  • Major lsp(queue): add Copy Current Repair Packet #14 — cross-repo drift risk unmitigated; PR 14 adds a runtime schema-version capability check + regeneration procedure.
  • Minors — PR 3 doesn't hard-depend on PR 2; PR 3 parity uses synthetic fixtures (producer facts land in Phase B); PR 3's dead "render" sentence removed; gap_state rename recorded as a blocked deferred item; default-inclusion boundary clarified.

Four corrections before productionizing

  1. Shared GapRecord authority (ADR 0019) — perl_gap_record_for() + validate_agent_gap_record_packet.
  2. Concrete discriminator — producer emits concrete facts ($amount == $threshold); the shared missing_discriminator field already accepts them (no contract change, no golden re-bless).
  3. Relation gating by reason — direct/established-helper eligible; package/name/proximity advisory; unknown limitation.
  4. Typed runner commands — prove -l/-v flags typed, not positional.

Phases (18 PRs, two repos)

Phase A/C/D land in ripr-swarm; Phase B (producer) lands in perl-lsp-swarm.

PR Phase Repo Issue
1 A ripr-swarm #1394
2 A ripr-swarm #1395
3 A ripr-swarm #1396
4 B perl-lsp-swarm perl-lsp-swarm#2591
5 B perl-lsp-swarm perl-lsp-swarm#2592
6 B perl-lsp-swarm perl-lsp-swarm#2593
7 B perl-lsp-swarm perl-lsp-swarm#2594
8 B perl-lsp-swarm perl-lsp-swarm#2595
9 C ripr-swarm #1402
10 C ripr-swarm #1403
11 C ripr-swarm #1404
12 C ripr-swarm #1405
13 C ripr-swarm #1406
14 D ripr-swarm #1407
15 D ripr-swarm #1408
16 D ripr-swarm #1409
17 D ripr-swarm #1410
18 D ripr-swarm #1411

Phase B issues were initially misfiled in ripr-swarm as #1397-#1401 (closed); re-filed correctly in perl-lsp-swarm as #2591-#2595.

Scope of this PR

Two files, docs + tracker only:

  • docs/IMPLEMENTATION_CAMPAIGNS.md — Campaign 31 section (verified ground truth, 4 corrections, 18-PR phased table, release gates split mechanical vs human-judgment, dependencies, blocking conditions incl. the ADR-0019 decommissioning blocker).
  • .ripr/goals/perl-repair-routing.toml — focused tracker (18 work items + 2 blocked-deferred, each with status/stackable/branch/blocked_reason/acceptance/commands, promotion-safe vocabulary).

Non-goals of this PR

  • Any production code change.
  • Any spec/proposal/ADR status flip (all stay proposed).
  • Adding lang-perl to default features (out of campaign scope).
  • Promoting Campaign 31 to active.toml (maintainer decision).

Verification

cargo xtask check-goals          # PASS
cargo xtask check-doc-index      # PASS
cargo xtask check-spec-format    # PASS
cargo xtask check-static-language # PASS

Risks considered

  • ADR-0019 compliance: the cardinal-sin seam (a Perl-local repair_packet_ready flip) is forbidden; the blocker (lsp(queue): project repair queue in Show Status #13) catches the pre-existing violation too.
  • Cross-repo coordination: exporter in perl-lsp-swarm, consumer in ripr-swarm; PR 14's runtime schema-version check mitigates drift; PR 18 honestly scopes CI as ripr-half-only.
  • Single-writer collisions: output-shape PRs (10, 16) re-bless in-PR; blocking conditions call this out.
  • Cardinal-sin flip: only repair_packet_ready flips, only via the shared validator; every other authority flag stays false.

Residual assumptions

  • Lane start order is flexible; the tracker encodes dependencies, not a mandated sequence. Phase A PRs 1-3 + Phase B PR 4 could all start immediately in parallel (PR 1 unblocks B; PRs 2-3 are independent of B).
  • Promotion of Campaign 31 into active.toml is out of scope; maintainer decision.

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

Supersedes #1393 and issues #1380-#1392 (all closed with supersession comments).

Restructures the Perl campaign from 'preview loop' to 'usable alpha' across
4 phases / 18 PRs, after scout verification + two adversarial review passes.

Why the restructure: the original plan (PR #1393, closed) kept the Perl-local
PerlStrictActionability as the actionability flip authority, which violates
ADR 0019 (line 83-86 forbids parallel/mirror validators and language-local
repair_packet_ready booleans). The restructure routes Perl through the shared
GapRecord + validate_agent_gap_record_packet authority, mirroring the
TypeScript projection pattern (typescript_gap_record_for + validator_parity_*
tests). Four corrections before productionizing: (1) shared GapRecord
authority; (2) concrete discriminator (the shared missing_discriminator field
already exists at gap_decision_ledger.rs:149 — no contract change); (3) relation
gating by reason (Perl-local, threaded into existing RelatedTestGrip); (4)
typed runner commands.

Adversarial-review findings addressed in this commit:
- BLOCKER #13: PR 16 must decommission the pre-existing bespoke
  gap_record_from_perl_preview_finding (gap_decision_ledger.rs:755) +
  perl_preview_card renderer, or the campaign creates the exact ADR-0019
  parallel-renderer drift it exists to prevent.
- Major #6: PR 11 adds a lang-perl CI matrix job so the feature-gated path is
  exercised in CI.
- Major #8: PR 16 adds a Perl must_not_emit_repair_packet corpus entry +
  extends the parity loop (mechanical false-actionable gate for Perl).
- Major #9: PR 18 honestly scopes the 5-repo/precision gates as
  human-judgment (no perl-real-repo-evals corpus yet) vs the mechanical gates.
- Major #14: PR 14 adds a runtime schema-version capability check mitigating
  cross-repo drift.
- Minor: PR 3 does not hard-depend on PR 2; PR 3 parity uses synthetic
  fixtures; gap_state rename recorded as a blocked deferred item.

Adds Campaign 31 to docs/IMPLEMENTATION_CAMPAIGNS.md and a focused tracker at
.ripr/goals/perl-repair-routing.toml (lane 2, status tracker, 18 work items +
2 blocked-deferred). Ground truth scout-verified file:line before the plan was
written. check-goals, check-doc-index, check-spec-format, check-static-language
all pass.

Supersedes PR #1393 and issues #1380-#1392. Umbrella: #1379.
@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 50 minutes and 15 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: a7eb13f3-7c77-4aec-9369-d1dcc2902144

📥 Commits

Reviewing files that changed from the base of the PR and between 7b28510 and 99fa213.

📒 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-restructured-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.

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

@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: 99fa213091

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

status = "blocked"
stackable = false
branch = "perl-C9-ingestion-facts-option"
blocked_reason = "perl-A3-shared-gap-record"

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 Keep Phase C blocked on producer packet closeout

When this tracker is used for execution, C9 becomes unblocked after A3 alone even though the campaign dependency section says Phase C depends on B8's real deterministic packet; because C9 productionizes the consumer ingestion boundary, starting it before B8 exists risks baking checks around synthetic/stale packet shape and rework when the producer lands. Please add perl-B8-boundaries-commands-goldens to this blocker, or make the docs explicit that C9 is intentionally spec-only and safe before B8.

Useful? React with 👍 / 👎.


| PR | Phase | Repo | Slice |
| -: | - | --- | --- |
| 1 | A | ripr-swarm | Refresh PROP-0018/SPEC-0064, record landed work, add `Perl scaffold — blocked on live fact producer` support-tier row, create active goal/plan. |

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 Do not activate Campaign 31 from PR 1

This table entry tells the first follow-up to "create active goal/plan," but the surrounding campaign text and tracker header both say Campaign 31 is tracker-only and promotion into .ripr/goals/active.toml is a maintainer decision. If an agent follows the table literally, a stackable docs PR can activate this campaign despite the stated boundary; change this to the focused tracker/plan wording or remove the active-goal instruction.

Useful? React with 👍 / 👎.

test is not enough.

3. **Relation gating by reason.** Restrict actionability by relation kind:
`direct_owner_call`/proven helper-call chain eligible; `package_reference`/

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 Avoid prohibited static-language wording

The plan uses proven for the helper-call relation guidance even though the campaign tracker explicitly says to use "established" instead of the prohibited p-word, and AGENTS/static-language policy reserves that vocabulary from static claims. Follow-up implementers may copy this wording into output or schema labels, so keep the plan consistent by using established helper-call chain here.

Useful? React with 👍 / 👎.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Superseded by #1452, which reconciles the Campaign 31 tracker onto main from current main (not a wholesale merge of this stale branch).

This PR (#1412) was authored 2026-06-21 against a main that is now 20 commits older — all 19 Campaign-31 consumer-side PRs (#1413..#1451) landed while it sat open. Merging it wholesale would reintroduce stale perl.rs monolith references (the file was split in #1417) and a work-item status table that is already behind the merged reality.

#1452 reauthors both artifacts fresh: marks A1..D15 + C2/H1/contract-freeze/E1 as done with landing PRs, fixes dead perl.rs:NNNN paths → perl/mod.rs/perl/tests.rs, and honestly records the still-open D16 bespoke-renderer ADR-0019 blocker (perl_preview_card.rs is still wired into production output on main).

All docs gates green. Closing this in favor of #1452.

@EffortlessSteven
EffortlessSteven deleted the docs/perl-campaign-31-restructured-plan branch June 27, 2026 16:04
EffortlessSteven added a commit that referenced this pull request Jun 27, 2026
…Routing) (#1452)

The Campaign 31 tracker artifacts existed only on the unmerged planning branch
#1412, never on main — even though repo docs (RIPR-PROP-0018, RIPR-SPEC-0064,
SUPPORT_TIERS.md, OUTPUT_SCHEMA.md, CONFIGURATION.md, umbrella #1379) all cite
docs/IMPLEMENTATION_CAMPAIGNS.md → Campaign 31 and .ripr/goals/perl-repair-
routing.toml as if present. Meanwhile all 19 Campaign-31 consumer-side PRs
(#1413..#1451) landed on main while the plan sat unmerged. This restores durable
tracker truth, authored fresh from current main (not a wholesale merge of #1412):

- docs/IMPLEMENTATION_CAMPAIGNS.md: add Campaign 31 section (objective, ADR-0019
  rationale, 18-slice phase table, landed-work record, alpha fixture, release
  gates, blocking conditions). Marks PRs 1-13, E1, H1, H2, and the consumer-side
  contract freeze as landed with their PR numbers.
- .ripr/goals/perl-repair-routing.toml: focused tracker with 13 done items
  (A1..D15 + C2/H1/contract-freeze/E1) and the genuinely-open items blocked
  (Phase B producer proof, D16 public projection, D17 agent packets, D18
  receipts).

Staleness corrected vs the stale #1412 draft:
- perl.rs monolith refs → perl/mod.rs + perl/tests.rs (split landed #1417).
- 4036-line / perl.rs:NNNN line refs removed (file is split).
- "(proposed)" tags on SPEC-0064/PROP-0018/ADR-0018/0019 retained — all four are
  genuinely Status: proposed on main.

Confirmed-open blockers recorded honestly (NOT fixed in this docs-only PR):
- D16 ADR-0019 bespoke-renderer decommissioning: perl_preview_card.rs is STILL
  wired into production output on main (github.rs:99, human/sections.rs:143,
  gap_decision_ledger.rs:756). Recorded as open; a production-code PR must
  decommission it.
- D14 managed producer / D15 doctor are landed but flagged as scaffolds needing
  hardening (real timeout/kill, atomic writes, cache key, capability handshake;
  recursive markers, t2/ roots, exact next-command).

Gates: check-goals, check-campaign, check-doc-index, check-traceability,
check-static-language, check-spec-format, markdown-links, goals next, precommit —
all green. Docs-only; zero production code, zero golden drift.

Supersedes and closes the stale planning PR #1412.
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