fix: clear arbiter session on each invocation to prevent verdict bias
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user