Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into capy/ranking-wave-b
garrytan6b75c0cd7b20
diff --cc src/cli/main.tsindex b16e788a2f,223b4b997f..287bf99dd8--- a/src/cli/main.ts+++ b/src/cli/main.ts@@@ -80,7 -80,8 +80,8 @@@ import} from './command-table.ts';import { formatRememberResult } from './remember-format.ts';import { formatEntityResult, markEntityMiss } from './entity-format.ts';- import { applyCliOpNotices, captureCapacityNotices, captureOpNotice, captureRetrievalNotices, withExplainTargetJson } from './op-notices.ts';-import { applyCliOpNotices, captureCapacityNotices, captureOpNotice, captureRetrievalNotices, retrievalIncompleteLine } from './op-notices.ts';++import { applyCliOpNotices, captureCapacityNotices, captureOpNotice, captureRetrievalNotices, retrievalIncompleteLine, withExplainTargetJson } from './op-notices.ts';+ import { admitAcrossCliCalls } from '../core/notice-ledger.ts';import { searchTimingsDocument, searchTimingsLine, timeCliPhase } from './search-timings.ts';// db-availability loop: best-effort brain-id for the GBRAIN_DB_ACCESS marker,diff --cc src/cli/op-notices.tsindex d2f2d9d989,5302ce8732..973a798c1c--- a/src/cli/op-notices.ts+++ b/src/cli/op-notices.ts@@@ -5,12 -5,21 +5,21 @@@* `notices` (array results stay bare, notices go to stderr), human output* gets stderr lines on a TTY and an `[AGENT]` block otherwise (stdout is data).* One op per CLI process, so module state is safe.+ *+ * #7165: an escalating coverage notice, and the `projection_pending` part of+ * search/query's `Retrieval incomplete:` line, show once per+ * COVERAGE_NOTICE_WINDOW_MS across CLI calls under GBRAIN_HOME (per brain),+ * until the count worsens or a new source or kind appears.*/+ import { createHash } from 'node:crypto';-import { cliRenderContext, renderNotice, type Notice } from '../core/agent-output.ts';+import { cliRenderContext, renderAction, renderNotice, type Action, type Notice } from '../core/agent-output.ts';import { renderCliNotices } from '../core/agent-markers.ts';import { isInteractive } from '../core/interaction.ts';- import { processNoticeLedger, mutedNoticeCodes } from '../core/notice-ledger.ts';+ import { admitAcrossCliCalls, processNoticeLedger, mutedNoticeCodes } from '../core/notice-ledger.ts';import { takeChatFallbackHopNotices } from '../core/ai/fallback-hop-queue.ts';+ import { getCliOptions } from '../core/cli-options.ts';+ import { loadConfig } from '../core/config.ts';+ import type { RetrievalCoverage } from '../core/search/retrieval-coverage.ts';let pending: Notice[] = [];