Repository navigation
Description
Parent programme: #3216
Migration oracle: #3217
Shared wire authority: EffortlessMetrics/perl-lsp-swarm#8134
Shared wire implementation: EffortlessMetrics/perl-lsp-swarm#9274/#9276
Cross-repository package seam: EffortlessMetrics/perl-lsp-swarm#9340
Producer conformance: EffortlessMetrics/perl-lsp-swarm#8165
Objective
Add the shared typed ripr-perl-facts-v2 contract to ripr-swarm and decode v2 packets in shadow mode without changing the production Perl pipeline yet.
The result is one consumer-side wire authority ready for cutover, plus an explicit bounded legacy-v1 diagnostic module. No new private packet vocabulary may be introduced.
Preconditions
The producer side must have landed:
perl-lsp-swarm#9274— authoritative dependency-light v2 Rust types + generated schema;perl-lsp-swarm#9276— canonical serialization, schema/packet digest, and shared validation;perl-lsp-swarm#9340— a versioned/pinned cross-repository dependency coordinate that works outside the producer workspace.
Use that exact package/source. Do not invent a second local v2 model because the shared crate is inconvenient, copy generated Rust into this repo, depend on a floating producer branch, or assume a colocated checkout.
Scope
Shared v2 dependency
- add the exact shared contract dependency/artifact under
lang-perl; - pin its version/source according to repository dependency policy;
- expose the wire version and schema digest through one RIPR adapter module;
- preserve the no-parser/no-LSP/no-runtime dependency boundary.
Shadow decoder
Introduce a pure consumer boundary that:
bytes
-> canonical v2 decode
-> wire structural validation
-> canonical packet digest validation
-> typed shadow summary
The shadow summary records fact-class counts, status/coverage, identities, boundaries, limitations, and reference counts. It performs no finding projection and no actionability decision.
Legacy v1 disposition
Move the current private v1 packet structs and decoder out of the future authoritative module into a clearly named bounded location such as:
analysis/language/perl/legacy_v1.rs
The v1 path may remain available only for:
- retained fixture diagnostics;
- test(perl): pin real-producer v1 contradictions and the v2 migration oracle #3217 contradiction reporting;
- explicit migration tooling.
It must not silently decode when the caller requested v2, and it must carry an owner and retirement condition.
Shadow comparison
For v2 candidate packets in the migration corpus, compare:
- shared type decode;
- schema digest;
- packet digest;
- canonical counts and IDs;
- explicit coverage and limitation state.
Do not compare by serializing into the old v1 model.
Codex implementation brief
Branch / PR
branch: refactor/perl-v2-wire-shadow
PR title: refactor(perl): adopt shared v2 wire types in shadow mode (#<issue>)
Read first
AGENTS.md- test(perl): pin real-producer v1 contradictions and the v2 migration oracle #3217
- perl-lsp-swarm#8134/release(0.11): rehearse the wheelhouse and wheel routes now, and stage the Windows packaged run for the candidate ref #9274/first-run: all three canonical first-run edits end static_unknown ("boundary operand is a local or computed value") #9276/check: printed explain/context/list drill-in commands drop --path/--exclude from a scoped run #9340 and their accepted contract/package documentation
crates/ripr/src/analysis/language/perl/mod.rscrates/ripr/src/analysis/language/perl/tests.rscrates/ripr/Cargo.toml- workspace dependency and license policies
Implement in order
- Add the exact shared v2 package dependency with a dependency-contract test.
- Extract current v1 wire structs into
legacy_v1without changing behavior. - Add
wire_v2decode/validate/shadow-summary code using only shared types. - Add schema/version/digest mismatch tests.
- Add a compile-time or architecture check preventing new packet structs outside the shared/legacy modules.
- Run the test(perl): pin real-producer v1 contradictions and the v2 migration oracle #3217 corpus through both explicit paths and emit a typed migration report.
Do not
- do not switch
PerlAdapter::analyze_difforanalyze_repoto v2 in this PR; - do not map v2 facts into
Finding; - do not add serde aliases that reinterpret conflicting v1 fields as v2;
- do not add parser, LSP, async-runtime, network, or execution dependencies to the wire path;
- do not delete legacy fixtures before test(perl): pin real-producer v1 contradictions and the v2 migration oracle #3217 proves their disposition;
- do not copy the shared model into ripr-swarm.
Tests
Positive:
- supported v2 packet decodes and validates through shared types;
- shared schema digest and packet digest recompute;
- unknown forward-compatible operational limitation code is preserved according to fix(typescript): read a toMatchObject const argument bound in the test body (RIPR-SPEC-0250) #8134;
- shadow summary is deterministic;
- package dependency builds without a colocated perl-lsp-swarm checkout.
Negative:
- wrong schema/version;
- wrong schema digest;
- invalid packet digest;
- malformed range/identity/reference;
- v1 bytes sent to v2 decoder;
- v2 bytes sent to explicit legacy-v1 decoder;
- dependency contract violation;
- local duplicate wire type introduced.
Removal proof:
- replacing a shared type with a local duplicate or deleting the architecture check must make a focused test fail.
Verification
cargo fmt --all -- --check
cargo check -p ripr --features lang-perl --locked
cargo test -p ripr --features lang-perl --lib analysis::language::perl --locked
cargo xtask check-dependency-contracts
cargo xtask check-fixture-contracts
cargo xtask check-static-language
cargo xtask check-pr
git diff --checkAcceptance
- RIPR builds against the authoritative cross-repository v2 package/source.
- V2 decoding and canonical validation work in shadow mode.
- The current v1 model is explicitly legacy and non-authoritative.
- V1/v2 selection is explicit; no heuristic fallback occurs.
- Contract/schema/digest identity is exposed for later subject binding and receipts.
- Architecture checks block a new private duplicate wire model.
- No colocated checkout or copied model is required.
- Production findings and outputs are unchanged.
Non-goals
- No production cutover.
- No managed-producer changes.
- No finding or output changes.
- No actionability or support-tier change.
- No v1 semantic repair.
Activity
coderabbitai commentedon Aug 14, 2026
🔗 Related PRs
#3068 - feat(schema): bind non-riprAgent published schemas to canonical producers (
#2923) [merged]#3134 - fix(analysis): type and fixture-prove path-dependency edge capture (
#3037) [merged]#3171 - release(scope): recover W6 from exact main with bounded exclusions [merged]
#3193 - test(fixtures): isolate unchanged proof identity [merged]
#3203 - test(gate): reject vacuous non-promotion charters [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Aug 28, 2026
Blocked upstream (producer prerequisites not landed; verified 2026-08-28 against current state).
Precondition check per the cross-repository execution law in #3216 ("producer #9274/#9276/#9340 -> consumer #3218"):
perl-lsp-swarm#9274(dependency-light ripr-perl-facts-v2 wire types): OPEN — no merged PR references it (gh pr list --state all --search "9274 in:title"returns none).perl-lsp-swarm#9276(canonical v2 serialization, digests, validation): OPEN.perl-lsp-swarm#9340(versioned/pinned cross-repository package coordinate): OPEN.The shared-v2 dependency this issue requires ("use that exact package/source; do not invent a second local v2 model … or depend on a floating producer branch") therefore does not exist in consumable form yet. The in-repo part that could proceed without it (extracting v1 into
legacy_v1.rs) would leave the shadow-decoder objective — the issue's core — unimplementable and half-landed, so the claim waits as a unit.Consumer train state: PR 1 (#3217) landed and closed; next unblocked consumer work requires the producer families above. Recorded so no agent re-derives the block or starts a divergent local v2 model.