WunderCorp Field Notes

Documentation operations

Write the Documentation Before the Agent Learns the Wrong Lesson

A field guide to schemas, examples, failure states, and the machine-readable files agents use to understand products.

4 min read

An agent that cannot find the rule will often infer one. This is not malice; it is the natural consequence of asking a system to continue when the product has declined to explain itself. The remedy is not more confident prompting. It is documentation that states what the product accepts, returns, refuses, and charges.

Doku can present structured documentation as a high-contrast portal for human readers while preserving sources such as docs.json and llms-full.txt. That dual form matters because an agent may retrieve the structured text while a developer follows the same explanation in a navigable page.

Examples should include the inconvenient cases. Show the expired credential, the missing field, the payment challenge, and the retry. For services published through WunderCorp MPP, explain the priced outcome and the payment-aware request, not merely the endpoint name.

BuilderStudio CLI can help make generation repeatable so documentation changes with the project. A release process that updates code but leaves the agent-facing description behind is not complete. The agent will continue acting on yesterday’s contract with today’s confidence.

Discovery files such as llms.txt and OpenAPI metadata should lead to deeper material rather than replace it. They are the front door, not the whole house. A capable agent needs enough structure to identify the service and enough detail to choose and use it safely.

Good agent documentation is a form of product design. It constrains invention, shortens support loops, and gives autonomous clients a fair chance of behaving well. Within the WunderCorp suite, documentation is treated as part of the execution path because software agents cannot responsibly participate in a market whose terms are left to implication.