Agent Signal · 6 November 2026 · 10-minute optional lab
> Verification status: Source-reviewed against the project's README and v0.6.0 release dated 14 September 2026. The commands and outputs below are maintainer-documented examples, not executed by this publication process. No model, API or agent was run.
Goal
Use ToolReplay to inspect a saved tool-call transcript after a run. It detects some redundant calls, identical inputs with contradictory recorded results, and actions outside a supplied allowlist. This is an offline audit, not a preventive security boundary. A captured transcript can be incomplete or forged.
Primary sources: README, v0.6.0 release, MIT license.
Prerequisites and cost
- Optional personal sandbox with Python 3.11 or newer and git. No computer is needed to publish Agent Signal; only readers choosing to run the lab need one.
- Free MIT-licensed source. ToolReplay says it has no third-party runtime dependencies and performs no network requests while auditing. Downloading the source initially requires network access.
- The sample is synthetic; do not feed private logs or real credentials to a public tool or paste them into an issue.
- No model access, API key, subscription, billed inference or GitHub Actions workflow is necessary.
Step 1 — inspect the sample and version
The commands below are for a reader's own isolated environment, not performed here:
python3 --version
git clone --depth 1 https://github.com/brandynfisher/ToolReplay.git
cd ToolReplay
python3 -m toolreplay versionExpected documented version line: toolreplay 0.6.0. If the repository has advanced, record the commit/version you actually used; do not assume the 14 September tag is the current tip.
Step 2 — replay captured calls
python3 -m toolreplay replay samples/session-dirty.jsonlFor the repository's bundled six-call dirty sample, its README documents:
calls: 6
divergence: index 5
findings: 2
index 2: redundant-call: tool 'read_file' repeats the identical call at index 1 with no state change between them
index 5: non-determinism: tool 'search' returned a different response than the identical call at index 3The CLI exits 1 when findings are present. That is expected for this intentionally dirty sample; it is not evidence the tool failed.
Step 3 — check declared authority separately
python3 -m toolreplay scope samples/session-dirty.jsonl samples/scope.jsonThe documented result is:
calls: 6
findings: 1
index 4: permission-overreach: tool 'write_file' is not in the declared scope for agent 'docs-reader'This flags a recorded write by a declared read-only agent. It does not block that write, verify the underlying file state, or establish why the agent attempted it. Do not run real actions for this lab.
What to look for and score (0–5)
Give one point for each: (1) version and sample origin recorded; (2) six valid call records parsed; (3) repeated read at index 2 identified; (4) conflicting repeated search response at index 5 distinguished from a mere duplicate; (5) unapproved write at index 4 identified using the separate scope file. Report any mismatch verbatim rather than inventing success.
Troubleshooting
No module named toolreplay: run from the checked-out repository root, or install only into a disposable virtual environment after reviewing its source.python3too old: use Python 3.11+.- Exit code 1 on dirty samples: expected findings. Exit 2 indicates usage/parse errors per the author's documentation.
- Missing samples: check repository revision and paths, then read README for any changed filename.
- Unexpected count/index: compare exact sample bytes and tool version. Never silently repair or rewrite audit evidence.
Limitations and further evaluation
ToolReplay detects contradictions within the captured file, not real-world truth. Same inputs can legitimately produce different outputs when state changes or time passes; its conservative rules can miss waste. To evaluate real agents later, pair it with trusted tool-boundary logs, blinded labels, policy enforcement and carefully authorized replay. No such evaluation was performed today.
Tested status for this edition: documentation-reviewed only; installation, sample replay, scope audit, verification and model inference were not executed.