Plan -> Work -> Evidence
Plan -> Work -> Evidence is the public mdkg workflow.
Plan the goal. Execute one work node. Record evidence. Validate before moving on.
Planning nodes capture durable intent before an agent starts editing:
- goals
- epics
- product requirements
- engineering designs
- decisions
- rules
These nodes explain what matters, why it matters, and which boundaries should not be crossed.
Minimal goal frontmatter:
---id: goal-1type: goaltitle: Complete release validationstatus: todopriority: 1goal_state: activeactive_node: task-1scope_refs: - task-1 - test-1context_refs: - dec-1required_checks: - npm run test - mdkg validate---Work nodes are the units humans and agents can act on:
- features
- tasks
- bugs
- tests
- research spikes
Use mdkg goal next to select one scoped work item and mdkg pack WORK_ID to build bounded context for it.
Minimal task frontmatter:
---id: task-1type: tasktitle: Run release validationstatus: todopriority: 1parent: goal-1blocked_by: []context_refs: - prd-1evidence_refs: []---Evidence
Section titled “Evidence”Evidence records why the current state is safe to continue from:
- checkpoints
- receipts
- archive sidecars
- validation output
- handoff summaries
Good evidence includes commands run, pass/fail state, known warnings, boundaries, and follow-up refs.
Validate
Section titled “Validate”Validation closes the loop:
mdkg validatemdkg doctor --strict --jsonmdkg does not run goal checks automatically. A human or agent runs the required checks, records the evidence, and then routes the next node.
Common mistakes
Section titled “Common mistakes”- Treating
scope_refsas a reading list. Scope is the executable queue; usecontext_refsfor plans andevidence_refsfor proof. - Claiming a node before reading the pack. Read first, claim only when accepting the work.
- Marking work done before running the required checks. Close with evidence after validation.
- Storing raw prompts, tokens, provider payloads, or bulky logs in Markdown nodes. Summarize and link to safe evidence refs.