The PAVED Manifesto đ
Whatâs the meta for software documentation in the AI agent era?
The New Meta: Docs as Interfaces đ
Treat documentation like you treat APIs:
- Precise contracts - not vague prose
- Small surfaces - one concept per doc
- Versioned - track changes over time
- Validated - enforce quality rules
- Optimized for retrieval + execution
Agents donât need prose. They need ground truth, constraints, examples, and how to verify.
PAVED: An Agent-Native Framework đ¤
P - Purpose
What is this thing? What problem does it solve?
- 1-3 sentences
- Include non-goals
Example:
âThis service runs scheduled background jobs. It does not do real-time event processing.â
A - API / Interface
How do you use it? What are the entry points?
- CLI commands
- HTTP endpoints
- Library calls
- Config keys
- File formats
Agents thrive on tables and schemas here.
V - Verification
How do you know itâs working?
This is the #1 missing thing in most docs, and itâs everything for agents.
Include:
- âGoldenâ commands
- Expected output snippets
- Healthcheck endpoints
- Invariants
- How to run tests
- âCommon failure â diagnosisâ
E - Examples
Concrete copy/paste examples, ideally minimal:
- 1 happy path
- 1 realistic path
- 1 failure path
Agents use examples as âshape matchingâ to produce correct output.
D - Decisions
Short rationale + constraints:
- Why this design exists
- What must not change
- Tradeoffs
This prevents agents from ârefactoring your intent away.â
The Authoring Meta: Leaf Docs + Index Docs đď¸
Agents do best when docs are:
Leaf docs (small + atomic):
- One concept
- One workflow
- One component
- One decision
Index docs (routing + map):
- âStart hereâ
- Links to leaf docs
- A 30-second mental model
This mirrors how agents retrieve: they want a map, then a target chunk.
The Formatting Meta: Docs That Compile â
If you want agents to reliably author and maintain docs, make the format lintable.
Recommended structure per doc file:
- Frontmatter / metadata (optional)
- Sections with stable headings
- Bulleted constraints
- Code blocks that run
Add doc quality gates:
- âEvery doc must include Verificationâ
- âEvery public module must have one Exampleâ
- âNo doc > 300 lines; split insteadâ
- âEvery example has expected outputâ
Agents can follow rules like these extremely well.
The Killer Trick: Make Docs Executable đ
If you do only one thing, do this:
Put commands in docs that actually run:
make test
make lint
make smoke
./scripts/verify_<thing>.sh
curl localhost:8080/health
Agents can:
- Propose changes
- Then validate them
- Then update docs
Without verification hooks, they hallucinate correctness.
The Wall-Worthy Quote đźď¸
âWrite docs like youâre training a careful junior engineer who can run commands but canât read minds.â
Thatâs basically the AI agent era.