Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
9.1 KB
Raw Blame
{
  "dependencies": {
    "admin/e2e/publish-copy-button.pw.ts": [
      "test/publish.test.ts"
    ],
    "docs/research/rust-engine/data/**": [
      "test/docs-repo-paths.test.ts"
    ],
    "docs/research/rust-engine/scripts/**": [
      "test/docs-repo-paths.test.ts"
    ],
    "test/**/*.serial.test.ts": [
      "test/scripts/serial-files.test.ts"
    ],
    "scripts/serial-files.tsv": [
      "test/scripts/serial-files.test.ts"
    ],
    "docs/contracts/qm-memory-provider/v1.json": [
      "test/qm-memory-contract.test.ts"
    ],
    "src/cli.ts": [
      "test/cli-goldens.test.ts"
    ],
    "src/commands/**": [
      "test/cli-goldens.test.ts"
    ],
    "src/core/operations*.ts": [
      "test/cli-goldens.test.ts"
    ],
    "scripts/pregate-remote-gate.sh": [
      "test/scripts/pregate-remote-gate.test.ts"
    ],
    "scripts/ubicloud/ubi-runner.sh": [
      "test/scripts/ubi-runner.test.ts",
      "test/scripts/ubi-runner-run.test.ts",
      "test/scripts/ci-ubicloud-vm-names.test.ts"
    ],
    ".gstack/ubicloud.json": [
      "test/scripts/ubi-runner-run.test.ts"
    ],
    "scripts/ubicloud/reap-expired.ts": [
      "test/scripts/ubicloud-reap-expired.test.ts"
    ],
    "scripts/ci-cost-ledger.ts": [
      "test/scripts/ci-cost-ledger.test.ts"
    ],
    "scripts/ci-cost-baseline.json": [
      "test/scripts/ci-cost-ledger.test.ts"
    ],
    ".github/workflows/ci-health.yml": [
      "test/scripts/ci-cost-ledger.test.ts",
      "test/scripts/ci-health-report.test.ts"
    ],
    ".github/workflows/e2e.yml": [
      "test/scripts/e2e-shard-budget.test.ts",
      "test/scripts/e2e-wiring.test.ts",
      "test/scripts/full-ci-workflow.test.ts"
    ],
    ".claude-plugin/plugin.json": [
      "test/codex-plugin-manifest.test.ts",
      "test/mcp-registration.test.ts"
    ],
    ".codex-plugin/plugin.json": [
      "test/codex-plugin-manifest.test.ts"
    ],
    "plugin-variants/*/.claude-plugin/plugin.json": [
      "test/codex-plugin-manifest.test.ts"
    ],
    "plugin-variants/*/.codex-plugin/plugin.json": [
      "test/codex-plugin-manifest.test.ts"
    ],
    "test/migrations-v0_13_1-grandfather.test.ts": [
      "test/migrations-v0_13_1.test.ts"
    ],
    "test/grandfather-capacity.test.ts": [
      "test/grandfather-managed.test.ts"
    ],
    "scripts/ubicloud/*.sh": [
      "test/scripts/awk-portability.test.ts"
    ],
    "scripts/postgres-arm-weights-postgres-only.json": [
      "test/scripts/postgres-unit-arms.test.ts"
    ],
    "scripts/*-weights.metadata.json": [
      "test/scripts/mine-shard-weights.test.ts"
    ],
    "docs/eval/system-one/runners/ubicloud-setup.sh": [
      "test/scripts/vm-setup-usage.test.ts"
    ],
    "scripts/bench/production-soak/vm-setup.sh": [
      "test/scripts/vm-setup-usage.test.ts"
    ],
    "scripts/bench/stall-repro-vm-setup.sh": [
      "test/scripts/vm-setup-usage.test.ts"
    ],
    "scripts/bench/**": [],
    "docs/eval/system-one/runners/**": [],
    "docs/eval/system-one/generators/**": [],
    "apple/helper/**": [],
    "docs/schemas/skill-resolver.v1.turn-input.json": ["test/skill-resolver-contract.test.ts"],
    "docs/schemas/skill-resolver.v1.turn-output.json": ["test/skill-resolver-contract.test.ts"],
    "scripts/check-skill-health.ts": ["test/skill-drift.test.ts", "test/skill-health.test.ts"],
    "scripts/check-skills-lock-history.ts": ["test/skills-integrity.test.ts"],
    "scripts/skill-drift-baseline.txt": ["test/skill-drift.test.ts"],
    "scripts/skill-drift-undeclared-subcommands.txt": ["test/skill-drift.test.ts"],
    "scripts/skills-commit-gate.sh": ["test/skill-health.test.ts", "test/skill-drift.test.ts"],
    "skills/skill-budgets.tsv": ["test/skill-health.test.ts"],
    "skills/skills.lock.history.json": ["test/skills-integrity.test.ts", "test/skillpack-safe-update.test.ts"],
    "scripts/check-migration-projection.ts": ["test/scripts/check-migration-projection.test.ts"],
    "scripts/migration-projection-baseline.tsv": ["test/scripts/check-migration-projection.test.ts"],
    "rust/Cargo.toml": ["rust/crates/gbrain-napi/src/pool.rs"],
    "rust/Cargo.lock": ["rust/crates/gbrain-napi/src/pool.rs"],
    "rust/deny.toml": ["rust/crates/gbrain-napi/src/pool.rs"],
    "rust/rust-toolchain.toml": ["rust/crates/gbrain-napi/src/pool.rs"],
    "rust/scripts/**": ["rust/smoke/smoke.test.ts"],
    "rust/smoke/**": ["rust/smoke/smoke.test.ts"]
  },
  "guards": [
    {
      "id": "serial-manifest",
      "when": [
        "test/**/*.serial.test.ts",
        "scripts/serial-files.tsv",
        "scripts/run-serial-tests.sh"
      ],
      "command": "bun test test/scripts/serial-files.test.ts",
      "fix": "add the serial file's row to scripts/serial-files.tsv"
    },
    {
      "id": "cli-goldens",
      "when": [
        "src/cli.ts",
        "src/cli/**",
        "src/commands/**",
        "src/core/operations*.ts",
        "src/core/ops/**"
      ],
      "command": "bun test --timeout=60000 test/cli-goldens.test.ts test/cli-dispatch-phase.test.ts test/export-surface-golden.test.ts",
      "fix": "bun run regen:all, then justify each changed golden in the PR body"
    },
    {
      "id": "regen-check",
      "when": [
        "src/**",
        "skills/**",
        "templates/**",
        "plugin/**"
      ],
      "command": "bun scripts/regen-all.ts --check",
      "fix": "bun run regen:all and commit the regenerated files"
    },
    {
      "id": "migration-order",
      "when": [
        "src/core/schema-migrations/**"
      ],
      "command": "bun scripts/check-schema-migration-order.ts",
      "fix": "renumber the migration to the next free number on master"
    }
  ],
  "sealed": {
    "paths": [
      "eval/reports/**",
      "**/sealed-confirmation/**",
      "**/hard-sealed/**",
      "**/counted/**"
    ],
    "transcripts": [
      "**/results.jsonl",
      "**/results.jsonl.gz",
      "**/usage.jsonl.gz"
    ],
    "visibility": "public"
  },
  "remote_gate": "bash scripts/pregate-remote-gate.sh",
  "run_profiles": {
    "test": {
      "workflow": "test.yml",
      "events": ["workflow_dispatch", "push"],
      "jobs": ["full-suite"],
      "artifact": "full-suite-tree"
    },
    "e2e": {
      "workflow": "e2e.yml",
      "events": ["workflow_dispatch", "push"],
      "jobs": ["e2e-full-suite"],
      "artifact": "e2e-full-suite-tree"
    },
    "native-locks.yml/native": {
      "workflow": "test.yml",
      "events": ["workflow_dispatch", "push"],
      "jobs": [
        "full-suite",
        "native-locks / linux-x64-glibc / Bun 1.4.4",
        "native-locks / linux-arm64-glibc / Bun 1.4.4",
        "native-locks / darwin-arm64 / Bun 1.4.4",
        "native-locks / darwin-x64 / Bun 1.4.4",
        "native-locks / win32-x64 / Bun 1.4.4",
        "native-locks / win32-arm64 / Bun 1.4.4"
      ],
      "artifact": "full-suite-tree"
    },
    "macos-validation.yml/macos-26": {
      "workflow": "macos-validation.yml",
      "events": ["workflow_dispatch"],
      "jobs": ["macOS 26 validation"],
      "artifact": "macos-26-tree",
      "os": "macOS"
    }
  },
  "remote_gate_runs": {
    "profiles": ["test", "e2e"],
    "inventory": "bash scripts/pregate-remote-gate.sh --list"
  },
  "ship_lanes_from": {
    "bun run test": {
      "profiles": ["test"],
      "inventory": "GBRAIN_PREGATE_GATE_CMD='bun run ci:ubicloud' bash scripts/pregate-remote-gate.sh --list --lanes unit,serial"
    },
    "bun run test:serial": {
      "profiles": ["test"],
      "inventory": "GBRAIN_PREGATE_GATE_CMD='bun run ci:ubicloud' bash scripts/pregate-remote-gate.sh --list --lanes serial"
    },
    "bun run test:slow": {
      "profiles": ["test"],
      "inventory": "GBRAIN_PREGATE_GATE_CMD='bun run ci:ubicloud' bash scripts/pregate-remote-gate.sh --list --lanes slow"
    },
    "bun run test:e2e": {
      "profiles": ["test", "e2e"],
      "inventory": "GBRAIN_PREGATE_GATE_CMD='bun run ci:ubicloud' bash scripts/pregate-remote-gate.sh --list --lanes e2e"
    }
  },
  "allowlist": [
    {
      "finding": "pii.phone.e164",
      "paths": [
        "scripts/*-weights.metadata.json"
      ],
      "reason": "shard-weight metadata records GitHub Actions run ids and commit counts, never phone numbers"
    },
    {
      "finding": "env.kv",
      "paths": [
        ".github/workflows/*.yml"
      ],
      "pattern": "pglite-snapshot-(?:default-)?\\$\\{\\{ runner\\.os \\}\\}-\\$\\{\\{ hashFiles\\('(?:src|test|scripts)(?:/[a-z*][a-z*_-]*(?:\\.[a-z]+)?)+'(?:, '(?:src|test|scripts)(?:/[a-z*][a-z*_-]*(?:\\.[a-z]+)?)+')*\\) \\}\\}$",
      "reason": "GitHub Actions PGLite snapshot cache keys: the whole value is pglite-snapshot-[default-]${{ runner.os }}-${{ hashFiles(<args>) }} and every argument is a lowercase path or glob under src/, test/ or scripts/; an argument with digits, capitals or a ./ prefix is not covered and stays flagged"
    },
    {
      "finding": "env.kv",
      "paths": [
        "src/core/operation-loaders.generated.ts"
      ],
      "pattern": "\\[load_[a-z0-9_]+, \"(?:[a-z][A-Za-z]*Operations|[a-z]+(?:_[a-z]+)+)\"\\],?$",
      "reason": "generated operation-loader table: each value is a loader identifier and an operations export name, never a credential; an operation named like a secret (reveal_secret) trips the key-name heuristic"
    }
  ]
}