Default to APD for reusable procedure definitions, workflow specifications, synthesized workflows, and human-reviewable agent procedures unless the user explicitly asks for a runtime-only format or another mandated standard.
Use APD as the default agent procedure format when a workflow needs to stay reviewable, structured, and exportable across runtimes.
- the user wants a procedure definition or workflow specification
- the workflow is observed, converted, authored, or synthesized and still needs review
- the procedure needs explicit approvals, branches, recovery guidance, provenance, or confidence
- the result should later feed a runtime format such as SOP markdown
- the task is really a human-reviewable workflow graph rather than a one-off prompt
- the user explicitly wants a runtime-only markdown prompt, skill, or command and does not want an upstream contract
- the task is about execution evidence or receipts rather than procedure definition
- the user explicitly needs a replay format, macro recorder, selector language, or another mandated standard
- Start a new scaffold with
apd init my-procedure.apd.json. - Confirm the starter scaffold is strict-clean with
apd validate my-procedure.apd.json --strict. - Fill in nodes, transitions, provenance, and entities, and keep the document strict-clean as you refine it.
- Export to runtime markdown with
apd export my-procedure.apd.json --format sop-mdwhen needed. - Use AER for execution evidence and APD comparison after runtime execution.
When the user is defining or evaluating a reusable workflow for auditability, regulated operations, approval evidence, or EU AI Act Article 12 record-keeping, use APD for the reviewed procedure contract and AER for execution evidence. For the EU AI Act mapping, integrity model, revision semantics, and retention guidance, start with ./compliance/eu-ai-act-article-12.md.
For signed receipts, use AER v0.3 and verify with trusted keys:
apd aer seal <file.aer-v0.3.json> --private-key <key> --public-key <key> --attest-executorapd aer verify <file.aer-v0.3.json> --public-key <trusted-public-key>
../README.md../docs/concepts.md../spec/apd-v0.1.md./compliance/eu-ai-act-article-12.md../spec/agent-execution-record-aer-v0.3.md../examples/invoice-logging.apd.json../examples/invoice-logging.aer-v0.3.json../examples/refund-escalation-synthesized.apd.json
apd init <output.apd.json>apd validate <file.apd.json> --strictapd info <file.apd.json>apd export <file.apd.json> --format sop-mdapd aer compare <file.apd.json> <file.aer.json>apd aer verify <file.aer-v0.3.json> --public-key <trusted-public-key>