AgentWorks

AgentWorks documentation

Workflow self-improvement & reporting — system overview

Start here. This is the map of how a workflow keeps itself healthy and moving toward its goals, and how that work is made visible and steerable for the user. It ties together five parts that are otherwise documented separately: Pulse, its review and fix lifecycle, scheduled step evidence, notifications, and the Org dashboard. Each section links to the detailed doc.

Why this is the critical layer — managing at scale

This is the most important subsystem in the product: it's what makes 100+ agents and automations manageable by a small team. Without it, every workflow needs a human watching it — which caps you at a handful. With it:

Span of control is the whole point: the system handles the routine fixing and improving and surfaces only the exceptions + decisions, so human effort scales with the number of exceptions, not the number of workflows. That is the difference between running 5 automations and running 100+.

1. Purpose — two jobs

  1. Fix/improve workflows toward their goals. Keep them working, and move them toward winning.
  2. Make that legible and steerable. Report what's happening so the user can see, get alerted, and decide — because the system proposes big changes rather than applying them silently.

Everything below is one of those two jobs, or the substrate that connects them.

2. One Pulse system, three kinds of judgment

There is no separate recurring auto-improve control loop competing with Pulse. Gate selects from three independent reviewers: ordered Workflow Review asks whether the current workflow ran and is built correctly; Strategy Auditor asks what is missing or ineffective inside the selected strategy; less-frequent Goal Advisor searches for a materially different route to the goal. Due reviewers may run in parallel and never depend on one another's conclusions.

One Fixer then reconciles their findings and applies only bounded safe changes. Consequential strategy changes remain proposals requiring the existing human decision flow. One ordered finalizer renders the dashboard, backs up, publishes, and notifies. The canonical current topology and its rationale live in pulse_consolidation.md.

"Working but off-goal" remains a normal, important state: operational health and goal progress are separate judgments, and a broken run cannot supply trustworthy goal evidence.

3. The shared substrate (Pulse memory)

Pulse's durable memory is SQLite, including module results, reviews, findings, attempts, verification, finalization, interventions, and comparable goal observations. builder/improve.html is the required lightweight executive journal and publishable history, not the lifecycle database. It contains Bug/Goal verdicts, one status sentence, exactly three Latest Pulse cells, and at most six material Activity transitions. Reviewer coverage, assumptions, findings, checks, fix attempts, verification, questions, and review evidence remain in SQLite and are rendered by the Pulse popup.

See review-improve-log.md for the journal structure and archive rules.

Pulse also maintains compact dashboard cards in the workflow workspace:

These are served to the UI by getBuilderDoc(workspace, "card-health"|"card-progress"|"card-cost") (auto_improvement_endpoints.go).

4. The reporting / steering surfaces

The same verdicts, decisions, and cards Pulse produces while reviewing and fixing are what surface here — #2 is #1 seen again, never a separate analysis.

Oversight is part of reporting: because big changes are proposal-only, these surfaces are also where the user decides (approve a replan, act on a recommendation), not just a window.

5. How it fits together

6. Code + docs map

Concern Code Doc
Pulse loop scheduler.go (runPostRunMonitor, postRunMonitorSteps) pulse_consolidation.md, guidance post-run-monitor.md
Review selection and ordered execution Pulse scheduler + module registry pulse_consolidation.md, guidance pulse-gate.md, post-run-monitor.md
Finding/fix/verification/impact state Pulse worklist, finding lifecycle, review log, and impact ledger pulse_consolidation.md, pulse_v2_proof_carrying_architecture.md
improve.html dashboard Dashboard stage; served via auto_improvement_endpoints.go guidance review-improve-log.md
Dashboard cards card writes in loop prompts (scheduler.go); getBuilderDoc card kinds (auto_improvement_endpoints.go) org_dashboard_design.md
Notifications virtual-tools/human_tools.go (notify_user), services/gmail_service.go (this doc)
Org dashboard UI frontend/.../org/OrgDashboard.tsx, EmployeeDashboard.tsx, OrgHtmlPanels.tsx org_dashboard_design.md
Org Pulse (CoS) builtin_schedules.go guidance org-pulse.md, org-html.md
Monitoring overview workflow_monitoring.md

Open / evolving