Skip to content
Skills Library
Programming · Review & audit

runtime-evidence

/runtime-evidence

Squad-internal execution contract for proving a claim against the actually-running application rather than an in-process test host — the tier ladder, the verification-surface registry, the out-of-process probe, and the capture artifact that gates on it. Loaded by agents via their Methodology Dependencies table whenever a requirement asserts behavior a client, device, or human can observe. Owns the `**Runtime evidence:**` citation grammar; user-facing triggers belong to the /bgpdd-build, /bgpdd-verify, /bgpdd-secure, and /bgpdd-shipping pipelines.

Licence
MIT
Last repository change
21.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Squad-internal execution contract for proving a claim against the actually-running application rather than an in-process test host — the tier ladder, the verification-surface registry, the out-of-process probe, and the capture artifact that gates on it. Loaded by agents via their Methodology Dependencies table whenever a requirement asserts behavior a client, device, or human can observe. Owns the `**Runtime evidence:**` citation grammar; user-facing triggers belong to the /bgpdd-build, /bgpdd-verify, /bgpdd-secure, and /bgpdd-shipping pipelines.

Original author description

Squad-internal execution contract for proving a claim against the actually-running application rather than an in-process test host — the tier ladder, the verification-surface registry, the out-of-process probe, and the capture artifact that gates on it. Loaded by agents via their Methodology Dependencies table whenever a requirement asserts behavior a client, device, or human can observe. Owns the `**Runtime evidence:**` citation grammar; user-facing triggers belong to the /bgpdd-build, /bgpdd-verify, /bgpdd-secure, and /bgpdd-shipping pipelines.

How it works

  1. Worker Execution Contract
  2. Deep Dive
Original SKILL.md headings · 132 lines, 2,388 words
SKILL.md preview
---
name: runtime-evidence
description: Squad-internal execution contract for proving a claim against the actually-running application rather than an in-process test host — the tier ladder, the verification-surface registry, the out-of-process probe, and the capture artifact that gates on it. Loaded by agents via their Methodology Dependencies table whenever a requirement asserts behavior a client, device, or human can observe. Owns the `**Runtime evidence:**` citation grammar; user-facing triggers belong to the /bgpdd-build, /bgpdd-verify, /bgpdd-secure, and /bgpdd-shipping pipelines.
---

# Runtime Evidence

A test suite proves the code you wrote does what you think. It does not prove the running application does. This contract governs the difference: how to observe the real system, what artifact records the observation, and what to write when you cannot make the observation at all.

## Worker Execution Contract

### Core Principle

**An in-process observation is a strictly one-directional instrument: it can fail a wire claim but never pass one.**

This is a deliberate refinement (convention #8) of `{PLUGIN_ROOT}/ui-design-patterns/SKILL.md`'s rule — *"Source reading is a strictly one-directional instrument here: it can fail a check but never pass one."* That rule bounds **source reading** against **rendered output**. This one bounds **in-process execution** against **observed output**, and it is stricter in one respect: a source read fails obviously, while an in-process test executes real code and therefore *looks* like evidence. A green in-process suite is the most convincing false pass available — real handlers, real queries, real assertions, everything true except the one thing the claim was about.

Corollary: **an effect asserted in one store is not asserted.** If a requirement says a client is mapped, the UI indicator, the database row, and any downstream agent or device state are three separate sources of truth. Reading one and inferring the others is a proxy substitution, and `base-persona.md`'s Evidence Integrity rules require you to name it.

### The Tier Ladder

| Tier | What it is | What it can prove | What it cannot |
|------|-----------|-------------------|----------------|
| 1 — Unit | Logic at function scope | Branching, calculation, parsing | Nothing about composition |
| 2 — Integration (in-process host) | The app's own pipeline over an in-memory transport, real datastore | Routing wiring, handler logic, query translation, constraints | Serialized wire shape, serializer options, middleware/filter ordering, environment-branch behavior, auth challenge shape, content negotiation, whether a contract surface exists |
| 3 — Observed runtime | The app **started as a user starts it**, probed from outside, output captured to disk | Everything a client actually receives | That the process is the built artifact (see *Build marker* below) |

A Tier-3 claim is never satisfied by a Tier-2 pass. Tier 2 remains mandatory where it applies — this ladder adds a tier, it does not replace one.

### Verification Surfaces

Every milestone carries a `[vs:<surface>]` tag assigned at planning. The tag selects which evidence is required.

| Surface | Required evidence |
|---------|-------------------|
| `api` | Out-of-process response capture; the contract surface (OpenAPI/Swagger) reachable |
| `ui` | Rendered evidence — screenshot or accessibility-tree read from a real browser |
| `web+api` | Both, **plus** the environment manifest recording which local URLs the frontend was repointed at |
| `rmm` | Device/agent state read back on the target machine (installed, paired, running), plus the service set that was up |
| `fn` | The function invoked and the effect read back from its sink — queue, cache, table, blob |
| `none` | No client-observable effect. Requires a **written justification line** in the plan |

`[vs:none]` is an explicit, reviewable claim, not an exemption. It converts "nobody thought about verification" into "someone wrote down why there is nothing to observe" — which a reader can challenge.

### The Environment Manifest

A probe command is not an environment. On a microservice estate the feature under test needs several services running **and pointed at each other locally**, and a probe that quietly succeeds against shared dev — because that is what the checked-in config still points at — produces a capture that is fresh, well-formed, and about the wrong system.

Read the manifest your brief names; absent that, the authoritative file is `.docs/summary/{feature}/QA/runtime-environment.md` (the Tier-1 brownfield recipe) whenever it exists, else `.docs/{project-name}/implementation/environment-manifest.md`. **No agent authors this file, and no agent fills a gap in it** — a start command, port, base URL, credential, or capability you were not given is context the caller owes you, not a blank to fill from convention; escalate it via `<handoff>` and stop (see *Escalate When* below).

Full depth — load on demand, not part of this Always wake-up: the six-block format, the three entry points and their precedence, minimal-subset selection, and the missing-capability ask-now/keep-working/stop protocol and its ledger mechanics — [`references/environment-manifest.md`](references/environment-manifest.md). **You do not need it to run a probe** whose manifest already exists; it is the format authority for whoever authors or extends one.

### The Runtime Probe

1. **START** the application the way a user starts it, using the start command declared in the milestone's `RUNTIME PROBE:` line. Never invent the command — see *Escalate When*.
2. **REPOINT** whatever configuration is needed so the surfaces under test talk to the local instances, and record exactly what you changed.
3. **PROBE** using the declared probe command through the transport below.
4. **CAPTURE** the output to a file under `evidence/runtime/` via `{PLUGIN_ROOT}/pipeline-tools/scripts/run_quiet.py --capture <path> --ledger {epic-root}/gates.jsonl`, which writes the command, timestamp, exit code, and the output itself — an excerpt (error lines + tail) by default, with the full output always on disk at the `- Log:` path and available via `--full-body` when the whole response IS the evidence. When no Python 3 runtime is available, hand-write the capture with the complete field list from *The Capture Artifact* below; `--capture` is preferred because those fields are tool-authored and therefore cannot be faked.
5. **CITE** the capture path in your report.

**You do not author the probe you are graded on.** The probe and its expected observable come from the plan. A probe invented at verification time is invented by the party motivated to soften it.

### Transports

Read the transport's own contract on demand; this file does not restate it.

| Surface | Transport | Contract |
|---------|-----------|----------|
| `api` | An external HTTP client or a Postman collection run headlessly — anything that opens a real socket | (no separate skill; the capture artifact below is the whole contract) |
| `ui`, `web+api` | Browser automation | `{PLUGIN_ROOT}/playwright-skill/SKILL.md` for driving flows; `{PLUGIN_ROOT}/browser-testing-with-devtools/SKILL.md` for DOM, console and network inspection |
| `rmm` | The platform's own service/package query, run on the target device | (project-declared in the `RUNTIME PROBE:` line) |
| `fn` | The sink's own client — queue peek, cache read, table query | (project-declared) |

An in-process test client is **not a transport**. Naming one in a capture is a gate failure, not a shortcut. The recognizable ones are `WebApplicationFactory`/`TestServer` (.NET), `supertest` (Node), `MockMvc` (Spring), and their equivalents in any stack: each is the Tier-2 integration instrument — real routing, real handler logic, real data access, never the wire. The mechanically-enforced tell list lives in `{PLUGIN_ROOT}/pipeline-tools/scripts/check_runtime_evidence.py` (byte-locked to `check_coverage.py`'s plan lint); the prose list here is the recognition aid, not the gate.

### The Capture Artifact

One file per probe, at `.docs/{project-name}/implementation/evidence/runtime/<milestone-slug>-<probe-slug>.md`. Header fields, a `## Summary` section (the recognised runner summary line(s), or `none recognised`), then the captured output under a `## Captured output` heading — an excerpt (error lines + tail) by default, the full output verbatim under `--full-body`. A content check that misses in the excerpt (a status line, a response key) falls back to the full log named by the header's `- Log:` field; `check_runtime_evidence.py`'s own provenance checks (the sidecar hash, `sidecar_body_disagrees`, `probe_failed_exit`) always read the capture's own hash-protected body, never the log.

Required: `Milestone`, `Requirement IDs`, `Surface`, `Transport`, `Base URL` (or the device/sink identifier), `Probe command`, `Captured`, `Exit code`.
Required when the surface is `web+api` or wider: `Environment` (every service and the local URL it was reached at) and `Config repointed` (what you changed, and from what).
Required when the surface is `api` or `web+api`: `OpenAPI` — the contract-document URL and the status it returned, as `- OpenAPI: <url> — <status>`. Record it for the **failure-path capture too**, not just the success one; the gate scopes per capture, so a sibling missing the field fails the whole milestone. This is the cheapest field in the artifact and the one that most directly separates a started application from a test host: the document is typically served behind the same environment branch an in-process host never resolves. It answers *is the surface up and is its schema being served* — nothing about whether a response body is correct, which is what the captured output and the asserted keys are for.
Required wherever the running artifact can echo any identity, and **the identity must be commit-bearing**: `Build marker` — the commit the running service reports (`ProductVersion`/informational version, a `git log -1` hash for a from-source run, a build-info endpoint). An assembly or file version is **not** a build marker: two builds of the same version are routinely identical in length and report an identical `FileVersion`, so a version-only marker cannot discriminate the build you meant from the one before it. **And the build must postdate the last change to the code under test in the working tree.** No agent commits — the lane's gate does, after verification (`{PLUGIN_ROOT}/agent-squad/orchestrator-contract.md`, *Incremental Persistence*) — so a bare HEAD hash stamps the *previous* commit onto a binary carrying the uncommitted new behavior: fresh, well-formed, and lying, which is worse than a missing marker. Use a dirty-aware marker (`git describe --always --dirty`, or HEAD plus a hash of `git diff`), rebuild after every edit, and let the caller pin the expected value with `check_runtime_evidence.py --require-build-marker`. Freshness is measured against the working tree, not a commit, deliberately (convention #8): it refines the old build-after-commit rule to fit the agents-never-commit rule. Without a commit-bearing marker, a service started before your change and never restarted produces a capture that is fresh, non-empty and wrong.

Captures are **gating** and belong to whoever verifies. A builder's own self-check capture goes to `evidence/build/` instead and does not satisfy a gate — the same producer split `evidence/review/` already uses for rendered evidence.

A rendered capture (screenshot) is evidence only when `{PLUGIN_ROOT}/pipeline-tools/scripts/record_capture.py` has recorded its provenance sidecar — invoked before the path is cited, never bypassed. A `file://` origin is a mockup, not evidence. When the running application cannot be reached, the state is **BLOCKED** (see *When You Cannot Probe* below) — never a substitute render of a document that was never running.

### Citation

This file is the single owner of the grammar. Emit it in your report — `test-report.md` during build and verify runs, `verification-report.md` during shipping — inside the block for the unit being reported:

```
**Runtime evidence:** evidence/runtime/<file>.md[, evidence/runtime/<file>.md]
```

Paths are relative to the report's own directory. Cite every capture that backs a claim in that block, including failure-path captures.

The third consumer cites differently: in `acceptance-results.md` the capture path goes **inline in the result line's detail field** (grammar owner: `{PLUGIN_ROOT}/pipeline-tools/SKILL.md`), never as a marker line. That second form is deliberate (convention #8) — that file's per-step line grammar is one line per step, with no room for a marker line beside it.

### When You Cannot Probe

If the application will not start, the environment cannot be repointed, the device is unreachable, or the transport is unavailable:

- Record the claim as **`BLOCKED — <what was missing>`** — never `PASS`, never omitted, per `{PLUGIN_ROOT}/agent-squad/base-persona.md` § Evidence Integrity.
- Say explicitly what you observed *instead*, if anything: `BLOCKED — app will not start; Tier 2 suite green only`. An unnamed proxy is a fabrication in effect (`{PLUGIN_ROOT}/agent-squad/base-persona.md`, Evidence Integrity).
- A probe that *did* run, but in a weaker form than specified (a lower tier, a source read), is not this case: label it `NOT VERIFIED — <what was observed instead>` per base-persona's "Name every substitution" — `BLOCKED` is reserved for the probe that never ran.
- Report it in your `<handoff>` as well as your artifact — `<status>BLOCKED</status>` with a `blocked_on: <category> — <reason>` line in `<blockers>` (`{PLUGIN_ROOT}/agent-squad/base-persona.md` § Output Format & Reporting, item 2) — so it reaches the blockers ledger.

An honest `BLOCKED` costs one round-trip. A Tier-2 pass on a Tier-3 claim costs the project a gate.

### Verification Checklist

- [ ] Every environment literal used (start command, port, base URL, repointed value) came from the environment manifest — none was inferred
- [ ] Every claim about client-, device-, or human-observable behavior has a Tier-3 capture, or a `BLOCKED` line naming what was missing
- [ ] Every capture names a real out-of-process transport — no in-process test client
- [ ] `Environment` records the local URLs actually reached; nothing points at a shared dev or staging host
- [ ] Failure paths are captured too, not only success — a wrapper can shape one and miss the other
- [ ] Every store the requirement names is read back, not inferred from a sibling
- [ ] Every capture is cited with a `**Runtime evidence:**` line
- [ ] On an `api` or `web+api` surface, **every** capture records the `OpenAPI` URL and its status — the failure-path sibling included

### Escalate When

- A start command, port, base URL, credential source, or repointing value you need is absent from the environment manifest (or the manifest itself is absent) → **stop and name the missing field**. Do not infer it from a compose file, a launch profile, a framework default, or a sibling service. Supplying it is the caller's job.
- A capability the surface requires is unavailable in this runtime — no browser automation, no device access, no out-of-process transport → **stop and say which one**, before doing the work. Never quietly drop to a lower tier.
- The milestone declares no `RUNTIME PROBE:` line → **stop**. That absence is a planning defect (`{PLUGIN_ROOT}/planning-and-task-breakdown/SKILL.md`); report it rather than inventing a probe.
- The probe cannot be run out-of-process in this environment at all → report it; do not substitute a lower tier.
- The declared probe's expected observable disagrees with what the requirement asks for → report the conflict; follow the evidence and say that you did.

## Deep Dive

For rationale, the failure histories these rules encode, and per-surface worked examples, read on demand:

- [`references/runtime-evidence-rationale.md`](references/runtime-evidence-rationale.md) — why the in-process tier is the most dangerous false pass, the 2026-08 response-envelope incident traced end to end, the stale-process hazard and its partial mitigations, worked captures for each surface including a device/agent example, the reasoning behind gating captures on freshness rather than authorship, and **a worked multi-service environment manifest** with the reasoning behind caller-supplied environment facts.
Files in this package (3)
  • SKILL.md 16 KB
  • references/environment-manifest.md 7 KB
  • references/runtime-evidence-rationale.md 13 KB

Versions

The database has no other skills named runtime-evidence.

Database snapshot: 13.11.2026 · package version e3103d97fffa (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100godot-gdscript-patterns
    Squad-internal execution contract for Godot 4 GDScript work — signals, scenes, state machines, and optimization patterns. Use if the project uses Godot / GDScript. Loaded by agents via their Methodology Dependencies table; user-facing triggers belong to the /bgpdd-X pipelines.
  • 100bgpdd-verify
    The standalone verification lane for an already-discovered feature. Derives a lint-gated acceptance matrix from Echo's QA baseline (.docs/summary/{feature}/QA/manual-testing.md), delegates Quinn to automate it as permanent Playwright specs executed against the running…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.