1.9 KiB
1.9 KiB
Agent Learning Plan
Status: draft
Goal: ship a visible recursive self-improvement loop without overbuilding
Must-Have
- Store agent runs.
- Store trace summaries.
- Store active and candidate strategy versions.
- Attach verifier or outcome evidence.
- Show one strategy improvement in the demo narrative.
Build Order
R1: Trace the run
Write one agent_runs record for an important coordination decision and append
trace events for:
- observation
- recall
- prediction
- intervention
- outcome
- adaptation
R2: Version the strategy
Create an active strategy version for one of:
- collision detector threshold
- intervention routing
- graph discovery filter
- card wording prompt
R3: Score the outcome
Use the simplest verifier:
- accepted real collision = useful
- dismissed = noisy
- no response after cooldown = uncertain
R4: Propose a narrow change
Examples:
- "For this exact signature, prefer sync PR card."
- "For dismissed docs-only overlaps, suppress voice escalation."
- "For repeated auth.ts collisions, raise severity."
R5: Promote or reject
Promote only when evidence is strong enough. Otherwise keep the candidate as rejected or open.
Demo Path
- Show baseline strategy.
- Trigger a collision.
- Accept or dismiss the intervention.
- Store outcome.
- Show a candidate strategy update.
- Promote it.
- Trigger a similar event.
- Show changed behavior.
Nice-to-Have
- Strategy comparison panel.
- Model-generated prompt patch with verifier.
- Vector recall over strategy history.
- Rollback UI.
Cut
- Full autonomous code rewriting.
- Multi-agent strategy debates.
- Long-term benchmark suite.
- Training a model.
Acceptance Criteria
- The demo can point to a MongoDB record proving the agent changed behavior.
- The changed behavior is visible.
- The strategy has a parent and evidence.
- Rejected or failed changes are not deleted.