Skip to content

Data Flow

Quick Reference

  • Execution Model: RARV (Reason → Act → Reflect → Verify)
  • State Machine: backlog → in-progress → review → done
  • Storage: JSON file (cm-tasks.json) + .cm/ directory
  • Pipeline: Skill Chain Engine

RARV Execution Cycle

Every task in Cody Master follows the RARV cycle — a 4-phase execution loop that prevents AI agents from rushing to incomplete solutions.

Phase Details

PhaseWhat happensKey skill
REASONRead working memory, understand context, pick the right approachcm-continuity, cm-planning
ACTExecute the plan — write code, fix bugs, create docscm-tdd, cm-execution, cm-debugging
REFLECTSelf-review — did the output match expectations? Record errors.cm-code-review, cm-continuity
VERIFYRun tests, validate, gather evidencecm-quality-gate, cm-test-gate

Task State Machine

Tasks flow through a kanban board with validated transitions:

Valid Transitions

FromToTrigger
backlogin-progressDeveloper/agent starts work
in-progressreviewWork completed, needs review
in-progressdoneWork completed and verified
in-progressbacklogDeprioritized or blocked
reviewdoneReview approved
reviewin-progressReview found issues
donebacklogTask needs rework

Validation

Invalid transitions are rejected by the API. For example, you cannot move a task directly from backlog to done — it must pass through in-progress first.

Skill Chain Pipeline

Complex workflows are composed as multi-step skill chains. The Chain Engine manages progress through sequential skills:

Judge Agent Decision Flow

The Judge Agent continuously monitors task health and recommends action:

Data Storage Schema

All data is stored in a single JSON file (cm-tasks.json):

json
{
  "projects": [
    {
      "id": "uuid",
      "name": "My Project",
      "path": "/path/to/project",
      "agents": ["antigravity", "claude"],
      "createdAt": "ISO-timestamp"
    }
  ],
  "tasks": [
    {
      "id": "uuid",
      "projectId": "uuid",
      "title": "Add authentication",
      "column": "in-progress",
      "priority": "high",
      "agent": "antigravity",
      "skill": "cm-tdd",
      "order": 0,
      "createdAt": "ISO-timestamp",
      "updatedAt": "ISO-timestamp",
      "dispatchStatus": "dispatched"
    }
  ],
  "deployments": [...],
  "changelog": [...],
  "activities": [...],
  "chainExecutions": [...]
}

Working Memory Files (.cm/ directory)

.cm/
├── CONTINUITY.md      # Active session state
├── config.yaml        # RARV cycle settings
└── memory/
    ├── learnings.json  # Captured error patterns
    └── decisions.json  # Architecture decisions

Open Source AI Agent Skills Framework