Repository Analysis

garrytan/gbrain

Garry's Opinionated OpenClaw/Hermes Agent Brain

8.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of garrytan/gbrain, a TypeScript project with 26,174 GitHub stars. SynthScan v2.0 examined 563,798 lines of code across 2312 source files, recording 2517 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 8.7 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

8.7
Adjusted Score
8.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
26.2K
Stars
TypeScript
Language
563.8K
Lines of Code
2.3K
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 5MEDIUM 1020LOW 1492

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 2517 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators935 hits · 2816 pts
SeverityFileLineSnippetContext
MEDIUMtest/migrate.test.ts66// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts68// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts76// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts125// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts127// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts128// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts130// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts302// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts304// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts375// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts377// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts473// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts475// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts553// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts555// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts722// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts727// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts787// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts794// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1024// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1026// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1070// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1072// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1534// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1537// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1614// ─── v0.37.2.0 — v80 takes_unresolvable_quality_v0_37_2_0 ──────────────────COMMENT
MEDIUMtest/migrate.test.ts1800// ─── v0.38.0.0 — v81 pages_provenance_columns ─────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1979// ─── v0.40.2.0 — v89 facts_event_type_column ───────────────────────────────COMMENT
MEDIUMtest/dream-postgres.serial.test.ts46// ─── BUG 2: no checkout → DB phases run, FS phases skip ──────────────COMMENT
MEDIUMtest/dream-postgres.serial.test.ts167// ─── A7: edges-only cycle reports ok, not clean ─────────────────────COMMENT
MEDIUMtest/dream-postgres.serial.test.ts205// ─── both-null hard error preserved ─────────────────────────────────COMMENT
MEDIUMtest/source-health.test.ts132// ── v0.41.32.0 commit-relative staleness ──────────────────────────────COMMENT
MEDIUMtest/gstack-learnings-coupling.test.ts45// ─── buildLearningEntry ─────────────────────────────────────────────COMMENT
MEDIUMtest/gstack-learnings-coupling.test.ts101// ─── writeIncorrectResolution ───────────────────────────────────────COMMENT
MEDIUMtest/sources.test.ts13// ── Stub engine that records queries ───────────────────────COMMENT
MEDIUMtest/sources.test.ts53// ── add ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/sources.test.ts161// ── list ────────────────────────────────────────────────────COMMENT
MEDIUMtest/sources.test.ts177// ── remove ──────────────────────────────────────────────────COMMENT
MEDIUMtest/sources.test.ts210// ── default ─────────────────────────────────────────────────COMMENT
MEDIUMtest/sources.test.ts224// ── federate / unfederate ──────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts32// ─── Mock engine ────────────────────────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts94// ─── parseExtractorOutput ───────────────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts163// ─── contentHash ────────────────────────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts179// ─── hasCompleteFence ───────────────────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts209// ─── extractExistingTakesForDedup ───────────────────────────────────COMMENT
MEDIUMtest/propose-takes.test.ts243// ─── Phase integration ──────────────────────────────────────────────COMMENT
MEDIUMtest/voice-gate.test.ts42// ─── parseJudgeOutput ───────────────────────────────────────────────COMMENT
MEDIUMtest/voice-gate.test.ts82// ─── gateVoice ──────────────────────────────────────────────────────COMMENT
MEDIUMtest/voice-gate.test.ts238// ─── Mode parity ────────────────────────────────────────────────────COMMENT
MEDIUMtest/voice-gate.test.ts267// ─── Templates (deterministic) ──────────────────────────────────────COMMENT
MEDIUMtest/think-trajectory-injection.test.ts202// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/think-trajectory-injection.test.ts204// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/think-trajectory-injection.test.ts318// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/think-trajectory-injection.test.ts320// ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/source-id-tx-regression.test.ts468// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/source-id-tx-regression.test.ts478// ─────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/cycle-synthesize.test.ts339// ─── v0.41.13: UTF-16 safety in judgeSignificance ─────────────────────COMMENT
MEDIUMtest/cycle-synthesize.test.ts421 // ─── Head-boundary cases (offset around 4000) ──────────────────────COMMENT
MEDIUMtest/cycle-synthesize.test.ts435 // ─── Tail-boundary cases (offset around length-4000 = 4001) ────────COMMENT
MEDIUMtest/cycle-synthesize.test.ts450 // ─── Sub-8000 short-content branch: no slicing, no risk ────────────COMMENT
875 more matches not shown…
Over-Commented Block663 hits · 584 pts
SeverityFileLineSnippetContext
LOWdocker-compose.ci.yml1# docker-compose.ci.ymlCOMMENT
LOWbunfig.toml1[test]COMMENT
LOWtest/migrate.test.ts61 await engine.disconnect();COMMENT
LOWtest/migrate.test.ts121 expect(v20!.handler).toBeUndefined();COMMENT
LOWtest/migrate.test.ts181COMMENT
LOWtest/migrate.test.ts461 // PGLite has no RLS engine and is intrinsically single-tenant. The 8 RLSCOMMENT
LOWtest/migrate.test.ts561// change that re-introduces the missing helper index.COMMENT
LOWtest/migrate.test.ts921 );COMMENT
LOWtest/migrate.test.ts1141describe('PR #356 — 57014 catch path emits actionable 4-part diagnostic', () => {COMMENT
LOWtest/migrate.test.ts1241 // setSessionDefaults still callable (no-op) so existing call sitesCOMMENT
LOWtest/migrate.test.ts1801//COMMENT
LOWtest/migrate.test.ts1981// Adds nullable `event_type TEXT` to facts so the typed-claim substrateCOMMENT
LOWtest/brain-registry.serial.test.ts261 ]);COMMENT
LOWtest/schema-pack-trust-boundary.test.ts1// v0.38 T8: schema_pack per-call trust gate (D13 + codex F4).COMMENT
LOWtest/think-trajectory-injection.test.ts201COMMENT
LOWtest/think-trajectory-injection.test.ts321//COMMENT
LOWtest/resolvers.test.ts621 });COMMENT
LOWtest/source-id-tx-regression.test.ts461 );COMMENT
LOWtest/schema-cli.test.ts1// v0.38 Phase C: gbrain schema CLI smoke tests.COMMENT
LOWtest/facts-fence-typed.test.ts1// v0.35.4 — typed-claim fence parser+renderer round-trip + normalization.COMMENT
LOWtest/mcp-client.test.ts181 const realServer = server;COMMENT
LOWtest/benchmark-graph-quality.ts721 seeds: SeededPage[],COMMENT
LOWtest/doctor-embedding-env-override.test.ts1// v0.41.2.1 — embedding_env_override doctor check (D9 #9).COMMENT
LOWtest/exit-classification.test.ts21 });COMMENT
LOWtest/extract-atoms-page-discovery.test.ts1// v0.41.2.1 — page-based discovery + source-hash idempotency forCOMMENT
LOWtest/schema-pack-manifest-v041_2.test.ts1// v0.41 T3 — SchemaPackManifestSchema extensions: phases + calibration_domains.COMMENT
LOWtest/loadConfig-merge.test.ts21COMMENT
LOWtest/search-mode.test.ts381 // v0.35.0.0+ bumped 1→2 to fold reranker fields into the cache key.COMMENT
LOWtest/search-mode.test.ts401 // archive/ demote (search-exclude policy change isn't in the hash, so theCOMMENT
LOWtest/doctor-sync-consolidation.test.ts1// v0.41.19.0 — T6 of ops-fix-wave.COMMENT
LOWtest/by-mention.test.ts281 // companies/apple slug exists. Wait — actually the ignore-list keysCOMMENT
LOWtest/connection-resilience.test.ts241 expect(consecutiveFailures).toBeLessThan(3);COMMENT
LOWtest/cycle-pglite-lock-ordering.serial.test.ts101 mkdirSync(gbrainHome, { recursive: true });COMMENT
LOWtest/fix-wave-structural.test.ts81 // v0.41.3 (T4 atomicity fix, codex F4): admin endpoint now validatesCOMMENT
LOWtest/dream.test.ts241 spy.mockRestore();COMMENT
LOWtest/lens-pack-manifests.test.ts1// v0.41 T4 — bundled lens pack manifest smoke tests.COMMENT
LOWtest/reindex-preserve-tags.test.ts1// v0.41.37.0 #1621 — reindex / re-import must NOT wipe DB-side enrichment tags.COMMENT
LOWtest/migrations-v0_13_1.test.ts41 expect(v0_13_1.featurePitch.headline.length).toBeGreaterThan(10);COMMENT
LOWtest/oauth.test.ts741COMMENT
LOWtest/recall-extensions.test.ts261 const n = await engine.countUnconsolidatedFacts('default');COMMENT
LOWtest/embedding-dim-check.test.ts21} from '../src/core/embedding-dim-check.ts';COMMENT
LOWtest/reindex.test.ts101COMMENT
LOWtest/embed-multimodal-batching.test.ts1// Commit 0 (D4 + D22-2): batching + partial-failure for multimodal embed,COMMENT
LOWtest/cycle-pack-gating.test.ts1// v0.41 T9 R-GATE — orchestrator-level pack gate for lens-pack phases.COMMENT
LOWtest/extractable-spec-widening.test.ts1// v0.42 — ExtractableSpec widening parity tests.COMMENT
LOWtest/doctor-minions-check.test.ts121 if (minions) {COMMENT
LOWtest/subagent-handler.test.ts341 // the tool result synthesis happened when resuming, then model spoke).COMMENT
LOWtest/v0_37_gap_fill.serial.test.ts321// ─────────────────────────────────────────────────────────────────────COMMENT
LOWtest/pglite-engine-disconnect.serial.test.ts61 const realClose = eng._db!.close.bind(eng._db!);COMMENT
LOWtest/schema-bootstrap-coverage.test.ts61 // ON content_chunks(language) WHERE language IS NOT NULL`.COMMENT
LOWtest/schema-bootstrap-coverage.test.ts81 // not directly forward-referenced by an index but the bootstrap adds itCOMMENT
LOWtest/schema-bootstrap-coverage.test.ts101 // v0.29.1 (v41) — sibling columns added in the same migration asCOMMENT
LOWtest/schema-bootstrap-coverage.test.ts121 // them before SCHEMA_SQL replay creates the FK + index.COMMENT
LOWtest/schema-bootstrap-coverage.test.ts141 // are added defense-in-depth so future schema work that does referenceCOMMENT
LOWtest/schema-bootstrap-coverage.test.ts341COMMENT
LOWtest/schema-bootstrap-coverage.test.ts581 return result;COMMENT
LOWtest/schema-bootstrap-coverage.test.ts641}, 30000);COMMENT
LOWtest/schema-bootstrap-coverage.test.ts661// migration's SQL string is authored by us with consistent shape. TheCOMMENT
LOWtest/schema-bootstrap-coverage.test.ts681 // migration but NOT (yet) referenced by `PGLITE_SCHEMA_SQL` (neither in aCOMMENT
LOWtest/schema-bootstrap-coverage.test.ts701 'facts.row_num',COMMENT
603 more matches not shown…
Structural Annotation Overuse320 hits · 555 pts
SeverityFileLineSnippetContext
LOWINSTALL_FOR_AGENTS.md6## Step 0: If you are not Claude CodeCOMMENT
LOWINSTALL_FOR_AGENTS.md17## Step 1: Install GBrainCOMMENT
LOWINSTALL_FOR_AGENTS.md41## Step 2: API KeysCOMMENT
LOWINSTALL_FOR_AGENTS.md57## Step 3: Create the BrainCOMMENT
LOWINSTALL_FOR_AGENTS.md132## Step 4: Import and IndexCOMMENT
LOWINSTALL_FOR_AGENTS.md187## Step 5: Load SkillsCOMMENT
LOWINSTALL_FOR_AGENTS.md219## Step 6: Identity (optional)COMMENT
LOWINSTALL_FOR_AGENTS.md232## Step 7: Recurring JobsCOMMENT
LOWINSTALL_FOR_AGENTS.md247## Step 8: IntegrationsCOMMENT
LOWINSTALL_FOR_AGENTS.md255## Step 9: VerifyCOMMENT
LOWllms-full.txt996## Step 0: If you are not Claude CodeCOMMENT
LOWllms-full.txt1007## Step 1: Install GBrainCOMMENT
LOWllms-full.txt1031## Step 2: API KeysCOMMENT
LOWllms-full.txt1047## Step 3: Create the BrainCOMMENT
LOWllms-full.txt1122## Step 4: Import and IndexCOMMENT
LOWllms-full.txt1177## Step 5: Load SkillsCOMMENT
LOWllms-full.txt1209## Step 6: Identity (optional)COMMENT
LOWllms-full.txt1222## Step 7: Recurring JobsCOMMENT
LOWllms-full.txt1237## Step 8: IntegrationsCOMMENT
LOWllms-full.txt1245## Step 9: VerifyCOMMENT
LOWllms-full.txt2420## Step 1: See what pack is active todayCOMMENT
LOWllms-full.txt2442## Step 2: Fork the bundled packCOMMENT
LOWllms-full.txt2452## Step 3: Activate the forkCOMMENT
LOWllms-full.txt2464## Step 4: Add a researcher typeCOMMENT
LOWllms-full.txt2489## Step 5: Import some placeholder researcher pagesCOMMENT
LOWllms-full.txt2524## Step 6: See the gap with `stats`COMMENT
LOWllms-full.txt2534## Step 7: Backfill with `sync --apply`COMMENT
LOWllms-full.txt2570## Step 8: Prove the wiring worksCOMMENT
LOWtest/skill-brain-first.test.ts261 test('matches ### Step 0: Brain Context', () => {CODE
LOWtest/skill-brain-first.test.ts262 expect(PHASE_HEADING_RE.test('### Step 0: Brain Context')).toBe(true);CODE
LOWtest/skill-brain-first.test.ts427 const content = `---\nname: good-skill\n---\n# Good Skill\n\n## Step 0: Brain Context\nSearch the brain first with \CODE
LOWtest/skill-brain-first.test.ts433 const content = `---\nname: bad-skill\n---\n# Bad Skill\n\n## Step 1: Research\nUse web_search to find information aCODE
LOWtest/apply-migrations-pglite-spawn.serial.test.ts115 // Step 1: init --migrate-only seeds the schema. Pre-fix on PGLite thisCOMMENT
LOWtest/apply-migrations-pglite-spawn.serial.test.ts121 // Step 2: apply-migrations --yes runs the orchestrator chain. Pre-fixCOMMENT
LOWtest/apply-migrations-pglite-spawn.serial.test.ts143 // Step 3: re-run is idempotent — "All migrations up to date" must exitCOMMENT
LOWtest/pages-soft-delete.test.ts210 // Step 1: page is visible by default.COMMENT
LOWtest/pages-soft-delete.test.ts215 // Step 2: soft-delete, default getPage returns null.COMMENT
LOWtest/pages-soft-delete.test.ts220 // Step 3: include_deleted: true surfaces the row with deleted_at populated.COMMENT
LOWtest/pages-soft-delete.test.ts225 // Step 4: restore → default getPage returns the row again.COMMENT
LOWtest/doctor-cli-smoke.serial.test.ts87 // Step 1: init + apply migrations so the brain is at head before doctor runs.COMMENT
LOWtest/doctor-cli-smoke.serial.test.ts93 // Step 2: doctor --json against the fresh brain. This is the load-bearingCOMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts47 // Step 1: accept v1 cleanly.COMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts78 // Step 2: stage a pending v2 (simulates crash).COMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts89 // Step 3: resume — call revertAllPending (what runOptimizationLoop does).COMMENT
LOWtest/skillopt/adversarial/partial-write-crash.test.ts92 // Step 1: a clean accept.COMMENT
LOWtest/skillopt/adversarial/partial-write-crash.test.ts98 // Step 2: stage a pending v2 from a crashed run.COMMENT
LOWtest/e2e/worker-abort-recovery.test.ts40 // Step 1: Submit a slow job with a short timeoutCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts46 // Step 2: Submit a fast job that should run AFTER the slow one times outCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts75 // Step 3: Start workerCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts78 // Step 4: Wait for slow job timeout (200ms) + handler abort + fast job executionCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts81 // Step 5: Stop workerCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts85 // Step 6: VerifyCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts466 // Step 1: register a throwaway client via CLI.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts479 // Step 2: mint a token through the live server.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts492 // Step 3: revoke via the CLI subprocess.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts502 // Step 4: previously-minted token must now be rejected at /mcp. CascadeCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts512 // Step 5: re-running revoke-client on the now-deleted id must exit 1.COMMENT
LOWtest/e2e/sync.test.ts461 // Step 1: First sync of the clean repo — should succeed.COMMENT
LOWtest/e2e/sync.test.ts467 // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug.COMMENT
LOWtest/e2e/sync.test.ts477 // Step 3: Sync should block. Bookmark must NOT advance.COMMENT
260 more matches not shown…
Verbosity Indicators154 hits · 283 pts
SeverityFileLineSnippetContext
LOWtest/skill-brain-first.test.ts261 test('matches ### Step 0: Brain Context', () => {CODE
LOWtest/skill-brain-first.test.ts262 expect(PHASE_HEADING_RE.test('### Step 0: Brain Context')).toBe(true);CODE
LOWtest/skill-brain-first.test.ts427 const content = `---\nname: good-skill\n---\n# Good Skill\n\n## Step 0: Brain Context\nSearch the brain first with \CODE
LOWtest/skill-brain-first.test.ts433 const content = `---\nname: bad-skill\n---\n# Bad Skill\n\n## Step 1: Research\nUse web_search to find information aCODE
LOWtest/apply-migrations-pglite-spawn.serial.test.ts115 // Step 1: init --migrate-only seeds the schema. Pre-fix on PGLite thisCOMMENT
LOWtest/apply-migrations-pglite-spawn.serial.test.ts121 // Step 2: apply-migrations --yes runs the orchestrator chain. Pre-fixCOMMENT
LOWtest/apply-migrations-pglite-spawn.serial.test.ts143 // Step 3: re-run is idempotent — "All migrations up to date" must exitCOMMENT
LOWtest/apply-migrations-pglite-spawn.serial.test.ts149 // Step 4: --list exits 0 (third leg of the #1062 contract).COMMENT
LOWtest/pages-soft-delete.test.ts210 // Step 1: page is visible by default.COMMENT
LOWtest/pages-soft-delete.test.ts215 // Step 2: soft-delete, default getPage returns null.COMMENT
LOWtest/pages-soft-delete.test.ts220 // Step 3: include_deleted: true surfaces the row with deleted_at populated.COMMENT
LOWtest/pages-soft-delete.test.ts225 // Step 4: restore → default getPage returns the row again.COMMENT
LOWtest/doctor-cli-smoke.serial.test.ts87 // Step 1: init + apply migrations so the brain is at head before doctor runs.COMMENT
LOWtest/doctor-cli-smoke.serial.test.ts93 // Step 2: doctor --json against the fresh brain. This is the load-bearingCOMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts47 // Step 1: accept v1 cleanly.COMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts78 // Step 2: stage a pending v2 (simulates crash).COMMENT
LOWtest/skillopt/adversarial/resume-after-crash.test.ts89 // Step 3: resume — call revertAllPending (what runOptimizationLoop does).COMMENT
LOWtest/skillopt/adversarial/partial-write-crash.test.ts92 // Step 1: a clean accept.COMMENT
LOWtest/skillopt/adversarial/partial-write-crash.test.ts98 // Step 2: stage a pending v2 from a crashed run.COMMENT
LOWtest/e2e/worker-abort-recovery.test.ts40 // Step 1: Submit a slow job with a short timeoutCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts46 // Step 2: Submit a fast job that should run AFTER the slow one times outCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts75 // Step 3: Start workerCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts78 // Step 4: Wait for slow job timeout (200ms) + handler abort + fast job executionCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts81 // Step 5: Stop workerCOMMENT
LOWtest/e2e/worker-abort-recovery.test.ts85 // Step 6: VerifyCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts466 // Step 1: register a throwaway client via CLI.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts479 // Step 2: mint a token through the live server.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts492 // Step 3: revoke via the CLI subprocess.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts502 // Step 4: previously-minted token must now be rejected at /mcp. CascadeCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts512 // Step 5: re-running revoke-client on the now-deleted id must exit 1.COMMENT
LOWtest/e2e/sync.test.ts461 // Step 1: First sync of the clean repo — should succeed.COMMENT
LOWtest/e2e/sync.test.ts467 // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug.COMMENT
LOWtest/e2e/sync.test.ts477 // Step 3: Sync should block. Bookmark must NOT advance.COMMENT
LOWtest/e2e/sync.test.ts491 // Step 4: Run with skipFailed — bookmark advances, entry gets acked.COMMENT
LOWtest/e2e/sync.test.ts501 // Step 5: Verify what doctor would render for the historical entry.COMMENT
LOWtest/e2e/sync.test.ts516 // Step 6: Add a second broken file — this one with a different failure codeCOMMENT
LOWtest/e2e/sync.test.ts532 // Step 7: Sync blocks again on the new failure. Old entry stays acked.COMMENT
LOWtest/e2e/sync.test.ts546 // Step 8: Skip again — both entries acked, summary aggregates the count.COMMENT
LOWtest/e2e/eval-loop.test.ts153 // Step 1: capture three search queries against the live brain.COMMENT
LOWtest/e2e/eval-loop.test.ts165 // Step 2: publish a baseline from the captured rows.COMMENT
LOWtest/e2e/eval-loop.test.ts172 // Step 3: gate against the baseline. Since the brain hasn't changed,COMMENT
LOWtest/e2e/system-of-record-invariant.test.ts207 // Step 3: snapshot.COMMENT
LOWtest/e2e/system-of-record-invariant.test.ts216 // Step 4: DELETE every rebuildable derived table. NOT tags — tagsCOMMENT
LOWtest/e2e/system-of-record-invariant.test.ts227 // Step 5: re-import all + re-extract. Re-import is what rebuildsCOMMENT
LOWtest/e2e/system-of-record-invariant.test.ts232 // Step 6: snapshot + diff.COMMENT
LOWtests/heavy/pg_upgrade_matrix.sh62 # Step 1: build the legacy fixture (drop schema, init to LATEST, down-mutate)COMMENT
LOWtests/heavy/pg_upgrade_matrix.sh73 # Step 2: walk forward. `gbrain doctor` triggers engine.connect() whichCOMMENT
LOWtests/heavy/pg_upgrade_matrix.sh88 # Step 3: assert status is non-fatal. We accept 'ok' and 'warnings' becauseCOMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh54# Step 1: seed the synthetic brain.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh81# Step 2: init brain + register the source.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh109# Step 3: run gbrain doctor; capture wall-clock + exit + frontmatter_integrity status.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh120# Step 4: assert.COMMENT
LOWtests/heavy/sync_lock_regression.sh51# Step 1: ensure schema is up-to-date by running doctor once. Doctor exitsCOMMENT
LOWtests/heavy/sync_lock_regression.sh58# Step 2: create a tiny brain dir + register it as sync.repo_path so each syncCOMMENT
LOWtests/heavy/sync_lock_regression.sh95# Step 3: spawn N parallel sync processes. Capture each one's exit code +COMMENT
LOWtests/heavy/sync_lock_regression.sh121# Step 4: collect outcomesCOMMENT
LOWtests/heavy/sync_lock_regression.sh146# Step 5: assert no leaked gbrain_cycle_locks rows. The pkey column is `id`,COMMENT
LOWtests/heavy/sync_lock_regression.sh151# Step 6: verdictCOMMENT
LOWtests/heavy/_build_legacy_fixtures.sh58# Step 1: reset schemaCOMMENT
LOWtests/heavy/_build_legacy_fixtures.sh62# Step 2: bring to LATEST via gbrain. The CLI's `doctor --json` triggersCOMMENT
94 more matches not shown…
Hyper-Verbose Identifiers262 hits · 262 pts
SeverityFileLineSnippetContext
LOWtest/cycle-synthesize.test.ts397 function scanForUnpairedSurrogates(s: string): { index: number; kind: 'lone-high' | 'lone-low' } | null {CODE
LOWtest/benchmark-graph-quality.ts417async function measureBaselineRelational(CODE
LOWtest/voyage-multimodal.test.ts33function configureVoyageMultimodal(env: Record<string, string | undefined> = {}) {CODE
LOWtest/benchmark-knowledge-runtime.ts269async function runDoctorCompletenessBench(): Promise<{CODE
LOWtest/schema-bootstrap-coverage.test.ts456function parseIndexColumnReferences(sql: string): Array<{ table: string; column: string }> {CODE
LOWtest/mcp-tool-defs.test.ts37function referenceParamDefToSchema(p: ParamDefLike): Record<string, unknown> {CODE
LOWtest/e2e/migration-v47-notability.test.ts85async function readNotabilityColumnState(): Promise<{CODE
LOWtest/e2e/skill-brain-first.test.ts45function copyFixturesIntoTempWorkspace(): Workspace {CODE
LOWtest/e2e/thin-client.test.ts128 function parseRegisterClientOutput(out: string): { clientId: string; clientSecret: string } {CODE
LOWtest/e2e/source-routing.test.ts166async function seedTwoSourcesWithSharedSymbol(engine: PGLiteEngine): Promise<void> {CODE
LOWtest/helpers/extract-added-columns.ts53function extractAlterAddColumnsFromSql(sql: string): Array<{ table: string; column: string }> {CODE
LOWtest/helpers/extract-added-columns.ts81export function extractAddedColumnsFromMigrations(): AddedColumnRef[] {CODE
LOWtest/helpers/schema-diff.ts181export function formatIndexDiffForFailure(diff: IndexDiff): string {CODE
LOWtest/helpers/cli-pty-runner.ts41export function isNumberedOptionListVisible(visible: string): boolean {CODE
LOWsrc/cli.ts669async function printIdentityBannerBestEffort(CODE
LOWsrc/core/doctor-remote.ts76export async function collectRemoteDoctorReport(CODE
LOWsrc/core/post-upgrade-reembed.ts131export async function runPostUpgradeReembedPrompt(CODE
LOWsrc/core/last-retrieved.ts72export async function awaitPendingLastRetrievedWrites(CODE
LOWsrc/core/destructive-guard.ts135export function checkDestructiveConfirmation(CODE
LOWsrc/core/takes-fence.ts191export function normalizeWeightForStorage(CODE
LOWsrc/core/thin-client-upgrade-prompt.ts275function defaultVerifyUpgradeAdvanced(remoteVersion: string): { advanced: boolean; newVersion: string | null } {CODE
LOWsrc/core/embedding-dim-check.ts93export async function readContentChunksEmbeddingDim(engine: BrainEngine): Promise<ColumnDimResult> {CODE
LOWsrc/core/embedding-dim-check.ts275export function resolveSchemaEmbeddingDim(opts: ResolveSchemaEmbeddingDimOpts): ResolveSchemaDimResult {CODE
LOWsrc/core/embedding-dim-check.ts308export function resolveSchemaMultimodalDim(opts: ResolveSchemaMultimodalDimOpts): ResolveSchemaDimResult {CODE
LOWsrc/core/embedding-dim-check.ts362function validateDimAgainstTouchpoint(CODE
LOWsrc/core/embedding-dim-check.ts408function isCustomDimValidForProvider(CODE
LOWsrc/core/embedding-dim-check.ts655export async function assertFactsEmbeddingDimMatchesConfig(engine: BrainEngine): Promise<void> {CODE
LOWsrc/core/source-resolver.ts201export function formatSoleNonDefaultNudge(sourceId: string): string | null {CODE
LOWsrc/core/migrate.ts5556async function checkForBlockingConnections(engine: BrainEngine): Promise<boolean> {CODE
LOWsrc/core/cli-force-exit.ts125export function computeTeardownDeadlineMs(opts: {CODE
LOWsrc/core/brain-writer.ts81export function makeFrontmatterBackupRunId(date = new Date()): string {CODE
LOWsrc/core/brain-writer.ts95export function defaultFrontmatterBackupRoot(runId = makeFrontmatterBackupRunId()): string {CODE
LOWsrc/core/audit-quality-probe.ts45export function computeQualityProbeAuditFilename(now: Date = new Date()): string {CODE
LOWsrc/core/audit-quality-probe.ts91export function readRecentQualityProbeEvents(CODE
LOWsrc/core/audit-synopsis.ts76export function computeSynopsisAuditFilename(now: Date = new Date()): string {CODE
LOWsrc/core/audit-synopsis.ts135export function readRecentSynopsisFailures(CODE
LOWsrc/core/audit-synopsis.ts180export function summarizeSynopsisFailures(CODE
LOWsrc/core/background-work.ts63export function registerBackgroundWorkDrainer(d: BackgroundWorkDrainer): void {CODE
LOWsrc/core/background-work.ts103export async function drainAllBackgroundWorkForCliExit(opts?: { timeoutMs?: number }): Promise<void> {CODE
LOWsrc/core/archive-crawler-config.ts154export function normalizeAndValidateArchiveCrawlerConfig(CODE
LOWsrc/core/rerank-audit.ts61export function computeRerankAuditFilename(now: Date = new Date()): string {CODE
LOWsrc/core/oauth-provider.ts105export function validateTokenEndpointAuthMethod(value: unknown): TokenEndpointAuthMethod {CODE
LOWsrc/core/ssrf-validate.ts81export async function validateAndResolveUrl(urlStr: string): Promise<ResolvedTarget> {CODE
LOWsrc/core/markdown.ts532export function inferTypeAndSubtypeFromPack(CODE
LOWsrc/core/guardrails.ts82export function registerGuardrailProvider(provider: GuardrailProvider): void {CODE
LOWsrc/core/guardrails.ts88export function unregisterGuardrailProvider(id: string): boolean {CODE
LOWsrc/core/sources-ops.ts532export async function resolveScopedSourceOrThrow(CODE
LOWsrc/core/vector-index.ts32export function applyChunkEmbeddingIndexPolicy(sql: string, dims: number): string {CODE
LOWsrc/core/vector-index.ts243export function isSupabaseAutoMaintenance(active: ActiveBuildInfo): boolean {CODE
LOWsrc/core/contextual-retrieval-resolver.ts71export function resolveContextualRetrievalMode(CODE
LOWsrc/core/retrieval-upgrade-prompt.ts62export async function runRetrievalUpgradePrompt(CODE
LOWsrc/core/pglite-engine.ts119export function computeSnapshotSchemaHash(CODE
LOWsrc/core/pglite-engine.ts179export function buildPgliteInitErrorMessage(CODE
LOWsrc/core/contextual-retrieval-service.ts209export async function reembedPageWithContextualRetrieval(CODE
LOWsrc/core/contextual-retrieval-service.ts523function readSourceTextWithFallback(page: Page, chunks: ChunkInput[]): string {CODE
LOWsrc/core/contextual-retrieval-service.ts579export function expectedModeForPageSourceOnly(args: {CODE
LOWsrc/core/context-engine.ts624export function createGBrainContextEngine(ctx: {CODE
LOWsrc/core/remediation-checkpoint.ts60export function saveRemediationCheckpoint(cp: RemediationCheckpoint): void {CODE
LOWsrc/core/remediation-checkpoint.ts74export function loadRemediationCheckpoint(planHash: string): RemediationCheckpoint | null {CODE
LOWsrc/core/remediation-checkpoint.ts92export function listRemediationCheckpoints(): Array<{ plan_hash: string; mtime: number }> {CODE
202 more matches not shown…
Modern AI Meta-Vocabulary75 hits · 218 pts
SeverityFileLineSnippetContext
MEDIUMllms-full.txt3167# Scaling skills past 300 without drowning the context windowCOMMENT
MEDIUMTODOS.md1639three real wins in PR #1316 (`chipoto69` — "Phase 4 multi-agent hardening")CODE
MEDIUMTODOS.md2492## v0.37.4.0 pgGraph CI scaffolding follow-ups (v0.37.x+)COMMENT
MEDIUMtest/skillpack-reference-apply.test.ts90 // bundle. Without scaffold-time base tracking, we cannot tellCOMMENT
MEDIUMtest/skillpack-reference-apply.test.ts134 // Don't scaffold — leave target missing.COMMENT
MEDIUMtest/skillify-scaffold.test.ts188 // to scaffold. The plan must NOT queue a duplicate append, evenCOMMENT
MEDIUMtest/skillify-scaffold.test.ts427 // cross-modal eval. No `gbrain skillify scaffold demo-eleven` shell-outCOMMENT
MEDIUMtest/skillify-scaffold.test.ts449 // Receipts naming convention is documented in the scaffold so theCOMMENT
MEDIUMtest/skillify-scaffold.test.ts453 // Pass criterion is documented in the scaffold (Q2 floor + Q3 floor).COMMENT
MEDIUMtest/sync-failure-ledger.serial.test.ts263describe('#5 + #6 applySyncFailureGate orchestration', () => {CODE
MEDIUMtest/repo-root.test.ts317 // skillify scaffold, post-install-advisory). If a future edit adds theCOMMENT
MEDIUMtest/skillpack-scaffold.test.ts180 // First, scaffold without the paired source declared (simulating "skillCOMMENT
MEDIUMtest/skillpack-scaffold.test.ts187 // Now scaffold (gbrain bundle has the paired source declared); theCOMMENT
MEDIUMtest/eval-v041_2-scaffolds.test.ts1// v0.41 T11 — minimal scaffold tests for the 3 new eval commands.COMMENT
MEDIUMtest/schema-pack/scaffold-extractable.test.ts1// v0.42 Wave C1 — scaffold-extractable mutation tests.COMMENT
MEDIUMtest/schema-pack/scaffold-extractable.test.ts6// at test/e2e/schema-scaffold-extractable.test.ts because it needsCOMMENT
MEDIUMtest/extract/benchmark.test.ts112 // user gets the scaffold-extractable hint, not a path error.COMMENT
MEDIUMtest/e2e/skillpack-flow.test.ts117 // Run scaffold from gbrainRoot so it picks up our scratch bundle.COMMENT
MEDIUMdocs/skillpack-anatomy.md18│ └── bootstrap.md # post-scaffold display (NOT an executor)CODE
MEDIUMdocs/skillpack-anatomy.md96gbrain skillpack init my-pack # scaffold the treeCODE
MEDIUMdocs/skillpack-anatomy.md98gbrain skillpack doctor my-pack --fix --yes # auto-scaffold missing piecesCODE
MEDIUMdocs/GBRAIN_RECOMMENDED_SCHEMA.md914## What makes this different from RAGCOMMENT
MEDIUMdocs/designs/SKILLPACK_REGISTRY_V1_SPEC.md883gbrain skillpack init <name> # NEW: scaffold publisher repoCODE
MEDIUMdocs/designs/KNOWLEDGE_RUNTIME.md414### 6.1 The anti-hallucination invariantCOMMENT
MEDIUMdocs/designs/KNOWLEDGE_RUNTIME.md458// src/core/output/scaffold.tsCOMMENT
MEDIUMdocs/architecture/KEY_FILES.md149- `src/core/skillpack/{manifest-v1,tarball,state,remote-source,trust-prompt,bootstrap-display,scaffold-third-party,regisCODE
MEDIUMdocs/architecture/KEY_FILES.md152- `src/core/skillpack/{init-brain-pack,brain-pack-advisory,brain-pack-lint,brain-resident-locate,nag-state}.ts` (#2180) CODE
MEDIUMdocs/architecture/KEY_FILES.md153- `src/core/advisor/{types,run,render,recommended-set,history,apply,collect-*}.ts` + `src/commands/advisor.ts` (#2180) —CODE
MEDIUMdocs/architecture/schema-packs.md57gbrain schema init <name> # scaffold a stub pack (experimental)CODE
MEDIUMdocs/architecture/topologies.md269### Recommended embedding modelCOMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md1# Skillpacks as scaffolding, not amberCOMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md31### `gbrain skillpack scaffold <name> [--workspace PATH]`COMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md185# shared deps that scaffold drops in:COMMENT
MEDIUMdocs/guides/scaling-skills.md1# Scaling skills past 300 without drowning the context windowCOMMENT
MEDIUMdocs/guides/meeting-ingestion.md14 # AI summaries hallucinate framing ("it was agreed that...")COMMENT
MEDIUMdocs/guides/multi-source-brains.md180# Remove the durability scaffolding (also runs automatically on `sources remove`):COMMENT
MEDIUMexamples/skillpack-reference/README.md42│ └── bootstrap.md # post-scaffold display (no executor)CODE
MEDIUMscripts/check-batch-audit-site.sh50# allowed to use synthetic sites for assertion scaffolding).COMMENT
MEDIUMscripts/build-skillpack-anatomy.ts75│ └── bootstrap.md # post-scaffold display (NOT an executor)CODE
MEDIUMscripts/build-skillpack-anatomy.ts131gbrain skillpack init my-pack # scaffold the treeCODE
MEDIUMscripts/build-skillpack-anatomy.ts133gbrain skillpack doctor my-pack --fix --yes # auto-scaffold missing piecesCODE
MEDIUMskills/skillify/SKILL.md179### Cycles + cost guardrailsCOMMENT
MEDIUMsrc/cli.ts1183 // args[0] is the subcommand (scaffold|check).COMMENT
MEDIUMsrc/core/check-resolvable.ts589 // `gbrain skillify scaffold`. Presence means a scaffolded skillCOMMENT
MEDIUMsrc/core/repo-root.ts156 // && gbrain skillpack scaffold X` finds the agent repo, not anCOMMENT
MEDIUMsrc/core/import-file.ts327 // ingest. No-op when zero guardrails are registered (OSS default).COMMENT
MEDIUMsrc/core/cycle/drift.ts143 // v0.28 scaffold: write a candidate report. v0.29 wires LLM-driven weightCOMMENT
MEDIUMsrc/core/skillpack/scaffold-third-party.ts149 // 5. Enumerate scaffold entries (every file under skills/<slug>/ + pairedCOMMENT
MEDIUMsrc/core/skillpack/scaffold-third-party.ts156 skillSlug: undefined, // third-party scaffold lands the whole packCODE
MEDIUMsrc/core/skillpack/scaffold.ts119 // symlink check or path confinement (the scaffold source is gbrain'sCOMMENT
MEDIUMsrc/core/skillpack/scaffold.ts147// { walkSourceDir } from 'scaffold.ts'` if they prefer one entry point.COMMENT
MEDIUMsrc/core/skillpack/post-install-advisory.ts88 // #8: `skillpack install` was removed — scaffold is canonical. The sharedCOMMENT
MEDIUMsrc/core/skillpack/post-install-advisory.ts88 // #8: `skillpack install` was removed — scaffold is canonical. The sharedCOMMENT
MEDIUMsrc/core/skillpack/post-install-advisory.ts89 // renderer emits scaffold commands so this surface and `gbrain advisor` agree.COMMENT
MEDIUMsrc/core/skillpack/migrate-fence.ts262 // Copy any missing skills additively (uses scaffold's underlyingCOMMENT
MEDIUMsrc/core/skillpack/bundle.ts319// The bundler reads this on every enumerate; scaffold copies the pairedCOMMENT
MEDIUMsrc/core/skillpack/rubric.ts219 'Create CHANGELOG.md with at least a `## [<version>] - <YYYY-MM-DD>` entry for the current version. `gbrain CODE
MEDIUMsrc/core/schema-pack/scaffold-extractable.ts269 // is the canonical gbrain scaffold posture (matches schema init,COMMENT
MEDIUMsrc/core/schema-pack/scaffold-extractable.ts270 // skillpack scaffold, etc).COMMENT
MEDIUMsrc/core/distribution/index.ts20// remote-source,registry-schema,scaffold-third-party}.ts`. It mustCOMMENT
15 more matches not shown…
Fake / Example Data72 hits · 75 pts
SeverityFileLineSnippetContext
LOWtest/extract-by-mention.test.ts91 await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: 'CODE
LOWtest/publish.test.ts89 expect(extractTitle('# Jane Doe\n\nContent.')).toBe('Jane Doe');CODE
LOWtest/longmemeval-intent.test.ts17 question: opts.question ?? 'placeholder',CODE
LOWtest/longmemeval-intent.test.ts18 answer: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts60 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts70 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts81 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts136 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts191 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts200 compiled_truth: 'placeholder',CODE
LOWtest/bench-publish.test.ts36 const input = [makeInput('hello world'), makeInput('lorem ipsum')];CODE
LOWtest/eval-contradictions-fixture-redact.test.ts116 expect(out).not.toContain('foo@bar.com');CODE
LOWtest/resolvers.test.ts426 process.env.X_API_BEARER_TOKEN = 'fake-token';CODE
LOWtest/resolvers.test.ts431 const ctx = makeCtx({ config: { x_api_bearer_token: 'fake-token' } });CODE
LOWtest/extract-by-mention-resume.test.ts63 await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: 'CODE
LOWtest/schema-pack-registry-reload.test.ts145 writeFileSync(packPath, 'placeholder', 'utf-8');CODE
LOWtest/backlinks.test.ts14 expect(refs[0].name).toBe('Jane Doe');CODE
LOWtest/backlinks.test.ts23 expect(refs[0].name).toBe('Acme Corp');CODE
LOWtest/backlinks.test.ts47 expect(extractPageTitle('---\ntitle: "Jane Doe"\ntype: person\n---\n# Jane')).toBe('Jane Doe');CODE
LOWtest/backlinks.test.ts51 expect(extractPageTitle('---\ntype: person\n---\n# Jane Doe')).toBe('Jane Doe');CODE
LOWtest/frontmatter-inference.test.ts138 expect(result.title).toBe('John Doe');CODE
LOWtest/sync.test.ts300 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/sync.test.ts716 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/by-mention.test.ts10 * 2. Multi-word phrase pass ("Acme Corp" matches "Acme Corp" not "Acme")COMMENT
LOWtest/by-mention.test.ts100 test('2. multi-word phrase pass — "Acme Corp" matches multi-word, not single', () => {CODE
LOWtest/by-mention.test.ts103 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/by-mention.test.ts194 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/by-mention.test.ts202 // Second occurrence of "Acme": multi-word "Acme Corp" matches → multi-word wins.COMMENT
LOWtest/by-mention.test.ts213 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/performfullsync-source-id.test.ts72 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/routing-eval-cli.test.ts9 * 1. Passing --llm emits a stderr notice ("placeholder" / "structuralCOMMENT
LOWtest/routing-eval-cli.test.ts64const WARNING_NEEDLE = 'placeholder';CODE
LOWtest/orphans.test.ts155 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },CODE
LOWtest/orphans.test.ts184 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },CODE
LOWtest/orphans.test.ts188 expect(out).toContain('Acme Corp');CODE
LOWtest/sync-resumable-import.serial.test.ts42 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/sync-metafile-skip.serial.test.ts32 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/sync-parallel.test.ts30 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/v0_37_gap_fill.serial.test.ts382 writeFileSync(join(dotgbrain, 'brain.pglite', 'placeholder'), 'stub');CODE
LOWtest/longmemeval-trajectory-routing.test.ts41 answer: 'placeholder',CODE
LOWtest/longmemeval-trajectory-routing.test.ts54 answer: 'placeholder',CODE
LOWtest/enrichment-service.test.ts7 expect(slugifyEntity('Jane Doe', 'person')).toBe('people/jane-doe');CODE
LOWtest/enrichment-service.test.ts11 expect(slugifyEntity('Acme Corp', 'company')).toBe('companies/acme-corp');CODE
LOWtest/enrichment-service.test.ts33 expect(entityPagePath('Jane Doe', 'person')).toBe(slugifyEntity('Jane Doe', 'person'));CODE
LOWtest/enrichment-service.test.ts56 const jane = entities.find(e => e.name === 'Jane Doe');CODE
LOWtest/connect.test.ts156 expect(resolveToken({ tokenFlag: null, env: null, mode: 'print' })).toEqual({ kind: 'placeholder' });CODE
LOWtest/bench/baseline-file.test.ts54 const rows = [makeRow('hello world', 0), makeRow('lorem ipsum', 1)];CODE
LOWtest/bench/baseline-file.test.ts63 expect(parsed.rows.map(r => r.query).sort()).toEqual(['hello world', 'lorem ipsum']);CODE
LOWtest/ai/recipe-azure-openai.test.ts28 AZURE_OPENAI_API_KEY: 'az-fake-key',CODE
LOWtest/ai/recipe-azure-openai.test.ts63 const auth = r.resolveAuth!({ AZURE_OPENAI_API_KEY: 'az-fake-key' });CODE
LOWtest/ai/recipe-azure-openai.test.ts65 expect(auth.token).toBe('az-fake-key');CODE
LOWtest/ai/recipe-azure-openai.test.ts78 expect(result.headers).toEqual({ 'api-key': 'az-fake-key' });CODE
LOWtest/ai/recipes-existing-regression.test.ts87 const auth = defaultResolveAuth(ollama!, { OLLAMA_API_KEY: 'fake-token' }, 'embedding');CODE
LOWtest/ai/recipes-existing-regression.test.ts89 expect(auth.token).toBe('Bearer fake-token');CODE
LOWtest/ai/recipes-existing-regression.test.ts164 const env = { FAKE_AZURE_API_KEY: 'fake-key' };CODE
LOWtest/ai/recipes-existing-regression.test.ts167 expect(auth.headers).toEqual({ 'api-key': 'fake-key' });CODE
LOWtest/e2e/sync.test.ts32 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/e2e/sync.test.ts433 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/e2e/sync-parallel.test.ts33 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/e2e/contextual-retrieval-pglite.test.ts57 env: { OPENAI_API_KEY: 'sk-test-fake-key-for-stub' },CODE
12 more matches not shown…
AI Slop Vocabulary11 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtest/eval-chronicle.test.ts2 * v0.42.x — Life Chronicle (#2390) feature eval harness (Phase A.9, PRIMARY proof).COMMENT
MEDIUMtest/sources.test.ts30 // Match by substring so tests are robust against whitespace.COMMENT
MEDIUMtest/hybrid-search-lite.serial.test.ts127 // is robust to the fixture’s actual chunking.COMMENT
MEDIUMtest/sum-stale-chunk-chars.test.ts94 // depend on gateway-configured dimensions (keeps it robust regardless ofCOMMENT
MEDIUMtest/sum-stale-chunk-chars.test.ts98 // in atttypmod) so the test is robust to whatever dim initSchema chose.COMMENT
MEDIUMtest/migration-v120.test.ts39 // string so the assertion is robust to driver array shape.COMMENT
MEDIUMscripts/check-fuzz-purity.sh87# A fuzz harness that pulls in `engine.ts` could trigger DB connections throughCOMMENT
LOWscripts/run-e2e.sh77# GBRAIN_HOME (just set above for HOME isolation); everything else GBRAIN_* isCOMMENT
LOWscripts/import-from-upstream.sh171# subordinate script. For v0, just call the guard against the destinationCOMMENT
MEDIUMsrc/core/source-resolver.ts137 // to tier 6 rather than throwing. Resolver stays robust to bad config.COMMENT
MEDIUMsrc/commands/eval-schema-authoring.ts3// Codex finding #9 honored: this harness's pass-criterion measuresCOMMENT
Cross-Language Confusion (JS/TS)3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHtest/e2e/code-indexing.test.ts86 print(f"started {self.config['name']}")CODE
HIGHtest/e2e/code-indexing.test.ts90 print(f"stopped {self.config.get('name', 'anon')}")CODE
HIGHtest/e2e/code-indexing.test.ts93 if not key: return NoneCODE
Example Usage Blocks16 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/heavy/pg_upgrade_matrix.sh29# Usage:COMMENT
LOWtests/heavy/_build_legacy_fixtures.sh11# Usage:COMMENT
LOWtests/heavy/measure_rss.sh13# Usage:COMMENT
LOWtests/heavy/read_latency_under_sync.sh13# Usage:COMMENT
LOWtests/heavy/sync_timeout_rescue.sh39# Usage:COMMENT
LOWscripts/check-proposal-pii.sh24# Usage:COMMENT
LOWscripts/run-unit-parallel.sh11# Usage:COMMENT
LOWscripts/fix-v0.11.0.sh5# Usage:COMMENT
LOWscripts/check-key-files-current-state.sh22# Usage:COMMENT
LOWscripts/run-heavy.sh7# Usage:COMMENT
LOWscripts/ci-cache-hash.sh45# Usage:COMMENT
LOWscripts/run-verify-parallel.sh11# Usage:COMMENT
LOWscripts/import-from-upstream.sh5# Usage:COMMENT
LOWscripts/profile-tests.sh7# Usage:COMMENT
LOWscripts/check-privacy.sh16# Usage:COMMENT
LOWscripts/smoke-test.sh7# Usage:COMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtest/sync-sole-non-default-routing.test.ts159 // Pages went to 'default' as requested.COMMENT
HIGHtest/retrieval-upgrade-planner.test.ts327 // Resume path also calls runSchemaTransition. Mark as requested so theCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsrc/core/cycle/extract-atoms.ts129 - Stand alone (no "as discussed above")CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/core/skillify/templates.ts134 // TODO: implement. This stub is detected by \`gbrain check-resolvableCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/edge-extractor.test.ts49def helper():CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/check-skill-brain-first.sh56 except Exception:CODE