Files
ruflo/v3/docs
Reuven ef1f296c25 docs(adr): ADR-098 — plugin capability sync + token/perf/intel/self-opt pass
Audits all 32 plugins under plugins/ruflo-* and proposes a 5-part
remediation plan. Implementation rolls out in follow-up iterations.

Findings (auto-extracted via inventory script + grep audit):

  1. CAPABILITY SYNC GAP — only ruflo-federation references any
     post-3.6.13 ADR (096/097). 6 other plugins should reference
     them too: aidefence, security-audit, rag-memory, rvf,
     cost-tracker, agentdb / knowledge-graph (G7 controllers).

  2. TOKEN-COST OUTLIERS — 4 agent prompts > 80 lines (cost-analyst
     105, adr-architect 96, domain-modeler 93, device-coordinator
     ~80). Each prompt-line is ~12 tokens × every spawn. Reference
     tables belong in skills (on-demand load) or REFERENCE.md.

  3. MODEL-TIER MISMATCH — 3 agents on model:opus. federation-
     coordinator + neural-trader/trading-strategist are justified;
     security-auditor is debatable — propose drop to sonnet.

  4. INTELLIGENCE/LEARNING GAP — 7 of 43 agents (16%) lack a
     `hooks post-task --train-neural true` call. Standardize the
     ~3-line tail across all plugins.

  5. SELF-OPTIMIZATION ABSENT — no plugin currently dispatches
     background workers (optimize / audit / testgaps / document /
     benchmark) on completion. Targeted dispatch table per agent
     class lands as Part 5.

Each part is independently shippable. Acceptance criteria:
  - 6 plugins gain ADR references
  - 4 prompts shrink to ≤ 60 lines
  - 1 model:opus → sonnet
  - 43/43 agents have post-task neural training
  - ≥ 8 work-producing agents fire the right background worker
  - No regression in /plugin install resolution

Trade-offs documented:
  - Skills/REFERENCE.md over inline tables (load on-demand)
  - Selective per-plugin minor bumps over bulk 0.2.0 (signals which
    plugins materially changed)
  - Hooks-dispatch over in-process worker trigger (hooks are the
    existing surface; no new API)

Risks called out:
  - Skill/REFERENCE refactor breaking implicit-context agents
  - Sonnet drop affecting security-audit quality (one-cycle trial)
  - Worker dispatch firehose if every agent fires (cap if needed)

This ADR makes no runtime code changes — only edits under
plugins/ruflo-*/ when the parts roll out. Task #29 tracks
implementation across iterations.
2026-05-03 21:54:18 -04:00
..