Skip to content

Add optional predictive planning with replay evidence and budget-aware CI gates - #6

Draft
j112929 wants to merge 1 commit into
codex/saas-self-servicefrom
codex/predictive-planning
Draft

j112929 wants to merge 1 commit into
codex/saas-self-servicefrom
codex/predictive-planning

Conversation

@j112929

@j112929 j112929 commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Add an opt-in predictive planning subsystem on top of the existing benchmark runner, trajectory v2, recorded replay and paired release gates. Planning remains disabled by default, and simulations never receive an execution capability.

  • Validate/deduplicate candidates, simulate bounded H×N branches, score reward/risk/cost/uncertainty and execute only the authorized first action before replanning.
  • Persist hypothetical sessions separately from actual tool steps. Existing trajectory details and HTML reports expose selection evidence and prediction errors.
  • Add mock, empirical replay and optional SDK-only provider-registry predictors; hosted simulation is authenticated, tenant-scoped, metered and mock-only.
  • Extract real transitions, enforce grouped held-out splits, compare predictive versions and write offline calibration/promotion artifacts without weight updates.
  • Extend existing benchmark metrics/comparison/three-state CI gates; add an offline planning workflow and retain all previous workflows.

Measured seed-0 controlled experiment: baseline 5/20, planning 10/20, replay-context 11/20 passes. Retrieval introduces one newly failing task. Mean real tool calls rise 1 → 2 → 3 and synthetic cost/task $0.020 → $0.030 → $0.038. Held-out Brier 0.5000 → 0.2885 remains INCONCLUSIVE (paired 95% delta interval crosses zero). The example cost/tool budget gate returns FAIL, exit 1. These are synthetic results, not production reliability evidence.

Validation executed locally: 131 Python tests, 11 web tests, 13 SaaS tests and 2 browser workflows passed. Wheel build, plugin dataset smoke and deterministic distribution drift checks passed. No live model, billing or production tool requests.

No SQL migration, trajectory version bump, new runtime dependency, hosting change or deployment. Existing host-executable replay remains denied. Live LLM quality, arbitrary production adapters and grouped stochastic inference remain outside verified scope. See docs/planning/README.md and docs/planning/results.md.

Stacked on codex/saas-self-service (PR #5); merge the existing benchmark/security/guard/self-service stack first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant