Stepfork v0.2.0 - Failure Minimization and Fork-at-Step Debugging¶
This release adds automatic failure minimization and fork-at-step debugging,
with an optional override system. Existing .sftrace bundles remain
compatible; frozen replay remains the default.
Historical note
These notes were reconstructed after v0.2.0 shipped. The file added during
the v0.2.0 cycle described the v0.1.0a6 contents (trajectory assertions,
async boundaries, and hybrid replay) under a v0.2.0 heading, which did not
match the tag or the GitHub release. The GitHub Release titled
"Failure Minimization and Fork-at-Step Debugging" and the [0.2.0]
CHANGELOG entry above are the authoritative record of what v0.2.0 shipped.
Changes¶
- Failure minimization via
stepfork minimize: dependency-aware delta debugging finds the smallest trace that still reproduces the original failure, preserving parent-child event relationships and structural integrity. Detects exception-based, replay-divergence, and output-mismatch failures, and handles timeouts and nondeterminism. See minimize documentation. - Fork-at-step via
stepfork fork: create new traces at specific execution points (--at-step Nor--at-event ID) while preserving all valid history before the fork point. Provenance is tracked withForkInfo. Overrides of tool results and LLM responses are available through the Python API (OverrideSpec). See fork documentation.
Limitations¶
- Minimization requires replay to fail consistently; highly nondeterministic failures may not minimize reliably.
- Delta debugging uses dependency-preserving search; very large traces (1000+ events) may require many replay attempts.
- Timeout handling uses
SIGALRMon Unix; Windows support is limited. - Fork overrides are Python-API only and can modify outputs
(
tool_result,llm_response), not inputs. - Fork creates modified traces but does not continue execution from the fork point; replay must be invoked separately.
Installation¶
pip install stepfork
Requires Python 3.11, 3.12, or 3.13.
Verification¶
- 523 tests passed on Python 3.12. Combined statement/branch coverage was 90%.
- Ruff, MyPy, strict documentation builds, offline demos, source and wheel builds passed locally.
Feedback¶
https://github.com/utsab345/stepfork/issues