fix: clear arbiter session on each invocation to prevent verdict bias

This commit is contained in:
Eyejoker
2026-03-30 22:30:42 +09:00
parent cb79450572
commit 25cec18ce8

View File

@@ -324,6 +324,9 @@ export function preparePairedExecutionContext(args: {
'sessions',
`${group.folder}-arbiter`,
);
// Clear arbiter session each invocation — each deadlock is a fresh
// judgment call, previous verdicts should not bias the decision.
fs.rmSync(arbiterSessionDir, { recursive: true, force: true });
fs.mkdirSync(arbiterSessionDir, { recursive: true });
envOverrides.CLAUDE_CONFIG_DIR = arbiterSessionDir;
}