get_build_evidence
Read a build's durable evidence: why it failed, or why it was certified.
Explicit file="source:fedora_build.sh" reads a bounded, allowlisted root
entrypoint from this authorized build's current worktree. This returns
source_scope="current_build_source", not a committed-source guarantee.
Omitted file never reads or includes build source.
Two things live here, and either may be empty.
goal_completion is the record of a goal's completion. When a goal agent
called complete_goal, this is the summary and the verbatim evidence it
attached — the test run id, the assertions it read, and what it checked by
hand. It is the audit trail for "this goal was declared finished", and
this tool is the only place it can be read in full: the owner's goal feed
stores a sanitized copy capped at 1200 characters. It stays when a later
recipe edit, rebuild or failed re-test withdraws the build's certificate;
certification_status is the certificate as the build row has it now.
evidence is the diagnostic output harvested off the build's worktree
before deletion. This is the evidence for a build-script result contract
failure — the
build produced an ISO, but something the recipe declared did not actually
happen inside it: a first-run application install that never completed, a
GNOME extension that could not be installed. Those failures set
certification_status to "uncertified" and write verification_error;
they do NOT produce a test run, so get_test_results has nothing for them
and their absence is not evidence of health.
What you get, when the build recorded it:
of-firstrun-gui-session.log— the only account of what the app actually did. The GUI autostart has no terminal, so without this the serial console shows a boot and a poweroff with a silent gap where the failure is. Carries $HOME, the app's own log tail, DNS and egress, surviving processes, any blocking dialog, and the launcher source.of-firstrun-vm-phase.log— the first-run phase as the VM saw it.of-nspawn-boot.log— the container boot around it.of-boot-session-results.txt— Debian/Fedora graphical-session contract results, including the precise rejected harvest or failed proof.
Each is the last 12 KB of that file, captured at build end. Empty
evidence means nothing was harvested for this build, which is the normal
case for a build whose contracts all passed. A failed image build carries
failed_hook and failure_excerpt. For an existing failed remote assembly,
this explicit evidence read recovers its bounded terminal log window using
the current build's own owner and attempt binding; it launches no work.
Status polling remains local. file
selects one of these by name; it does not apply to goal_completion,
which is always returned whole.
An unresolved execution's execution_failure.ownership_diagnostics is a
closed current-attempt recovery reason and observation-freshness boolean.
It discloses no process, worker or lease identity, clears no fence and
launches no recovery or image work.
native_diagnostics adds a read-only current-attempt summary of retained
native-remaster logs. Only fixed categories, boolean markers and bounded
counts are returned; private log text, commands, paths and values are never
disclosed. Unavailable or unclassified diagnostics establish no cause and
do not change build or certification outcomes.
admission_diagnostics probes transport for this build's saved pending
verification launch. It returns only fixed error classes and HTTP status
codes, never endpoints, credentials, response bodies or exception text.
It creates no run and changes no admission, budget or test outcome.
goal_hold reports a fixed classification and boolean observations for
this build's owner-bound goal. Unknown or unavailable observations never
authorize clearing a hold or retrying a refused operation. No private goal
context, instruction text or exception details are returned.
queue_diagnostics projects only the native queue reason/detail and job
status for this owner's current attempt. Unavailable or mismatched facts
remain unknown; no worker identity, capacity counts or queue message is
returned, and this read never dispatches or changes scheduling.
test_network_diagnostics reads closed native allocator/attachment counts
only for an exact owner-bound infrastructure-failed run and artifact. A
fresh completed native collector observation may accompany them. This read
performs no allocation or collection, and unknown ownership remains unknown.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"build_id": "<build_id>"
},
"name": "get_build_evidence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | One evidence file to return, by the exact name listed in `files` (e.g. of-firstrun-gui-session.log). Omit to get all of them. Explicit source:<entrypoint> (e.g. source:fedora_build.sh) reads only a supported current build entrypoint, never arbitrary files. | |
| api_key | No | Your OpenFactory MCP API key (optional) | |
| build_id | Yes | The build whose harvested build-script evidence to read. | |
| session_token | No | Session token from a previous tool response. IMPORTANT: Always pass the session_token from the most recent tool response to maintain session continuity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||