Skip to content

feat(engine): add horizon-aware planning rollouts#29

Merged
div0rce merged 3 commits into
mainfrom
feat/pr11-horizon-aware-optimization
Apr 29, 2026
Merged

feat(engine): add horizon-aware planning rollouts#29
div0rce merged 3 commits into
mainfrom
feat/pr11-horizon-aware-optimization

Conversation

@div0rce

@div0rce div0rce commented Apr 29, 2026

Copy link
Copy Markdown
Owner

Summary

Adds deterministic short-horizon policy rollout support.

This keeps present-time recommendations separate from planning projections.

Key Changes

  • Adds explicit horizon configuration with mode: "planning" and futureJustification: "forbidden"
  • Adds generic future-state transition and policy evaluation primitives
  • Adds deterministic rollout evaluator with all rollout output labeled planning_projection
  • Marks the step-0 policy action as selected_present_action without changing solver output
  • Keeps solver, routes, and UI behavior unchanged
  • Bumps engine behavior version and replay index for the new engine subsystem

Non-Goals

  • No long-horizon financial planning
  • No stochastic uncertainty modeling
  • No generic future-obligation planner
  • No UI redesign

Verification

  • npm run typecheck
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm test
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm run lint
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" npm run check
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" CHERRY_VINE_SIGNATURE_MODE=enforce npm run build
  • CHERRY_TMP_ROOT="$HOME/.cherry-tmp" CHERRY_VINE_SIGNATURE_MODE=enforce npm run verify:repo-closure

@vercel

vercel Bot commented Apr 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cherry Ready Ready Preview, Comment Apr 29, 2026 3:59am

@div0rce div0rce marked this pull request as ready for review April 29, 2026 03:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ca8b94df0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/engine/horizon/rollout.ts Outdated
@div0rce div0rce merged commit 189a89b into main Apr 29, 2026
7 checks passed
@div0rce div0rce deleted the feat/pr11-horizon-aware-optimization branch April 29, 2026 19:11
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