Files
ruflo/.github
ruv 42721b84ba ci(metaharness): metaharness-real-data CI gate (iter 48 — locks iter-47 fix)
Closes the gap iter 47 revealed: the schema-shape bug shipped in iter 38
hid for 9 iterations because no CI surface exercised the real metaharness
CLI → fingerprint → similarity chain. The `similarity-tests` job
deliberately runs WITHOUT @metaharness/* (constraint #1: works without).
That's the right gate for "ruflo stays operational" — but it can't catch
the OTHER class of bug: "ruflo stays SEMANTICALLY CORRECT when the dep
IS installed."

This iter adds the missing gate.

NEW CI JOB: metaharness-real-data
.github/workflows/metaharness-ci.yml — 3 steps, ubuntu-latest, 10-min cap:

  1. Pre-flight — `npx -y metaharness@latest --version`
     Warms the package cache so the roundtrip's 90s timeout doesn't
     expire on cold start.

  2. End-to-end pipeline roundtrip — `node test-pipeline-roundtrip.mjs`
     Must exit 0. Exit 2 (test-cannot-run) means cache warmup failed
     (= infra failure). Exit 1 (assertion failed) means the load-bearing
     self-match invariant overall===1 didn't hold — that's exactly the
     schema-shape regression iter 47 fixed.

  3. Cross-check — score subcommand via the iter-42-fixed dispatcher
     Confirms the CLI surface stays aligned with what oia-audit consumes
     internally. If a future upstream version renames `harnessFit` →
     something else, this catches it independently of the roundtrip.

DRY-RUN-LOCALLY (all 3 steps green)
   step:warmup OK            (metaharness 0.1.14)
   step:roundtrip exit=0     (15/15 pipeline assertions)
   step:cross-check OK       (harnessFit present in dispatcher output)

WHAT THIS JOB CATCHES THAT THE OTHERS DON'T

similarity-tests job — runs WITHOUT @metaharness/*, uses synthetic fixtures
   ✓ proves architectural constraint #1 (works without dep)
   ✗ misses: schema-shape contracts, runHarness vs runMetaharness drift

metaharness-real-data job — runs WITH @metaharness/* installed
   ✓ catches: schema drift between upstream CLI and similarity module
   ✓ catches: oia-audit binary selection (iter 47-fixed bug)
   ✓ catches: dispatcher consumes the right CLI's output shape

Both jobs run on every PR touching plugins/ruflo-metaharness/. The pair
covers BOTH semantic contracts:
  - "ruflo stays operational when dep is absent"      (constraint #1)
  - "ruflo stays correct when dep is present"         (iter 48)

SMOKE STEP 17z11 anchors the new job:
  - workflow file exists + has the job header
  - pre-flight, roundtrip, and cross-check steps present
  - all step names guarded against silent deletion

GATES THIS ITER
   smoke:    51 → 52 (step 17z11 green)
   fleet:    33/33
   yaml:     python yaml.safe_load passes
   dry-run:  all 3 new steps green locally

ITERS 47-48 ARC COMPLETE — the deep-integration story now has the
acceptance gate it was missing for 12 iterations.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-16 18:05:47 -04:00
..