Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(db-repair): escalation verify uses read-only doctor; regen structural manifest (#7137)
garrytanfc3b0741917e
diff --git a/scripts/structural-suites.tsv b/scripts/structural-suites.tsvindex e8ede32690..b25e5bcb2b 100644--- a/scripts/structural-suites.tsv+++ b/scripts/structural-suites.tsv@@ -77,8 +77,8 @@ test/claude-cli-recipe.test.ts claude-cli LanguageModel — output cap (#6424) 2test/claude-cli-recipe.test.ts claude-cli LanguageModel — text-only round trip 4 readFileSynctest/claude-cli-recipe.test.ts claude-cli LanguageModel — tool use 17 readFileSynctest/claude-cli-recipe.test.ts claude-cli recipe registration 2 readFileSync-test/cli-flag-equals.test.ts #7619 refusals that keep consent, scope and targets right 26 readFileSync,source-surface-helper-test/cli-flag-equals.test.ts #7619 split rules 21 readFileSync,source-surface-helper+test/cli-flag-equals.test.ts #7619 refusals that keep consent, scope and targets right 28 readFileSync,source-surface-helper+test/cli-flag-equals.test.ts #7619 split rules 22 readFileSync,source-surface-helpertest/cli-force-exit-teardown-arming.test.ts cli.ts — disconnect hard-deadline armed at teardown entry, not before the op body 1 readFileSync,source-surface-helpertest/cli.test.ts BigInt-safe output normalization (#2450) 5 source-surface-helpertest/cli.test.ts CLI structure 2 source-surface-helperdiff --git a/src/commands/db-repair.ts b/src/commands/db-repair.tsindex 6a828532ad..b57fecd0cc 100644--- a/src/commands/db-repair.ts+++ b/src/commands/db-repair.ts@@ -310,7 +310,7 @@ function emit(json: boolean, report: JsonReport, humanLines: string[], ranAutoTi? { consent: [], actor: 'user', requires_exclusive: false,why: 'gbrain db-repair --yes already ran its bounded retries in this call and the database is still unreachable; running it again repeats them.',user_message: `gbrain could not reach the database after its repair attempts (${d?.reason ?? report.reason}). ${d?.remediation ?? ''} Check the database server's status and its startup log; once it accepts connections, re-check with: gbrain db-repair`,- verify: { argv: ['gbrain', 'db-repair'] } }+ verify: { argv: ['gbrain', 'doctor', '--json'] } }: report.tier === 'auto'? { argv: ['gbrain', 'db-repair', '--yes'], consent: [], actor: 'agent', requires_exclusive: false,why: 'Applies the auto tier the plan names (bounded retries, pending migrations, CREATE EXTENSION vector, starting gbrain\'s own docker container).' }diff --git a/test/db-repair.serial.test.ts b/test/db-repair.serial.test.tsindex 14d28cd96d..f0e93760cd 100644--- a/test/db-repair.serial.test.ts+++ b/test/db-repair.serial.test.ts@@ -599,7 +599,7 @@ describe('db-repair --yes that could not fix the access failure (#7137)', () =>expect(doc.fix.argv).toBeUndefined();expect(doc.fix.next).toBe('report');expect(doc.fix.user_message).toContain('status and its startup log');- expect(doc.fix.verify.argv).toEqual(['gbrain', 'db-repair']);+ expect(doc.fix.verify.argv).toEqual(['gbrain', 'doctor', '--json']);expect(readReceipts().filter((r) => r.outcome === 'applied').length).toBe(0);});