Files
ruflo/plugins/ruflo-adr/agents
Reuven 85eab480e9 perf(plugins): ADR-098 Part 2 (slice 3/4) — token diet for ruflo-adr/adr-architect
Moves the ADR markdown template, AgentDB graph-storage recipes,
lifecycle state machine, code-ADR violation detection workflow,
and index-file format out of the agent prompt into a sibling
REFERENCE.md.

Before: 96 lines per spawn (~1150 tokens).
After:  46 lines per spawn (~550 tokens). Net savings ~600 tokens
        per adr-architect spawn.

Reference content lives at plugins/ruflo-adr/REFERENCE.md (78 lines):
  - Full ADR markdown template with all 5 standard sections
  - Lifecycle state machine ASCII diagram + transition rules
  - AgentDB hierarchical-store + causal-edge commands with
    relationship vocabulary (supersedes / amends / depends-on)
  - Code-ADR violation detection workflow (Grep → git blame →
    ADR-status comparison)
  - Common drift patterns to flag
  - Index file format for docs/adr/README.md

The agent prompt keeps:
  - 4-row responsibilities block
  - Tools list (8 entries: agentdb / memory / Read-Write-Edit / Grep
    / Glob / Bash)
  - Cross-references to ruflo-jujutsu + ruflo-docs
  - Memory + Neural Learning tails (Part 4 invariant)

ADR-098 acceptance progress:
  - device-coordinator: 30 ≤ 60 ✓
  - domain-modeler:     54 ≤ 60 ✓
  - adr-architect:      46 ≤ 60 ✓ (was 96)
  - Remaining: cost-analyst (105)

Plugin version: 0.1.0 → 0.1.1 (patch — token diet only).
2026-05-03 22:29:01 -04:00
..