feat(ce-run,plan): wrapped-phase recognition hook + Erin phase-isolation plan#9
Merged
feat(ce-run,plan): wrapped-phase recognition hook + Erin phase-isolation plan#9
Conversation
Three-pass refinement cycle for the Erin phase-isolation feature:
brainstorm → plan → plan-review → Unit 1 spike. The spike caught
the load-bearing platform constraint (subagents lack the Agent
tool, so direct depth-2 dispatch fails) before any code shipped.
Two workarounds verified in the findings doc:
A. Constrain wrapped /ce:work to inline-only execution + no
Agent-dispatching sub-skills. Sufficient for v1.
B. Subprocess via `claude -p` to bypass the constraint when
nested dispatch is genuinely needed. ~16s overhead, streaming
fidelity regression, but unlocks arbitrary nesting.
Plan v1 status: active, proceeding with Workaround A. Units 2–4
(ce-run hook, erin.md update, dogfood) still ahead.
Compound artifact: tests/spikes/depth-2-dispatch.md is a durable
regression harness — re-run on any future Claude Code update; if
it ever produces 5/5 successful dispatches the platform constraint
has lifted and the original architecture becomes available.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ce-run/SKILL.md gains a small Step 5 branch: when a phase has `wrapped: true`, yield to the orchestrator persona's wrapped-phase behavior instead of invoking the skill in-thread. ce-run does not define a generic primitive — it just recognizes the flag. Plan revisions bake in the Unit 1 spike's Workaround A: the wrapped /ce:work invocation is pinned to Inline execution strategy and forbidden from invoking /ce:review or other Agent-dispatching skills, since subagents lack the Agent tool. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ce-run/SKILL.mdgains a small Step 5 branch: when a phase haswrapped: truein its frontmatter, ce-run yields control to the orchestrator's wrapped-phase behavior section instead of invoking the skill in-thread. ce-run does not define a generic primitive — it only recognizes the flag./ce:workinvocation is pinned to Inline execution strategy and forbidden from invoking/ce:reviewor other Agent-dispatching skills, since subagents in Claude Code lack the Agent tool.Pairs with JumpstartLab/ce-reviewers-jsl#7. Both must merge before
/ce:refresh+ plugin reinstall picks up the new behavior end-to-end.Test plan
compound-engineeringplugin from the marketplace/ce:refreshto syncerin.md/ce:run erin <real feature>end-to-end (Unit 4)docs/solutions/2026-05-XX-erin-wrapping-dogfood.md🤖 Generated with Claude Code