refactor(ce-brainstorm): make doc review opt-in in Phase 4 handoff (#633)
This commit is contained in:
@@ -273,22 +273,23 @@ describe("ce:plan remains neutral during ce:work-beta rollout", () => {
|
||||
})
|
||||
|
||||
describe("ce-brainstorm review contract", () => {
|
||||
test("requires document review before handoff", async () => {
|
||||
test("exposes document review as an opt-in handoff option", async () => {
|
||||
const content = await readRepoFile("plugins/compound-engineering/skills/ce-brainstorm/SKILL.md")
|
||||
const handoff = await readRepoFile("plugins/compound-engineering/skills/ce-brainstorm/references/handoff.md")
|
||||
|
||||
// Phase 3.5 exists and runs document-review
|
||||
expect(content).toContain("### Phase 3.5: Document Review")
|
||||
expect(content).toContain("`ce-doc-review` skill")
|
||||
// Document review is no longer a forced Phase 3.5 step. Users opt in from the Phase 4 menu.
|
||||
expect(content).not.toContain("Phase 3.5")
|
||||
|
||||
// Phase 3 and Phase 4 are extracted to references for token optimization
|
||||
expect(content).toContain("`references/requirements-capture.md`")
|
||||
expect(content).toContain("`references/handoff.md`")
|
||||
|
||||
// Additional review passes are surfaced contextually (not as a menu fixture) and still
|
||||
// route through the ce-doc-review skill when requested
|
||||
const handoff = await readRepoFile("plugins/compound-engineering/skills/ce-brainstorm/references/handoff.md")
|
||||
expect(handoff).toContain("Surface additional document review contextually")
|
||||
// Phase 4 menu exposes agent review as a first-class option and routes to ce-doc-review
|
||||
expect(handoff).toContain("Agent review of requirements doc with `ce-doc-review`")
|
||||
expect(handoff).toContain("Load the `ce-doc-review` skill")
|
||||
|
||||
// Subsequent-round residual findings are surfaced as a prose nudge, not a separate menu option
|
||||
expect(handoff).toContain("Post-review nudge")
|
||||
expect(handoff).not.toContain("**Review and refine**")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user