Files
ruflo/.github
ruv 94dcaf3b92 test(metaharness): e2e integration test for parallel-logging pipeline (iter 13)
End-to-end test that proves the iter-10 + iter-11 + iter-12 work
compose into a working pipeline. 25 assertions across four phases:

PHASE 1 — synthesize realistic JSONL trajectory
  - 40 paired decisions with SER beating bandit by ~5% quality, +0.5%
    cost, +1% latency (the promotable fixture)
  - Verifies JSONL shape matches the iter-11 recorder's output schema

PHASE 2 — verify recorder TS module exports
  - recordPair / recordPairOutcome / parallelRecorderStatus all
    exported with correct signatures
  - CLAUDE_FLOW_ROUTER_PARALLEL_LOG env gate present in source
  - "never throws" doc invariant present (ADR-150 rule #3)
  - appendFileSync wrapped in try/catch

PHASE 3 — run analyzer against fixture
  - Analyzer exits 0 with valid JSON output
  - sampleSize, disagreement.pct present and correct
  - All 3 criteria computed (qualityImprovementPct / usdIncreasePct /
    latencyIncreasePct)
  - The 3 ADR-150 review-round-1 thresholds EXACTLY: 2 / 1 / 5
  - All three criteria pass on the promotable fixture
  - verdict.promotable === true

PHASE 4 — verify --strict semantics
  - --strict on promotable fixture exits 0
  - --strict on synthesized NON-promotable fixture (quality only +0.5%)
    exits 1

This isolates the recorder + analyzer composition from the model-router
.ts build state — the iter-12 dispatch wiring is covered separately by
smoke step 17f's source-grep. Together they form complete coverage of
the ADR-150 parallel-logging pipeline.

WIRED INTO CI
- metaharness-ci.yml router-compat job now runs the e2e test as its
  final step. Failure here means the recorder schema drifted from the
  analyzer expectations, or the ADR-150 thresholds were silently
  modified — both regressions worth blocking the PR for.

Smoke: 22 → 23. Fleet: 33/33.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-16 14:14:29 -04:00
..