Skip to content

Separate plan-review verdict policy from application confirmation - #193

Merged
tzhouam merged 1 commit into
mainfrom
codex/plan-review-boundary-20260926
Sep 26, 2026
Merged

tzhouam merged 1 commit into
mainfrom
codex/plan-review-boundary-20260926

Conversation

@tzhouam

@tzhouam tzhouam commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

Plan-review context, reviewer verdict interpretation, and interactive confirmation lived together in app.core. Move mode-aware context and verdict policy into review.plan_gate, which returns a typed decision and notices. app.core still supplies the reviewer, renders notices, and owns human confirmation and run orchestration. The existing Copilot._plan_review_gate and _mode_review_context import paths remain compatible.

This preserves the unattended fail-closed rule: block always stops, while revise and unavailable stop --yes runs and are surfaced for interactive confirmation. No playbook execution, checkpoint, or run-status behavior changes. Validation: 45 focused gate/mode tests and 1,528 full tests passed; strict SPEC freshness and git diff --check passed. The full suite emitted one pre-existing Pydantic forward-reference warning.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T05:22:29.077384Z 94cd675 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tzhouam
tzhouam merged commit 7aa11c5 into main Sep 26, 2026
2 checks passed

@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: 94cd67566d

ℹ️ 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".

.get("rebase_mode", "") or "")
if not mode:
return ""
from ..engine.executor import _eval_when

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep the review leaf independent of the engine

When a mode-aware plan is reviewed, this new review/ leaf imports engine.executor, violating the explicit dependency rule in doc/architecture/SPEC/_ARCHITECTURE.md:66-67 that review/ must never import engine/. This also creates a bidirectional package dependency because engine code such as engine/steps/workspace.py:8 already imports from review/, undermining the boundary this refactor introduces; move the mode-context assembly back to an orchestration layer or inject the condition evaluator instead.

Useful? React with 👍 / 👎.

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