mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 14:16:34 +09:00
Reviewer scored ADR-150 at 8.9/10 with three substantive improvements
landing in this revision:
1. ARCHITECTURAL CONSTRAINT (load-bearing invariant, new section)
"Ruflo remains operational if every MetaHarness package is removed."
Codified as four enforceable rules:
- Removable: npm ls --without @metaharness/* still produces working CLI
- Optional in package.json: never in dependencies, only optional/peer
- Graceful degradation: every @metaharness import catches MODULE_NOT_FOUND
- CI coverage of the absent path: --ignore-optional smoke job asserts
ruflo still passes its contract
This prevents ruflo from becoming "a hidden second orchestration
framework wrapped around its sibling's runtime". Future ADRs that
extend MetaHarness integration must satisfy all four.
2. TIGHTENED SelfEvolvingRouter PROMOTION CRITERIA (Phase 2)
Was: disagreement < 5% OR quality improvement > 2%
Now: AND of three —
(a) quality > 2%, AND
(b) usdPerDecision increase < 1%, AND
(c) p95 routing-decision latency increase < 5%
Measured over identical workloads between bandit-only and
SelfEvolvingRouter-only periods with 24h washout between. The OR form
let quality gains mask cost/latency regressions — exactly the failure
mode ADR-149's Pareto framing was built to prevent.
3. PHASE 3 — HARNESS INTELLIGENCE LAYER (scope-only, new section)
Lists five capabilities unlocked by buildGenomeReport() +
buildRepoScorecard() + buildRegistryEntry()'s shared schema:
- Genome similarity search
- Harness recommendation engine
- Fleet-wide architecture drift detection
- Cross-harness capability graph (lifts `harness compare` to fleet)
- Plugin compatibility analysis
These are scope-only in this ADR — each gets its own ADR before
implementation. Listed here so the architectural constraint covers
them up front.
Co-Authored-By: RuFlo <ruv@ruv.net>