Repository Analysis

garrytan/gbrain

Garry's Opinionated OpenClaw/Hermes Agent Brain

8.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of garrytan/gbrain, a TypeScript project with 29,242 GitHub stars. SynthScan v2.0 examined 1,008,883 lines of code across 3959 source files, recording 4348 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 8.3 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.3
Adjusted Score
8.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
29.2K
Stars
TypeScript
Language
1.0M
Lines of Code
4.0K
Files
4.3K
Pattern Hits
2026-08-29
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 10MEDIUM 1837LOW 2501

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 4348 distinct pattern matches across 16 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 Separators1676 hits · 5034 pts
SeverityFileLineSnippetContext
MEDIUMtest/google-source-reconcile.test.ts71// ── Thread / message id constants (hex only) ────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts77// ── Fake Google API behind fetchImpl ─────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts223// ── In-memory vault ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts280// ── Shared setup helpers ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts377// ── --full reconcile ─────────────────────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts482// ── Backfill floor freeze ────────────────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts539// ── 404-vanished threads ─────────────────────────────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts606// ── syncToken 410 recovery (calendar + contacts) ─────────────────────────────COMMENT
MEDIUMtest/google-source-reconcile.test.ts680// ── loops_extract enqueue cap ────────────────────────────────────────────────COMMENT
MEDIUMtest/operations-source-isolation-matrix.test.ts101// ─── The matrix ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/operations-source-isolation-matrix.test.ts210// ─── Fixture ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/operations-source-isolation-matrix.test.ts308// ─── Ratchet: the table covers the registry exactly ───────────────────────COMMENT
MEDIUMtest/operations-source-isolation-matrix.test.ts321// ─── The walk ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts50// ── Synthetic fixtures (never real tokens/emails) ────────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts80// ── The fake relay server (the conformance target) ───────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts106 // ── POST /api/oauth/relay/sessions — create a consent session ────────COMMENT
MEDIUMtest/creds-relay-client.test.ts162 // ── POST /api/oauth/relay/refresh — server-side token refresh ────────COMMENT
MEDIUMtest/creds-relay-client.test.ts204// ── relayUrl ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts223// ── createSession ────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts251// ── pollClaim ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/creds-relay-client.test.ts415// ── refreshViaRelay ──────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts71// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts73// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts81// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts130// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts132// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts133// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts135// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts307// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts309// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts380// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts382// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts478// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts480// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts609// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts611// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts829// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts834// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts914// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts921// ────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1159// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1161// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1205// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1207// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1669// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1672// ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts1749// ─── v0.37.2.0 — v80 takes_unresolvable_quality_v0_37_2_0 ──────────────────COMMENT
MEDIUMtest/migrate.test.ts1935// ─── v0.38.0.0 — v81 pages_provenance_columns ─────────────────────────────COMMENT
MEDIUMtest/migrate.test.ts2114// ─── v0.40.2.0 — v89 facts_event_type_column ───────────────────────────────COMMENT
MEDIUMtest/all-sources-sentinel.test.ts59// ── Resolver tiers pass the sentinel through verbatim ──────────────────COMMENT
MEDIUMtest/all-sources-sentinel.test.ts100// ── sourceScopeOpts — the single read-scope choke point ─────────────────COMMENT
MEDIUMtest/all-sources-sentinel.test.ts129// ── Never narrower than passing no flag (#2561 regression shape) ────────COMMENT
MEDIUMtest/all-sources-sentinel.test.ts129// ── Never narrower than passing no flag (#2561 regression shape) ────────COMMENT
MEDIUMtest/all-sources-sentinel.test.ts193// ── makeContext — explicit --source failures error loudly ───────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts282// ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts287// ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts358// ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts364// ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts456// ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtest/embed-stale.serial.test.ts461// ────────────────────────────────────────────────────────────────COMMENT
1616 more matches not shown…
Over-Commented Block1223 hits · 1088 pts
SeverityFileLineSnippetContext
LOWdocker-compose.ci.yml1# docker-compose.ci.ymlCOMMENT
LOWbunfig.toml1[test]COMMENT
LOWbunfig.toml21#COMMENT
LOWbunfig.toml41#COMMENT
LOWtest/sources-abs-path-3696.test.ts101describe('#3696 residual — a relative --clone-dir is absolutized before use', () => {COMMENT
LOWtest/migrate.test.ts61 // Don't call initSchema. Probe against an empty PGlite — getConfig shouldCOMMENT
LOWtest/migrate.test.ts121 // accidentally re-expanding v16's scope.COMMENT
LOWtest/migrate.test.ts181 for (const line of addColumnLines) {COMMENT
LOWtest/migrate.test.ts381// v0.18.1 RLS hardening — structural guard for migration v24COMMENT
LOWtest/migrate.test.ts601 return ((m?.sqlFor as any)?.postgres ?? m?.sql ?? '') as string;COMMENT
LOWtest/migrate.test.ts1061 //COMMENT
LOWtest/migrate.test.ts1381 // Critically: no SET idle_in_transaction in source — startup parametersCOMMENT
LOWtest/migrate.test.ts2121// Renumbered v81 → v82 → v89 across two successive master merges:COMMENT
LOWtest/brain-registry.serial.test.ts261 const reg = new BrainRegistry([COMMENT
LOWtest/facts-backstop-gating.test.ts21 await engine.initSchema();COMMENT
LOWtest/onboard-phantom-rec-gates.test.ts1// test/onboard-phantom-rec-gates.test.tsCOMMENT
LOWtest/onboard-phantom-rec-gates.test.ts21// `gbrain-base` applies — and gbrain-base DOES declare four inference.regexCOMMENT
LOWtest/config-db-plane-round-trips.test.ts1// Regression: loadConfigWithEngine() read every DB-plane key one at a time.COMMENT
LOWtest/openclaw-plugin-manifest.test.ts61 it('every RECOMMENDED skill is bundled (recommended-but-unscaffoldable is a broken funnel)', () => {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.ts201 });COMMENT
LOWtest/think-trajectory-injection.test.ts321 const userMsg = captured[0].user;COMMENT
LOWtest/resolvers.test.ts621 });COMMENT
LOWtest/source-id-tx-regression.test.ts481 expect(rows[0].slug).toBe(REN_TO_2);COMMENT
LOWtest/schema-cli.test.ts1// v0.38 Phase C: gbrain schema CLI smoke tests.COMMENT
LOWtest/brain-score-recommendations.test.ts61 expect(HOSTED_EMBED_KEY_CONFIG.OPENAI_API_KEY).toBe('openai_api_key');COMMENT
LOWtest/facts-fence-typed.test.ts1// v0.35.4 — typed-claim fence parser+renderer round-trip + normalization.COMMENT
LOWtest/init-picker-pty.serial.test.ts41const CLI_TS = join(REPO_ROOT, 'src', 'cli.ts');COMMENT
LOWtest/doctor-hidden-by-search-policy.test.ts61beforeAll(async () => {COMMENT
LOWtest/sources-ops.test.ts1061 const missingDir = join(SANDBOX, 'does-not-exist-yet');COMMENT
LOWtest/cycle-synthesize.test.ts541 expect(prompt.length).toBeLessThan(30_000);COMMENT
LOWtest/pglite-repair-command.serial.test.ts421 test('uses the shared confirm-prompt helper, not a local reimplementation', () => {COMMENT
LOWtest/check-resolvable-cli.test.ts141COMMENT
LOWtest/mcp-client.test.ts181 const realServer = server;COMMENT
LOWtest/doctor-embedding-env-override.test.ts1// v0.41.2.1 — embedding_env_override doctor check (D9 #9).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/pglite-engine.test.ts1501// ─────────────────────────────────────────────────────────────────COMMENT
LOWtest/minions.test.ts2161 const b1 = await queue.add('srcsync2', { source_id: 'src-b' }, { maxWaiting: 1 });COMMENT
LOWtest/sync-sole-non-default-routing.test.ts161COMMENT
LOWtest/fence-extraction.test.ts161 expect(fenceChunks.length).toBeGreaterThan(0);COMMENT
LOWtest/operations-trust-boundary.test.ts201COMMENT
LOWtest/operations-trust-boundary.test.ts461 });COMMENT
LOWtest/operations-trust-boundary.test.ts481 // (fs import serving one localOnly op alongside safe remote ops) isCOMMENT
LOWtest/privacy-strip-and-forget.test.ts141 // stripped compiled_truth. A `## Facts` fence written below theCOMMENT
LOWtest/doctor-pglite-scratch-probe.test.ts1// #2674 — pglite_scratch_probe: distinguish a damaged PGLite store from aCOMMENT
LOWtest/doctor-pglite-scratch-probe.test.ts21// store: engine=null also covers locks and config refusals.COMMENT
LOWtest/search-mode.test.ts401 // v0.40.4 (salem) + v0.39 T21 (master): bumped 3→4 to fold graph_signalsCOMMENT
LOWtest/search-mode.test.ts421 // must not be served to post-fix lookups.COMMENT
LOWtest/search-mode.test.ts441 // mw2: 21→22 — #1663 exact-lookup injection + #3995 relational slot +COMMENT
LOWtest/search-mode.test.ts461 const unset = knobsHash(knobs);COMMENT
LOWtest/doctor-sync-consolidation.test.ts1// v0.41.19.0 — T6 of ops-fix-wave.COMMENT
LOWtest/by-mention.test.ts381});COMMENT
LOWtest/by-mention.test.ts581COMMENT
LOWtest/by-mention.test.ts621 // suppression: seed no entity with title="Apple" — duh, then there'sCOMMENT
LOWtest/envelope-to-gbrain.test.ts521 });COMMENT
LOWtest/envelope-to-gbrain.test.ts1661 }COMMENT
LOWtest/envelope-to-gbrain.test.ts1741 const { kept } = await survivor(collidingPair(COMMENT
LOWtest/envelope-to-gbrain.test.ts1781 // is therefore added after the calendar round trip rather than before it, soCOMMENT
LOWtest/envelope-to-gbrain.test.ts1841 expect(stderr).toContain('"c-dup" is not unique');COMMENT
1163 more matches not shown…
Structural Annotation Overuse413 hits · 705 pts
SeverityFileLineSnippetContext
LOWINSTALL_FOR_AGENTS.md11## Step 0: If you are not Claude CodeCOMMENT
LOWINSTALL_FOR_AGENTS.md22## Step 1: Install GBrainCOMMENT
LOWINSTALL_FOR_AGENTS.md63## Step 2: API KeysCOMMENT
LOWINSTALL_FOR_AGENTS.md94## Step 3: Create the BrainCOMMENT
LOWINSTALL_FOR_AGENTS.md229## Step 4: Import and IndexCOMMENT
LOWINSTALL_FOR_AGENTS.md284## Step 5: Load SkillsCOMMENT
LOWINSTALL_FOR_AGENTS.md365## Step 6: Identity (optional)COMMENT
LOWINSTALL_FOR_AGENTS.md378## Step 7: Recurring JobsCOMMENT
LOWINSTALL_FOR_AGENTS.md399## Step 8: IntegrationsCOMMENT
LOWINSTALL_FOR_AGENTS.md407## Step 9: VerifyCOMMENT
LOWllms-full.txt1146## Step 0: If you are not Claude CodeCOMMENT
LOWllms-full.txt1157## Step 1: Install GBrainCOMMENT
LOWllms-full.txt1198## Step 2: API KeysCOMMENT
LOWllms-full.txt1229## Step 3: Create the BrainCOMMENT
LOWllms-full.txt1364## Step 4: Import and IndexCOMMENT
LOWllms-full.txt1419## Step 5: Load SkillsCOMMENT
LOWllms-full.txt1500## Step 6: Identity (optional)COMMENT
LOWllms-full.txt1513## Step 7: Recurring JobsCOMMENT
LOWllms-full.txt1534## Step 8: IntegrationsCOMMENT
LOWllms-full.txt1542## Step 9: VerifyCOMMENT
LOWllms-full.txt3133## Step 1: See what pack is active todayCOMMENT
LOWllms-full.txt3154## Step 2: Fork the bundled packCOMMENT
LOWllms-full.txt3164## Step 3: Activate the forkCOMMENT
LOWllms-full.txt3176## Step 4: Add a researcher typeCOMMENT
LOWllms-full.txt3201## Step 5: Import some placeholder researcher pagesCOMMENT
LOWllms-full.txt3236## Step 6: See the gap with `stats`COMMENT
LOWllms-full.txt3246## Step 7: Backfill with `sync --apply`COMMENT
LOWllms-full.txt3282## 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.ts327 // Step 1: page is visible by default.COMMENT
LOWtest/pages-soft-delete.test.ts332 // Step 2: soft-delete, default getPage returns null.COMMENT
LOWtest/pages-soft-delete.test.ts337 // Step 3: include_deleted: true surfaces the row with deleted_at populated.COMMENT
LOWtest/pages-soft-delete.test.ts342 // 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.ts856 // Step 1: register a throwaway client via CLI.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts869 // Step 2: mint a token through the live server.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts882 // Step 3: revoke via the CLI subprocess.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts892 // Step 4: previously-minted token must now be rejected at /mcp. CascadeCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts902 // Step 5: re-running revoke-client on the now-deleted id must exit 1.COMMENT
LOWtest/e2e/sync.test.ts485 // Step 1: First sync of the clean repo — should succeed.COMMENT
LOWtest/e2e/sync.test.ts491 // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug.COMMENT
LOWtest/e2e/sync.test.ts501 // Step 3: Sync should block. Bookmark must NOT advance.COMMENT
353 more matches not shown…
Hyper-Verbose Identifiers576 hits · 573 pts
SeverityFileLineSnippetContext
LOWtest/explicit-skills-dir-readonly.test.ts24function writeTriggerOnlySkillsDir(skillsDir: string): void {CODE
LOWtest/fence-write.test.ts90function installFakeDurabilityHook(repoPath: string): void {CODE
LOWtest/cycle-synthesize.test.ts603 function scanForUnpairedSurrogates(s: string): { index: number; kind: 'lone-high' | 'lone-low' } | null {CODE
LOWtest/benchmark-graph-quality.ts417async function measureBaselineRelational(CODE
LOWtest/sync-rename-reconcile.serial.test.ts835 async function setupUntrackedExoticScenario(): Promise<string> {CODE
LOWtest/writer.test.ts657 async function seedDuplicateBacklinkPages(): Promise<void> {CODE
LOWtest/upgrade.serial.test.ts261 async function runUpgradeAgainstFakeInstall(opts: {CODE
LOWtest/onboard-coverage-invariants.test.ts35async function seedVisibleAndQuarantinedEntities(): Promise<void> {CODE
LOWtest/minions.test.ts3276 async function activeJobWithLockLapsedMs(msAgo: number): Promise<MinionJob> {CODE
LOWtest/contextual-synopsis-model.serial.test.ts250async function expectHandlerRegistersNativeSynopsisRoute(opts: {CODE
LOWtest/extract-timeline-from-meetings.test.ts112 async function runExtractCapturingStderr(args: string[]): Promise<string[]> {CODE
LOWtest/write-through-commit.serial.test.ts38function installFakeDurabilityHook(repoPath: string): void {CODE
LOWtest/envelope-to-gbrain.test.ts102function assertEveryTimestampQuoted(page: string): void {CODE
LOWtest/sync-cost-gate.serial.test.ts167function commitLargeIncrementalDrop(): void {CODE
LOWtest/voyage-multimodal.test.ts33function configureVoyageMultimodal(env: Record<string, string | undefined> = {}) {CODE
LOWtest/conversation-facts-type-allowlist-drift.test.ts123function countAllowedTypesImportsFrom(src: string, modulePathEscaped: string): number {CODE
LOWtest/conversation-facts-type-allowlist-drift.test.ts137function countAllowedTypesImportsFromCommandModule(src: string): number {CODE
LOWtest/db-guard-coverage.test.ts92function connectsToAmbientDatabaseUrl(src: string): boolean {CODE
LOWtest/gbrain-to-envelope.test.ts106function assertSchemaFullyImplemented(schema: unknown, path = '#'): void {CODE
LOWtest/oauth.test.ts521 async function insertLegacyTokenWithPermissions(CODE
LOWtest/oauth.test.ts599 async function insertLegacyTokenWithScopes(name: string, scopesLiteral: string | null): Promise<string> {CODE
LOWtest/benchmark-knowledge-runtime.ts269async function runDoctorCompletenessBench(): Promise<{CODE
LOWtest/cycle-synthesize-subagent-timeout.test.ts36async function seedWorthProcessingVerdict(CODE
LOWtest/autopilot-drain-deadlock-2050.test.ts157 function maskAsPostgresWithReconnect(target: PGLiteEngine, onReconnect: () => void): BrainEngine {CODE
LOWtest/ambient-recall-hooks.serial.test.ts62function writePostgresConfigWithLeftoverPath(dataDir: string): void {CODE
LOWtest/put-page-push-reporting.serial.test.ts39function installFakeDurabilityHook(repoPath: string): void {CODE
LOWtest/jobs-gateway-refresh-set.test.ts39function parseBuiltinRegistrations(src: string): string[] {CODE
LOWtest/schema-pack-merge.test.ts318function expandClosureFromManifest(m: SchemaPackManifest, type: string): string[] {CODE
LOWtest/schema-bootstrap-coverage.test.ts539function parseIndexColumnReferences(sql: string): Array<{ table: string; column: string }> {CODE
LOWtest/schema-bootstrap-coverage.test.ts681function buildIndexRefCoveragePredicate(CODE
LOWtest/mcp-tool-defs.test.ts37function referenceParamDefToSchema(p: ParamDefLike): Record<string, unknown> {CODE
LOWtest/memory-verbs-conformance.test.ts540 function installDeterministicEmbedder() {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.ts133 function parseRegisterClientOutput(out: string): { clientId: string; clientSecret: string } {CODE
LOWtest/e2e/install-real-opencode.serial.test.ts253function registerGbrainIntoOpencode(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/agent-harness.ts1269export function resolveGbrainServerCommand(repoRoot: string, extraArgs: string[] = []): GbrainServerCommand {CODE
LOWtest/minions/dream-quota-degradation.test.ts97async function seedWaitingSubagentFiller(): Promise<void> {CODE
LOWscripts/dx-explore.ts769async function scenarioCodexPluginInstall(ctx: ScenarioCtx, args: CliArgs): Promise<void> {CODE
LOWsrc/cli.ts307async function printSelfHelpWithoutEngine(command: string, args: string[]): Promise<boolean> {CODE
LOWsrc/cli.ts1053async function printIdentityBannerBestEffort(CODE
LOWsrc/cli.ts1324export function applyThinClientSourceScope(CODE
LOWsrc/cli.ts1643export function resetRetrievalMetaForTests(): void {CODE
LOWsrc/cli.ts3509export function resolveReadOnlyDispatchTimeoutMs(CODE
LOWsrc/core/doctor-remote.ts76export async function collectRemoteDoctorReport(CODE
LOWsrc/core/post-upgrade-reembed.ts131export async function runPostUpgradeReembedPrompt(CODE
LOWsrc/core/autopilot-paths.ts40export function autopilotDisabledMarkerPath(): string {CODE
LOWsrc/core/autopilot-paths.ts78export function autopilotPausedMarkerPath(): string {CODE
LOWsrc/core/autopilot-paths.ts90export function autopilotDisableStrikesPath(): string {CODE
LOWsrc/core/last-retrieved.ts72export async function awaitPendingLastRetrievedWrites(CODE
LOWsrc/core/audit-parser-probe.ts36export function readRecentParserProbeEvents(CODE
LOWsrc/core/audit-parser-probe.ts50export function computeParserProbeAuditFilename(now: Date = new Date()): string {CODE
LOWsrc/core/destructive-guard.ts136export function formatClientReferentsBlock(CODE
LOWsrc/core/destructive-guard.ts279export function checkDestructiveConfirmation(CODE
LOWsrc/core/embedding-context.ts218export function wrapChunkTextsForStoredMode(CODE
LOWsrc/core/timeline-extract.ts32export function extractTimelineFromContent(content: string, slug: string): ExtractedTimelineEntry[] {CODE
516 more matches not shown…
Modern AI Meta-Vocabulary121 hits · 356 pts
SeverityFileLineSnippetContext
MEDIUMllms-full.txt4100# Scaling skills past 300 without drowning the context windowCOMMENT
MEDIUMTODOS.md3938three real wins in PR #1316 (`chipoto69` — "Phase 4 multi-agent hardening")CODE
MEDIUMTODOS.md4805## v0.37.4.0 pgGraph CI scaffolding follow-ups (v0.37.x+)COMMENT
MEDIUMtest/embedding-input-limit.test.ts2 * #4530 — the chunker respects the embedding model's per-input token limit.COMMENT
MEDIUMtest/openclaw-plugin-manifest.test.ts63 // by slug; `gbrain skillpack scaffold <slug>` resolves against the pluginCOMMENT
MEDIUMtest/openclaw-plugin-manifest.test.ts64 // bundle. A recommendation the scaffold can't fulfill is a dead-end CTA —COMMENT
MEDIUMtest/post-install-advisory.test.ts263 // (the scaffold command is --all when everything is missing).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/cycle-dream-output-root.test.ts310 // serve the tool-less oneshot attempt AND its agentic fallback.COMMENT
MEDIUMtest/advisor-collectors-findings.test.ts208 expect(f.fix.dispatch_id).toBeUndefined(); // scaffold is not --apply-dispatchableCODE
MEDIUMtest/embedding-pricing.test.ts182// #4344 — hosted-recipe coverage gate: every embedding model the voyageCOMMENT
MEDIUMtest/brain-durability-hook.serial.test.ts160 test('#3925 — the scaffolding commit does NOT fire the hook (no racing background push)', async () => {CODE
MEDIUMtest/sync-failure-ledger.serial.test.ts293describe('#5 + #6 applySyncFailureGate orchestration', () => {CODE
MEDIUMtest/repo-root.test.ts317 // skillify scaffold, post-install-advisory). If a future edit adds theCOMMENT
MEDIUMtest/skill-currency.test.ts83 // alpha: scaffold, leave untouched → currentCOMMENT
MEDIUMtest/skill-currency.test.ts86 // beta: scaffold, then user edits a file → driftedCOMMENT
MEDIUMtest/skill-currency.test.ts133 // alpha ships two files; scaffold both, then delete one → identical>0, missing>0.COMMENT
MEDIUMtest/subagent-handler.test.ts1122 expect(client.calls.length).toBe(0); // agentic loop never ranCODE
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/workspace-generic-compat.test.ts120 // scaffold reports as written actually exists; paired sources (fromCOMMENT
MEDIUMtest/e2e/workspace-generic-compat.test.ts131 // check-resolvable stays clean after scaffold: the scaffolded skillCOMMENT
MEDIUMtest/e2e/workspace-generic-compat.test.ts132 // is reachable via its own frontmatter triggers (scaffold contract 1COMMENT
MEDIUMtest/e2e/workspace-generic-compat.test.ts139 // Contract 2 (scaffold.ts header): once a file lands, the user ownsCOMMENT
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.md922## 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.md82- `src/core/brain-repo-durability.ts` + `src/commands/sources-harden.ts` — brain-repo git durability. `hardenBrainRepo(oCODE
MEDIUMdocs/architecture/KEY_FILES.md194- `src/core/skillpack/{personas,bridge-state,harness-bridge}.ts` + `src/commands/skillpack/{shared,scaffold,reference,haCODE
MEDIUMdocs/architecture/KEY_FILES.md195- `src/core/skillpack/{manifest-v1,tarball,state,remote-source,trust-prompt,bootstrap-display,scaffold-third-party,regisCODE
MEDIUMdocs/architecture/KEY_FILES.md198- `src/core/skillpack/{init-brain-pack,brain-pack-advisory,brain-pack-lint,brain-resident-locate,nag-state}.ts` (#2180) CODE
MEDIUMdocs/architecture/KEY_FILES.md199- `src/core/advisor/{types,run,render,recommended-set,history,apply,collect-*}.ts` + `src/commands/advisor.ts` (#2180) —CODE
MEDIUMdocs/architecture/KEY_FILES.md298- `src/core/minions/handlers/subagent-oneshot.ts` — #4216 oneshot synthesis runner. ONE rate-leased tool-less `gateway.cCODE
MEDIUMdocs/architecture/KEY_FILES.md375- `src/core/cycle/synthesize.ts` — Synthesize phase: conversation-transcript-to-brain pipeline, a two-stage cascade (#41CODE
MEDIUMdocs/architecture/schema-packs.md67gbrain schema init <name> # scaffold a stub pack (experimental)CODE
MEDIUMdocs/architecture/topologies.md271### Recommended embedding modelCOMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md1# Skillpacks as scaffolding, not amberCOMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md39### `gbrain skillpack scaffold <name> [--workspace PATH]`COMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md195# shared deps that scaffold drops in:COMMENT
MEDIUMdocs/guides/skillpacks-as-scaffolding.md203## The harness bridge: `scaffold --harness` (cathedral-7)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.md250# 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/run-e2e.sh236 # serve-http-multi-agent rides the same carve-out for a different reason:COMMENT
61 more matches not shown…
Verbosity Indicators156 hits · 285 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.ts327 // Step 1: page is visible by default.COMMENT
LOWtest/pages-soft-delete.test.ts332 // Step 2: soft-delete, default getPage returns null.COMMENT
LOWtest/pages-soft-delete.test.ts337 // Step 3: include_deleted: true surfaces the row with deleted_at populated.COMMENT
LOWtest/pages-soft-delete.test.ts342 // 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.ts856 // Step 1: register a throwaway client via CLI.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts869 // Step 2: mint a token through the live server.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts882 // Step 3: revoke via the CLI subprocess.COMMENT
LOWtest/e2e/serve-http-oauth.test.ts892 // Step 4: previously-minted token must now be rejected at /mcp. CascadeCOMMENT
LOWtest/e2e/serve-http-oauth.test.ts902 // Step 5: re-running revoke-client on the now-deleted id must exit 1.COMMENT
LOWtest/e2e/sync.test.ts485 // Step 1: First sync of the clean repo — should succeed.COMMENT
LOWtest/e2e/sync.test.ts491 // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug.COMMENT
LOWtest/e2e/sync.test.ts501 // Step 3: Sync should block. Bookmark must NOT advance.COMMENT
LOWtest/e2e/sync.test.ts515 // Step 4: Run with skipFailed — bookmark advances, entry gets acked.COMMENT
LOWtest/e2e/sync.test.ts525 // Step 5: Verify what doctor would render for the historical entry.COMMENT
LOWtest/e2e/sync.test.ts540 // Step 6: Add a second broken file — this one with a different failure codeCOMMENT
LOWtest/e2e/sync.test.ts556 // Step 7: Sync blocks again on the new failure. Old entry stays acked.COMMENT
LOWtest/e2e/sync.test.ts570 // 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/fresh-install-pglite.test.ts302 // Step 1: keyless install → deferred-setup sentinel persisted.COMMENT
LOWtest/e2e/fresh-install-pglite.test.ts307 // Step 2: the key arrives; run the documented recovery command.COMMENT
LOWtest/e2e/system-of-record-invariant.test.ts209 // Step 3: snapshot.COMMENT
LOWtest/e2e/system-of-record-invariant.test.ts218 // Step 4: DELETE every rebuildable derived table. NOT tags — tagsCOMMENT
LOWtest/e2e/system-of-record-invariant.test.ts229 // Step 5: re-import all + re-extract. Re-import is what rebuildsCOMMENT
LOWtest/e2e/system-of-record-invariant.test.ts234 // Step 6: snapshot + diff.COMMENT
LOWtests/heavy/pg_upgrade_matrix.sh66 # Step 1: build the legacy fixture (drop schema, init to LATEST, down-mutate)COMMENT
LOWtests/heavy/pg_upgrade_matrix.sh77 # Step 2: walk forward. `gbrain doctor` triggers engine.connect() whichCOMMENT
LOWtests/heavy/pg_upgrade_matrix.sh92 # Step 3: assert status is non-fatal. We accept 'ok' and 'warnings' becauseCOMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh58# Step 1: seed the synthetic brain.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh85# Step 2: init brain + register the source.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh124# Step 3: run gbrain doctor; capture wall-clock + exit + frontmatter_integrity status.COMMENT
LOWtests/heavy/frontmatter_scan_wallclock.sh135# Step 4: assert.COMMENT
LOWtests/heavy/sync_lock_regression.sh55# Step 1: ensure schema is up-to-date by running doctor once. Doctor exitsCOMMENT
LOWtests/heavy/sync_lock_regression.sh62# Step 2: create a tiny brain dir + register it as sync.repo_path so each syncCOMMENT
LOWtests/heavy/sync_lock_regression.sh99# Step 3: spawn N parallel sync processes. Capture each one's exit code +COMMENT
LOWtests/heavy/sync_lock_regression.sh125# Step 4: collect outcomesCOMMENT
LOWtests/heavy/sync_lock_regression.sh150# Step 5: assert no leaked gbrain_cycle_locks rows. The pkey column is `id`,COMMENT
LOWtests/heavy/sync_lock_regression.sh155# Step 6: verdictCOMMENT
96 more matches not shown…
AI Slop Vocabulary40 hits · 118 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.ts33 // Match by substring so tests are robust against whitespace.COMMENT
MEDIUMtest/bootstrap-doctor-checks.test.ts140 test('a harness receipt ALONE opens the gate (#4043 — harness-only boxes get checks)', async () => {CODE
MEDIUMtest/sources-ops.test.ts1080// #2707 git validation, which the fake-git harness defeats.COMMENT
MEDIUMtest/cycle-synthesize-daily-cap.test.ts149 // CDX-4 (#4217 family): in this keyless harness every submitted childCOMMENT
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/cycle-synthesize-subagent-timeout.test.ts76 // CDX-4 (#4217 family): the child dies in this keyless harness, and aCOMMENT
MEDIUMtest/bootstrap-dispatcher.serial.test.ts903describe('uninstall × harness receipt (#4043 harness-first composition)', () => {CODE
MEDIUMtest/transcript-render.test.ts143 const nasty = session(BASIC.messages, { title: 'quote" colon: [brackets] re #4106', harness: 'chatgpt' });CODE
MEDIUMtest/migration-v120.test.ts39 // string so the assertion is robust to driver array shape.COMMENT
MEDIUMtest/connect.test.ts199 test('claude argv with scope — inserted after the name (#4043 harness lane; claude default is local)', () => {CODE
MEDIUMtests/docker/bootstrap-e2e.sh3# harness [A7]. This is the script .github/workflows/heavy-tests.yml'sCOMMENT
MEDIUM…s/integrations/qm-harness-snippets/provision-scopes.sh3# (or any multi-user agent harness with per-person + per-channel scopes).COMMENT
MEDIUM…s/integrations/qm-harness-snippets/provision-scopes.sh30# scope's sandbox (e.g. via the harness keychain or a one-time secret drop),COMMENT
MEDIUMscripts/check-fuzz-purity.sh87# A fuzz harness that pulls in `engine.ts` could trigger DB connections throughCOMMENT
LOWscripts/run-e2e.sh105# internals survive untouched. We keep GBRAIN_HOME (just set above for HOMECOMMENT
MEDIUMscripts/test-shard.sh77# evals/ is included: its *.test.ts files (eval-harness unit tests) wereCOMMENT
MEDIUMscripts/guard-self-test.sh2# W0 fix-wave (Tier-1 #11 / D5.14): guard self-test harness.COMMENT
MEDIUMscripts/guard-self-test.sh9# This harness makes that class structurally impossible for scanner guards:COMMENT
MEDIUMscripts/guard-self-test.sh16# Also prints total harness wall-clock (guard-runtime budget line, D4.5):COMMENT
MEDIUMscripts/check-fixture-privacy.sh24# cathedral-4: the transcripts-import fixtures (raw harness/export shapes)COMMENT
MEDIUMscripts/check-test-real-names.sh35 # 'Hermes' removed (hermes-harness wave): here it names NousResearch/hermes-agent,COMMENT
MEDIUMscripts/check-jsonb-pattern.sh20# W0 fix-wave (Tier-1 #11): self-test seam — the guard harness points this atCOMMENT
MEDIUMscripts/check-no-double-retry.sh22# W0 fix-wave (Tier-1 #11): self-test seam. The guard harness points this atCOMMENT
MEDIUMscripts/check-bootstrap-templates.sh200# ── (e) harness-scoping counter-signal pins (scope = Claude Code + opencode) ─COMMENT
LOWscripts/import-from-upstream.sh171# subordinate script. For v0, just call the guard against the destinationCOMMENT
MEDIUM.github/workflows/heavy-tests.yml530 # test/helpers/agent-harness.ts and scenarioGrokInstall inCOMMENT
MEDIUM.github/workflows/test.yml270 # PGLite, zero API keys, ~15s for the full 141-fixture × 3-harness run.COMMENT
MEDIUMtemplates/bootstrap/cloud-setup-script.sh41# gbrain bootstrap hooks --harness claude-code # committed-carrier hooks (next session picks them up)COMMENT
MEDIUMsrc/core/source-resolver.ts198 // to tier 6 rather than throwing. Resolver stays robust to bad config.COMMENT
MEDIUMsrc/core/mcp-registration.ts3 * wiring (extracted from src/commands/connect.ts for #4043 [F5]: the harnessCOMMENT
MEDIUMsrc/core/token-mint.ts3 * (#4043 `gbrain bootstrap harness`; extracted from src/commands/auth.ts'sCOMMENT
MEDIUMsrc/core/bootstrap/format.ts214// Machine-level harness receipt (#4043 `gbrain bootstrap harness`)COMMENT
MEDIUMsrc/core/bootstrap/hooks.ts50 * 'harness' on #4043 harness-mode wiring: `gbrain hook` yields when theCOMMENT
MEDIUMsrc/core/bootstrap/host-specs.ts349 `# gbrain:${GBRAIN_HARNESS_MARKER_VALUE} begin - managed by \`gbrain bootstrap harness\`; do not edit inside`;CODE
MEDIUMsrc/commands/hook.ts259 // #4043 harness-lane defer guard: Claude Code MERGES user- andCOMMENT
MEDIUMsrc/commands/connect.ts69// #4043 (the bootstrap harness lane consumes them; core must not import fromCOMMENT
MEDIUMsrc/commands/eval-schema-authoring.ts3// Codex finding #9 honored: this harness's pass-criterion measuresCOMMENT
MEDIUMsrc/commands/doctor/bootstrap-checks.ts100 // #4043: a harness-only box (bootstrap harness, no workspace install) isCOMMENT
Fake / Example Data109 hits · 115 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/grade-takes-evidence.test.ts132 title: 'Acme Corp',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.ts74 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts84 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts95 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts142 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts189 compiled_truth: 'placeholder',CODE
LOWtest/chunk-grain-fts.test.ts198 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/serve-sync-runner.serial.test.ts42 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/sync-rename-reconcile.serial.test.ts78 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/sync-rename-reconcile.serial.test.ts2182 execSync('git config user.email "test@test.com" && git config user.name "Test"', {CODE
LOWtest/extract-by-mention-rebuild.test.ts78 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.ts15 expect(refs[0].name).toBe('Jane Doe');CODE
LOWtest/backlinks.test.ts24 expect(refs[0].name).toBe('Acme Corp');CODE
LOWtest/backlinks.test.ts48 expect(extractPageTitle('---\ntitle: "Jane Doe"\ntype: person\n---\n# Jane')).toBe('Jane Doe');CODE
LOWtest/backlinks.test.ts52 expect(extractPageTitle('---\ntype: person\n---\n# Jane Doe')).toBe('Jane Doe');CODE
LOWtest/frontmatter-inference.test.ts143 expect(result.title).toBe('John Doe');CODE
LOWtest/sync-delete-trailing-hyphen.serial.test.ts68 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/sync.test.ts428 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/sync.test.ts995 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/sync.test.ts1227 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.ts99 test('2. multi-word phrase pass — "Acme Corp" matches multi-word, not single', () => {CODE
LOWtest/by-mention.test.ts102 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/by-mention.test.ts193 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/by-mention.test.ts201 // Second occurrence of "Acme": multi-word "Acme Corp" matches → multi-word wins.COMMENT
LOWtest/by-mention.test.ts212 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },CODE
LOWtest/by-mention.test.ts565 // words of "Acme Corp" silently kills a match that used to work.COMMENT
LOWtest/by-mention.test.ts567 { 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/sync-brain-op-source-id.test.ts38 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/sync-include-hidden.test.ts34 execSync('git config user.email "test@test.com"', { cwd: dir, 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.ts193 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },CODE
LOWtest/orphans.test.ts222 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },CODE
LOWtest/orphans.test.ts226 expect(out).toContain('Acme Corp');CODE
LOWtest/sync-deleted-slug-embed.test.ts40 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/brainbench-adapters.test.ts36 turns: [{ turn_id: 1, role: 'user', text: 'placeholder' }],CODE
LOWtest/gbrain-to-envelope.test.ts1842 expect(JSON.stringify(result.envelope)).not.toContain('placeholder');CODE
LOWtest/sync-resumable-import.serial.test.ts42 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/sync-ops-pages.serial.test.ts33 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/import-source-cr-mode.serial.test.ts35 env: { OPENAI_API_KEY: 'sk-test-fake-key-for-stub' },CODE
LOWtest/sync-metafile-skip.serial.test.ts32 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });CODE
LOWtest/google-access.test.ts53 expect(parseTokenOutput('{"access_token":"ya29.fake-token-xyz"}')).toEqual({CODE
LOWtest/google-access.test.ts54 token: 'ya29.fake-token-xyz',CODE
LOWtest/google-access.test.ts125 const p = new CommandAccessProvider('echo fake-token-abc123');CODE
LOWtest/google-access.test.ts126 expect(await p.getAccessToken()).toBe('fake-token-abc123');CODE
LOWtest/sync-parallel.test.ts30 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });CODE
LOWtest/sync-pull-failed-anchor.serial.test.ts73 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });CODE
LOWtest/sync-pull-failed-anchor.serial.test.ts178 execSync('git config user.email "test@test.com"', { cwd: mirror, stdio: 'pipe' });CODE
49 more matches not shown…
Cross-Language Confusion (JS/TS)5 hits · 32 pts
SeverityFileLineSnippetContext
HIGHtest/chunkers/code-dart.test.ts40 print(what.toUpperCase() + '!!! ' + what.toUpperCase());CODE
HIGHtest/chunkers/code.test.ts293 print("decorated_fn doubling", x, "->", doubled)CODE
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 Blocks19 hits · 27 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.sh23# Usage:COMMENT
LOWtests/heavy/sync_timeout_rescue.sh39# Usage:COMMENT
LOW…s/integrations/qm-harness-snippets/provision-scopes.sh18# 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-engine-dynamic-import.sh10# Usage:COMMENT
LOWscripts/check-key-files-current-state.sh22# Usage:COMMENT
LOWscripts/run-heavy.sh7# Usage:COMMENT
LOWscripts/ci-cache-hash.sh57# Usage:COMMENT
LOWscripts/wave-security-scan.sh12# 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.ts162 // Pages went to 'default' as requested.COMMENT
HIGHtest/retrieval-upgrade-planner.test.ts363 // Resume path also calls runSchemaTransition. Mark as requested so theCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHplugin/skills/perplexity-research/SKILL.md0# topic: <topic> # brain context (what we already know): <embedded gbrain content> # find: what's new since 2026-mm-dd tSTRING
HIGH…iants/gbrain-daily/skills/perplexity-research/SKILL.md0# topic: <topic> # brain context (what we already know): <embedded gbrain content> # find: what's new since 2026-mm-dd tSTRING
HIGHskills/perplexity-research/SKILL.md0# topic: <topic> # brain context (what we already know): <embedded gbrain content> # find: what's new since 2026-mm-dd tSTRING
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMtest/loops-extract-parse.test.ts95 const wrapped = `Sure! Here is the extraction you asked for:\n\n${payload()}\n\nLet me know if you need anything elsCODE
MEDIUMsrc/core/cycle/extract-atoms.ts221 - 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