Runtime Evidence And Tracing
Overview
Make runtime validation auditable by tying observed behavior to runtime evidence through stable IDs and artifacts.
Agents should not only say they tested something; they should leave run IDs, request IDs, logs, screenshots, interaction records, or traces. For shared harness terms, see ../../references/harness-patterns.md; when evidence surfaces are absent, use references/build-when-missing.md. For neutral runtime profiles and redaction policy, see references/runtime-profile-policy.md.
When To Use
- The user asks to connect, diagnose, or design interactive validation, runtime validation, request IDs, traces, logs, metrics, or artifacts.
- A production or test-environment issue must be traced from observed behavior to runtime evidence.
- A flow with external dependencies needs classification as code failure, dependency blocker, environment issue, or data problem.
Inputs Needed
- Target flow, entry action, command, or interface.
- Existing logging, request wrapper, headers, and observability endpoints.
- Artifact directory and run ID naming preference.
Execution Order
- First: Find the request entrypoint and existing request/log/trace propagation points.
- Then: Design run IDs, request IDs, artifact bundles, and collection commands.
- Finally: Output the evidence contract and validation path, including fallback and blocker classification.
Step-by-Step Process
- Search request wrappers, service entrypoints, logs, metrics, and trace scripts.
- Confirm whether the calling surface can generate or propagate
X-Request-ID and X-Harness-Run-ID.
- If no evidence contract exists, bootstrap the minimum run artifact contract from
references/build-when-missing.md.
- Design
artifacts/runs/<run_id>/ with manifest, summary, logs, network, screenshots, and trace files.
- Define the collection order for the target flow: start, authenticate if needed, operate, wait, read artifacts, and attribute the result.
- Define blocker categories: code regression, environment unavailable, external dependency unavailable, data missing, and not evaluable.
- Explain how PRs or ledgers should reference artifacts without committing large temporary files.
Checks
- Propagation: request ID and run ID remain searchable across caller, service, job, and external dependency evidence.
- Artifact: the directory includes manifest, summary, and reproducible commands.
- Evidence: screenshots, console, network, logs, and metrics cover the failure boundary.
- Attribution: external dependency or environment blockers are not reported as product-quality failures.
- Privacy: artifacts do not contain tokens, phone numbers, real secrets, or sensitive payloads.
Output Format
# Runtime Evidence And Tracing
## Detected Mapping
- runtime-evidence:
- validation:
- ledger:
## ID Contract
- Run ID:
- Request ID:
- Header propagation:
## Artifact Bundle
-
## Collection Flow
1.
2.
3.
## Failure Classification
-
## PR / Ledger Reference
-
Common Mistakes
- Keeping only screenshots with no request ID or runtime evidence.
- Creating traces only in one layer, leaving observed failures disconnected.
- Treating external account or quota issues as product-quality failures.
- Committing large artifacts instead of referencing paths and summaries.
Example Prompts
- "Connect interactive validation to request IDs."
- "Design artifacts/runs evidence for this runtime workflow."
- "How should this failure be classified: code, environment, or external blocker?"
Source: hashgraph-online/awesome-codex-plugins → plugins/yfge/agent-harness-skills/skills/runtime-evidence-and-tracing/SKILL.md
1---2name: runtime-evidence-and-tracing3description: Use when connecting observed behavior, logs, metrics, request IDs, run IDs, screenshots, traces, external dependency results, or artifacts into a runtime evidence loop.4---5
6
7# Runtime Evidence And Tracing
8
9## Overview
10
11Make runtime validation auditable by tying observed behavior to runtime evidence through stable IDs and artifacts.
12
13Agents should not only say they tested something; they should leave run IDs, request IDs, logs, screenshots, interaction records, or traces. For shared harness terms, see `../../references/harness-patterns.md`; when evidence surfaces are absent, use `references/build-when-missing.md`. For neutral runtime profiles and redaction policy, see `references/runtime-profile-policy.md`.
14
15## When To Use
16
17- The user asks to connect, diagnose, or design interactive validation, runtime validation, request IDs, traces, logs, metrics, or artifacts.
18- A production or test-environment issue must be traced from observed behavior to runtime evidence.
19- A flow with external dependencies needs classification as code failure, dependency blocker, environment issue, or data problem.
20
21## Inputs Needed
22
23- Target flow, entry action, command, or interface.
24- Existing logging, request wrapper, headers, and observability endpoints.
25- Artifact directory and run ID naming preference.
26
27## Execution Order
28
29- First: Find the request entrypoint and existing request/log/trace propagation points.
30- Then: Design run IDs, request IDs, artifact bundles, and collection commands.
31- Finally: Output the evidence contract and validation path, including fallback and blocker classification.
32
33## Step-by-Step Process
34
351. Search request wrappers, service entrypoints, logs, metrics, and trace scripts.
362. Confirm whether the calling surface can generate or propagate `X-Request-ID` and `X-Harness-Run-ID`.
373. If no evidence contract exists, bootstrap the minimum run artifact contract from `references/build-when-missing.md`.
384. Design `artifacts/runs/<run_id>/` with manifest, summary, logs, network, screenshots, and trace files.
395. Define the collection order for the target flow: start, authenticate if needed, operate, wait, read artifacts, and attribute the result.
406. Define blocker categories: code regression, environment unavailable, external dependency unavailable, data missing, and not evaluable.
417. Explain how PRs or ledgers should reference artifacts without committing large temporary files.
42
43## Checks
44
45- Propagation: request ID and run ID remain searchable across caller, service, job, and external dependency evidence.
46- Artifact: the directory includes manifest, summary, and reproducible commands.
47- Evidence: screenshots, console, network, logs, and metrics cover the failure boundary.
48- Attribution: external dependency or environment blockers are not reported as product-quality failures.
49- Privacy: artifacts do not contain tokens, phone numbers, real secrets, or sensitive payloads.
50
51## Output Format
52
53```markdown
54# Runtime Evidence And Tracing
55
56## Detected Mapping
57- runtime-evidence:
58- validation:
59- ledger:
60
61## ID Contract
62- Run ID:
63- Request ID:
64- Header propagation:
65
66## Artifact Bundle
67-
68
69## Collection Flow
701.
712.
723.
73
74## Failure Classification
75-
76
77## PR / Ledger Reference
78-
79```
80
81## Common Mistakes
82
83- Keeping only screenshots with no request ID or runtime evidence.
84- Creating traces only in one layer, leaving observed failures disconnected.
85- Treating external account or quota issues as product-quality failures.
86- Committing large artifacts instead of referencing paths and summaries.
87
88## Example Prompts
89
90- "Connect interactive validation to request IDs."
91- "Design artifacts/runs evidence for this runtime workflow."
92- "How should this failure be classified: code, environment, or external blocker?"
93
94---
95
96**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/yfge/agent-harness-skills/skills/runtime-evidence-and-tracing/SKILL.md`