Skip to documentation
AgentDirectiveDocs
Methodology v0.1.0Back to main site

Learn

Decisions and directives

The directive records what you decided, what remains open, and what the coding agent should build and report.

One source, several useful files

The compiler creates .agentdirective/agent-directive.json first. The Markdown instructions, prompts, status templates, and manifest come from the same file, so they stay in sync.

Matching and editing happen in your browser. When you choose to create the files, your description, traits, answers, and any optional context or prior directive are sent to the Cloudflare-hosted compiler for that request. The service does not store those inputs or generated files. Compilation is deterministic; it does not call an AI model.

A requirement carries its decision state

A confirmed parameter can be implemented. An unresolved parameter remains visible in unresolved_decisions and must not be silently filled by the agent.

Stable IDs link controls, decisions, tests, observability, evidence, and later status reports.

agent-directive.json
{
  "directive_id": "AD-7Q2K8M4P",
  "directive_version": "1.0.0",
  "methodology_version": "0.1.0",
  "controls": [{
    "control_id": "AUT-001",
    "pack_version": "1.0.0",
    "requirements": [{
      "requirement_id": "AUT-001-R1",
      "decision_status": "confirmed",
      "parameters": { "value": "500", "unit": "USD" },
      "verification_required": true
    }]
  }]
}

What the bundle contains

Each file has one job. The filename is shown second so you can understand the hand-off before learning its technical name.

Build rules and decisions.agentdirective/agent-directive.jsonThe structured source of truth for requirements and the decisions behind them.
Implementation progress.agentdirective/control-status.jsonWhat the agent reported for each requirement: implemented, partial, unresolved, or another status.
Change history.agentdirective/control-events.jsonlA running record of important changes and later reassessments.
Readable agent instructions.agentdirective/IMPLEMENTATION_PROMPT.mdInstructions derived from the same build rules, written for an agent hand-off.
Bundle contents and checksumsmanifest.jsonA list of included files and fingerprints used to detect accidental changes.

Completed, draft, and no-match are different results

ResultWhen it is usedWhat is handed off
DirectiveAt least one pack matched and every surfaced decision has a confirmed value.Implementation contract
Draft directiveAt least one pack matched and one or more surfaced decisions remain open.Contract with explicit questions
No-match assessmentNo current Control Pack matched the confirmed characteristics.Assessment and next steps; no directive

Requirement drift

If a later request conflicts with a confirmed requirement, the coding agent should stop and surface the conflict. Weakening, removing, or rejecting a safeguard is a new decision and a new event—not a silent edit.

Type a word or phrase to search the documentation.