Work backwards from the failure the tool should help explain or prevent. The example products below are options. Check the same behaviour with tools the project already uses before adding one.
| Required operation | Candidate implementation | Test it before relying on it | Limit |
|---|---|---|---|
| Navigate typed code | Use language-server definition and references, or Roslyn-backed navigation for C#. | From a known symbol with a similarly named neighbour, resolve the definition, a real caller and an implementation from a fresh checkout. Repeat for each main language. | Reflection, templates and code loaded by convention may need runtime or text evidence. |
| Enforce a dependency boundary | Inspect the project graph and add an architecture test. For .NET, ArchUnitNET can inspect dependencies between types and assemblies. | Introduce a temporary forbidden dependency in a fixture. The check should name it. Remove it and confirm a pass. | Assembly checks only see what is loaded into the model. Baseline existing violations before rejecting new ones. |
| Bootstrap and verify | Give the project repeatable commands such as ./scripts/setup, ./scripts/test and ./scripts/verify. Call the same entry point from CI. | Run them from a clean checkout with synthetic fixtures. Deliberately break a required check and confirm the verification command fails. | A command name is a convention. The underlying scripts and fixtures belong to the project. |
| Inspect a browser journey | Use Playwright or an equivalent browser runner. Keep traces from failures and exercise a representative journey with disposable data. | Break a known scenario. Check that the trace contains the rendered state and enough request information to locate the failure. | A browser check covers the environment and paths it ran. Keep faster domain and API tests for the other cases. |
| Trace a runtime failure | Use structured logs with a request ID. For cross-service paths, propagate correlation information and consider OpenTelemetry spans. | Trigger a known failed request in test and trace it from entry point through the dependency that failed. Check what can be safely retained. | Traces may be sampled or incomplete. Protect sensitive fields and credentials from logs and test artefacts. |
| Return trusted evidence | Use a protected pipeline or trusted verification service. Load expectations from approved revisions and run candidate code in an environment with restricted access. | Change a required test or pipeline file in a candidate branch. Confirm that acceptance still uses the protected source and records the exact build. | A branch rule can require a status check. You still need to control who can publish that status and how the job loads its rules. |
| Claim and publish work | Use a durable store that supports conditional writes. Route final publisher credentials through a trusted service. | Race two claims, then let the older run try to update Git, review status or deployment state. | A successful database update cannot make a later remote API call atomic. See where to enforce the claim. |
Browser trace checked 21 November 2026. A disposable Chromium fixture run with Playwright 1.58.2 recorded the rendered cancellation refusal and its request in the trace. Try the check with your own test data before relying on it for a change. Playwright trace viewer
Describe a tool as a contract
Write down the inputs, scope, expected output and side effects. A read-only trace lookup and a protected deployment operation should have different credentials. Narrow inputs give the caller a better chance of using the tool correctly.
operation: read_test_trace
inputs:
environment: isolated-test
trace_id: supplied-by-test-run
returns:
- trace_location
- observed_source_revision
- redacted_failure_summary
errors:
- trace_missing
- environment_not_allowed
side_effects: none
Try the operation against a known trace, a missing trace and an environment the session has no access to. The missing and denied cases should fail clearly. Check what reached the tool’s actual boundary as well as what the session reported.
Language Server Protocol · ArchUnitNET · Playwright trace viewer · OpenTelemetry traces · GitHub Actions secure use