AgentWorks

AgentWorks documentation

Auto-Improvement Framework

Pulse gives the workflow durable evidence, bounded maintenance, strategic review, and an audit trail. It is one system running at several agent-selected cadences over a SQLite-backed lifecycle and impact ledger, all sharing the same Bug / Goal vocabulary. builder/improve.html is the generated, lightweight published executive journal; it is not the operational source of truth.

The model is intentionally simple: run/eval/report evidence are inputs; reviewers produce Signals, Pulse reflects on what they mean, the Fixer applies safe Kaizen, and Goal Advisor proposes larger changes when justified.

Two verdicts: Bug and Goal

Every run is judged on two independent axes, shown as separate pills in the Pulse header — never collapsed into one "health":

They are orthogonal — a run can be Bug-broken while Goal-on-target, or Bug-clean while Goal-short. Health gates goal: a run that wasn't operationally clean produces no trustworthy goal signal, so the goal is never judged on a broken run. For routed workflows the monitor judges only the path that ran — a step or eval belonging to a route this run didn't take is not-applicable, never a failure.

Files

Old Markdown improve logs are legacy. Carry their unresolved findings into builder/improve.html as open-finding entries and stop writing Markdown logs. The old structured improve-decision JSON blocks and F-/I- ids are retired in favor of readable prose cards.

Truth Hierarchy

Use this hierarchy when deciding what is true:

  1. soul/soul.md: canonical stable intent. Only explicit user-approved constraints are authoritative; architecture and agent-inferred assumptions remain challengeable.
  2. runs/iteration-0/<group>/...: current reality from actual outputs, tool logs, validation, and eval reports.
  3. evaluation/evaluation_plan.json: measurement definition; fix it when it conflicts with soul.md.
  4. planning/plan.json: current implementation attempt, judged against soul.md and iteration-0 evidence.
  5. db/db.sqlite: durable lifecycle and impact truth for reviews, findings, fixes, verification, finalization, and comparable goal observations.
  6. builder/improve.html + referenced archives: generated human-readable and publishable history; never use it to override SQLite lifecycle state.

Decision Model

Pulse separates review from mutation. Due modules inspect in parallel where safe; one parent Fixer then applies bounded changes sequentially.

Pulse Fixer and Goal Advisor are the two ends of an exploit/explore ladder against the success-criteria definition:

Each module may return multiple findings. Pulse keeps all material findings, but mutations remain ordered and bounded so parallel reviewers cannot race.

Commands

Audit Discipline

Pulse Log Retention

builder/improve.html must stay readable for users and cheap for scheduled agents to load. Keep at most six material Activity transitions active. Move safe older resolved outcomes, superseded decisions, and routine run rows into a monthly archive builder/improve-archive/YYYY-MM.html; unresolved and undated history is never moved automatically. Byte size, line count, and token budgets do not trigger archiving.

Never archive open findings, user rules, active advisor experiments, current notes, or the latest few entries — the active Pulse should always answer "what's the state of this workflow right now, and what still needs attention." Archiving is append-preserving: move old detail, leave an index row, and never rewrite the meaning of an old decision.