pytracer-replay
Layer 4 of pyTracer: reconstructs a past agent run deterministically, injects recorded tool/model responses instead of live calls, runs assertions, diffs two runs, and classifies a cross-branch reproduction as fixed / still failing / diverged.
from pytracer_replay import MockSet, ReplayEngine, ReplayMode, classify
import pytracer_sdk as pytracer
# 1. Build a mock set from a captured trace (its recorded tool/model outputs).
mocks = MockSet.from_trace(recorded_spans)
# 2. Replay the agent deterministically — tools and model are mocked.
engine = ReplayEngine(mode=ReplayMode.FULL)
result = engine.replay(lambda: agent_entrypoint(task), mocks)
# 3. Assert, diff, fingerprint, or classify against another branch's run.
Modes: FULL (recorded model + tools), PARTIAL (recorded tools, live model),
LIVE (both live, for drift detection).
Metadata
Release files for pytracer-replay 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytracer_replay-0.1.0.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytracer_replay-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.8 kB
Release files / pytracer_replay-0.1.0.tar.gz
| Download URL | pytracer_replay-0.1.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b612738bd8e0c8ad75e0f9b7394eff04af7bfdf8f5040823b6fb7d524b5eb03
|
|
BLAKE2b-256 checksum How to use checksums |
e1ac45bb0478b977a8f138ddc89e2cb4980943fd492dac642b941c9338968bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / pytracer_replay-0.1.0-py3-none-any.whl
| Download URL | pytracer_replay-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ce343ae3699d19cdd873dba9e3478ab6bbaa9da4ae12ac853fec55e0c7a534f
|
|
BLAKE2b-256 checksum How to use checksums |
9bcfe14b1aee371dee0f2d0ed4cba3c48c38a5926d7522c9e1ae4be8c615128f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|