Garry's Opinionated OpenClaw/Hermes Agent Brain
1796 matches across 12 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/migrate.test.ts | 66 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 68 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 76 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 125 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 127 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 128 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 130 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 302 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 304 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 375 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 377 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 473 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 475 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 553 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 555 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 722 | // ──────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 727 | // ──────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 787 | // ──────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 794 | // ──────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1024 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1026 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1070 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1072 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1534 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1537 | // ───────────────────────────────────────────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1614 | // ─── v0.37.2.0 — v80 takes_unresolvable_quality_v0_37_2_0 ────────────────── |
| MEDIUM | test/migrate.test.ts | 1800 | // ─── v0.38.0.0 — v81 pages_provenance_columns ───────────────────────────── |
| MEDIUM | test/migrate.test.ts | 1979 | // ─── v0.40.2.0 — v89 facts_event_type_column ─────────────────────────────── |
| MEDIUM | test/source-health.test.ts | 132 | // ── v0.41.32.0 commit-relative staleness ────────────────────────────── |
| MEDIUM | test/gstack-learnings-coupling.test.ts | 45 | // ─── buildLearningEntry ───────────────────────────────────────────── |
| MEDIUM | test/gstack-learnings-coupling.test.ts | 101 | // ─── writeIncorrectResolution ─────────────────────────────────────── |
| MEDIUM | test/sources.test.ts | 13 | // ── Stub engine that records queries ─────────────────────── |
| MEDIUM | test/sources.test.ts | 53 | // ── add ───────────────────────────────────────────────────── |
| MEDIUM | test/sources.test.ts | 161 | // ── list ──────────────────────────────────────────────────── |
| MEDIUM | test/sources.test.ts | 177 | // ── remove ────────────────────────────────────────────────── |
| MEDIUM | test/sources.test.ts | 210 | // ── default ───────────────────────────────────────────────── |
| MEDIUM | test/sources.test.ts | 224 | // ── federate / unfederate ────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 32 | // ─── Mock engine ──────────────────────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 94 | // ─── parseExtractorOutput ─────────────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 163 | // ─── contentHash ──────────────────────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 179 | // ─── hasCompleteFence ─────────────────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 209 | // ─── extractExistingTakesForDedup ─────────────────────────────────── |
| MEDIUM | test/propose-takes.test.ts | 243 | // ─── Phase integration ────────────────────────────────────────────── |
| MEDIUM | test/voice-gate.test.ts | 42 | // ─── parseJudgeOutput ─────────────────────────────────────────────── |
| MEDIUM | test/voice-gate.test.ts | 82 | // ─── gateVoice ────────────────────────────────────────────────────── |
| MEDIUM | test/voice-gate.test.ts | 238 | // ─── Mode parity ──────────────────────────────────────────────────── |
| MEDIUM | test/voice-gate.test.ts | 267 | // ─── Templates (deterministic) ────────────────────────────────────── |
| MEDIUM | test/think-trajectory-injection.test.ts | 202 | // ───────────────────────────────────────────────────────────────────── |
| MEDIUM | test/think-trajectory-injection.test.ts | 204 | // ───────────────────────────────────────────────────────────────────── |
| MEDIUM | test/think-trajectory-injection.test.ts | 318 | // ───────────────────────────────────────────────────────────────────── |
| MEDIUM | test/think-trajectory-injection.test.ts | 320 | // ───────────────────────────────────────────────────────────────────── |
| MEDIUM | test/source-id-tx-regression.test.ts | 468 | // ───────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/source-id-tx-regression.test.ts | 478 | // ───────────────────────────────────────────────────────────────────────── |
| MEDIUM | test/cycle-synthesize.test.ts | 339 | // ─── v0.41.13: UTF-16 safety in judgeSignificance ───────────────────── |
| MEDIUM | test/cycle-synthesize.test.ts | 421 | // ─── Head-boundary cases (offset around 4000) ────────────────────── |
| MEDIUM | test/cycle-synthesize.test.ts | 435 | // ─── Tail-boundary cases (offset around length-4000 = 4001) ──────── |
| MEDIUM | test/cycle-synthesize.test.ts | 450 | // ─── Sub-8000 short-content branch: no slicing, no risk ──────────── |
| MEDIUM | test/benchmark-graph-quality.ts | 35 | // ─── Test data: 80 fictional pages ─────────────────────────────── |
| MEDIUM | test/benchmark-graph-quality.ts | 256 | // ─── Benchmark queries: 7 categories, ~35 questions ────────────── |
| MEDIUM | test/benchmark-graph-quality.ts | 296 | // ─── Metrics ───────────────────────────────────────────────────── |
| 725 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | docker-compose.ci.yml | 1 | # docker-compose.ci.yml |
| LOW | bunfig.toml | 1 | [test] |
| LOW | test/migrate.test.ts | 61 | await engine.disconnect(); |
| LOW | test/migrate.test.ts | 121 | expect(v20!.handler).toBeUndefined(); |
| LOW | test/migrate.test.ts | 181 | |
| LOW | test/migrate.test.ts | 461 | // PGLite has no RLS engine and is intrinsically single-tenant. The 8 RLS |
| LOW | test/migrate.test.ts | 561 | // change that re-introduces the missing helper index. |
| LOW | test/migrate.test.ts | 921 | ); |
| LOW | test/migrate.test.ts | 1141 | describe('PR #356 — 57014 catch path emits actionable 4-part diagnostic', () => { |
| LOW | test/migrate.test.ts | 1241 | // setSessionDefaults still callable (no-op) so existing call sites |
| LOW | test/migrate.test.ts | 1801 | // |
| LOW | test/migrate.test.ts | 1981 | // Adds nullable `event_type TEXT` to facts so the typed-claim substrate |
| LOW | test/brain-registry.serial.test.ts | 261 | ]); |
| LOW | test/schema-pack-trust-boundary.test.ts | 1 | // v0.38 T8: schema_pack per-call trust gate (D13 + codex F4). |
| LOW | test/think-trajectory-injection.test.ts | 201 | |
| LOW | test/think-trajectory-injection.test.ts | 321 | // |
| LOW | test/resolvers.test.ts | 621 | }); |
| LOW | test/source-id-tx-regression.test.ts | 461 | ); |
| LOW | test/schema-cli.test.ts | 1 | // v0.38 Phase C: gbrain schema CLI smoke tests. |
| LOW | test/facts-fence-typed.test.ts | 1 | // v0.35.4 — typed-claim fence parser+renderer round-trip + normalization. |
| LOW | test/mcp-client.test.ts | 181 | const realServer = server; |
| LOW | test/benchmark-graph-quality.ts | 721 | seeds: SeededPage[], |
| LOW | test/doctor-embedding-env-override.test.ts | 1 | // v0.41.2.1 — embedding_env_override doctor check (D9 #9). |
| LOW | test/exit-classification.test.ts | 21 | }); |
| LOW | test/extract-atoms-page-discovery.test.ts | 1 | // v0.41.2.1 — page-based discovery + source-hash idempotency for |
| LOW | test/schema-pack-manifest-v041_2.test.ts | 1 | // v0.41 T3 — SchemaPackManifestSchema extensions: phases + calibration_domains. |
| LOW | test/pglite-engine.test.ts | 1301 | |
| LOW | test/loadConfig-merge.test.ts | 21 | |
| LOW | test/search-mode.test.ts | 361 | // v0.35.0.0+ bumped 1→2 to fold reranker fields into the cache key. |
| LOW | test/doctor-sync-consolidation.test.ts | 1 | // v0.41.19.0 — T6 of ops-fix-wave. |
| LOW | test/by-mention.test.ts | 281 | // companies/apple slug exists. Wait — actually the ignore-list keys |
| LOW | test/connection-resilience.test.ts | 261 | consecutiveFailures++; |
| LOW | test/cycle-pglite-lock-ordering.serial.test.ts | 101 | mkdirSync(gbrainHome, { recursive: true }); |
| LOW | test/fix-wave-structural.test.ts | 81 | // v0.41.3 (T4 atomicity fix, codex F4): admin endpoint now validates |
| LOW | test/sync-failures.test.ts | 141 | }); |
| LOW | test/dream.test.ts | 241 | spy.mockRestore(); |
| LOW | test/lens-pack-manifests.test.ts | 1 | // v0.41 T4 — bundled lens pack manifest smoke tests. |
| LOW | test/migrations-v0_13_1.test.ts | 41 | expect(v0_13_1.featurePitch.headline.length).toBeGreaterThan(10); |
| LOW | test/oauth.test.ts | 721 | |
| LOW | test/recall-extensions.test.ts | 261 | const n = await engine.countUnconsolidatedFacts('default'); |
| LOW | test/embedding-dim-check.test.ts | 21 | } from '../src/core/embedding-dim-check.ts'; |
| LOW | test/reindex.test.ts | 101 | |
| LOW | test/embed-multimodal-batching.test.ts | 1 | // Commit 0 (D4 + D22-2): batching + partial-failure for multimodal embed, |
| LOW | test/cycle-pack-gating.test.ts | 1 | // v0.41 T9 R-GATE — orchestrator-level pack gate for lens-pack phases. |
| LOW | test/extractable-spec-widening.test.ts | 1 | // v0.42 — ExtractableSpec widening parity tests. |
| LOW | test/doctor-minions-check.test.ts | 121 | if (minions) { |
| LOW | test/subagent-handler.test.ts | 341 | // the tool result synthesis happened when resuming, then model spoke). |
| LOW | test/v0_37_gap_fill.serial.test.ts | 321 | // ───────────────────────────────────────────────────────────────────── |
| LOW | test/pglite-engine-disconnect.serial.test.ts | 61 | const realClose = eng._db!.close.bind(eng._db!); |
| LOW | test/schema-bootstrap-coverage.test.ts | 61 | // ON content_chunks(language) WHERE language IS NOT NULL`. |
| LOW | test/schema-bootstrap-coverage.test.ts | 81 | // not directly forward-referenced by an index but the bootstrap adds it |
| LOW | test/schema-bootstrap-coverage.test.ts | 101 | // v0.29.1 (v41) — sibling columns added in the same migration as |
| LOW | test/schema-bootstrap-coverage.test.ts | 121 | // them before SCHEMA_SQL replay creates the FK + index. |
| LOW | test/schema-bootstrap-coverage.test.ts | 141 | // are added defense-in-depth so future schema work that does reference |
| LOW | test/schema-bootstrap-coverage.test.ts | 341 | // Codex outside-voice review of v0.28.5's plan caught a critical hole in |
| LOW | test/schema-bootstrap-coverage.test.ts | 641 | // schema-blob replay never adds the archive columns, so downstream visibility |
| LOW | test/schema-bootstrap-coverage.test.ts | 661 | const COLUMN_EXEMPTIONS = new Set<string>([ |
| LOW | test/schema-bootstrap-coverage.test.ts | 701 | // v55 in the migration sequence, so fresh installs get it correctly. No |
| LOW | test/schema-bootstrap-coverage.test.ts | 721 | // (existing callers — founder-scorecard, eval-trajectory, |
| LOW | test/distribution-import-boundary.test.ts | 1 | // T26: `src/core/distribution/` import boundary regression guard. |
| 517 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/skill-brain-first.test.ts | 261 | test('matches ### Step 0: Brain Context', () => { |
| LOW | test/skill-brain-first.test.ts | 262 | expect(PHASE_HEADING_RE.test('### Step 0: Brain Context')).toBe(true); |
| LOW | test/skill-brain-first.test.ts | 427 | const content = `---\nname: good-skill\n---\n# Good Skill\n\n## Step 0: Brain Context\nSearch the brain first with \ |
| LOW | test/skill-brain-first.test.ts | 433 | const content = `---\nname: bad-skill\n---\n# Bad Skill\n\n## Step 1: Research\nUse web_search to find information a |
| LOW | test/apply-migrations-pglite-spawn.serial.test.ts | 115 | // Step 1: init --migrate-only seeds the schema. Pre-fix on PGLite this |
| LOW | test/apply-migrations-pglite-spawn.serial.test.ts | 121 | // Step 2: apply-migrations --yes runs the orchestrator chain. Pre-fix |
| LOW | test/apply-migrations-pglite-spawn.serial.test.ts | 143 | // Step 3: re-run is idempotent — "All migrations up to date" must exit |
| LOW | test/apply-migrations-pglite-spawn.serial.test.ts | 149 | // Step 4: --list exits 0 (third leg of the #1062 contract). |
| LOW | test/pages-soft-delete.test.ts | 210 | // Step 1: page is visible by default. |
| LOW | test/pages-soft-delete.test.ts | 215 | // Step 2: soft-delete, default getPage returns null. |
| LOW | test/pages-soft-delete.test.ts | 220 | // Step 3: include_deleted: true surfaces the row with deleted_at populated. |
| LOW | test/pages-soft-delete.test.ts | 225 | // Step 4: restore → default getPage returns the row again. |
| LOW | test/doctor-cli-smoke.serial.test.ts | 87 | // Step 1: init + apply migrations so the brain is at head before doctor runs. |
| LOW | test/doctor-cli-smoke.serial.test.ts | 93 | // Step 2: doctor --json against the fresh brain. This is the load-bearing |
| LOW | test/e2e/worker-abort-recovery.test.ts | 40 | // Step 1: Submit a slow job with a short timeout |
| LOW | test/e2e/worker-abort-recovery.test.ts | 46 | // Step 2: Submit a fast job that should run AFTER the slow one times out |
| LOW | test/e2e/worker-abort-recovery.test.ts | 75 | // Step 3: Start worker |
| LOW | test/e2e/worker-abort-recovery.test.ts | 78 | // Step 4: Wait for slow job timeout (200ms) + handler abort + fast job execution |
| LOW | test/e2e/worker-abort-recovery.test.ts | 81 | // Step 5: Stop worker |
| LOW | test/e2e/worker-abort-recovery.test.ts | 85 | // Step 6: Verify |
| LOW | test/e2e/serve-http-oauth.test.ts | 466 | // Step 1: register a throwaway client via CLI. |
| LOW | test/e2e/serve-http-oauth.test.ts | 479 | // Step 2: mint a token through the live server. |
| LOW | test/e2e/serve-http-oauth.test.ts | 492 | // Step 3: revoke via the CLI subprocess. |
| LOW | test/e2e/serve-http-oauth.test.ts | 502 | // Step 4: previously-minted token must now be rejected at /mcp. Cascade |
| LOW | test/e2e/serve-http-oauth.test.ts | 512 | // Step 5: re-running revoke-client on the now-deleted id must exit 1. |
| LOW | test/e2e/sync.test.ts | 461 | // Step 1: First sync of the clean repo — should succeed. |
| LOW | test/e2e/sync.test.ts | 467 | // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug. |
| LOW | test/e2e/sync.test.ts | 477 | // Step 3: Sync should block. Bookmark must NOT advance. |
| LOW | test/e2e/sync.test.ts | 491 | // Step 4: Run with skipFailed — bookmark advances, entry gets acked. |
| LOW | test/e2e/sync.test.ts | 501 | // Step 5: Verify what doctor would render for the historical entry. |
| LOW | test/e2e/sync.test.ts | 516 | // Step 6: Add a second broken file — this one with a different failure code |
| LOW | test/e2e/sync.test.ts | 532 | // Step 7: Sync blocks again on the new failure. Old entry stays acked. |
| LOW | test/e2e/sync.test.ts | 546 | // Step 8: Skip again — both entries acked, summary aggregates the count. |
| LOW | test/e2e/eval-loop.test.ts | 153 | // Step 1: capture three search queries against the live brain. |
| LOW | test/e2e/eval-loop.test.ts | 165 | // Step 2: publish a baseline from the captured rows. |
| LOW | test/e2e/eval-loop.test.ts | 172 | // Step 3: gate against the baseline. Since the brain hasn't changed, |
| LOW | test/e2e/system-of-record-invariant.test.ts | 207 | // Step 3: snapshot. |
| LOW | test/e2e/system-of-record-invariant.test.ts | 216 | // Step 4: DELETE every rebuildable derived table. NOT tags — tags |
| LOW | test/e2e/system-of-record-invariant.test.ts | 227 | // Step 5: re-import all + re-extract. Re-import is what rebuilds |
| LOW | test/e2e/system-of-record-invariant.test.ts | 232 | // Step 6: snapshot + diff. |
| LOW | tests/heavy/pg_upgrade_matrix.sh | 62 | # Step 1: build the legacy fixture (drop schema, init to LATEST, down-mutate) |
| LOW | tests/heavy/pg_upgrade_matrix.sh | 73 | # Step 2: walk forward. `gbrain doctor` triggers engine.connect() which |
| LOW | tests/heavy/pg_upgrade_matrix.sh | 88 | # Step 3: assert status is non-fatal. We accept 'ok' and 'warnings' because |
| LOW | tests/heavy/frontmatter_scan_wallclock.sh | 54 | # Step 1: seed the synthetic brain. |
| LOW | tests/heavy/frontmatter_scan_wallclock.sh | 81 | # Step 2: init brain + register the source. |
| LOW | tests/heavy/frontmatter_scan_wallclock.sh | 106 | # Step 3: run gbrain doctor; capture wall-clock + exit + frontmatter_integrity status. |
| LOW | tests/heavy/frontmatter_scan_wallclock.sh | 117 | # Step 4: assert. |
| LOW | tests/heavy/sync_lock_regression.sh | 51 | # Step 1: ensure schema is up-to-date by running doctor once |
| LOW | tests/heavy/sync_lock_regression.sh | 55 | # Step 2: create a tiny brain dir + register it as sync.repo_path so each sync |
| LOW | tests/heavy/sync_lock_regression.sh | 84 | # Step 3: spawn N parallel sync processes. Capture each one's exit code + |
| LOW | tests/heavy/sync_lock_regression.sh | 103 | # Step 4: collect outcomes |
| LOW | tests/heavy/sync_lock_regression.sh | 128 | # Step 5: assert no leaked gbrain_cycle_locks rows. The pkey column is `id`, |
| LOW | tests/heavy/sync_lock_regression.sh | 133 | # Step 6: verdict |
| LOW | tests/heavy/_build_legacy_fixtures.sh | 58 | # Step 1: reset schema |
| LOW | tests/heavy/_build_legacy_fixtures.sh | 62 | # Step 2: bring to LATEST via gbrain. The CLI's `doctor --json` triggers |
| LOW | tests/heavy/_build_legacy_fixtures.sh | 70 | # Step 3: down-mutate to the target shape |
| LOW | tests/heavy/_build_legacy_fixtures.sh | 74 | # Step 4: confirm the version was rolled back |
| LOW | tests/heavy/measure_rss.sh | 69 | # Step 1: run the in-memory workload. Brain build + measurement happen in |
| LOW | tests/heavy/measure_rss.sh | 89 | # Step 3: parse the workload output |
| LOW | tests/heavy/measure_rss.sh | 97 | # Step 4: compare against baseline (if it exists and has a number) |
| 84 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/cycle-synthesize.test.ts | 397 | function scanForUnpairedSurrogates(s: string): { index: number; kind: 'lone-high' | 'lone-low' } | null { |
| LOW | test/benchmark-graph-quality.ts | 417 | async function measureBaselineRelational( |
| LOW | test/voyage-multimodal.test.ts | 33 | function configureVoyageMultimodal(env: Record<string, string | undefined> = {}) { |
| LOW | test/benchmark-knowledge-runtime.ts | 269 | async function runDoctorCompletenessBench(): Promise<{ |
| LOW | test/schema-bootstrap-coverage.test.ts | 447 | function parseIndexColumnReferences(sql: string): Array<{ table: string; column: string }> { |
| LOW | test/mcp-tool-defs.test.ts | 37 | function referenceParamDefToSchema(p: ParamDefLike): Record<string, unknown> { |
| LOW | test/e2e/migration-v47-notability.test.ts | 85 | async function readNotabilityColumnState(): Promise<{ |
| LOW | test/e2e/skill-brain-first.test.ts | 45 | function copyFixturesIntoTempWorkspace(): Workspace { |
| LOW | test/e2e/thin-client.test.ts | 128 | function parseRegisterClientOutput(out: string): { clientId: string; clientSecret: string } { |
| LOW | test/e2e/source-routing.test.ts | 166 | async function seedTwoSourcesWithSharedSymbol(engine: PGLiteEngine): Promise<void> { |
| LOW | test/helpers/extract-added-columns.ts | 53 | function extractAlterAddColumnsFromSql(sql: string): Array<{ table: string; column: string }> { |
| LOW | test/helpers/extract-added-columns.ts | 81 | export function extractAddedColumnsFromMigrations(): AddedColumnRef[] { |
| LOW | test/helpers/schema-diff.ts | 181 | export function formatIndexDiffForFailure(diff: IndexDiff): string { |
| LOW | test/helpers/cli-pty-runner.ts | 41 | export function isNumberedOptionListVisible(visible: string): boolean { |
| LOW | src/cli.ts | 517 | async function printIdentityBannerBestEffort( |
| LOW | src/core/doctor-remote.ts | 76 | export async function collectRemoteDoctorReport( |
| LOW | src/core/post-upgrade-reembed.ts | 131 | export async function runPostUpgradeReembedPrompt( |
| LOW | src/core/last-retrieved.ts | 71 | export async function awaitPendingLastRetrievedWrites( |
| LOW | src/core/destructive-guard.ts | 135 | export function checkDestructiveConfirmation( |
| LOW | src/core/takes-fence.ts | 191 | export function normalizeWeightForStorage( |
| LOW | src/core/thin-client-upgrade-prompt.ts | 275 | function defaultVerifyUpgradeAdvanced(remoteVersion: string): { advanced: boolean; newVersion: string | null } { |
| LOW | src/core/embedding-dim-check.ts | 93 | export async function readContentChunksEmbeddingDim(engine: BrainEngine): Promise<ColumnDimResult> { |
| LOW | src/core/embedding-dim-check.ts | 273 | export function resolveSchemaEmbeddingDim(opts: ResolveSchemaEmbeddingDimOpts): ResolveSchemaDimResult { |
| LOW | src/core/embedding-dim-check.ts | 306 | export function resolveSchemaMultimodalDim(opts: ResolveSchemaMultimodalDimOpts): ResolveSchemaDimResult { |
| LOW | src/core/embedding-dim-check.ts | 360 | function validateDimAgainstTouchpoint( |
| LOW | src/core/embedding-dim-check.ts | 406 | function isCustomDimValidForProvider( |
| LOW | src/core/embedding-dim-check.ts | 627 | export async function assertFactsEmbeddingDimMatchesConfig(engine: BrainEngine): Promise<void> { |
| LOW | src/core/source-resolver.ts | 187 | export function formatSoleNonDefaultNudge(sourceId: string): string | null { |
| LOW | src/core/migrate.ts | 5074 | async function checkForBlockingConnections(engine: BrainEngine): Promise<boolean> { |
| LOW | src/core/brain-writer.ts | 81 | export function makeFrontmatterBackupRunId(date = new Date()): string { |
| LOW | src/core/brain-writer.ts | 95 | export function defaultFrontmatterBackupRoot(runId = makeFrontmatterBackupRunId()): string { |
| LOW | src/core/audit-quality-probe.ts | 45 | export function computeQualityProbeAuditFilename(now: Date = new Date()): string { |
| LOW | src/core/audit-quality-probe.ts | 91 | export function readRecentQualityProbeEvents( |
| LOW | src/core/audit-synopsis.ts | 76 | export function computeSynopsisAuditFilename(now: Date = new Date()): string { |
| LOW | src/core/audit-synopsis.ts | 135 | export function readRecentSynopsisFailures( |
| LOW | src/core/audit-synopsis.ts | 180 | export function summarizeSynopsisFailures( |
| LOW | src/core/archive-crawler-config.ts | 154 | export function normalizeAndValidateArchiveCrawlerConfig( |
| LOW | src/core/rerank-audit.ts | 61 | export function computeRerankAuditFilename(now: Date = new Date()): string { |
| LOW | src/core/oauth-provider.ts | 103 | export function validateTokenEndpointAuthMethod(value: unknown): TokenEndpointAuthMethod { |
| LOW | src/core/ssrf-validate.ts | 81 | export async function validateAndResolveUrl(urlStr: string): Promise<ResolvedTarget> { |
| LOW | src/core/markdown.ts | 487 | export function inferTypeAndSubtypeFromPack( |
| LOW | src/core/guardrails.ts | 82 | export function registerGuardrailProvider(provider: GuardrailProvider): void { |
| LOW | src/core/guardrails.ts | 88 | export function unregisterGuardrailProvider(id: string): boolean { |
| LOW | src/core/vector-index.ts | 32 | export function applyChunkEmbeddingIndexPolicy(sql: string, dims: number): string { |
| LOW | src/core/vector-index.ts | 243 | export function isSupabaseAutoMaintenance(active: ActiveBuildInfo): boolean { |
| LOW | src/core/contextual-retrieval-resolver.ts | 71 | export function resolveContextualRetrievalMode( |
| LOW | src/core/retrieval-upgrade-prompt.ts | 62 | export async function runRetrievalUpgradePrompt( |
| LOW | src/core/pglite-engine.ts | 112 | export function computeSnapshotSchemaHash( |
| LOW | src/core/pglite-engine.ts | 164 | export function buildPgliteInitErrorMessage( |
| LOW | src/core/contextual-retrieval-service.ts | 209 | export async function reembedPageWithContextualRetrieval( |
| LOW | src/core/contextual-retrieval-service.ts | 523 | function readSourceTextWithFallback(page: Page, chunks: ChunkInput[]): string { |
| LOW | src/core/contextual-retrieval-service.ts | 579 | export function expectedModeForPageSourceOnly(args: { |
| LOW | src/core/context-engine.ts | 553 | export function createGBrainContextEngine(ctx: { |
| LOW | src/core/remediation-checkpoint.ts | 60 | export function saveRemediationCheckpoint(cp: RemediationCheckpoint): void { |
| LOW | src/core/remediation-checkpoint.ts | 74 | export function loadRemediationCheckpoint(planHash: string): RemediationCheckpoint | null { |
| LOW | src/core/remediation-checkpoint.ts | 92 | export function listRemediationCheckpoints(): Array<{ plan_hash: string; mtime: number }> { |
| LOW | src/core/remediation-checkpoint.ts | 115 | export function clearRemediationCheckpoint(planHash: string): void { |
| LOW | src/core/audit-slug-fallback.ts | 43 | export function computeSlugFallbackAuditFilename(now: Date = new Date()): string { |
| LOW | src/core/repo-root.ts | 64 | function resolveWorkspaceSkillsDir( |
| LOW | src/core/repo-root.ts | 225 | export function autoDetectSkillsDirReadOnly( |
| 158 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/extract-by-mention.test.ts | 91 | await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: ' |
| LOW | test/publish.test.ts | 89 | expect(extractTitle('# Jane Doe\n\nContent.')).toBe('Jane Doe'); |
| LOW | test/bench-publish.test.ts | 36 | const input = [makeInput('hello world'), makeInput('lorem ipsum')]; |
| LOW | test/eval-contradictions-fixture-redact.test.ts | 116 | expect(out).not.toContain('foo@bar.com'); |
| LOW | test/extract-by-mention-resume.test.ts | 63 | await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: ' |
| LOW | test/backlinks.test.ts | 14 | expect(refs[0].name).toBe('Jane Doe'); |
| LOW | test/backlinks.test.ts | 23 | expect(refs[0].name).toBe('Acme Corp'); |
| LOW | test/backlinks.test.ts | 47 | expect(extractPageTitle('---\ntitle: "Jane Doe"\ntype: person\n---\n# Jane')).toBe('Jane Doe'); |
| LOW | test/backlinks.test.ts | 51 | expect(extractPageTitle('---\ntype: person\n---\n# Jane Doe')).toBe('Jane Doe'); |
| LOW | test/frontmatter-inference.test.ts | 138 | expect(result.title).toBe('John Doe'); |
| LOW | test/sync.test.ts | 300 | execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' }); |
| LOW | test/by-mention.test.ts | 10 | * 2. Multi-word phrase pass ("Acme Corp" matches "Acme Corp" not "Acme") |
| LOW | test/by-mention.test.ts | 100 | test('2. multi-word phrase pass — "Acme Corp" matches multi-word, not single', () => { |
| LOW | test/by-mention.test.ts | 103 | { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' }, |
| LOW | test/by-mention.test.ts | 194 | { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' }, |
| LOW | test/by-mention.test.ts | 202 | // Second occurrence of "Acme": multi-word "Acme Corp" matches → multi-word wins. |
| LOW | test/by-mention.test.ts | 213 | { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' }, |
| LOW | test/performfullsync-source-id.test.ts | 72 | execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' }); |
| LOW | test/orphans.test.ts | 155 | { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' }, |
| LOW | test/orphans.test.ts | 184 | { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' }, |
| LOW | test/orphans.test.ts | 188 | expect(out).toContain('Acme Corp'); |
| LOW | test/sync-metafile-skip.serial.test.ts | 32 | execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' }); |
| LOW | test/sync-parallel.test.ts | 30 | execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' }); |
| LOW | test/enrichment-service.test.ts | 7 | expect(slugifyEntity('Jane Doe', 'person')).toBe('people/jane-doe'); |
| LOW | test/enrichment-service.test.ts | 11 | expect(slugifyEntity('Acme Corp', 'company')).toBe('companies/acme-corp'); |
| LOW | test/enrichment-service.test.ts | 33 | expect(entityPagePath('Jane Doe', 'person')).toBe(slugifyEntity('Jane Doe', 'person')); |
| LOW | test/enrichment-service.test.ts | 56 | const jane = entities.find(e => e.name === 'Jane Doe'); |
| LOW | test/bench/baseline-file.test.ts | 54 | const rows = [makeRow('hello world', 0), makeRow('lorem ipsum', 1)]; |
| LOW | test/bench/baseline-file.test.ts | 63 | expect(parsed.rows.map(r => r.query).sort()).toEqual(['hello world', 'lorem ipsum']); |
| LOW | test/e2e/sync.test.ts | 32 | execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' }); |
| LOW | test/e2e/sync.test.ts | 433 | execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' }); |
| LOW | test/e2e/sync-parallel.test.ts | 33 | execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' }); |
| LOW | tests/heavy/_measure_rss_workload.ts | 93 | `Section 1: lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ` + |
| LOW | tests/heavy/_measure_rss_workload.ts | 93 | `Section 1: lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ` + |
| LOW | tests/heavy/_measure_rss_workload.ts | 170 | 'synthetic page', 'lorem ipsum', 'consequat', 'voluptatem', 'aspernatur', |
| LOW | tests/heavy/_read_latency_workload.ts | 81 | `Section 1: lorem ipsum dolor sit amet consectetur adipiscing elit sed do ` + |
| LOW | tests/heavy/_read_latency_workload.ts | 81 | `Section 1: lorem ipsum dolor sit amet consectetur adipiscing elit sed do ` + |
| LOW | tests/heavy/_read_latency_workload.ts | 141 | 'lorem ipsum', 'consequat', 'voluptatem', 'aspernatur', 'magna', |
| LOW | src/core/by-mention.ts | 69 | * share a first token (e.g. "Acme" + "Acme Corp" + "Acme Foundation"). |
| LOW | src/core/by-mention.ts | 153 | * same first token co-exist in the same bucket (e.g. "Acme" + "Acme Corp"). |
| LOW | src/core/eval-capture-scrub.ts | 73 | * Order of operations matters: email first so "user@example.com" doesn't |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/sources.test.ts | 30 | // Match by substring so tests are robust against whitespace. |
| MEDIUM | test/hybrid-search-lite.serial.test.ts | 127 | // is robust to the fixture’s actual chunking. |
| MEDIUM | test/sum-stale-chunk-chars.test.ts | 94 | // depend on gateway-configured dimensions (keeps it robust regardless of |
| MEDIUM | test/sum-stale-chunk-chars.test.ts | 98 | // in atttypmod) so the test is robust to whatever dim initSchema chose. |
| MEDIUM | scripts/check-fuzz-purity.sh | 87 | # A fuzz harness that pulls in `engine.ts` could trigger DB connections through |
| LOW | scripts/import-from-upstream.sh | 171 | # subordinate script. For v0, just call the guard against the destination |
| MEDIUM | src/core/source-resolver.ts | 123 | // to tier 6 rather than throwing. Resolver stays robust to bad config. |
| MEDIUM | src/commands/eval-schema-authoring.ts | 3 | // Codex finding #9 honored: this harness's pass-criterion measures |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/e2e/code-indexing.test.ts | 86 | print(f"started {self.config['name']}") |
| HIGH | test/e2e/code-indexing.test.ts | 90 | print(f"stopped {self.config.get('name', 'anon')}") |
| HIGH | test/e2e/code-indexing.test.ts | 93 | if not key: return None |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/heavy/pg_upgrade_matrix.sh | 29 | # Usage: |
| LOW | tests/heavy/_build_legacy_fixtures.sh | 11 | # Usage: |
| LOW | tests/heavy/measure_rss.sh | 13 | # Usage: |
| LOW | tests/heavy/read_latency_under_sync.sh | 13 | # Usage: |
| LOW | tests/heavy/sync_timeout_rescue.sh | 39 | # Usage: |
| LOW | scripts/check-proposal-pii.sh | 24 | # Usage: |
| LOW | scripts/run-unit-parallel.sh | 11 | # Usage: |
| LOW | scripts/fix-v0.11.0.sh | 5 | # Usage: |
| LOW | scripts/run-heavy.sh | 7 | # Usage: |
| LOW | scripts/ci-cache-hash.sh | 37 | # Usage: |
| LOW | scripts/run-verify-parallel.sh | 11 | # Usage: |
| LOW | scripts/import-from-upstream.sh | 5 | # Usage: |
| LOW | scripts/profile-tests.sh | 7 | # Usage: |
| LOW | scripts/check-privacy.sh | 16 | # Usage: |
| LOW | scripts/smoke-test.sh | 7 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/sync-sole-non-default-routing.test.ts | 159 | // Pages went to 'default' as requested. |
| HIGH | test/retrieval-upgrade-planner.test.ts | 327 | // Resume path also calls runSchemaTransition. Mark as requested so the |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/core/cycle/extract-atoms.ts | 129 | - Stand alone (no "as discussed above") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/edge-extractor.test.ts | 49 | def helper(): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | scripts/check-skill-brain-first.sh | 56 | except Exception: |