π The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
docs(adr): 100-iter milestone β ADR-150 reflects iters 83-99 (iter 100)
ruv3b3018b48a6a
diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.shindex 11f9a64539..39399cb4fa 100755--- a/plugins/ruflo-metaharness/scripts/smoke.sh+++ b/plugins/ruflo-metaharness/scripts/smoke.sh@@ -191,6 +191,18 @@ grep -q "execCli(\[\s*'-y'\s*,\s*'metaharness@latest'" "$F" 2>/dev/null || \grep -q "cwd: opts" "$F" || miss="$miss no-cwd-passthrough"[[ -z "$miss" ]] && ok || bad "$miss"+step "17z63. ADR-150 reflects iters 83-99 + 100-iter milestone (iter 100)"+miss=""+ADR="$ROOT/../../v3/docs/adr/ADR-150-metaharness-integration-surfaces.md"+grep -q "Phase 3 Β§3.1 β iters 33β99" "$ADR" 2>/dev/null || miss="$miss no-iter-99-status"+grep -q "100 iterations of /loop" "$ADR" 2>/dev/null || miss="$miss no-100-iter-marker"+grep -q "Iters 83-99 β cross-reference integrity" "$ADR" 2>/dev/null || miss="$miss no-83-99-section"+grep -q "Cross-reference integrity matrix" "$ADR" 2>/dev/null || miss="$miss no-matrix-table"+grep -q "Fast-path observability arc" "$ADR" 2>/dev/null || miss="$miss no-fast-path-arc"+grep -q "100-iter retrospective" "$ADR" 2>/dev/null || miss="$miss no-retrospective"+grep -q "Fleet status (post-iter-99" "$ADR" 2>/dev/null || miss="$miss no-post-iter-99-fleet"+[[ -z "$miss" ]] && ok || bad "$miss"+step "17z62. CI dispatcher round-trip enforces wall budget (iter 99)"miss=""W="$ROOT/../../.github/workflows/metaharness-ci.yml"@@ -499,8 +511,10 @@ grep -q "check-fingerprint-schema.mjs" "$W" 2>/dev/null || miss="$miss fingerpristep "17z46. ADR-150 notes reflect iters 60-82 (iter 83)"miss=""ADR="$ROOT/../../v3/docs/adr/ADR-150-metaharness-integration-surfaces.md"-grep -q "Phase 3 Β§3.1 β iters 33β82" "$ADR" 2>/dev/null || miss="$miss no-iter-82-status"-grep -q "eighty-two iterations of /loop" "$ADR" 2>/dev/null || miss="$miss no-82-iter-marker"+# iter 100 bumped these markers: "33-82" β "33-99", "eighty-two" β "100".+# Use regex for forward-compat with future ADR refreshes.+grep -qE "Phase 3 Β§3.1 β iters 33β[0-9]+" "$ADR" 2>/dev/null || miss="$miss no-phase3-status"+grep -qE "([0-9]+ iterations|[a-z]+(-[a-z]+)? iterations) of /loop" "$ADR" 2>/dev/null || miss="$miss no-iter-count-marker"grep -q "Iters 60β82 β performance / observability / contract hardening" "$ADR" 2>/dev/null || miss="$miss no-60-82-section"grep -q "Three-tripwire upstream-contract defense" "$ADR" 2>/dev/null || miss="$miss no-tripwire-section"grep -q "Drift-detection autonomous arc (iters 53-79)" "$ADR" 2>/dev/null || miss="$miss no-drift-arc"@@ -871,7 +885,7 @@ ADR="$ROOT/../../v3/docs/adr/ADR-150-metaharness-integration-surfaces.md"# Smoke accepts any iters-NN range and any N-iteration string so future ADR# refreshes don't break iter-60's coverage assertion.grep -qE "Phase 3 Β§3.1 β iters 33β[0-9]+" "$ADR" 2>/dev/null || miss="$miss no-phase3-status"-grep -qE "[a-z]+(-[a-z]+)? iterations of /loop" "$ADR" 2>/dev/null || miss="$miss no-iter-count-marker"+grep -qE "([0-9]+ iterations|[a-z]+(-[a-z]+)? iterations) of /loop" "$ADR" 2>/dev/null || miss="$miss no-iter-count-marker"grep -q "Phase 2 continued (iters 13β32)" "$ADR" 2>/dev/null || miss="$miss no-phase2-continued"grep -q "Phase 3 Β§3.1 β Genome Similarity Search (iters 33β59)" "$ADR" 2>/dev/null || miss="$miss no-phase3-section"grep -q "Real-data bug-discovery arc (iters 47-51)" "$ADR" 2>/dev/null || miss="$miss no-bug-arc"diff --git a/v3/docs/adr/ADR-150-metaharness-integration-surfaces.md b/v3/docs/adr/ADR-150-metaharness-integration-surfaces.mdindex 672b549744..f35e52db39 100644--- a/v3/docs/adr/ADR-150-metaharness-integration-surfaces.md+++ b/v3/docs/adr/ADR-150-metaharness-integration-surfaces.md@@ -1,7 +1,7 @@# ADR-150 β MetaHarness Integration Surfaces in `npx ruflo`-**Status**: Implemented (Phase 1 β iters 1β3 Β· Phase 2 β iters 4β32 Β· Phase 3 Β§3.1 β iters 33β82 Β· KRR retrain pending production data Β· Phase 3 Β§3.2-Β§3.5 scoped in [ADR-151](ADR-151-harness-intelligence-layer.md))-**Date**: 2026-06-16 (revised 2026-06-16 β eighty-two iterations of /loop)+**Status**: Implemented (Phase 1 β iters 1β3 Β· Phase 2 β iters 4β32 Β· Phase 3 Β§3.1 β iters 33β99 Β· KRR retrain pending production data Β· Phase 3 Β§3.2-Β§3.5 scoped in [ADR-151](ADR-151-harness-intelligence-layer.md))+**Date**: 2026-06-16 (revised 2026-06-17 β **100 iterations of /loop**)**Related**: ADR-148 (cost-optimal router lifecycle via `@metaharness/router`), ADR-149 (per-model cost-optimal routing), ADR-026 (3-tier model routing), ADR-097 (federation budget circuit breaker), ADR-124 (optional native dependencies), ADR-144 (agent-authorization-propagation)**External reference**: [`ruvnet/agent-harness-generator`](https://github.com/ruvnet/agent-harness-generator) β the upstream that publishes `metaharness` + `@metaharness/*`. Same author (rUv), explicitly designed around ruflo primitives.**Research dossier**: published as a gist (linked from the tracking issue) with full graded-evidence sourcing.@@ -468,6 +468,102 @@ All 90-day retention for cross-artifact comparability.- 4 CI workflows (metaharness-ci, no-metaharness-smoke, oia-audit-weekly,metaharness-real-data sub-job)+### Iters 83-99 β cross-reference integrity + observability++Eighteen more iters of hardening after iter 82's ADR refresh. Two+coherent arcs: cross-reference integrity matrix and fast-path+observability.++#### Cross-reference integrity matrix (iters 73, 84, 89-94)++Eight cross-reference surfaces now smoke-gated. Each detects a specific+class of "thing X must point at thing Y" drift before it reaches+production:++| Source | Target | Iter |+|-------------------------|-------------------------|------|+| description string | SUBCOMMANDS keys | 73 |+| SUBCOMMANDS values | scripts/*.mjs | 89 |+| MCP handler runScript() | scripts/*.mjs | 90 |+| SKILL.md inline refs | scripts/*.mjs | 91 |+| MCP enum | SEVERITY_RANK keys | 92 |+| MCP tool names | CLAUDE.md catalog | 93 |+| SUBCOMMANDS keys | CLAUDE.md catalog | 94 |+| CI workflow run steps | tripwire scripts | 84 |++Plus 3 negative-guard invariants from iters 73+74 (mint-not-in-MCP,+no `from-repo` skill/script/MCP tool, no new static `@metaharness/*`+imports outside neural-router.ts).++#### Fast-path observability arc (iters 95-99)++iter-66/67 added the `--baseline-key` (~14x) and `--baseline-file`+(~19x) fast-paths. iter-95-99 made them observable at every consumption+layer:++- **iter 95** β derived `timing.path` field in JSON payload+- **iter 96** β CLI table mode shows `Path: file (wall N ms)`+- **iter 97** β Weekly cron `GITHUB_STEP_SUMMARY` shows the same+- **iter 98** β CI dispatcher round-trip asserts JSON shape contract+- **iter 99** β CI dispatcher round-trip ALSO asserts wall < 30s++A creeping regression (e.g., fastpath quietly degrading from 1.4s to+15s over weeks) is now visible in the Actions UI's wall annotation+before it breaches the 30s ceiling.++#### Anti-regression pattern reinforcement (iters 83-92)++- **iter 84** β positive-presence guards for all 3 compat tripwires+- **iter 86** β bench-parse-mcp-scan perf characterization+- **iter 87** β fixed bench-scripts JSON-output contamination (iter-82+ CI step was silently broken; iter-87 caught it during iter-87's+ own dry-run; both bench scripts patched, runtime parse-roundtrip+ smoke assertion added)+- **iter 88** β family-wide JSON-output contract gate (8 scripts+ Γ parse-roundtrip)+- **iter 92** β MCP enum aligned with SEVERITY_RANK (subset+complement+ check)++### Fleet status (post-iter-99 / 100-iter milestone)++- Smoke step count: 85 β 102 (+17 since iter 82)+- MCP tool runtime contract: 117 β 120 assertions+- Real-data roundtrip: 66 (12 stages, unchanged since iter 79)+- Unit tests: 94 (similarity + severity + parser)+- Compat tripwires: 3 (router API / mcp-scan text / fingerprint schema)+- Cross-reference integrity surfaces: 8 smoke-gated+- Negative-guard invariants: 3 smoke-gated+- Bench scripts in CI with artifact tracking: 2+ (bench-similarity, bench-parse-mcp-scan; both produce parseable JSON)+- 33/33 plugin fleet still green+- CI workflows: 4 (metaharness-ci, no-metaharness-smoke,+ oia-audit-weekly, metaharness-real-data)+- ~290 total ruflo-metaharness smoke assertions++### 100-iter retrospective++The integration shipped across 100 /loop iterations spanning the major+arcs documented above. Two patterns emerged that are worth naming:++1. **Bug-discovery via end-to-end tests** (iters 47-51, 87) β every+ significant latent bug surfaced when a test exercised the REAL+ CLI/MCP chain end-to-end, not when smoke greps verified source+ markers. iter-47's schema bug hid for 9 iters; iter-50's parser+ gap hid for 28 iters; iter-87's JSON-contamination hid for 5 iters.+ The lesson: smoke-grep on source is a complement to, not a+ substitute for, real-output verification.++2. **Cross-reference integrity** (iters 73, 84, 89-94) β when one+ source file references another by name, drift is the default+ without an explicit gate. Eight surfaces are now gated; each+ produces a specific named failure when the reference rots.++The dep is now: production code with 14+ surfaces, 102 smoke steps,+120 MCP runtime assertions, 66 roundtrip pipeline assertions, 94 unit+tests, 8 cross-reference gates, 3 negative-guard invariants, 3 compat+tripwires, 4 CI workflows, weekly autonomous drift detection, two+upstream issues filed (#15, #16, both still open).+### Quote architecture invariant β no static metaharness importsThe single non-test ruflo source file that statically imports a