ArchitectureResult: The Missing Artifact in Agent Systems
ArchitectureResult: The Missing Artifact in Agent Systems
Most agent demos end with an answer.
That is fine for a demo. It is not enough for a system.
When an agent touches tools, files, browsers, APIs, repositories, calendars, or production state, the final answer is only the surface. The important question becomes: what happened underneath?
Which steps were attempted? Which tool calls succeeded? Which evidence was collected? Which assumptions were made? Which risks were noticed? How much did it cost? What failed silently? What should a human inspect before trusting the output?
A production agent should not return only text. It should return an execution artifact.
I think of that artifact as ArchitectureResult.
The answer is not the execution
A final response can be polished and still hide a bad process.
An agent can say “done” without running tests. It can summarize a document without citing the passage. It can claim a website changed without checking the live page. It can choose a candidate without showing the criteria. It can recover from an error in a way that changes scope, then present the result as if the path was clean.
The final answer compresses too much.
In ordinary chat, compression is acceptable. In execution systems, compression destroys observability.
The runtime needs a second object: not written for the user, but written for the system.
What the artifact should contain
A useful ArchitectureResult is not complicated. It is explicit.
{
"status": "completed",
"answer": "...",
"steps": [
{"name": "inspect_repo", "status": "ok"},
{"name": "edit_files", "status": "ok"},
{"name": "run_build", "status": "failed", "error": "..."},
{"name": "fix_markdown", "status": "ok"}
],
"tool_calls": [...],
"evidence": ["build exited 0", "live page opened"],
"changed_files": [...],
"risks": ["working tree already dirty"],
"cost": {"tokens": 0, "wall_time_ms": 0},
"failure_mode": null
}
The exact schema will differ by product. The principle is stable: the system should preserve the process, not only the prose.
This artifact is where agent work becomes inspectable.
Why this is different from a trace
A raw trace is everything. An ArchitectureResult is the shaped summary of execution.
The trace may contain every prompt, every tool payload, every retry, every intermediate thought, every log line. That is useful for debugging, but it is too noisy for routine governance.
The result artifact is the public engineering contract between the agent and the runtime.
It says:
Here is what I attempted.
Here is what changed.
Here is the evidence.
Here is what failed.
Here is what remains risky.
Here is why the output can or cannot be trusted.
That contract can be stored, searched, compared, and evaluated.
Failure modes need names
One of the biggest weaknesses in agent systems is that failures collapse into vague language.
“The model got confused.”
“The agent failed.”
“The answer was bad.”
Those statements are almost useless operationally. A runtime needs named failure modes:
missing_evidencetool_unavailableverification_failedscope_driftunsafe_action_requestedinsufficient_contextconflicting_sourcesuser_approval_requiredstale_memory
Once failures have names, they can be counted. Once they can be counted, they can be improved.
This is the same discipline that made ordinary software operable: logs, metrics, error codes, traces, status objects. Agent systems need the same boring machinery.
The artifact enables review
Human review is much better when the reviewer can inspect an execution artifact.
Instead of reading a confident paragraph and guessing whether the agent did the work, the reviewer sees:
files changed: 12
build: passed
diff check: passed
live verification: one page opened
known risk: existing uncommitted changes
That is a different kind of trust.
The reviewer does not need to believe the agent. The reviewer can inspect the shape of work.
This matters for code, content, research, operations, and any workflow where “sounds right” is not enough.
The artifact enables automation
A stable result object also lets the runtime automate decisions without reading prose.
For example:
if result.status != "completed":
escalate(result.failure_mode)
if "build exited 0" not in result.evidence:
block_publish()
if result.risks:
require_human_review(result.risks)
The artifact becomes the bridge between probabilistic work and deterministic governance.
The model can still do the creative and interpretive work. The runtime can still enforce policy using structured evidence.
A pattern library needs artifacts
A library of agent architectures becomes much more useful when every architecture returns the same kind of result artifact.
Reflection can return the critique path. ReAct can return observations and tool calls. GraphRAG can return retrieved communities and sources. A browser agent can return page states and screenshots. A code agent can return changed files, tests, and diffs.
The internal execution can vary. The external artifact should be stable.
Without that artifact, every architecture becomes a special case. With it, the platform can inspect different strategies through one operational lens.
Final thought
The missing primitive in many agent systems is not another prompt. It is the artifact after execution.
A final answer tells the user what the agent wants to say.
An ArchitectureResult tells the system what the agent actually did.
That distinction is where agent demos begin to turn into agent infrastructure.