Skip to content

fix(ce-plan): run ambiguity gate before the non-software catch-all#598

Merged
tmchow merged 1 commit intomainfrom
tmchow/fix-ambiguity-gate-order
Apr 18, 2026
Merged

fix(ce-plan): run ambiguity gate before the non-software catch-all#598
tmchow merged 1 commit intomainfrom
tmchow/fix-ambiguity-gate-order

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Apr 18, 2026

Summary

Follow-up to #597. Codex flagged that the reordered Phase 0.1b put the Otherwise, read universal-planning... catch-all before the ambiguity check. Because that branch also says to skip subsequent phases, the ambiguity gate became unreachable — a prompt like "plan a migration" with no other context would route straight to non-software planning instead of asking the user first.

Fix

Move the ambiguity check above the catch-all:

  1. Software → Phase 0.2.
  2. Genuinely ambiguous → ask before routing.
  3. Otherwise → universal-planning.md.

Now software-adjacent or under-specified requests still get intercepted.


Compound Engineering
Claude Code

PR #597 reordered Phase 0.1b so the "Otherwise, read universal-planning
and skip subsequent phases" branch came before the ambiguity check. That
made the ambiguity gate unreachable — prompts like "plan a migration"
with no other context now route straight to non-software planning
instead of asking the user first.

Move the ambiguity check above the catch-all so it still gets to
intercept software-adjacent or under-specified requests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tmchow tmchow merged commit 49249d7 into main Apr 18, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Apr 18, 2026
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