Test execution · Evidence and capture policies · Tracing
Start with the existing run, not another inference run. Read enough metadata to identify the execution boundary, then open only the evidence that can distinguish the remaining explanations. Keep complete durable logs; bounded inspection means limiting what enters agent context, not truncating the stored evidence.
Record the repository-qualified test ID, run/report identity, source revision,
effective configuration/profile, launcher versus legacy harness, failure phase
and outer test attempt. Use the run's resolved
settings, including per-test overrides; today's .env may differ. Read the
terminal summary and that attempt's short failure details before opening bodies.
If an attempt's evidence directory is already known, read its smallest relevant
structured receipt before opening a viewer. Allure is the recorded-attempt index
when available, not a prerequisite for reading local diagnostics. With
SKIP_ALLURE_REPORTING=True, the supported unrecorded path creates no Allure
recorder, manifest, attachments or publication: start with terminal/result
evidence and any independently retained test receipts. If reporting was enabled
but publication or viewing failed, use retained local artifacts and the complete
run log; report that failure separately. Do not assume those artifacts survived
unless their availability is verified.
| Observation | Interpretation and next evidence |
|---|---|
| First-chance test pass, internal node/provider retry | The outer test passed. Inspect the recovered scope only if investigating recovery, latency, spend or a reported defect. |
| First-chance failure, later passing confirmations | Preserve both first-chance failure and final outcome. Inspect the failed outer attempt and its confirmations separately. |
| Confirmation failure or exhausted workflow retry | Find the authoritative failed attempt and the innermost relevant failure, then its owning component and final application outcome. |
| Setup, browser, cleanup or publication failure | Begin at that boundary. A missing graph can mean execution never reached it. Distinguish application/test outcome from report delivery. |
| Passing test with missing image, content or spans | Investigate capture/publication separately; passing assertions do not establish complete evidence. |
Workflow/component/node passes, provider transport retries and outer E2E reruns
are different layers. A failed child visit does not establish final graph failure.
Confirm recovery using matching owner/ancestry and later accepted outcomes, not
names, colors or adjacent timestamps alone. A genuine partial result may remain
partial. An initial E2E pass needs no confirmations; after initial failure,
the configured additional confirmations must all pass. Unit tests never retry.
Workflow attempt/max_passes values describe that workflow scope; they are not
the outer test attempt number or E2E_RERUNS confirmation allowance.
In prerequisite cleanup events, pending counts borrower leases; zero does not
prove that resource owners were disposed. The broker emits completed: 1 only
after its owner pool and control storage close successfully, and completed: 0
when that close fails. Older events without the flag do not establish completion.
Other suite cleanup duties can still remain after the broker closes; retain the
launcher's final cleanup outcome as the overall authority.
When suite-owner cleanup remains pending, the content-disabled terminal reports
a fixed cleanup stage, category, and public base-family error class, plus a
random per-failure correlation. The correlation identifies a private retained
cleanup-diagnostic-<correlation>.json in the suite recovery directory. If
the record could not be written, the terminal says record=unavailable.
This metadata excludes exception messages and paths; it is diagnostic evidence,
not proof of disposal or a substitute for the owner's cleanup retry.
Container-engine verification compares complete CLI and socket inventories. Concurrent container changes can make sequential snapshots disagree, so the handshake samples up to eight CLI/socket pairs within its existing deadline, with a short cancellable delay. It still requires exact inventory equality and all engine identity and socket checks; persistent disagreement fails closed. A mismatch alone does not establish whether churn or a different engine caused it.
New prerequisite error events retain a fixed stage and category without
exception messages, class names, handler names or configuration. When preparation
produces a resource key, prepare, readiness and error events also carry an
opaque, broker-keyed correlation. It identifies that resource key within one
broker, including across invalidation; it is not an attempt, request or owner
generation ID and cannot join separate brokers. Earlier preparation failures
have no resource correlation. These acquisition fields do not classify cleanup
failures.
A prepare event with reuse: 1 means the key was seen before, not that its
owner became ready. A failed owner remains failed until trusted invalidation
confirms its disposal. Repeated errors for one correlation may therefore share
one acquisition failure. Inspect its first failed stage before rerunning;
clearing the error or pruning containers is not evidence of safe disposal.
Native recovery attempts independently verified states even when another state remains pending. It reports the original remaining failure, or groups multiple failures, after those attempts. Worker-disposal and per-state command-quiescence checks still apply. Partial cleanup does not close the owner or authorize removal of retained recovery storage; an uncertain command never gains a completion acknowledgement through another state's successful cleanup.
For finalized recorded E2E runs, logical outcomes live in
manifest.metadata.e2e_outcomes[]. Match the result's historyId to the ledger's
history_id and inspect
first_status, attempt_statuses, final_status, complete and result_files;
manifest.metadata.e2e_reruns records the outer confirmation allowance.
The latest native Allure result deliberately projects a recovered final pass as
broken (yellow), with a recovery explanation. Its color/status is not the
logical final result. The launcher summary and validated outcome ledger retain
the distinction; individual result files identify physical attempts. Preserve
the initial failure and all required confirmation results. Without a finalized
ledger, use the controller's terminal/result evidence and state uncertainty
rather than deriving a logical outcome from one Allure case's status.
When useful and available, open that exact Allure attempt. Follow Conversation → User turn → graph → component/node/tool/call where that hierarchy is recorded. Inspect status, attempt/max-passes, failure classification and timing. Open the rendered-turn image for browser, layout or rendered-data symptoms, and LLM diagnostics for provider/model symptoms. Do not expand every successful sibling or every request body.
Use Execution evidence for the event journal and Payload index for capture
availability and references. Record actual conversation/turn, invocation,
scope/visit, workflow attempt and call IDs. Transport attempts may additionally
have transport_attempt_id; trace/span IDs are separate identifiers. Not every
boundary supplies every ID. Missing or ambiguous ownership is a diagnostic gap,
not permission to join events by matching labels or wall-clock proximity.
Some shared backends correlate call/transport spans by ID without propagating a
workflow parent across processes; distinguish that documented boundary from a
missing call or lost exporter payload.
Find the earliest relevant failure inside the authoritative attempt, its typed error/code, retry feedback and next pass. Then check the terminal result and assertion. A successful model call can precede deterministic validation failure; a failed provider response may have no decoded final answer or usage.
For a large journal, filter metadata by the observed IDs before reading content. For an Execution evidence JSON envelope, this example prints at most 40 matching event summaries, without payload bodies:
import json
from pathlib import Path
journal = json.loads(Path("/absolute/path/to/execution-evidence.json").read_text())
wanted = "COPY_AN_OBSERVED_ID"
ids = ("invocation_id", "turn_id", "scope_id", "visit_id", "attempt_id",
"call_id", "transport_attempt_id", "parent_id", "cause_id")
summary = ("event", "sequence", "owner", "kind", "outcome", "attempt",
"max_passes", "reason", "code", *ids)
matches = [event for event in journal["events"]
if any(event.get(key) == wanted for key in ids)]
print(f"{len(matches)} matching events")
for event in matches[:40]:
print(json.dumps({key: event[key] for key in summary if key in event}))Follow explicit parent/cause references as needed. Narrow further when more matches remain. Inspect only the affected input, returned output, error and retry feedback through their retained attachments; do not dump the whole state, all payloads, an entire browser DOM or an unbounded traceback into context.
| Existing evidence | Next step |
|---|---|
| Allure explicitly disabled | Start with the terminal/result summary, durable log and independent test receipts. No Allure manifest or attachments are produced by the unrecorded path. |
| Allure publication/viewing failed | Read verified retained local receipts/journals and the durable log. Keep functional and publication outcomes separate; do not claim missing artifacts exist. |
| Tracing disabled | Use the identified attempt's local receipts, journal/payload index, durable log and Allure when available. No trace backend is required. |
| Tracing enabled and correlated spans available | Locate the exact run/turn/call using recorded IDs. Inspect the affected ancestry, retry and terminal spans; compare provider errors with the application outcome. |
| Tracing enabled but missing/incomplete | Check resolved trace mode/export destination, collector lifetime/readiness and exporter warnings first. Check sampling, span/capture budgets and explicit omission reasons. Missing spans do not establish that no call occurred. |
| Content absent | Check capture state and destination policy before treating it as an empty request/response. withheld, truncated, unavailable, not_observed and ambiguous have different meanings. |
LOG_CONTENT controls log/Allure content; TRACELOOP_TRACE_CONTENT controls
trace content independently. Neither enables the other or retroactively restores
content. Credentials remain protected in both modes. No trace-content setting
permits raw encrypted reasoning or arbitrary private state. A masked screenshot
can still establish layout and controls without exposing the response.
Tracing/export failure must produce a clear warning and preserve the test's application outcome. If reporting was enabled, diagnose an Allure publication failure separately; report the actual publication status and do not claim unavailable evidence was retained.
For an already authorized run, execute from the owning repository. These Bash/zsh
examples retain complete stdout/stderr in an explicit repository-local file and
preserve a nonzero runner exit through pipefail. Replace the selector with the
actual repository-qualified test; do not execute the placeholder literally.
Run only the applicable command, not both as a diagnostic ritual.
(
umask 077
mkdir -p .git/review-logs || exit 1
chmod 700 .git/review-logs || exit 1
log=$(mktemp ".git/review-logs/integration.XXXXXXXX") || exit 1
printf 'Log: %s\n' "$log"
set -o pipefail
./launch.sh --tui-mode integration --no-std-in --start \
'OWNER::PATH/TO/TEST.py::TEST_NAME' \
2>&1 | tee "$log"
)(
umask 077
mkdir -p .git/review-logs || exit 1
chmod 700 .git/review-logs || exit 1
log=$(mktemp ".git/review-logs/e2e.XXXXXXXX") || exit 1
printf 'Log: %s\n' "$log"
set -o pipefail
./launch.sh --tui-mode e2e --no-std-in --start=E2E \
'OWNER::PATH/TO/TEST.py::TEST_NAME' \
2>&1 | tee "$log"
)The printed path is the durable log location; record it in the evidence packet.
mktemp creates a fresh mode-0600 file exclusively on every invocation, even
for runs started rapidly in one shell. The directory is private (0700), and the
umask change stays inside the subshell. These commands do not change Allure or
tracing settings. They also work
with an explicitly unrecorded run when that run's resolved configuration sets
SKIP_ALLURE_REPORTING=True; no new report path should be invented for it.
For recorded runs, use resolved ALLURE_RESULTS_DIR, the optional
ALLURE_SECONDARY_DIR copy and reported storage/run identity to locate retained
manifests. With the default local setting, the manifest is under
<owner>/artifacts/allure/<repo>/<run_id>/manifest.json; an enabled secondary
copy uses <ALLURE_SECONDARY_DIR>/<repo>/<run_id>/manifest.json. Local result
directories can be disabled. Never infer a local Allure
path solely from the log location. Search the complete log by exact IDs/error
codes and read bounded context rather than printing it all.
Map the identified node/component to its selected flow declaration and native handler. Inspect its declared I/O, validation, retry budget, feedback mapping and terminal projection, then the smallest related implementation/test files. An opaque delegated graph may require private runtime diagnostics; its wrapper is not evidence of converted internal orchestration. Keep private details out of public reports and code.
State the unresolved hypothesis before rerunning. Prefer an offline regression or controlled reproduction. If new live evidence is required, run the smallest relevant selection under the applicable existing authorization, retain its full log and identify any changed tracing/content/configuration. Do not repeat an entire paid suite or toggle content indiscriminately to compensate for unread existing artifacts. Do not silently clear authentication caches or switch providers to bypass the observed failure.
Report first-chance and final outcomes separately, the affected flow boundary and IDs, decisive artifact references, confirmed cause versus hypothesis, and any missing evidence. A recovered error is worth reporting when relevant; it does not turn a passing final test into a failure or erase its earlier failure.
Keep one compact evidence packet for subsequent work: run/selector/outer attempt, first-chance and final status, evidence directory, trace ID if present, first divergent owner, typed error/code, retry layer/count, relevant source location and capture availability. Compare this signature between failed and passing attempts before comparing whole prompts. Distinguish provider transience, external-service variability, application nondeterminism, test races and capture failure; a later pass alone does not choose between them. Stop broadening the search when the owning layer and supported cause are established.