stepfork 0.1.0a6__tar.gz → 0.2.0__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.1.0a6 → stepfork-0.2.0}/.gitignore +1 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/CHANGELOG.md +48 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/PKG-INFO +41 -8
- {stepfork-0.1.0a6 → stepfork-0.2.0}/README.md +40 -7
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/cli.md +87 -0
- stepfork-0.2.0/docs/fork.md +545 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/getting-started.md +4 -4
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/hybrid.md +9 -3
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/langgraph.md +138 -19
- stepfork-0.2.0/docs/minimize.md +266 -0
- stepfork-0.2.0/docs/real-llm-case-study.md +145 -0
- stepfork-0.2.0/examples/real-llm-case-study/.gitignore +13 -0
- stepfork-0.2.0/examples/real-llm-case-study/.python-version +1 -0
- stepfork-0.2.0/examples/real-llm-case-study/CASE_STUDY.md +348 -0
- stepfork-0.2.0/examples/real-llm-case-study/README.md +144 -0
- stepfork-0.2.0/examples/real-llm-case-study/RESULTS.md +160 -0
- stepfork-0.2.0/examples/real-llm-case-study/agent.py +292 -0
- stepfork-0.2.0/examples/real-llm-case-study/counters.py +19 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/README.md +25 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/clean_install_verification.txt +152 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/divergence.txt +6 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/fix.diff +30 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/frozen_replay.txt +32 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/full_suite.txt +2 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/green_pass.txt +2 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/hybrid_comparison.json +54 -0
- stepfork-0.2.0/examples/real-llm-case-study/evidence/red_failure.txt +110 -0
- stepfork-0.2.0/examples/real-llm-case-study/expected.json +20 -0
- stepfork-0.2.0/examples/real-llm-case-study/fix.diff +30 -0
- stepfork-0.2.0/examples/real-llm-case-study/fixtures/deployments.json +29 -0
- stepfork-0.2.0/examples/real-llm-case-study/fixtures/runbooks.json +16 -0
- stepfork-0.2.0/examples/real-llm-case-study/fixtures/services.json +44 -0
- stepfork-0.2.0/examples/real-llm-case-study/provider.py +147 -0
- stepfork-0.2.0/examples/real-llm-case-study/pyproject.toml +22 -0
- stepfork-0.2.0/examples/real-llm-case-study/scenario_a.py +32 -0
- stepfork-0.2.0/examples/real-llm-case-study/scenario_b.py +41 -0
- stepfork-0.2.0/examples/real-llm-case-study/scripts/hybrid_prompt_comparison.py +70 -0
- stepfork-0.2.0/examples/real-llm-case-study/scripts/record_incident.py +63 -0
- stepfork-0.2.0/examples/real-llm-case-study/scripts/verify_frozen.py +46 -0
- stepfork-0.2.0/examples/real-llm-case-study/snapshots/agent_buggy.py +299 -0
- stepfork-0.2.0/examples/real-llm-case-study/snapshots/agent_fixed.py +292 -0
- stepfork-0.2.0/examples/real-llm-case-study/tests/test_frozen_replay_guards.py +42 -0
- stepfork-0.2.0/examples/real-llm-case-study/tests/test_incident_regression.py +68 -0
- stepfork-0.2.0/examples/real-llm-case-study/tests/test_scenario_a_refactor.py +23 -0
- stepfork-0.2.0/examples/real-llm-case-study/tests/test_scenario_b_divergence.py +32 -0
- stepfork-0.2.0/examples/real-llm-case-study/traces/incident-triage.sftrace/events.jsonl +14 -0
- stepfork-0.2.0/examples/real-llm-case-study/traces/incident-triage.sftrace/integrity.json +9 -0
- stepfork-0.2.0/examples/real-llm-case-study/traces/incident-triage.sftrace/manifest.json +21 -0
- stepfork-0.2.0/examples/real-llm-case-study/uv.lock +636 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/mkdocs.yml +1 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/pyproject.toml +6 -0
- stepfork-0.2.0/src/stepfork/cli/fork.py +152 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/main.py +4 -0
- stepfork-0.2.0/src/stepfork/cli/minimize.py +220 -0
- stepfork-0.2.0/src/stepfork/fork/__init__.py +25 -0
- stepfork-0.2.0/src/stepfork/fork/engine.py +258 -0
- stepfork-0.2.0/src/stepfork/fork/models.py +76 -0
- stepfork-0.2.0/src/stepfork/fork/overrides.py +186 -0
- stepfork-0.2.0/src/stepfork/minimize/__init__.py +27 -0
- stepfork-0.2.0/src/stepfork/minimize/delta_debug.py +251 -0
- stepfork-0.2.0/src/stepfork/minimize/engine.py +278 -0
- stepfork-0.2.0/src/stepfork/minimize/models.py +151 -0
- stepfork-0.2.0/src/stepfork/minimize/signature.py +222 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/version.py +1 -1
- stepfork-0.2.0/tests/golden/successful_run.sftrace/redactions.json +4 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_docs_assets.py +4 -3
- stepfork-0.2.0/tests/integration/test_docs_langgraph_example.py +110 -0
- stepfork-0.2.0/tests/integration/test_fork_integration.py +169 -0
- stepfork-0.2.0/tests/integration/test_minimize_integration.py +193 -0
- stepfork-0.2.0/tests/unit/test_cli_minimize.py +243 -0
- stepfork-0.2.0/tests/unit/test_fork_edge_cases.py +209 -0
- stepfork-0.2.0/tests/unit/test_fork_engine.py +214 -0
- stepfork-0.2.0/tests/unit/test_fork_overrides.py +212 -0
- stepfork-0.2.0/tests/unit/test_minimize_delta_debug.py +199 -0
- stepfork-0.2.0/tests/unit/test_minimize_signature.py +180 -0
- stepfork-0.1.0a6/src/stepfork/fork/__init__.py +0 -4
- stepfork-0.1.0a6/src/stepfork/minimize/__init__.py +0 -4
- {stepfork-0.1.0a6 → stepfork-0.2.0}/CODE_OF_CONDUCT.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/CONTRIBUTING.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/LICENSE +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/SECURITY.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/.gitkeep +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/architecture.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/assets/stepfork-logo.png +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/assets/stepfork-workflow.png +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/community/early-adopter-guide.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/concepts.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/development.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/diff.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/examples.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/index.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/integrations.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/openai.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/pypi-publishing.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/pytest-export.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/recording.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/release-checklist.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a1.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a2.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a3.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a4.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a5.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/releases/v0.1.0a6.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/replay.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/security.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/trace-format.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/docs/troubleshooting.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/booking_agent/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/booking_agent/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/booking_agent/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/booking_agent/expected.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/expected.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/regression/langgraph_failure.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/regression/langgraph_failure.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/regression/langgraph_failure.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/regression/langgraph_failure.sftrace/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/langgraph_agent/regression/test_langgraph_regression.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/model_decision/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/model_decision/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/model_decision/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/model_decision/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/openai_chat/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/openai_chat/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/openai_chat/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/openai_chat/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/openai_chat/expected.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/quickstart/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/quickstart/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/quickstart/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/quickstart/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/quickstart/expected.json +0 -0
- {stepfork-0.1.0a6/tests/golden/diff_baseline.sftrace → stepfork-0.2.0/examples/real-llm-case-study/traces/incident-triage.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/refund_agent/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/refund_agent/agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/refund_agent/demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/examples/refund_agent/expected.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/scripts/terminal-demo/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/__main__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/assertions.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/diff.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/export.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/inspect.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/replay.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/cli/validate.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/diff/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/diff/compare.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/diff/engine.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/diff/models.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/export/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/export/entrypoint.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/export/generator.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/export/runtime.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/inspect/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/inspect/inspector.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/inspect/models.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/integrations/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/integrations/langgraph.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/integrations/openai.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/py.typed +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/recorder/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/recorder/llm.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/recorder/session.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/recorder/tooling.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/replay/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/replay/exceptions.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/replay/plan.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/replay/session.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/__init__.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/canonical.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/hashing.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/integrity.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/jsonable.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/manifest.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/models.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/redaction.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/replay_policy.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/schema.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/storage.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/src/stepfork/trace/validation.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/.gitkeep +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/README.md +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/build_fixtures.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_baseline.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_baseline.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_baseline.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6/tests/golden/diff_changed.sftrace → stepfork-0.2.0/tests/golden/diff_baseline.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_changed.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_changed.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/diff_changed.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6/tests/golden/failed_llm_run.sftrace → stepfork-0.2.0/tests/golden/diff_changed.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_llm_run.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_llm_run.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_llm_run.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6/tests/golden/legacy_v01.sftrace → stepfork-0.2.0/tests/golden/failed_llm_run.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_tool_run.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_tool_run.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_tool_run.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/failed_tool_run.sftrace/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/legacy_v01.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/legacy_v01.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6/tests/golden/partial_run.sftrace → stepfork-0.2.0/tests/golden/legacy_v01.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/partial_run.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/partial_run.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/partial_run.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6/tests/golden/successful_run.sftrace → stepfork-0.2.0/tests/golden/partial_run.sftrace}/redactions.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/successful_run.sftrace/events.jsonl +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/successful_run.sftrace/integrity.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/golden/successful_run.sftrace/manifest.json +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/.gitkeep +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_failure_to_test.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_golden_fixtures.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_langgraph_agent.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_model_decision_demo.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_quickstart_failure_to_test.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_refund_failure_to_test.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_secure_trace_roundtrip.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_trace_infrastructure_flow.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/integration/test_trace_roundtrip.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/property/.gitkeep +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/property/test_trace_properties.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_assertions.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_async_boundaries.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_canonical.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli_diff.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli_export.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli_inspect.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli_replay.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_cli_validate.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_diff.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_export.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_hashing.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_hybrid_replay.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_inspector.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_integrity.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_invalid_bundles.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_jsonable.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_langgraph_integration.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_live_tool_authorization.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_llm_request.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_manifest.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_openai_integration.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_recording_session.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_redaction.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_replay_plan.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_replay_tool.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_schema.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_storage.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_trace_models.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_trace_tool.py +0 -0
- {stepfork-0.1.0a6 → stepfork-0.2.0}/tests/unit/test_validation.py +0 -0
|
@@ -4,6 +4,54 @@ 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.0] - 2026-10-12
|
|
8
|
+
|
|
9
|
+
Automatic failure minimization and fork-at-step debugging with optional overrides.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Failure minimization** via `stepfork minimize` command that automatically
|
|
14
|
+
finds the smallest reproducible trace preserving the original failure.
|
|
15
|
+
- Dependency-aware delta debugging algorithm that respects parent-child event
|
|
16
|
+
relationships and structural integrity.
|
|
17
|
+
- Failure signature detection supporting exception-based, replay-divergence,
|
|
18
|
+
and output-mismatch failures.
|
|
19
|
+
- Minimization orchestrator with timeout handling, nondeterminism detection,
|
|
20
|
+
and iteration limits.
|
|
21
|
+
- Comprehensive unit tests, integration tests, and CLI tests for minimization.
|
|
22
|
+
- Complete documentation in `docs/minimize.md` and updated CLI reference.
|
|
23
|
+
- **Fork-at-step** debugging via `stepfork fork` command that creates new traces
|
|
24
|
+
at specific execution points while preserving all valid history before the fork.
|
|
25
|
+
- Fork points can be specified by step number (`--at-step N`) or event ID
|
|
26
|
+
(`--at-event ID`).
|
|
27
|
+
- Typed override system (Python API only) to modify tool_result and llm_response
|
|
28
|
+
outputs in forked traces via `OverrideSpec`.
|
|
29
|
+
- Provenance tracking with `ForkInfo` metadata linking forked traces to parent
|
|
30
|
+
trace, fork point, timestamp, and applied overrides.
|
|
31
|
+
- Structural validation ensures no broken parent dependencies and maintains
|
|
32
|
+
trace integrity.
|
|
33
|
+
- 43 fork-specific tests covering fork engine, overrides, edge cases, and
|
|
34
|
+
integration scenarios.
|
|
35
|
+
- Complete documentation in `docs/fork.md` with CLI and Python API examples.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- README roadmap updated to reflect v0.2 implementation status.
|
|
40
|
+
|
|
41
|
+
### Limitations
|
|
42
|
+
|
|
43
|
+
- Minimization requires replay to fail consistently. Highly nondeterministic
|
|
44
|
+
failures may not minimize reliably.
|
|
45
|
+
- Delta debugging uses binary search with dependency preservation. Very large
|
|
46
|
+
traces (1000+ events) may require significant replay attempts.
|
|
47
|
+
- Timeout handling uses SIGALRM on Unix systems; Windows support is limited.
|
|
48
|
+
- Fork-at-step overrides are only available via Python API, not CLI.
|
|
49
|
+
- Fork creates modified traces but does not automatically continue execution from
|
|
50
|
+
the fork point; replay must be invoked separately.
|
|
51
|
+
- Overrides can only modify outputs (tool_result, llm_response), not inputs
|
|
52
|
+
(tool_call arguments or llm_request prompts).
|
|
53
|
+
- No automatic divergence detection when replaying forked traces with overrides.
|
|
54
|
+
|
|
7
55
|
## [0.1.0a6] - 2026-10-10
|
|
8
56
|
|
|
9
57
|
Behavioral assertions and selective live-model evaluation, with no trace
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: stepfork
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
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
|
|
@@ -93,6 +93,10 @@ Compare → Define Expected Behavior → Export pytest → Verify Fix
|
|
|
93
93
|
you want frozen with `@trace_tool` or `llm_request`.
|
|
94
94
|
- **Behavioral diff** compares a buggy run against a corrected run and reports
|
|
95
95
|
exactly which behaviors changed.
|
|
96
|
+
- **Failure minimization** automatically finds the smallest trace that still
|
|
97
|
+
reproduces a failure via dependency-aware delta debugging.
|
|
98
|
+
- **Fork-at-step** creates new traces at specific execution points with optional
|
|
99
|
+
output overrides for "what-if" debugging scenarios.
|
|
96
100
|
- **pytest export** turns a recorded failure into a regression test that
|
|
97
101
|
asserts the corrected behavior.
|
|
98
102
|
- **Best-effort redaction** of known credential-shaped values at record time.
|
|
@@ -303,6 +307,38 @@ shows the limit of frozen replay and a selected live LLM in hybrid replay.
|
|
|
303
307
|
The demos print real results from real subprocesses; they never fabricate
|
|
304
308
|
output.
|
|
305
309
|
|
|
310
|
+
## Real-LLM Case Study: The Model Was Right, the Agent Was Wrong
|
|
311
|
+
|
|
312
|
+
A complete, offline-reproducible example of Stepfork in practice. A real Google
|
|
313
|
+
Gemini 2.5 Flash request (`gemini-2.5-flash` through the OpenAI SDK adapter)
|
|
314
|
+
correctly classified a synthetic production checkout incident as **P0**. A
|
|
315
|
+
deliberately introduced three-line Python postprocessing bug then downgraded
|
|
316
|
+
that to **P1** and disabled escalation. Stepfork recorded the LLM interaction
|
|
317
|
+
and the instrumented tool calls, and a generated pytest regression test failed
|
|
318
|
+
against the buggy logic and passed after the fix - using the same recorded
|
|
319
|
+
trace.
|
|
320
|
+
|
|
321
|
+
Frozen replay made **zero** additional model requests and executed **zero**
|
|
322
|
+
instrumented tool bodies.
|
|
323
|
+
|
|
324
|
+
```text
|
|
325
|
+
Real Gemini response: P0
|
|
326
|
+
Buggy application: P1, escalation=false
|
|
327
|
+
Regression test: FAILED
|
|
328
|
+
|
|
329
|
+
Fixed application: P0, escalation=true
|
|
330
|
+
Same regression test: PASSED
|
|
331
|
+
|
|
332
|
+
Additional LLM calls during frozen replay: 0
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
Start with the example
|
|
336
|
+
[README](examples/real-llm-case-study/README.md) or read the full
|
|
337
|
+
[CASE_STUDY.md](examples/real-llm-case-study/CASE_STUDY.md). The incident and
|
|
338
|
+
operational data are synthetic and the application bug was introduced on
|
|
339
|
+
purpose; only the model request was real. Stepfork does not know the correct
|
|
340
|
+
business outcome - it lives in `expected.json`, defined by a human.
|
|
341
|
+
|
|
306
342
|
## CLI Reference
|
|
307
343
|
|
|
308
344
|
| Command | Purpose |
|
|
@@ -373,9 +409,6 @@ before v1.0.
|
|
|
373
409
|
|
|
374
410
|
- **Alpha on PyPI.** `pip install --pre stepfork` installs the current
|
|
375
411
|
pre-release; the API and trace format may still change.
|
|
376
|
-
- **No automatic failure minimization.** The exported regression test uses the
|
|
377
|
-
recorded steps. Reducing it to the smallest failing subset and fork-at-step
|
|
378
|
-
are planned work, not automatic behavior.
|
|
379
412
|
- **Limited integrations.** Optional adapters cover the OpenAI Python SDK
|
|
380
413
|
(synchronous and asynchronous, non-streaming `chat.completions.create`) and
|
|
381
414
|
LangGraph (synchronous and asynchronous `BaseChatModel` generation and
|
|
@@ -421,11 +454,11 @@ bundles, are in [docs/security.md](docs/security.md).
|
|
|
421
454
|
- Offline examples for both adapters
|
|
422
455
|
- Example GitHub Actions regression workflow
|
|
423
456
|
|
|
424
|
-
### v0.2
|
|
457
|
+
### v0.2 (Current)
|
|
425
458
|
|
|
426
|
-
- Failure minimization
|
|
427
|
-
- Fork-at-step
|
|
428
|
-
- Baselines
|
|
459
|
+
- **Failure minimization** - Automatic delta debugging to find minimal traces ([docs/minimize.md](docs/minimize.md))
|
|
460
|
+
- **Fork-at-step** - Create new traces at specific execution points with optional overrides ([docs/fork.md](docs/fork.md))
|
|
461
|
+
- Baselines (planned)
|
|
429
462
|
|
|
430
463
|
### v0.3
|
|
431
464
|
|
|
@@ -62,6 +62,10 @@ Compare → Define Expected Behavior → Export pytest → Verify Fix
|
|
|
62
62
|
you want frozen with `@trace_tool` or `llm_request`.
|
|
63
63
|
- **Behavioral diff** compares a buggy run against a corrected run and reports
|
|
64
64
|
exactly which behaviors changed.
|
|
65
|
+
- **Failure minimization** automatically finds the smallest trace that still
|
|
66
|
+
reproduces a failure via dependency-aware delta debugging.
|
|
67
|
+
- **Fork-at-step** creates new traces at specific execution points with optional
|
|
68
|
+
output overrides for "what-if" debugging scenarios.
|
|
65
69
|
- **pytest export** turns a recorded failure into a regression test that
|
|
66
70
|
asserts the corrected behavior.
|
|
67
71
|
- **Best-effort redaction** of known credential-shaped values at record time.
|
|
@@ -272,6 +276,38 @@ shows the limit of frozen replay and a selected live LLM in hybrid replay.
|
|
|
272
276
|
The demos print real results from real subprocesses; they never fabricate
|
|
273
277
|
output.
|
|
274
278
|
|
|
279
|
+
## Real-LLM Case Study: The Model Was Right, the Agent Was Wrong
|
|
280
|
+
|
|
281
|
+
A complete, offline-reproducible example of Stepfork in practice. A real Google
|
|
282
|
+
Gemini 2.5 Flash request (`gemini-2.5-flash` through the OpenAI SDK adapter)
|
|
283
|
+
correctly classified a synthetic production checkout incident as **P0**. A
|
|
284
|
+
deliberately introduced three-line Python postprocessing bug then downgraded
|
|
285
|
+
that to **P1** and disabled escalation. Stepfork recorded the LLM interaction
|
|
286
|
+
and the instrumented tool calls, and a generated pytest regression test failed
|
|
287
|
+
against the buggy logic and passed after the fix - using the same recorded
|
|
288
|
+
trace.
|
|
289
|
+
|
|
290
|
+
Frozen replay made **zero** additional model requests and executed **zero**
|
|
291
|
+
instrumented tool bodies.
|
|
292
|
+
|
|
293
|
+
```text
|
|
294
|
+
Real Gemini response: P0
|
|
295
|
+
Buggy application: P1, escalation=false
|
|
296
|
+
Regression test: FAILED
|
|
297
|
+
|
|
298
|
+
Fixed application: P0, escalation=true
|
|
299
|
+
Same regression test: PASSED
|
|
300
|
+
|
|
301
|
+
Additional LLM calls during frozen replay: 0
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
Start with the example
|
|
305
|
+
[README](examples/real-llm-case-study/README.md) or read the full
|
|
306
|
+
[CASE_STUDY.md](examples/real-llm-case-study/CASE_STUDY.md). The incident and
|
|
307
|
+
operational data are synthetic and the application bug was introduced on
|
|
308
|
+
purpose; only the model request was real. Stepfork does not know the correct
|
|
309
|
+
business outcome - it lives in `expected.json`, defined by a human.
|
|
310
|
+
|
|
275
311
|
## CLI Reference
|
|
276
312
|
|
|
277
313
|
| Command | Purpose |
|
|
@@ -342,9 +378,6 @@ before v1.0.
|
|
|
342
378
|
|
|
343
379
|
- **Alpha on PyPI.** `pip install --pre stepfork` installs the current
|
|
344
380
|
pre-release; the API and trace format may still change.
|
|
345
|
-
- **No automatic failure minimization.** The exported regression test uses the
|
|
346
|
-
recorded steps. Reducing it to the smallest failing subset and fork-at-step
|
|
347
|
-
are planned work, not automatic behavior.
|
|
348
381
|
- **Limited integrations.** Optional adapters cover the OpenAI Python SDK
|
|
349
382
|
(synchronous and asynchronous, non-streaming `chat.completions.create`) and
|
|
350
383
|
LangGraph (synchronous and asynchronous `BaseChatModel` generation and
|
|
@@ -390,11 +423,11 @@ bundles, are in [docs/security.md](docs/security.md).
|
|
|
390
423
|
- Offline examples for both adapters
|
|
391
424
|
- Example GitHub Actions regression workflow
|
|
392
425
|
|
|
393
|
-
### v0.2
|
|
426
|
+
### v0.2 (Current)
|
|
394
427
|
|
|
395
|
-
- Failure minimization
|
|
396
|
-
- Fork-at-step
|
|
397
|
-
- Baselines
|
|
428
|
+
- **Failure minimization** - Automatic delta debugging to find minimal traces ([docs/minimize.md](docs/minimize.md))
|
|
429
|
+
- **Fork-at-step** - Create new traces at specific execution points with optional overrides ([docs/fork.md](docs/fork.md))
|
|
430
|
+
- Baselines (planned)
|
|
398
431
|
|
|
399
432
|
### v0.3
|
|
400
433
|
|
|
@@ -21,6 +21,7 @@ Commands:
|
|
|
21
21
|
- [validate](#validate)
|
|
22
22
|
- [inspect](#inspect)
|
|
23
23
|
- [replay](#replay)
|
|
24
|
+
- [minimize](#minimize)
|
|
24
25
|
- [diff](#diff)
|
|
25
26
|
- [export](#export)
|
|
26
27
|
|
|
@@ -240,6 +241,92 @@ Common errors:
|
|
|
240
241
|
|
|
241
242
|
---
|
|
242
243
|
|
|
244
|
+
## minimize
|
|
245
|
+
|
|
246
|
+
Minimize a failing trace to the smallest reproducible subset.
|
|
247
|
+
|
|
248
|
+
```text
|
|
249
|
+
Usage: stepfork minimize [OPTIONS] PATH --entrypoint MODULE:FUNCTION
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Arguments:
|
|
253
|
+
|
|
254
|
+
| Argument | Description |
|
|
255
|
+
|---|---|
|
|
256
|
+
| `PATH` | Path to the `.sftrace` directory bundle to minimize. Required. |
|
|
257
|
+
| `--entrypoint`, `-e` | Agent entrypoint as `MODULE:FUNCTION`. Required. |
|
|
258
|
+
|
|
259
|
+
Options:
|
|
260
|
+
|
|
261
|
+
| Option | Description |
|
|
262
|
+
|---|---|
|
|
263
|
+
| `--expect-output FILE` | JSON file with expected output for comparison. |
|
|
264
|
+
| `--mode`, `-m` | Replay mode: `frozen`, `live`, or `hybrid`. Default: `frozen`. |
|
|
265
|
+
| `--output`, `-o` | Path for the minimized `.sftrace` bundle. Default: `<path>-minimized.sftrace`. |
|
|
266
|
+
| `--overwrite` | Overwrite the output bundle if it exists. Default: `false`. |
|
|
267
|
+
| `--timeout SECONDS` | Timeout in seconds for each replay attempt. Default: `30.0`. |
|
|
268
|
+
| `--attempts N` | Number of attempts per subset test (for nondeterminism). Default: `1`. |
|
|
269
|
+
| `--help` | Show command help and exit. |
|
|
270
|
+
|
|
271
|
+
Minimization uses dependency-aware delta debugging to find the smallest set of
|
|
272
|
+
events that preserves the original failure. The process:
|
|
273
|
+
|
|
274
|
+
1. Detects the failure signature by replaying the original trace
|
|
275
|
+
2. Systematically tests smaller event subsets while preserving dependencies
|
|
276
|
+
3. Verifies the minimized trace reproduces the same failure
|
|
277
|
+
4. Saves the minimal trace and reports reduction statistics
|
|
278
|
+
|
|
279
|
+
Example:
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
echo '{"order_id": "ORD-1001", "should_notify": true}' > expected.json
|
|
283
|
+
|
|
284
|
+
stepfork minimize failure.sftrace \
|
|
285
|
+
--entrypoint quickstart:run_agent \
|
|
286
|
+
--expect-output expected.json \
|
|
287
|
+
--output minimal.sftrace
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
```text
|
|
291
|
+
Stepfork Minimize
|
|
292
|
+
|
|
293
|
+
Original trace: failure.sftrace
|
|
294
|
+
Agent: notify-agent
|
|
295
|
+
Events: 8
|
|
296
|
+
Entrypoint: quickstart:run_agent
|
|
297
|
+
Mode: frozen
|
|
298
|
+
|
|
299
|
+
Detecting failure signature...
|
|
300
|
+
Minimizing trace...
|
|
301
|
+
|
|
302
|
+
╭─ Minimization Report ─────────╮
|
|
303
|
+
│ Original Events 8 │
|
|
304
|
+
│ Minimized Events 5 │
|
|
305
|
+
│ Reduction 37.5% │
|
|
306
|
+
│ Replay Attempts 15 │
|
|
307
|
+
│ Failure Signature Output Mismatch │
|
|
308
|
+
│ Minimal Yes │
|
|
309
|
+
╰────────────────────────────────╯
|
|
310
|
+
|
|
311
|
+
✓ Minimized trace saved to: minimal.sftrace
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Exit codes:
|
|
315
|
+
|
|
316
|
+
- `0` minimization succeeded and produced a valid minimal trace.
|
|
317
|
+
- `1` minimization failed (no failure detected, or minimization error).
|
|
318
|
+
- `2` invalid input, unreadable trace, or unresolvable entrypoint.
|
|
319
|
+
|
|
320
|
+
Common errors:
|
|
321
|
+
|
|
322
|
+
- `Failed to detect original failure signature: trace replay completed successfully; no failure to minimize` - the trace does not fail when replayed.
|
|
323
|
+
- `cannot resolve entrypoint ...` - the entrypoint specification is invalid or the module cannot be imported.
|
|
324
|
+
- `Minimized trace does not reproduce the original failure` - rare internal error during delta debugging.
|
|
325
|
+
|
|
326
|
+
See [docs/minimize.md](minimize.md) for detailed documentation and examples.
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
243
330
|
## diff
|
|
244
331
|
|
|
245
332
|
Compare the behavior of two recorded agent runs.
|