Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(windows-hide): trim the NOT_YET_MIGRATED ratchet to 15 owned files (#4992)
garrytan7853c842e74b
diff --git a/scripts/check-windows-hide.ts b/scripts/check-windows-hide.tsindex a208f60297..957959ee86 100644--- a/scripts/check-windows-hide.ts+++ b/scripts/check-windows-hide.ts@@ -41,90 +41,21 @@ const ALLOWLIST: Record<string, string> = {* longer launches directly fails as stale (the ratchet only goes down).*/const NOT_YET_MIGRATED: Record<string, string> = {- 'src/cli/commands/smoke-test.ts': 'not yet migrated',- 'src/commands/bootstrap.ts': 'not yet migrated',- 'src/commands/claw-test.ts': 'not yet migrated',- 'src/commands/connect.ts': 'not yet migrated',- 'src/commands/doctor/bootstrap-checks.ts': 'not yet migrated',- 'src/commands/doctor/checks/git-convergence.ts': 'not yet migrated',- 'src/commands/doctor/checks/local-audits.ts': 'not yet migrated',- 'src/commands/eval-brainbench.ts': 'not yet migrated',- 'src/commands/eval-compare.ts': 'not yet migrated',- 'src/commands/eval-longmemeval.ts': 'not yet migrated',- 'src/commands/eval-run-all.ts': 'not yet migrated',- 'src/commands/frontmatter-install-hook.ts': 'not yet migrated',- 'src/commands/frontmatter.ts': 'not yet migrated',- 'src/commands/import.ts': 'not yet migrated',- 'src/commands/init.ts': 'not yet migrated',- 'src/commands/integrations.ts': 'not yet migrated',- 'src/commands/migrations/in-process.ts': 'not yet migrated',- 'src/commands/migrations/v0_11_0.ts': 'not yet migrated',- 'src/commands/migrations/v0_12_0.ts': 'not yet migrated',- 'src/commands/migrations/v0_12_2.ts': 'not yet migrated',- 'src/commands/migrations/v0_13_0.ts': 'not yet migrated',- 'src/commands/migrations/v0_32_2.ts': 'not yet migrated',- 'src/commands/serve.ts': 'not yet migrated',- 'src/commands/setup.ts': 'not yet migrated',- 'src/commands/skillify-check.ts': 'not yet migrated',- 'src/commands/skillopt.ts': 'not yet migrated',- 'src/commands/skillpack-check.ts': 'not yet migrated',- 'src/commands/sources.ts': 'not yet migrated',- 'src/commands/takes.ts': 'not yet migrated',- 'src/commands/upgrade.ts': 'not yet migrated',- 'src/core/agent-install/setup.ts': 'not yet migrated',- 'src/core/ai/recipes/azure-openai.ts': 'not yet migrated',- 'src/core/binary-self-update.ts': 'not yet migrated',- 'src/core/bootstrap/status.ts': 'not yet migrated',- 'src/core/bootstrap/verify.ts': 'not yet migrated',- 'src/core/bun-floor.ts': 'not yet migrated',- 'src/core/calibration/gstack-coupling.ts': 'not yet migrated',- 'src/core/calibration/undo-wave.ts': 'not yet migrated',- 'src/core/claw-test/agent-runner.ts': 'not yet migrated',- 'src/core/claw-test/runners/grok.ts': 'not yet migrated',- 'src/core/claw-test/runners/opencode.ts': 'not yet migrated',- 'src/core/claw-test/transcript-capture.ts': 'not yet migrated',- 'src/core/company-brain/revision.ts': 'not yet migrated',- 'src/core/context/compiled-core.ts': 'not yet migrated',- 'src/core/cycle/derived-write-through.ts': 'not yet migrated',- 'src/core/docker-postgres.ts': 'not yet migrated',- 'src/core/embed-stale-images.ts': 'not yet migrated',- 'src/core/eval/drift-watch.ts': 'not yet migrated',- 'src/core/facts/fence-write.ts': 'not yet migrated',- 'src/core/facts/purge-verify.ts': 'not yet migrated',- 'src/core/fence-repair/census.ts': 'not yet migrated',- 'src/core/fence-repair/repair-io.ts': 'not yet migrated',- 'src/core/fence-repair/uncommitted.ts': 'not yet migrated',- 'src/core/git-first-commit.ts': 'not yet migrated',- 'src/core/git-head.ts': 'not yet migrated',- 'src/core/git-visible-files.ts': 'not yet migrated',- 'src/core/google/access.ts': 'not yet migrated',- 'src/core/harness/install.ts': 'not yet migrated',- 'src/core/persistence/engine-graduation.ts': 'not yet migrated',- 'src/core/persistence/sync-blobs.ts': 'not yet migrated',- 'src/core/persistence/sync-discovery.ts': 'not yet migrated',- 'src/core/persistence/topology-filesystem.ts': 'not yet migrated',- 'src/core/pglite-lock.ts': 'not yet migrated',- 'src/core/repair/frontmatter.ts': 'not yet migrated',- 'src/core/repair/slug-conflicts.ts': 'not yet migrated',- 'src/core/repo-visibility.ts': 'not yet migrated',- 'src/core/shared-skills/migration-export.ts': 'not yet migrated',- 'src/core/shared-skills/setup.ts': 'not yet migrated',- 'src/core/skill-fix-gates.ts': 'not yet migrated',- 'src/core/skillopt/apply-edits.ts': 'not yet migrated',- 'src/core/skillpack/bundle.ts': 'not yet migrated',- 'src/core/skillpack/endorse.ts': 'not yet migrated',- 'src/core/skillpack/remote-source.ts': 'not yet migrated',- 'src/core/skillpack/tarball.ts': 'not yet migrated',- 'src/core/source-health.ts': 'not yet migrated',- 'src/core/sync-delta.ts': 'not yet migrated',- 'src/core/sync-git.ts': 'not yet migrated',- 'src/core/sync-reconcile.ts': 'not yet migrated',- 'src/core/sync-upstream.ts': 'not yet migrated',- 'src/core/tailscale.ts': 'not yet migrated',- 'src/core/thin-client-upgrade-prompt.ts': 'not yet migrated',- 'src/core/transcription.ts': 'not yet migrated',- 'src/eval/brainbench/trust-scenario.ts': 'not yet migrated',- 'src/eval/code-retrieval/harness.ts': 'not yet migrated',+ 'src/commands/bootstrap.ts': 'not yet migrated: open PR #6283, #6319 edits this file',+ 'src/commands/claw-test.ts': 'not yet migrated: open PR #6775 edits this file',+ 'src/commands/eval-longmemeval.ts': 'not yet migrated: open PR #6790 edits this file',+ 'src/commands/import.ts': 'not yet migrated: open PR #6787 edits this file',+ 'src/commands/serve.ts': 'not yet migrated: open PR #6437 edits this file',+ 'src/commands/setup.ts': 'not yet migrated: open PR #6406 edits this file',+ 'src/commands/takes.ts': 'not yet migrated: open PR #6505 edits this file',+ 'src/commands/upgrade.ts': 'not yet migrated: open PR #6769 edits this file',+ 'src/core/bootstrap/verify.ts': 'not yet migrated: open PR #6793 edits this file',+ 'src/core/facts/purge-verify.ts': 'not yet migrated: open PR #6787 edits this file',+ 'src/core/harness/install.ts': 'not yet migrated: open PR #6319, #6406 edits this file',+ 'src/core/persistence/engine-graduation.ts': 'not yet migrated: persistence write path, migrated with its owning work (GBRA-101)',+ 'src/core/persistence/sync-blobs.ts': 'not yet migrated: persistence write path, migrated with its owning work (GBRA-101)',+ 'src/core/persistence/sync-discovery.ts': 'not yet migrated: persistence write path, migrated with its owning work (GBRA-101)',+ 'src/core/persistence/topology-filesystem.ts': 'not yet migrated: persistence write path, migrated with its owning work (GBRA-101)',};function tsFiles(dir: string): string[] {diff --git a/test/scripts/windows-hide-guard.test.ts b/test/scripts/windows-hide-guard.test.tsindex b973e0a065..b226620f3e 100644--- a/test/scripts/windows-hide-guard.test.ts+++ b/test/scripts/windows-hide-guard.test.ts@@ -90,12 +90,13 @@ describe('check-windows-hide.ts', () => {});test('the ratchet: a listed file may still launch directly, and fails as stale once it stops', () => {- const listed = run({ 'src/core/tailscale.ts': "export const p = Bun.spawn(['tailscale', 'status']);\n" });+ // Any file still on the real NOT_YET_MIGRATED list serves as the fixture.+ const listed = run({ 'src/core/persistence/topology-filesystem.ts': "export const p = Bun.spawn(['tailscale', 'status']);\n" });expect(listed.out).toContain('check-windows-hide: ok');expect(listed.code).toBe(0);- const migrated = run({ 'src/core/tailscale.ts': "import { bunSpawn } from './spawn.ts';\nexport const p = bunSpawn(['tailscale', 'status']);\n" });+ const migrated = run({ 'src/core/persistence/topology-filesystem.ts': "import { bunSpawn } from '../spawn.ts';\nexport const p = bunSpawn(['tailscale', 'status']);\n" });expect(migrated.code).toBe(1);- expect(migrated.out).toContain('FAIL [windows_hide_stale_migration_entry]: src/core/tailscale.ts no longer launches subprocesses directly');+ expect(migrated.out).toContain('FAIL [windows_hide_stale_migration_entry]: src/core/persistence/topology-filesystem.ts no longer launches subprocesses directly');expect(migrated.out).toContain('Fix: delete its NOT_YET_MIGRATED entry');});