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>
36 lines
983 B
JavaScript
36 lines
983 B
JavaScript
async function main() {
|
|
const [repoDir, requestJson] = process.argv.slice(2);
|
|
|
|
if (!repoDir || !requestJson) {
|
|
throw new Error(
|
|
'usage: bun shared/verification-request-runner.js <repoDir> <requestJson>',
|
|
);
|
|
}
|
|
|
|
// 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);
|
|
const result = await verificationModule.runVerificationRequest(request, {
|
|
repoDir,
|
|
});
|
|
|
|
process.stdout.write(
|
|
JSON.stringify({
|
|
requestId: request.requestId,
|
|
...result,
|
|
}),
|
|
);
|
|
}
|
|
|
|
main().catch((error) => {
|
|
const message =
|
|
error instanceof Error ? error.stack || error.message : String(error);
|
|
process.stderr.write(message);
|
|
process.exit(1);
|
|
});
|