Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix: route the publish scan's git spawns through the hidden-console seam

garrytan206b8016b3b8
diff --git a/scripts/core-world-reads-baseline.tsv b/scripts/core-world-reads-baseline.tsv
index 67fc274669..7017adca30 100644
--- a/scripts/core-world-reads-baseline.tsv
+++ b/scripts/core-world-reads-baseline.tsv
@@ -444,6 +444,8 @@ src/core/git/commit-push.ts fs_import 1 W7: filesystem boundary moves to the loc
src/core/git/commit-push.ts module_collection 1 W6: per-engine state, or mark as a constant table
src/core/git/commit-push.ts process_env 7 W6: settings plane out of the core
src/core/git/commit-push.ts spawn_import 1 W7: process-wide effects move to src/cli
+src/core/git/range-secret-scan.ts fs_import 1 W7: filesystem boundary moves to the local app (the publish scan streams git output through a private temp file)
+src/core/git/range-secret-scan.ts spawn_import 1 W7: process-wide effects move to src/cli (the publish scan runs git plumbing)
src/core/github-app-token.ts fs_import 1 W7: filesystem boundary moves to the local app
src/core/github-source.ts fs_import 2 W7: filesystem boundary moves to the local app
src/core/github-source.ts load_config 1 W6: settings plane out of the core
diff --git a/src/core/git/range-secret-scan.ts b/src/core/git/range-secret-scan.ts
index 621eda0024..a394fcdfdf 100644
--- a/src/core/git/range-secret-scan.ts
+++ b/src/core/git/range-secret-scan.ts
@@ -16,7 +16,6 @@
* `.gitattributes`) as a gate change, so callers refuse. Output the parser does not recognise, a git failure or a run
* past the time budget sets `unreadable` instead of returning a partial result.
*/
-import { spawnSync } from 'node:child_process';
import { closeSync, existsSync, mkdtempSync, openSync, readFileSync, readSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { isAbsolute, join } from 'node:path';
@@ -24,6 +23,7 @@ import { GIT_READ_ENV, gitChildEnv } from '../git-env.ts';
import { GIT_ENV } from '../git-transport.ts';
import { loadWorkspaceAllowlist, pathAllowlisted, SCAN_ALLOW_FILENAME } from '../secret-scan-allowlist.ts';
import { scanText, SCAN_MAX_FILE_BYTES } from '../secret-scan.ts';
+import { spawnSync } from '../spawn.ts';
export interface RangeSecretFinding { path: string; commit: string; line: number; pattern: string; fingerprint: string }
export interface RangeScan {