fix(paired): deliver escalation notices that were silently dropped

When a paired task escalated to the user after a reviewer final, the
"⚠️ 자동 해결 불가" mention was emitted after the turn had already
published its final and released its attempt. MessageTurnController
dropped it ("Discarding late agent output after terminal final") and the
ownership guard would have suppressed it anyway, so rooms looked stalled
right after the reviewer's reply (javis_bot 2026-11-11 14:11, 15:28).

- Mark host post-completion notices (escalation, reviewer-unavailable
  answer) and send them as a fresh message past both guards and the
  reviewer direct-terminal skip.
- Reviewer prompt: NEEDS_CONTEXT is only for questions the user must
  answer; ask the owner for evidence with DONE_WITH_CONCERNS.
- run_verification: load the helper and verifier from the EJClaw install
  instead of the repo under review (was "Module not found" outside
  EJClaw), and run the helper outside the repo so its .env is not read
  by EJClaw's config loader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Codex
2026-11-11 15:45:50 +09:00
parent 043e9e71c5
commit 0f0f698fb4
12 changed files with 235 additions and 16 deletions

View File

@@ -1,6 +1,3 @@
import path from 'path';
import { pathToFileURL } from 'url';
async function main() {
const [repoDir, requestJson] = process.argv.slice(2);
@@ -10,8 +7,11 @@ async function main() {
);
}
const verificationModuleUrl = pathToFileURL(
path.join(repoDir, 'src', 'verification.ts'),
// Load the verifier from the EJClaw install this helper ships with; repoDir
// is only the workspace being verified and need not be an EJClaw checkout.
const verificationModuleUrl = new URL(
'../src/verification.ts',
import.meta.url,
).href;
const verificationModule = await import(verificationModuleUrl);
const request = JSON.parse(requestJson);