stepfork 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stepfork-0.2.0 → stepfork-0.2.1}/CHANGELOG.md +60 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/PKG-INFO +32 -19
- {stepfork-0.2.0 → stepfork-0.2.1}/README.md +31 -18
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/cli.md +264 -4
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/community/early-adopter-guide.md +3 -4
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/getting-started.md +4 -5
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/index.md +2 -2
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/minimize.md +1 -1
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/pypi-publishing.md +7 -6
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/pytest-export.md +87 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/release-checklist.md +1 -1
- stepfork-0.2.1/docs/releases/v0.2.0.md +58 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/mkdocs.yml +3 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/export.py +3 -10
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/main.py +4 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/minimize.py +29 -10
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/replay.py +1 -0
- stepfork-0.2.1/src/stepfork/cli/run.py +141 -0
- stepfork-0.2.1/src/stepfork/cli/score.py +250 -0
- stepfork-0.2.1/src/stepfork/export/__init__.py +44 -0
- stepfork-0.2.1/src/stepfork/export/mutants.py +296 -0
- stepfork-0.2.1/src/stepfork/export/receipt.py +394 -0
- stepfork-0.2.1/src/stepfork/export/scoring.py +226 -0
- stepfork-0.2.1/src/stepfork/export/testfile.py +178 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/minimize/engine.py +31 -4
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/minimize/models.py +5 -1
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/minimize/signature.py +92 -5
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/version.py +1 -1
- stepfork-0.2.1/tests/golden/agents/__init__.py +20 -0
- stepfork-0.2.1/tests/golden/agents/crash_agent.py +80 -0
- stepfork-0.2.1/tests/golden/agents/fake_llm.py +41 -0
- stepfork-0.2.1/tests/golden/agents/triage_agent.py +85 -0
- stepfork-0.2.1/tests/integration/.gitkeep +0 -0
- stepfork-0.2.1/tests/integration/test_export_pytest_agent_fixtures.py +284 -0
- stepfork-0.2.1/tests/property/.gitkeep +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_export.py +32 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_minimize.py +158 -1
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_replay.py +22 -0
- stepfork-0.2.1/tests/unit/test_cli_run.py +194 -0
- stepfork-0.2.1/tests/unit/test_cli_score.py +149 -0
- stepfork-0.2.1/tests/unit/test_export_mutants.py +187 -0
- stepfork-0.2.1/tests/unit/test_export_scoring.py +194 -0
- stepfork-0.2.1/tests/unit/test_export_testfile.py +138 -0
- stepfork-0.2.1/tests/unit/test_minimize_mode_validation.py +141 -0
- stepfork-0.2.1/tests/unit/test_minimize_unreached_call.py +211 -0
- stepfork-0.2.1/tests/unit/test_replay_contract.py +112 -0
- stepfork-0.2.1/tests/unit/test_replay_contract_changed_args.py +39 -0
- stepfork-0.2.1/tests/unit/test_replay_contract_extra_calls.py +47 -0
- stepfork-0.2.0/src/stepfork/export/__init__.py +0 -20
- {stepfork-0.2.0 → stepfork-0.2.1}/.gitignore +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/CODE_OF_CONDUCT.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/CONTRIBUTING.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/LICENSE +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/SECURITY.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/.gitkeep +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/architecture.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/assets/stepfork-logo.png +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/assets/stepfork-workflow.png +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/concepts.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/development.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/diff.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/examples.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/fork.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/hybrid.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/integrations.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/langgraph.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/openai.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/real-llm-case-study.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/recording.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a1.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a2.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a3.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a4.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a5.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/releases/v0.1.0a6.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/replay.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/security.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/trace-format.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/docs/troubleshooting.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/booking_agent/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/booking_agent/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/booking_agent/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/booking_agent/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/regression/langgraph_failure.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/regression/langgraph_failure.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/regression/langgraph_failure.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/regression/langgraph_failure.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/langgraph_agent/regression/test_langgraph_regression.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/model_decision/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/model_decision/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/model_decision/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/model_decision/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/openai_chat/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/openai_chat/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/openai_chat/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/openai_chat/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/openai_chat/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/quickstart/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/quickstart/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/quickstart/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/quickstart/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/quickstart/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/.gitignore +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/.python-version +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/CASE_STUDY.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/RESULTS.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/counters.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/clean_install_verification.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/divergence.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/fix.diff +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/frozen_replay.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/full_suite.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/green_pass.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/hybrid_comparison.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/evidence/red_failure.txt +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/fix.diff +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/fixtures/deployments.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/fixtures/runbooks.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/fixtures/services.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/provider.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/pyproject.toml +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/scenario_a.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/scenario_b.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/scripts/hybrid_prompt_comparison.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/scripts/record_incident.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/scripts/verify_frozen.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/snapshots/agent_buggy.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/snapshots/agent_fixed.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/tests/test_frozen_replay_guards.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/tests/test_incident_regression.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/tests/test_scenario_a_refactor.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/tests/test_scenario_b_divergence.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/traces/incident-triage.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/traces/incident-triage.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/traces/incident-triage.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/traces/incident-triage.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/real-llm-case-study/uv.lock +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/refund_agent/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/refund_agent/agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/refund_agent/demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/examples/refund_agent/expected.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/pyproject.toml +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/scripts/terminal-demo/README.md +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/__main__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/assertions.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/diff.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/fork.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/inspect.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/cli/validate.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/diff/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/diff/compare.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/diff/engine.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/diff/models.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/export/entrypoint.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/export/generator.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/export/runtime.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/fork/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/fork/engine.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/fork/models.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/fork/overrides.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/inspect/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/inspect/inspector.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/inspect/models.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/integrations/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/integrations/langgraph.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/integrations/openai.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/minimize/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/minimize/delta_debug.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/py.typed +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/recorder/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/recorder/llm.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/recorder/session.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/recorder/tooling.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/replay/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/replay/exceptions.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/replay/plan.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/replay/session.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/canonical.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/hashing.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/integrity.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/jsonable.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/manifest.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/models.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/redaction.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/replay_policy.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/schema.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/storage.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/src/stepfork/trace/validation.py +0 -0
- /stepfork-0.2.0/tests/golden/.gitkeep → /stepfork-0.2.1/tests/__init__.py +0 -0
- {stepfork-0.2.0/tests/integration → stepfork-0.2.1/tests/golden}/.gitkeep +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/README.md +0 -0
- /stepfork-0.2.0/tests/property/.gitkeep → /stepfork-0.2.1/tests/golden/__init__.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/build_fixtures.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_baseline.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_baseline.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_baseline.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_baseline.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_changed.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_changed.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_changed.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/diff_changed.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_llm_run.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_llm_run.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_llm_run.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_llm_run.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_tool_run.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_tool_run.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_tool_run.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/failed_tool_run.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/legacy_v01.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/legacy_v01.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/legacy_v01.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/partial_run.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/partial_run.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/partial_run.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/partial_run.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/successful_run.sftrace/events.jsonl +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/successful_run.sftrace/integrity.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/successful_run.sftrace/manifest.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/golden/successful_run.sftrace/redactions.json +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_docs_assets.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_docs_langgraph_example.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_failure_to_test.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_fork_integration.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_golden_fixtures.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_langgraph_agent.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_minimize_integration.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_model_decision_demo.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_quickstart_failure_to_test.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_refund_failure_to_test.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_secure_trace_roundtrip.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_trace_infrastructure_flow.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/integration/test_trace_roundtrip.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/property/test_trace_properties.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_assertions.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_async_boundaries.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_canonical.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_diff.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_inspect.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_cli_validate.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_diff.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_export.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_fork_edge_cases.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_fork_engine.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_fork_overrides.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_hashing.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_hybrid_replay.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_inspector.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_integrity.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_invalid_bundles.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_jsonable.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_langgraph_integration.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_live_tool_authorization.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_llm_request.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_manifest.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_minimize_delta_debug.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_minimize_signature.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_openai_integration.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_recording_session.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_redaction.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_replay_plan.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_replay_tool.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_schema.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_storage.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_trace_models.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_trace_tool.py +0 -0
- {stepfork-0.2.0 → stepfork-0.2.1}/tests/unit/test_validation.py +0 -0
|
@@ -4,6 +4,66 @@ All notable changes to Stepfork are recorded here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.2.1] - 2026-10-20
|
|
8
|
+
|
|
9
|
+
Minimization correctness fixes, tri-state regression verdicts, and expectation
|
|
10
|
+
scoring on top of v0.2.0. No `.sftrace` format change.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`stepfork run`** executes an exported pytest regression test and writes a
|
|
15
|
+
machine-readable receipt. It reports a tri-state verdict (`passed`, `failed`,
|
|
16
|
+
or `could_not_execute`), so a check that never ran (for example, a missing
|
|
17
|
+
bundle) is not reported as a detected regression. Exit status is 0 for a
|
|
18
|
+
pass, 1 for a failure, and 2 for `could_not_execute`.
|
|
19
|
+
- **`stepfork score`** scores an exported expectation against a mutant battery
|
|
20
|
+
derived from both the recorded run and the claim, reporting whether the
|
|
21
|
+
expectation is claim-pinned (rejects the recorded run) or run-pinned.
|
|
22
|
+
- Claim-drawn mutant battery and expectation scoring internals
|
|
23
|
+
(`export/mutants.py`, `export/scoring.py`, `export/testfile.py`).
|
|
24
|
+
- Receipt writer owned by the runner (`export/receipt.py`) that records the
|
|
25
|
+
bundle digest, test hash, counts, and verdict outside the tree under test.
|
|
26
|
+
- Integration agent fixtures for the export-to-pytest path
|
|
27
|
+
(`tests/golden/agents/{triage_agent,crash_agent,fake_llm}.py`) plus 12
|
|
28
|
+
end-to-end tests covering changed-argument and extra-call divergence and
|
|
29
|
+
secret redaction.
|
|
30
|
+
- Regression test proving minimized failed traces retain `run_end` when
|
|
31
|
+
minimization keeps a non-contiguous event subset.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- `minimize` now validates `--mode` up front and rejects invalid modes with
|
|
36
|
+
exit 2 instead of silently minimizing a failure that never existed.
|
|
37
|
+
- `minimize` refuses failure signatures produced by Stepfork's own errors
|
|
38
|
+
(for example `ReplayPolicyError`) and by a replay that never reached the
|
|
39
|
+
recorded call, rather than treating them as the failure under test.
|
|
40
|
+
- `minimize` no longer drops `run_end` from a minimized failed trace; the CLI
|
|
41
|
+
saves the events the engine actually kept instead of slicing the original
|
|
42
|
+
trace by index.
|
|
43
|
+
- `minimize` no longer prints `Minimal: No` beside an "already minimal"
|
|
44
|
+
warning; a successfully minimized trace reports `Minimal: Yes`.
|
|
45
|
+
- `replay` and `export` accept the `-e` short flag for `--entrypoint`, matching
|
|
46
|
+
`minimize`.
|
|
47
|
+
|
|
48
|
+
### Changed
|
|
49
|
+
|
|
50
|
+
- Export scoring no longer reports a fix-side test as a claim-pinned oracle by
|
|
51
|
+
construction; the verdict describes where the bundle came from.
|
|
52
|
+
- Replay extra-call tests are pinned to `ReplayExhaustedError`.
|
|
53
|
+
|
|
54
|
+
### Documentation
|
|
55
|
+
|
|
56
|
+
- State the frozen-replay export boundary in `docs/pytest-export.md` and add
|
|
57
|
+
divergence troubleshooting.
|
|
58
|
+
- Drop leftover `pip install --pre stepfork` instructions and note the
|
|
59
|
+
fix-side score verdict.
|
|
60
|
+
- Document `stepfork run` and its exit codes.
|
|
61
|
+
|
|
62
|
+
### Limitations
|
|
63
|
+
|
|
64
|
+
- The minimization, fork, and verdict limitations listed under v0.2.0 still
|
|
65
|
+
apply.
|
|
66
|
+
|
|
7
67
|
## [0.2.0] - 2026-10-12
|
|
8
68
|
|
|
9
69
|
Automatic failure minimization and fork-at-step debugging with optional overrides.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: stepfork
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Behavioral regression testing for AI agents.
|
|
5
5
|
Project-URL: Homepage, https://github.com/utsab345/stepfork
|
|
6
6
|
Project-URL: Repository, https://github.com/utsab345/stepfork
|
|
@@ -43,6 +43,16 @@ Description-Content-Type: text/markdown
|
|
|
43
43
|
Local-first behavioral regression testing for AI agents.
|
|
44
44
|
</p>
|
|
45
45
|
|
|
46
|
+
## Who is this for?
|
|
47
|
+
|
|
48
|
+
Stepfork is for developers building AI agents who need to:
|
|
49
|
+
- Turn production failures into reproducible regression tests
|
|
50
|
+
- Debug multi-step agent behaviors without re-running live services
|
|
51
|
+
- Prevent behavioral regressions when fixing bugs or refactoring code
|
|
52
|
+
- Minimize complex failures to their essential reproduction steps
|
|
53
|
+
|
|
54
|
+
If you're writing evals, Stepfork complements them: evals measure model quality across datasets, Stepfork tests that specific agent behaviors don't break.
|
|
55
|
+
|
|
46
56
|
<p align="center">
|
|
47
57
|
<a href="https://pypi.org/project/stepfork/"><img alt="PyPI" src="https://img.shields.io/pypi/v/stepfork?include_prereleases&label=PyPI&color=blue"></a>
|
|
48
58
|
<a href="https://github.com/utsab345/stepfork/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/utsab345/stepfork/actions/workflows/ci.yml/badge.svg"></a>
|
|
@@ -52,7 +62,7 @@ Description-Content-Type: text/markdown
|
|
|
52
62
|
</p>
|
|
53
63
|
|
|
54
64
|
<p align="center">
|
|
55
|
-
Install the
|
|
65
|
+
Install the current release: <code>pip install stepfork</code>
|
|
56
66
|
</p>
|
|
57
67
|
|
|
58
68
|
Product goal:
|
|
@@ -73,6 +83,12 @@ regression test that asserts the corrected behavior. The test fails on the
|
|
|
73
83
|
buggy code and passes on the fix, using the recorded responses instead of live
|
|
74
84
|
services.
|
|
75
85
|
|
|
86
|
+
## See It In Action
|
|
87
|
+
|
|
88
|
+
This terminal recording runs the complete failure-to-test flow:
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
76
92
|
## How Stepfork Works
|
|
77
93
|
|
|
78
94
|
Stepfork turns a failed AI-agent execution into a reproducible pytest
|
|
@@ -132,21 +148,20 @@ change an external system; the allowlist does not sandbox it. See
|
|
|
132
148
|
|
|
133
149
|
## Installation
|
|
134
150
|
|
|
135
|
-
Stepfork is published on PyPI. Install the current
|
|
151
|
+
Stepfork is published on PyPI. Install the current release with:
|
|
136
152
|
|
|
137
153
|
```bash
|
|
138
154
|
# pip
|
|
139
|
-
pip install
|
|
155
|
+
pip install stepfork
|
|
140
156
|
|
|
141
157
|
# uv
|
|
142
|
-
uv pip install
|
|
158
|
+
uv pip install stepfork
|
|
143
159
|
```
|
|
144
160
|
|
|
145
|
-
|
|
146
|
-
install from the tagged GitHub repository:
|
|
161
|
+
You can also install from source or a tagged release:
|
|
147
162
|
|
|
148
163
|
```bash
|
|
149
|
-
pip install "git+https://github.com/utsab345/stepfork.git@v0.1
|
|
164
|
+
pip install "git+https://github.com/utsab345/stepfork.git@v0.2.1"
|
|
150
165
|
```
|
|
151
166
|
|
|
152
167
|
Requires Python 3.11, 3.12, or 3.13. This installs the `stepfork` CLI and the
|
|
@@ -266,12 +281,7 @@ python -m pytest -q test_notify_fixed.py # 1 passed
|
|
|
266
281
|
That regression test reproduces the exact failure you started with, and now
|
|
267
282
|
pins the corrected behavior.
|
|
268
283
|
|
|
269
|
-
##
|
|
270
|
-
|
|
271
|
-
This terminal recording runs the complete failure-to-test flow using the
|
|
272
|
-
minimal example agent:
|
|
273
|
-
|
|
274
|
-

|
|
284
|
+
## Runnable Examples
|
|
275
285
|
|
|
276
286
|
Six runnable demo agents ship in this repository (all fully offline, with a
|
|
277
287
|
fake provider standing in for a real model):
|
|
@@ -345,9 +355,12 @@ business outcome - it lives in `expected.json`, defined by a human.
|
|
|
345
355
|
|---|---|
|
|
346
356
|
| `stepfork validate [PATH] [--partial] [--verify-integrity]` | Check a `.sftrace` bundle structurally (and its integrity). |
|
|
347
357
|
| `stepfork inspect [PATH] [--json] [--events] [--errors-only] [--step N]` | Review a bundle locally. |
|
|
348
|
-
| `stepfork replay [PATH] --entrypoint MODULE:FUNCTION [--mode M]` | Rerun the entrypoint with dependencies answered from the trace. |
|
|
358
|
+
| `stepfork replay [PATH] --entrypoint MODULE:FUNCTION [--mode M] [--allow-live-tool NAME] [--verbose]` | Rerun the entrypoint with dependencies answered from the trace. |
|
|
359
|
+
| `stepfork minimize [PATH] --entrypoint MODULE:FUNCTION [--expect-output FILE] [--mode M] [--output PATH] [--overwrite] [--timeout SECONDS] [--attempts N]` | Minimize a failing trace to the smallest reproducible subset. |
|
|
360
|
+
| `stepfork fork [PATH] [--at-step N \| --at-event ID] [--output PATH] [--overwrite]` | Fork a trace at a specific step (Python API for overrides). |
|
|
361
|
+
| `stepfork score [TEST] [--expect-output PATH] [--bundle PATH] [--json]` | Score an exported expectation against a mutant battery. |
|
|
349
362
|
| `stepfork diff [BASELINE] [CANDIDATE] [--json]` | Compare the behavior of two runs. |
|
|
350
|
-
| `stepfork export [PATH] --pytest --entrypoint MODULE:FUNCTION [--expect-output JSON] [--expect-trajectory JSON] [--output FILE] [--overwrite]` | Generate an executable pytest regression test. |
|
|
363
|
+
| `stepfork export [PATH] --pytest --entrypoint MODULE:FUNCTION [--expect-output JSON] [--expect-trajectory JSON] [--output FILE] [--overwrite] [--mode M] [--allow-live-tool NAME]` | Generate an executable pytest regression test. |
|
|
351
364
|
|
|
352
365
|
The full reference (arguments, examples, expected output, and common errors)
|
|
353
366
|
is in [docs/cli.md](docs/cli.md).
|
|
@@ -399,7 +412,7 @@ sources live in `docs/`.
|
|
|
399
412
|
- [Release checklist](docs/release-checklist.md)
|
|
400
413
|
- [PyPI publishing checklist](docs/pypi-publishing.md)
|
|
401
414
|
- [Early adopter guide](docs/community/early-adopter-guide.md)
|
|
402
|
-
- [
|
|
415
|
+
- [Release notes (v0.2.0)](docs/releases/v0.2.0.md)
|
|
403
416
|
- [Changelog](CHANGELOG.md)
|
|
404
417
|
|
|
405
418
|
## Security and Limitations
|
|
@@ -407,8 +420,8 @@ sources live in `docs/`.
|
|
|
407
420
|
Stepfork is experimental. The API, CLI, and `.sftrace` trace format may change
|
|
408
421
|
before v1.0.
|
|
409
422
|
|
|
410
|
-
- **
|
|
411
|
-
|
|
423
|
+
- **Beta status.** `pip install stepfork` installs the current release; the API
|
|
424
|
+
and trace format may still change before v1.0.
|
|
412
425
|
- **Limited integrations.** Optional adapters cover the OpenAI Python SDK
|
|
413
426
|
(synchronous and asynchronous, non-streaming `chat.completions.create`) and
|
|
414
427
|
LangGraph (synchronous and asynchronous `BaseChatModel` generation and
|
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
Local-first behavioral regression testing for AI agents.
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
|
+
## Who is this for?
|
|
16
|
+
|
|
17
|
+
Stepfork is for developers building AI agents who need to:
|
|
18
|
+
- Turn production failures into reproducible regression tests
|
|
19
|
+
- Debug multi-step agent behaviors without re-running live services
|
|
20
|
+
- Prevent behavioral regressions when fixing bugs or refactoring code
|
|
21
|
+
- Minimize complex failures to their essential reproduction steps
|
|
22
|
+
|
|
23
|
+
If you're writing evals, Stepfork complements them: evals measure model quality across datasets, Stepfork tests that specific agent behaviors don't break.
|
|
24
|
+
|
|
15
25
|
<p align="center">
|
|
16
26
|
<a href="https://pypi.org/project/stepfork/"><img alt="PyPI" src="https://img.shields.io/pypi/v/stepfork?include_prereleases&label=PyPI&color=blue"></a>
|
|
17
27
|
<a href="https://github.com/utsab345/stepfork/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/utsab345/stepfork/actions/workflows/ci.yml/badge.svg"></a>
|
|
@@ -21,7 +31,7 @@
|
|
|
21
31
|
</p>
|
|
22
32
|
|
|
23
33
|
<p align="center">
|
|
24
|
-
Install the
|
|
34
|
+
Install the current release: <code>pip install stepfork</code>
|
|
25
35
|
</p>
|
|
26
36
|
|
|
27
37
|
Product goal:
|
|
@@ -42,6 +52,12 @@ regression test that asserts the corrected behavior. The test fails on the
|
|
|
42
52
|
buggy code and passes on the fix, using the recorded responses instead of live
|
|
43
53
|
services.
|
|
44
54
|
|
|
55
|
+
## See It In Action
|
|
56
|
+
|
|
57
|
+
This terminal recording runs the complete failure-to-test flow:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
45
61
|
## How Stepfork Works
|
|
46
62
|
|
|
47
63
|
Stepfork turns a failed AI-agent execution into a reproducible pytest
|
|
@@ -101,21 +117,20 @@ change an external system; the allowlist does not sandbox it. See
|
|
|
101
117
|
|
|
102
118
|
## Installation
|
|
103
119
|
|
|
104
|
-
Stepfork is published on PyPI. Install the current
|
|
120
|
+
Stepfork is published on PyPI. Install the current release with:
|
|
105
121
|
|
|
106
122
|
```bash
|
|
107
123
|
# pip
|
|
108
|
-
pip install
|
|
124
|
+
pip install stepfork
|
|
109
125
|
|
|
110
126
|
# uv
|
|
111
|
-
uv pip install
|
|
127
|
+
uv pip install stepfork
|
|
112
128
|
```
|
|
113
129
|
|
|
114
|
-
|
|
115
|
-
install from the tagged GitHub repository:
|
|
130
|
+
You can also install from source or a tagged release:
|
|
116
131
|
|
|
117
132
|
```bash
|
|
118
|
-
pip install "git+https://github.com/utsab345/stepfork.git@v0.1
|
|
133
|
+
pip install "git+https://github.com/utsab345/stepfork.git@v0.2.1"
|
|
119
134
|
```
|
|
120
135
|
|
|
121
136
|
Requires Python 3.11, 3.12, or 3.13. This installs the `stepfork` CLI and the
|
|
@@ -235,12 +250,7 @@ python -m pytest -q test_notify_fixed.py # 1 passed
|
|
|
235
250
|
That regression test reproduces the exact failure you started with, and now
|
|
236
251
|
pins the corrected behavior.
|
|
237
252
|
|
|
238
|
-
##
|
|
239
|
-
|
|
240
|
-
This terminal recording runs the complete failure-to-test flow using the
|
|
241
|
-
minimal example agent:
|
|
242
|
-
|
|
243
|
-

|
|
253
|
+
## Runnable Examples
|
|
244
254
|
|
|
245
255
|
Six runnable demo agents ship in this repository (all fully offline, with a
|
|
246
256
|
fake provider standing in for a real model):
|
|
@@ -314,9 +324,12 @@ business outcome - it lives in `expected.json`, defined by a human.
|
|
|
314
324
|
|---|---|
|
|
315
325
|
| `stepfork validate [PATH] [--partial] [--verify-integrity]` | Check a `.sftrace` bundle structurally (and its integrity). |
|
|
316
326
|
| `stepfork inspect [PATH] [--json] [--events] [--errors-only] [--step N]` | Review a bundle locally. |
|
|
317
|
-
| `stepfork replay [PATH] --entrypoint MODULE:FUNCTION [--mode M]` | Rerun the entrypoint with dependencies answered from the trace. |
|
|
327
|
+
| `stepfork replay [PATH] --entrypoint MODULE:FUNCTION [--mode M] [--allow-live-tool NAME] [--verbose]` | Rerun the entrypoint with dependencies answered from the trace. |
|
|
328
|
+
| `stepfork minimize [PATH] --entrypoint MODULE:FUNCTION [--expect-output FILE] [--mode M] [--output PATH] [--overwrite] [--timeout SECONDS] [--attempts N]` | Minimize a failing trace to the smallest reproducible subset. |
|
|
329
|
+
| `stepfork fork [PATH] [--at-step N \| --at-event ID] [--output PATH] [--overwrite]` | Fork a trace at a specific step (Python API for overrides). |
|
|
330
|
+
| `stepfork score [TEST] [--expect-output PATH] [--bundle PATH] [--json]` | Score an exported expectation against a mutant battery. |
|
|
318
331
|
| `stepfork diff [BASELINE] [CANDIDATE] [--json]` | Compare the behavior of two runs. |
|
|
319
|
-
| `stepfork export [PATH] --pytest --entrypoint MODULE:FUNCTION [--expect-output JSON] [--expect-trajectory JSON] [--output FILE] [--overwrite]` | Generate an executable pytest regression test. |
|
|
332
|
+
| `stepfork export [PATH] --pytest --entrypoint MODULE:FUNCTION [--expect-output JSON] [--expect-trajectory JSON] [--output FILE] [--overwrite] [--mode M] [--allow-live-tool NAME]` | Generate an executable pytest regression test. |
|
|
320
333
|
|
|
321
334
|
The full reference (arguments, examples, expected output, and common errors)
|
|
322
335
|
is in [docs/cli.md](docs/cli.md).
|
|
@@ -368,7 +381,7 @@ sources live in `docs/`.
|
|
|
368
381
|
- [Release checklist](docs/release-checklist.md)
|
|
369
382
|
- [PyPI publishing checklist](docs/pypi-publishing.md)
|
|
370
383
|
- [Early adopter guide](docs/community/early-adopter-guide.md)
|
|
371
|
-
- [
|
|
384
|
+
- [Release notes (v0.2.0)](docs/releases/v0.2.0.md)
|
|
372
385
|
- [Changelog](CHANGELOG.md)
|
|
373
386
|
|
|
374
387
|
## Security and Limitations
|
|
@@ -376,8 +389,8 @@ sources live in `docs/`.
|
|
|
376
389
|
Stepfork is experimental. The API, CLI, and `.sftrace` trace format may change
|
|
377
390
|
before v1.0.
|
|
378
391
|
|
|
379
|
-
- **
|
|
380
|
-
|
|
392
|
+
- **Beta status.** `pip install stepfork` installs the current release; the API
|
|
393
|
+
and trace format may still change before v1.0.
|
|
381
394
|
- **Limited integrations.** Optional adapters cover the OpenAI Python SDK
|
|
382
395
|
(synchronous and asynchronous, non-streaming `chat.completions.create`) and
|
|
383
396
|
LangGraph (synchronous and asynchronous `BaseChatModel` generation and
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# CLI Reference
|
|
2
2
|
|
|
3
3
|
The `stepfork` CLI manages `.sftrace` bundles. This page documents every
|
|
4
|
-
command as of v0.1.
|
|
4
|
+
command as of v0.2.1. Run `stepfork --help` for an up-to-date summary.
|
|
5
5
|
|
|
6
6
|
```text
|
|
7
7
|
Usage: stepfork [OPTIONS] COMMAND [ARGS]...
|
|
@@ -22,14 +22,19 @@ Commands:
|
|
|
22
22
|
- [inspect](#inspect)
|
|
23
23
|
- [replay](#replay)
|
|
24
24
|
- [minimize](#minimize)
|
|
25
|
+
- [fork](#fork)
|
|
26
|
+
- [score](#score)
|
|
25
27
|
- [diff](#diff)
|
|
26
28
|
- [export](#export)
|
|
29
|
+
- [run](#run)
|
|
27
30
|
|
|
28
31
|
Exit code conventions:
|
|
29
32
|
|
|
30
33
|
- `0` success (or a replayed failure reproduced intentionally).
|
|
31
34
|
- `1` the run behaved differently, or the operation could not complete safely.
|
|
32
|
-
- `2` invalid, unreadable, or unresolvable input
|
|
35
|
+
- `2` invalid, unreadable, or unresolvable input, or (for `run`) a check that
|
|
36
|
+
could not execute, or (for `minimize`) a replay that never reached the
|
|
37
|
+
failure the trace records.
|
|
33
38
|
- `3` `validate --verify-integrity` on a legacy bundle without integrity
|
|
34
39
|
metadata.
|
|
35
40
|
|
|
@@ -261,7 +266,7 @@ Options:
|
|
|
261
266
|
| Option | Description |
|
|
262
267
|
|---|---|
|
|
263
268
|
| `--expect-output FILE` | JSON file with expected output for comparison. |
|
|
264
|
-
| `--mode`, `-m` | Replay mode: `frozen`, `live`, or `
|
|
269
|
+
| `--mode`, `-m` | Replay mode: `frozen`, `live`, `forbidden`, `manual`, or `derived`. Default: `frozen`. |
|
|
265
270
|
| `--output`, `-o` | Path for the minimized `.sftrace` bundle. Default: `<path>-minimized.sftrace`. |
|
|
266
271
|
| `--overwrite` | Overwrite the output bundle if it exists. Default: `false`. |
|
|
267
272
|
| `--timeout SECONDS` | Timeout in seconds for each replay attempt. Default: `30.0`. |
|
|
@@ -315,11 +320,17 @@ Exit codes:
|
|
|
315
320
|
|
|
316
321
|
- `0` minimization succeeded and produced a valid minimal trace.
|
|
317
322
|
- `1` minimization failed (no failure detected, or minimization error).
|
|
318
|
-
- `2` invalid input, unreadable trace, or unresolvable entrypoint
|
|
323
|
+
- `2` invalid input, unreadable trace, or unresolvable entrypoint, or a replay
|
|
324
|
+
that never reached the failure the trace records.
|
|
319
325
|
|
|
320
326
|
Common errors:
|
|
321
327
|
|
|
322
328
|
- `Failed to detect original failure signature: trace replay completed successfully; no failure to minimize` - the trace does not fail when replayed.
|
|
329
|
+
- `Cannot minimize: the replay failed before reaching any recorded call ...` - the
|
|
330
|
+
recording fails after at least one dependency call and the replay consumed
|
|
331
|
+
none of them, so what it raised is not the recording's failure. Either the
|
|
332
|
+
fixture could not be built, or the change moved the failure earlier than the
|
|
333
|
+
recording. No bundle is written; exception type cannot decide between the two.
|
|
323
334
|
- `cannot resolve entrypoint ...` - the entrypoint specification is invalid or the module cannot be imported.
|
|
324
335
|
- `Minimized trace does not reproduce the original failure` - rare internal error during delta debugging.
|
|
325
336
|
|
|
@@ -368,6 +379,49 @@ Result: BEHAVIOR CHANGED
|
|
|
368
379
|
|
|
369
380
|
---
|
|
370
381
|
|
|
382
|
+
## fork
|
|
383
|
+
|
|
384
|
+
Create a forked trace at a specific execution point, preserving all valid
|
|
385
|
+
history before the fork.
|
|
386
|
+
|
|
387
|
+
```text
|
|
388
|
+
Usage: stepfork fork [OPTIONS] PATH
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
Arguments:
|
|
392
|
+
|
|
393
|
+
| Argument | Description |
|
|
394
|
+
|---|---|
|
|
395
|
+
| `PATH` | `.sftrace` directory bundle to fork. Required. |
|
|
396
|
+
|
|
397
|
+
Options:
|
|
398
|
+
|
|
399
|
+
| Option | Description |
|
|
400
|
+
|---|---|
|
|
401
|
+
| `--at-step <N>` | Fork at this step number (0-indexed). |
|
|
402
|
+
| `--at-event <ID>` | Fork at this event ID. |
|
|
403
|
+
| `--output`, `-o <path>` | Output path. Default: `{stem}-forked.sftrace`. |
|
|
404
|
+
| `--overwrite` | Overwrite the output if it exists. |
|
|
405
|
+
| `--help` | Show command help and exit. |
|
|
406
|
+
|
|
407
|
+
You must specify either `--at-step` or `--at-event`, but not both. The forked
|
|
408
|
+
trace contains all events from step 0 through the fork point inclusive, with a
|
|
409
|
+
new run ID and provenance recorded in `ForkInfo`. Output overrides are available
|
|
410
|
+
through the Python API only. See [fork-at-step debugging](fork.md).
|
|
411
|
+
|
|
412
|
+
```text
|
|
413
|
+
Stepfork Fork
|
|
414
|
+
|
|
415
|
+
Original trace: failure.sftrace
|
|
416
|
+
Agent: booking-agent
|
|
417
|
+
Events: 15
|
|
418
|
+
Fork at step: 2
|
|
419
|
+
|
|
420
|
+
Result: FORKED
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
371
425
|
## export
|
|
372
426
|
|
|
373
427
|
Export an executable pytest regression test from a trace.
|
|
@@ -437,6 +491,212 @@ Common errors:
|
|
|
437
491
|
|
|
438
492
|
---
|
|
439
493
|
|
|
494
|
+
## score
|
|
495
|
+
|
|
496
|
+
Score an exported expectation against a mutant battery derived from the
|
|
497
|
+
recorded run, without executing anything.
|
|
498
|
+
|
|
499
|
+
```text
|
|
500
|
+
Usage: stepfork score [OPTIONS] TEST
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
An exported test asserts `EXPECTATION`. Two things can satisfy that assertion
|
|
504
|
+
and pass the same green run: the claim you meant to check, or a copy of the run
|
|
505
|
+
the recording came from. `score` derives the battery that separates them -- the
|
|
506
|
+
claim-drawn row is the recorded run's own output, and the code-drawn rows
|
|
507
|
+
perturb the expectation's leaves -- and reports which rows the expectation
|
|
508
|
+
rejects.
|
|
509
|
+
|
|
510
|
+
The test file is **read, never executed**: it is parsed with `ast`, JSON-shaped
|
|
511
|
+
values are read with `ast.literal_eval`, and the bundle path is read from the
|
|
512
|
+
expressions the exporter writes. Nothing is imported and no entrypoint runs.
|
|
513
|
+
|
|
514
|
+
Arguments:
|
|
515
|
+
|
|
516
|
+
| Argument | Description |
|
|
517
|
+
|---|---|
|
|
518
|
+
| `TEST` | Exported pytest regression test. Required. |
|
|
519
|
+
|
|
520
|
+
Options:
|
|
521
|
+
|
|
522
|
+
| Option | Description |
|
|
523
|
+
|---|---|
|
|
524
|
+
| `--expect-output <path>` | Score this expectation instead of the one the test embeds. |
|
|
525
|
+
| `--bundle <path>` | Bundle to read the recorded run from. Default: the `TRACE_PATH` the test names. |
|
|
526
|
+
| `--json` | Print the score as JSON. |
|
|
527
|
+
| `--help` | Show command help and exit. |
|
|
528
|
+
|
|
529
|
+
A claim-pinned expectation rejects the recorded run:
|
|
530
|
+
|
|
531
|
+
```text
|
|
532
|
+
battery: 1 claim-drawn + 6 code-drawn mutant(s), derived from test_notify_regression.py and notify.sftrace
|
|
533
|
+
|
|
534
|
+
claim the recorded run killed (first difference at carrier)
|
|
535
|
+
code carrier: with a suffix killed (first difference at carrier)
|
|
536
|
+
code order_id: with a suffix killed (first difference at order_id)
|
|
537
|
+
code should_notify: flipped killed (first difference at should_notify)
|
|
538
|
+
|
|
539
|
+
claim-pinned: rejected 7/7 mutants, including every claim-drawn mutant
|
|
540
|
+
pins: 1 live (carrier); 2 leaf(s) reproduce the run (order_id, should_notify)
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
An expectation that has drifted into the recording accepts it, which is the
|
|
544
|
+
finding: the generated test would pass against the code that produced the
|
|
545
|
+
recording.
|
|
546
|
+
|
|
547
|
+
```text
|
|
548
|
+
run-pinned: the expectation accepts the claim-drawn mutant(s) the recorded run, so it encodes the recorded run rather than the claim
|
|
549
|
+
The generated test passes against the code that produced the recording. Treat the expectation as an unapproved oracle.
|
|
550
|
+
pins: 0 live (none); 3 leaf(s) reproduce the run (carrier, order_id, should_notify)
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
The `pins` line answers a second question the verdict does not: which leaves
|
|
554
|
+
carry a value the run did not produce (live pins), and which merely reproduce
|
|
555
|
+
the run. A leaf that reproduces the run is not a defect -- a fix does not change
|
|
556
|
+
every field -- but it is not evidence of anchoring either.
|
|
557
|
+
|
|
558
|
+
Exit codes:
|
|
559
|
+
|
|
560
|
+
| Code | Meaning |
|
|
561
|
+
|---|---|
|
|
562
|
+
| `0` | `claim_pinned`: the expectation rejects the recorded run. |
|
|
563
|
+
| `1` | `run_pinned`: the expectation accepts it; it is an unapproved oracle. |
|
|
564
|
+
| `2` | Cannot answer: no expectation to score, no recorded run to derive a claim-drawn mutant from, or a test file that cannot be read. |
|
|
565
|
+
|
|
566
|
+
Common errors:
|
|
567
|
+
|
|
568
|
+
- `<path>:<line>: EXPECTATION is not a literal value ...` -- the test was
|
|
569
|
+
hand-edited; `score` reads the literals the export wrote.
|
|
570
|
+
- `cannot read the bundle path from this expression; pass --bundle ...` -- the
|
|
571
|
+
`TRACE_PATH` expression is outside the shapes the exporter writes.
|
|
572
|
+
- `trace bundle not found: <path>` -- the bundle the test names is not at that
|
|
573
|
+
path. Copy it beside the test, or pass `--bundle`.
|
|
574
|
+
- `no expectation to score` -- the test asserts the recorded run without an
|
|
575
|
+
`--expect-output`, so there is no claim for a mutant to separate from it.
|
|
576
|
+
|
|
577
|
+
## run
|
|
578
|
+
|
|
579
|
+
Run an exported regression test and write the receipt yourself.
|
|
580
|
+
|
|
581
|
+
```text
|
|
582
|
+
Usage: stepfork run [OPTIONS] TEST
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
`stepfork export` writes a pytest file; this command runs it and classifies the
|
|
586
|
+
outcome. The classification is the point: a check that **could not execute** --
|
|
587
|
+
the bundle it names is not there, a fixture cannot be built, nothing was
|
|
588
|
+
collected -- is reported as `could_not_execute`, which is neither a pass nor a
|
|
589
|
+
caught regression.
|
|
590
|
+
|
|
591
|
+
pytest's exit status does not carry that distinction. Measured on pytest 9.1.1
|
|
592
|
+
against the file `stepfork export` writes:
|
|
593
|
+
|
|
594
|
+
| Case | pytest exit | JUnit kind |
|
|
595
|
+
|---|---|---|
|
|
596
|
+
| the agent's behaviour changed | 1 | `failure` |
|
|
597
|
+
| the trace bundle is missing | 1 | `failure` |
|
|
598
|
+
| a dependency is absent | 1 | `failure` |
|
|
599
|
+
| a fixture cannot be built | 1 | `error` |
|
|
600
|
+
| collection failed | 2 | `error` |
|
|
601
|
+
| no tests were collected | 5 | (none) |
|
|
602
|
+
|
|
603
|
+
The first two rows are identical, so a pipeline that keys on either one reports
|
|
604
|
+
a missing artifact as a caught regression. `run` resolves the bundle **before**
|
|
605
|
+
launching pytest, so that row becomes `could_not_execute` and no failure is
|
|
606
|
+
manufactured for it.
|
|
607
|
+
|
|
608
|
+
The receipt is written by the runner after the child process exits -- never by
|
|
609
|
+
the test -- and it names the three inputs the verdict rests on: the raw exit
|
|
610
|
+
status, a digest of the bundle, and a hash of the test file.
|
|
611
|
+
|
|
612
|
+
Arguments:
|
|
613
|
+
|
|
614
|
+
| Argument | Description |
|
|
615
|
+
|---|---|
|
|
616
|
+
| `TEST` | The pytest file `stepfork export` wrote. Required. |
|
|
617
|
+
|
|
618
|
+
Options:
|
|
619
|
+
|
|
620
|
+
| Option | Description |
|
|
621
|
+
|---|---|
|
|
622
|
+
| `--bundle <path>` | Name the `.sftrace` bundle instead of reading `TRACE_PATH` from the test. |
|
|
623
|
+
| `--receipt <path>` | Write a JSON receipt of what the runner observed. |
|
|
624
|
+
| `--json` | Print the receipt to stdout. |
|
|
625
|
+
| `--pytest-arg <str>` | Extra argument for the pytest subprocess. Repeat per argument. |
|
|
626
|
+
| `--timeout-seconds <float>` | Stop the check after this long and report `could_not_execute`. |
|
|
627
|
+
| `--help` | Show command help and exit. |
|
|
628
|
+
|
|
629
|
+
A passing run:
|
|
630
|
+
|
|
631
|
+
```bash
|
|
632
|
+
stepfork run test_notify_regression.py --receipt receipts/notify.json
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
```text
|
|
636
|
+
Test test_notify_regression.py
|
|
637
|
+
Test sha256 129694b27992161b
|
|
638
|
+
Bundle notify.sftrace
|
|
639
|
+
Bundle digest 7f3eaeed6a9820ce
|
|
640
|
+
pytest exit 0
|
|
641
|
+
Collected 1 test(s), 0 failure(s), 0 error(s), 0 skipped
|
|
642
|
+
|
|
643
|
+
Verdict: PASSED
|
|
644
|
+
Receipt: receipts/notify.json
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
The same test with its bundle removed says what happened instead of reporting a
|
|
648
|
+
regression:
|
|
649
|
+
|
|
650
|
+
```text
|
|
651
|
+
Verdict: COULD NOT EXECUTE
|
|
652
|
+
Reason: bundle_missing
|
|
653
|
+
the bundle this test names is not there: notify.sftrace; the check cannot run,
|
|
654
|
+
so this is not a regression
|
|
655
|
+
The check did not execute, so this run says nothing about the agent's behaviour.
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
The receipt:
|
|
659
|
+
|
|
660
|
+
```json
|
|
661
|
+
{
|
|
662
|
+
"receipt_version": 1,
|
|
663
|
+
"verdict": "could_not_execute",
|
|
664
|
+
"reason": "bundle_missing",
|
|
665
|
+
"exit_status": null,
|
|
666
|
+
"bundle": "notify.sftrace",
|
|
667
|
+
"bundle_digest": null,
|
|
668
|
+
"test": "test_notify_regression.py",
|
|
669
|
+
"test_sha256": "129694b2...",
|
|
670
|
+
"counts": {"tests": 0, "failures": 0, "errors": 0, "skipped": 0},
|
|
671
|
+
"command": [],
|
|
672
|
+
"duration_ms": 0,
|
|
673
|
+
"stepfork_version": "0.2.0",
|
|
674
|
+
"created_at": "2026-10-18T16:53:50Z"
|
|
675
|
+
}
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
Exit codes:
|
|
679
|
+
|
|
680
|
+
| Code | Meaning |
|
|
681
|
+
|---|---|
|
|
682
|
+
| `0` | `passed`: the check ran and agreed. |
|
|
683
|
+
| `1` | `failed`: the check ran and disagreed -- a caught regression. |
|
|
684
|
+
| `2` | `could_not_execute`: the check never ran, or could not be built. |
|
|
685
|
+
|
|
686
|
+
The `reason` field names which: `bundle_missing`, `bundle_unreadable`,
|
|
687
|
+
`check_error` (a fixture or collection error),
|
|
688
|
+
`no_tests_collected`, `pytest_unavailable`, `pytest_error`, `report_missing`.
|
|
689
|
+
|
|
690
|
+
**What `run` does not catch.** The runner pre-checks the artifacts it can name
|
|
691
|
+
from the test's literals -- the bundle. It does not pre-check what the test body
|
|
692
|
+
*imports*: an entrypoint the local tree cannot resolve, or a dependency
|
|
693
|
+
imported inside the test, raises inside the test body, and pytest reports an
|
|
694
|
+
exception raised there as `failure`, exactly as it reports a changed return
|
|
695
|
+
value. Those still read as `failed`. Resolving `ENTRYPOINT` before the launch,
|
|
696
|
+
the way the bundle is resolved, is the follow-up that would move them too.
|
|
697
|
+
|
|
698
|
+
---
|
|
699
|
+
|
|
440
700
|
## Error handling
|
|
441
701
|
|
|
442
702
|
Command output is sanitized before display: secrets in trace-derived text
|
|
@@ -32,14 +32,13 @@ Stepfork is on PyPI. Install the current alpha:
|
|
|
32
32
|
```bash
|
|
33
33
|
python -m venv .venv
|
|
34
34
|
source .venv/bin/activate
|
|
35
|
-
pip install
|
|
35
|
+
pip install stepfork
|
|
36
36
|
pip install pytest
|
|
37
37
|
stepfork --version
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
install
|
|
42
|
-
`pip install "git+https://github.com/utsab345/stepfork.git@v0.1.0a6"`.
|
|
40
|
+
Alternatively, install the tagged repository build:
|
|
41
|
+
`pip install "git+https://github.com/utsab345/stepfork.git@v0.2.1"`.
|
|
43
42
|
|
|
44
43
|
Requires Python 3.11, 3.12, or 3.13.
|
|
45
44
|
|
|
@@ -6,17 +6,16 @@ This guide installs Stepfork and walks through the full workflow with a
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
|
-
Install the current
|
|
9
|
+
Install the current release from PyPI:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
pip install
|
|
12
|
+
pip install stepfork
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
the tagged GitHub repository instead:
|
|
15
|
+
To install from the tagged GitHub repository instead:
|
|
17
16
|
|
|
18
17
|
```bash
|
|
19
|
-
pip install "git+https://github.com/utsab345/stepfork.git@v0.1
|
|
18
|
+
pip install "git+https://github.com/utsab345/stepfork.git@v0.2.1"
|
|
20
19
|
```
|
|
21
20
|
|
|
22
21
|
Requires Python 3.11, 3.12, or 3.13. This installs the `stepfork` CLI and the
|
|
@@ -55,7 +55,7 @@ all run locally.
|
|
|
55
55
|
|
|
56
56
|
## Get started
|
|
57
57
|
|
|
58
|
-
Stepfork is on PyPI: `pip install
|
|
58
|
+
Stepfork is on PyPI: `pip install stepfork`. Then run a 60-second example
|
|
59
59
|
and learn the core workflow in the [Getting started](getting-started.md) guide.
|
|
60
60
|
The [examples](examples.md) page walks through the five runnable demo agents
|
|
61
61
|
in this repository.
|
|
@@ -73,4 +73,4 @@ in this repository.
|
|
|
73
73
|
|
|
74
74
|
Stepfork is experimental. See the
|
|
75
75
|
[changelog](https://github.com/utsab345/stepfork/blob/main/CHANGELOG.md) and
|
|
76
|
-
the [v0.
|
|
76
|
+
the [v0.2.0 release notes](releases/v0.2.0.md) for what shipped.
|