Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
fix(advisor): apply the signing-value registry to advisor log lines
Jack Rudenko966e478d1c00
diff --git a/packages/cli/src/handlers/native-handler-advisor.ts b/packages/cli/src/handlers/native-handler-advisor.tsindex c7482083..f394a4a6 100644--- a/packages/cli/src/handlers/native-handler-advisor.ts+++ b/packages/cli/src/handlers/native-handler-advisor.ts@@ -42,7 +42,12 @@ import { resolveConnection } from "../providers/connection-resolver.js";import type { KnownWire, WireApi } from "../providers/connection-wire.js";import { getProviderByName } from "../providers/provider-definitions.js";import { mergeWireHeaders, shapeRequestFromWire } from "../providers/wire-request.js";-import { acquireSigningLease, redactExactValues, redactForClient } from "../redact.js";+import {+ acquireSigningLease,+ redactExactValues,+ redactForClient,+ redactSigningValues,+} from "../redact.js";import type { StatsEvent } from "../stats-otlp.js";import { recordStats } from "../stats.js";import { isBillingHeaderText } from "../transform.js";@@ -276,7 +281,10 @@ export function logAdvisorEvent(cfg: AdvisorSwapConfig, event: Record<string, unconst record = { ts, ...event };let line: string;try {- line = scrubSecrets(JSON.stringify(record));+ // The exact-value registry first (every signing value a live request+ // holds), then the shape rules. `appendLine` writes the advisor log and the+ // always-on log directly, not through `log()`, so this is their only pass.+ line = scrubSecrets(redactSigningValues(JSON.stringify(record)));} catch {// a record that will not serialize is a logging problem onlyreturn;