What is the “document-as-implementation” pattern?
A design pattern where a human-readable document (policy/procedure) is treated as the system’s operating logic, and the agent reasons over it directly instead of relying on hardcoded rules.
In traditional systems, what usually happens to business rules before a system can use them?
Humans write policies, developers interpret them, then developers translate them into code.
What is “translation loss” in policy-to-code workflows?
Nuance and context get lost each time knowledge moves from policy document → developer understanding → code.
Why do policy changes often create maintenance problems in traditional systems?
The document can be updated quickly, but the code stays outdated until a developer manually updates and redeploys it.
What are “knowledge silos” in the context of business logic?
Only developers can change system behavior, creating bottlenecks and dependencies.
Why is validation difficult when policies are implemented as code?
It’s hard to verify whether the code truly matches the current policy documents.
In the invoice example, what simple operation demonstrates the paradigm shift?
Loading the latest purchasing rules from disk at startup and letting the agent interpret them.
In the invoice example, what does the rules file represent in the new pattern?
The “implementation” of purchasing logic, written in human-readable form.
What is the key idea behind “direct use of human knowledge”?
Use the human document itself as the logic instead of translating it into code.
What is a major benefit of using documents directly instead of hardcoded policy logic?
The system can preserve nuance and reduce translation loss.
What does “dynamic updates without code changes” mean?
Updating the document changes system behavior on the next run without developer intervention or redeployment.
What organizational roles benefit from document-as-implementation alignment?
The people who define policies (legal, compliance, finance) can maintain the documents that drive behavior.
Why does document-as-implementation improve organizational alignment?
It matches how organizations naturally manage policies: domain experts update documents.
What does “traceability” mean in this pattern?
You can identify which document (and version) the agent used to make a decision.
What does “transparency” mean in this pattern?
Decisions can be explained by pointing to the policy text the agent referenced.
How does document-as-implementation support auditing?
It creates an auditable trail linking decisions to the exact policies in effect at the time.
In the example, why include a fallback rule when the file is missing?
To define safe default behavior if no rules are available (e.g., assume compliant).
What is the risk of a missing rules document without a fallback behavior?
The agent may fail or behave unpredictably because its decision criteria are undefined.
What is meant by “the document becomes the logic”?
The document’s content is treated as the operational rules the agent follows.
How can this pattern extend beyond local text files?
Agents can pull from knowledge bases, internal wikis, or document management systems.
Why are knowledge bases and wikis powerful for this pattern?
They let agents reason over large amounts of organizational knowledge maintained by humans.
What is the benefit of using versioned documents?
You can trace exactly which version of a policy was applied for any decision.
Why is document versioning especially important for compliance?
Compliance often requires proving which rules were followed at a specific time.
What is “multi-document reasoning”?
The agent reasons across multiple documents and reconciles information between them.