From bee8ff2c9b2f9885a4c13de32dccd9ee250600b0 Mon Sep 17 00:00:00 2001 From: ejclaw Date: Tue, 19 May 2026 14:26:27 +0900 Subject: [PATCH] Require reviewer status first line --- prompts/claude-paired-room.md | 1 + src/platform-prompts.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/prompts/claude-paired-room.md b/prompts/claude-paired-room.md index cf1e2a8..aef6af5 100644 --- a/prompts/claude-paired-room.md +++ b/prompts/claude-paired-room.md @@ -23,6 +23,7 @@ If you see a materially better design, debugging path, or scoping choice, propos ## Completion status **Start your first line** with one of these six statuses. This is required. +If the first visible line is not one of these statuses, the output is invalid; do not put explanations, greetings, or summaries before the status. - **STEP_DONE** — The current step is acceptable, but the original requested task still has remaining work. Send the task back to the owner without escalating to the arbiter - **TASK_DONE** — Approved. The owner's work satisfies the full requested task. Include the evidence diff --git a/src/platform-prompts.test.ts b/src/platform-prompts.test.ts index 574b841..e766e8d 100644 --- a/src/platform-prompts.test.ts +++ b/src/platform-prompts.test.ts @@ -73,6 +73,7 @@ describe('platform-prompts', () => { const codexPairedPrompt = readPairedRoomPrompt('codex', repoRoot); expect(codexPairedPrompt).toContain('reviewer'); + expect(codexPairedPrompt).toContain('the output is invalid'); expect(codexPairedPrompt).toContain('EJCLAW_WORK_DIR'); expect(codexPairedPrompt).toContain( 'canonical verification root for this turn',