Skip to content

fix(ce-debug): default to commit-and-PR and tighten learning offer#693

Merged
tmchow merged 2 commits intomainfrom
tmchow/ce-debug-auto-pr
Apr 26, 2026
Merged

fix(ce-debug): default to commit-and-PR and tighten learning offer#693
tmchow merged 2 commits intomainfrom
tmchow/ce-debug-auto-pr

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Apr 26, 2026

Summary

ce-debug now defaults to commit-and-PR when it owns the working branch, and only offers /ce-compound when there is an articulable lesson worth capturing. Previously it closed every run with a 4-option prompt and prompted for learning capture on every bug. Both were over-eager: the common choice was nearly always "commit and open a PR", and the "bug was in production" trigger gating learning capture fired on essentially every issue, making the lean-in/neutral distinction meaningless.

Skill-owned branches default to commit-and-PR

When ce-debug created the working branch in Phase 3, Phase 4 now proceeds straight to commit-and-PR with a brief, non-blocking preview. No menu, no confirmation prompt. Before doing so it checks the user's prompt, loaded memories, and AGENTS.md/CLAUDE.md for conflicting preferences (e.g., "always review before pushing", "open PRs as drafts") and honors them.

Pre-existing branches still get a smaller menu (commit & PR / commit only / stop) since ce-debug does not know what else might be staged on them.

The "Post findings to the issue first" option is gone. Tracker auto-close syntax in the PR description (Fixes #N, Closes ABC-123, Jira Smart Commits) puts the diagnosis on the issue and closes it on merge, so a separate "post findings" step just duplicates what the PR will already do.

Learning capture is now gated on articulability

/ce-compound is no longer offered after every bug. The new gate has three paths:

Path When
Skip silently Mechanical fix with no generalizable insight (default when in doubt)
Offer neutrally Agent can state the lesson in one sentence
Lean into the offer Pattern appears in 3+ locations OR root cause reveals a wrong assumption about a shared dependency, framework, or convention

The "if you cannot articulate the lesson, skip rather than offer" rule forces the agent to identify the value before prompting, instead of reflexively asking after every fix.

Phase 3's conditional post-mortem still fires on production bugs (analyzing how a bug escaped is useful regardless of generalizability), but it no longer dictates Phase 4's learning offer. It just informs it.


Compound Engineering
Claude Code

Phase 4 now branches on whether ce-debug created the branch in Phase 3:
skill-owned branches default to auto commit-and-PR (with a non-blocking
preview, and a contextual-override check against the user's prompt,
memories, and AGENTS.md/CLAUDE.md), while pre-existing branches still
prompt with a smaller menu. The "Post findings to issue first" option
is gone — tracker auto-close syntax in the PR description handles it.

The ce-compound offer is now gated tighter: skip silently for mechanical
bugs with no generalizable insight, offer when the lesson can be stated
in one sentence, and lean in only when the pattern recurs in 3+ files
or reveals a wrong assumption about a shared dependency. The previous
"bug was in production" trigger fired on nearly every issue and made
the lean-in/neutral distinction meaningless.
Copy link
Copy Markdown

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

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: 1aaf0706e2

ℹ️ 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 plugins/compound-engineering/skills/ce-debug/SKILL.md Outdated
- Distinguish PR-description trackers (GitHub, Linear) from
  commit-message-only syntax (Jira Smart Commits) in Phase 4 step 3.
@tmchow tmchow merged commit e21156e into main Apr 26, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 26, 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