Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

graduation(g2a): the route cross-check refusal names the run in why

garrytan3dc101d537b7
diff --git a/src/core/persistence/graduation-target.ts b/src/core/persistence/graduation-target.ts
index 141f82ad84..27021bce96 100644
--- a/src/core/persistence/graduation-target.ts
+++ b/src/core/persistence/graduation-target.ts
@@ -314,6 +314,7 @@ export async function crossCheckRoutes(main: BrainEngine, ddl: BrainEngine, runI
const refuse = (detail: string) => {
const error = targetDdlUnreachableError({ host: 'the main connection', ddlHost: 'the DDL connection' });
error.detail = `Run ${runId}: ${detail}`;
+ error.why = `Run ${runId}: ${detail}. ${error.why ?? ''}`.trim();
return error;
};
let seen: boolean;