Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/predictive-planning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Predictive planning evidence
on: [push, pull_request]
permissions:
contents: read
jobs:
planning:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install -e '.[dev]'
- run: python -m unittest tests.test_planning tests.test_planning_data -v
- run: agent-replay planning demo --output .replay/planning-evidence --tasks 20 --seed 0
- name: Apply planning gate and verify intentional budget failure
shell: bash
run: |
set +e
agent-replay benchmark gate --baseline .replay/planning-evidence/baseline --candidate .replay/planning-evidence/planning_with_replay_context --policy examples/benchmarks/predictive-deploy/gate-policy.json --output .replay/planning-evidence/ci-gate.json
status=$?
set -e
test "$status" -eq 1
python scripts/check_planning_demo.py .replay/planning-evidence
- uses: actions/upload-artifact@v4
if: always()
with:
name: predictive-planning-evidence
path: .replay/planning-evidence/
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,26 @@ Safely reproduce production agent failures from sanitized recorded evidence,
compare versions, detect regressions and enforce CI release gates—without
re-executing dangerous real-world operations during default replay.

## Optional predictive planning experiments

Generate candidate actions, simulate bounded hypothetical futures, score reward,
risk and uncertainty, authorize only the selected real action, then compare
predictions against actual observations. Planning is disabled by default and never
executes tools inside simulations. Historical replay transitions support offline
retrieval/calibration; existing benchmark reports and CI gates compare all modes.

```sh
agent-replay planning demo --output .replay/planning-demo --tasks 20 --seed 0
```

The controlled seed-0 experiment measures 5/20 → 10/20 → 11/20 task passes,
including a new failure in the retrieval mode and increased cost/tool calls.
Prediction improvement remains statistically inconclusive; the example cost gate
blocks the candidate. These are synthetic results, not production reliability claims.
[Setup, SDK/API, replay and limitations](docs/planning/README.md) ·
[Measured results](docs/planning/results.md) ·
[Audit and migration plan](docs/plans/predictive-planning-extension.md).

## Security pilot workflow

```sh
Expand Down
Binary file modified dist/agent-replay-mvp.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion dist/dashboard.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/guard-ui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/planning-demo.json

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions dist/planning.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading