mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
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).