Repository Analysis

garrytan/gbrain

Garry's Opinionated OpenClaw/Hermes Agent Brain

7.0 Low AI signal View on GitHub
7.0
Adjusted Score
7.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
19,892
Stars
TypeScript
Language
492,879
Lines of Code
1983
Files
1796
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 5MEDIUM 793LOW 998

Pattern Findings

1796 matches across 12 categories. Click a row to expand file-level details.

Decorative Section Separators785 hits · 2356 pts
SeverityFileLineSnippet
MEDIUMtest/migrate.test.ts66// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts68// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts76// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts125// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts127// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts128// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts130// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts302// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts304// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts375// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts377// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts473// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts475// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts553// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts555// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts722// ────────────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts727// ────────────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts787// ────────────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts794// ────────────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1024// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1026// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1070// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1072// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1534// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1537// ─────────────────────────────────────────────────────────────────
MEDIUMtest/migrate.test.ts1614// ─── v0.37.2.0 — v80 takes_unresolvable_quality_v0_37_2_0 ──────────────────
MEDIUMtest/migrate.test.ts1800// ─── v0.38.0.0 — v81 pages_provenance_columns ─────────────────────────────
MEDIUMtest/migrate.test.ts1979// ─── v0.40.2.0 — v89 facts_event_type_column ───────────────────────────────
MEDIUMtest/source-health.test.ts132// ── v0.41.32.0 commit-relative staleness ──────────────────────────────
MEDIUMtest/gstack-learnings-coupling.test.ts45// ─── buildLearningEntry ─────────────────────────────────────────────
MEDIUMtest/gstack-learnings-coupling.test.ts101// ─── writeIncorrectResolution ───────────────────────────────────────
MEDIUMtest/sources.test.ts13// ── Stub engine that records queries ───────────────────────
MEDIUMtest/sources.test.ts53// ── add ─────────────────────────────────────────────────────
MEDIUMtest/sources.test.ts161// ── list ────────────────────────────────────────────────────
MEDIUMtest/sources.test.ts177// ── remove ──────────────────────────────────────────────────
MEDIUMtest/sources.test.ts210// ── default ─────────────────────────────────────────────────
MEDIUMtest/sources.test.ts224// ── federate / unfederate ──────────────────────────────────
MEDIUMtest/propose-takes.test.ts32// ─── Mock engine ────────────────────────────────────────────────────
MEDIUMtest/propose-takes.test.ts94// ─── parseExtractorOutput ───────────────────────────────────────────
MEDIUMtest/propose-takes.test.ts163// ─── contentHash ────────────────────────────────────────────────────
MEDIUMtest/propose-takes.test.ts179// ─── hasCompleteFence ───────────────────────────────────────────────
MEDIUMtest/propose-takes.test.ts209// ─── extractExistingTakesForDedup ───────────────────────────────────
MEDIUMtest/propose-takes.test.ts243// ─── Phase integration ──────────────────────────────────────────────
MEDIUMtest/voice-gate.test.ts42// ─── parseJudgeOutput ───────────────────────────────────────────────
MEDIUMtest/voice-gate.test.ts82// ─── gateVoice ──────────────────────────────────────────────────────
MEDIUMtest/voice-gate.test.ts238// ─── Mode parity ────────────────────────────────────────────────────
MEDIUMtest/voice-gate.test.ts267// ─── Templates (deterministic) ──────────────────────────────────────
MEDIUMtest/think-trajectory-injection.test.ts202// ─────────────────────────────────────────────────────────────────────
MEDIUMtest/think-trajectory-injection.test.ts204// ─────────────────────────────────────────────────────────────────────
MEDIUMtest/think-trajectory-injection.test.ts318// ─────────────────────────────────────────────────────────────────────
MEDIUMtest/think-trajectory-injection.test.ts320// ─────────────────────────────────────────────────────────────────────
MEDIUMtest/source-id-tx-regression.test.ts468// ─────────────────────────────────────────────────────────────────────────
MEDIUMtest/source-id-tx-regression.test.ts478// ─────────────────────────────────────────────────────────────────────────
MEDIUMtest/cycle-synthesize.test.ts339// ─── v0.41.13: UTF-16 safety in judgeSignificance ─────────────────────
MEDIUMtest/cycle-synthesize.test.ts421 // ─── Head-boundary cases (offset around 4000) ──────────────────────
MEDIUMtest/cycle-synthesize.test.ts435 // ─── Tail-boundary cases (offset around length-4000 = 4001) ────────
MEDIUMtest/cycle-synthesize.test.ts450 // ─── Sub-8000 short-content branch: no slicing, no risk ────────────
MEDIUMtest/benchmark-graph-quality.ts35// ─── Test data: 80 fictional pages ───────────────────────────────
MEDIUMtest/benchmark-graph-quality.ts256// ─── Benchmark queries: 7 categories, ~35 questions ──────────────
MEDIUMtest/benchmark-graph-quality.ts296// ─── Metrics ─────────────────────────────────────────────────────
725 more matches not shown…
Over-Commented Block577 hits · 522 pts
SeverityFileLineSnippet
LOWdocker-compose.ci.yml1# docker-compose.ci.yml
LOWbunfig.toml1[test]
LOWtest/migrate.test.ts61 await engine.disconnect();
LOWtest/migrate.test.ts121 expect(v20!.handler).toBeUndefined();
LOWtest/migrate.test.ts181
LOWtest/migrate.test.ts461 // PGLite has no RLS engine and is intrinsically single-tenant. The 8 RLS
LOWtest/migrate.test.ts561// change that re-introduces the missing helper index.
LOWtest/migrate.test.ts921 );
LOWtest/migrate.test.ts1141describe('PR #356 — 57014 catch path emits actionable 4-part diagnostic', () => {
LOWtest/migrate.test.ts1241 // setSessionDefaults still callable (no-op) so existing call sites
LOWtest/migrate.test.ts1801//
LOWtest/migrate.test.ts1981// Adds nullable `event_type TEXT` to facts so the typed-claim substrate
LOWtest/brain-registry.serial.test.ts261 ]);
LOWtest/schema-pack-trust-boundary.test.ts1// v0.38 T8: schema_pack per-call trust gate (D13 + codex F4).
LOWtest/think-trajectory-injection.test.ts201
LOWtest/think-trajectory-injection.test.ts321//
LOWtest/resolvers.test.ts621 });
LOWtest/source-id-tx-regression.test.ts461 );
LOWtest/schema-cli.test.ts1// v0.38 Phase C: gbrain schema CLI smoke tests.
LOWtest/facts-fence-typed.test.ts1// v0.35.4 — typed-claim fence parser+renderer round-trip + normalization.
LOWtest/mcp-client.test.ts181 const realServer = server;
LOWtest/benchmark-graph-quality.ts721 seeds: SeededPage[],
LOWtest/doctor-embedding-env-override.test.ts1// v0.41.2.1 — embedding_env_override doctor check (D9 #9).
LOWtest/exit-classification.test.ts21 });
LOWtest/extract-atoms-page-discovery.test.ts1// v0.41.2.1 — page-based discovery + source-hash idempotency for
LOWtest/schema-pack-manifest-v041_2.test.ts1// v0.41 T3 — SchemaPackManifestSchema extensions: phases + calibration_domains.
LOWtest/pglite-engine.test.ts1301
LOWtest/loadConfig-merge.test.ts21
LOWtest/search-mode.test.ts361 // v0.35.0.0+ bumped 1→2 to fold reranker fields into the cache key.
LOWtest/doctor-sync-consolidation.test.ts1// v0.41.19.0 — T6 of ops-fix-wave.
LOWtest/by-mention.test.ts281 // companies/apple slug exists. Wait — actually the ignore-list keys
LOWtest/connection-resilience.test.ts261 consecutiveFailures++;
LOWtest/cycle-pglite-lock-ordering.serial.test.ts101 mkdirSync(gbrainHome, { recursive: true });
LOWtest/fix-wave-structural.test.ts81 // v0.41.3 (T4 atomicity fix, codex F4): admin endpoint now validates
LOWtest/sync-failures.test.ts141 });
LOWtest/dream.test.ts241 spy.mockRestore();
LOWtest/lens-pack-manifests.test.ts1// v0.41 T4 — bundled lens pack manifest smoke tests.
LOWtest/migrations-v0_13_1.test.ts41 expect(v0_13_1.featurePitch.headline.length).toBeGreaterThan(10);
LOWtest/oauth.test.ts721
LOWtest/recall-extensions.test.ts261 const n = await engine.countUnconsolidatedFacts('default');
LOWtest/embedding-dim-check.test.ts21} from '../src/core/embedding-dim-check.ts';
LOWtest/reindex.test.ts101
LOWtest/embed-multimodal-batching.test.ts1// Commit 0 (D4 + D22-2): batching + partial-failure for multimodal embed,
LOWtest/cycle-pack-gating.test.ts1// v0.41 T9 R-GATE — orchestrator-level pack gate for lens-pack phases.
LOWtest/extractable-spec-widening.test.ts1// v0.42 — ExtractableSpec widening parity tests.
LOWtest/doctor-minions-check.test.ts121 if (minions) {
LOWtest/subagent-handler.test.ts341 // the tool result synthesis happened when resuming, then model spoke).
LOWtest/v0_37_gap_fill.serial.test.ts321// ─────────────────────────────────────────────────────────────────────
LOWtest/pglite-engine-disconnect.serial.test.ts61 const realClose = eng._db!.close.bind(eng._db!);
LOWtest/schema-bootstrap-coverage.test.ts61 // ON content_chunks(language) WHERE language IS NOT NULL`.
LOWtest/schema-bootstrap-coverage.test.ts81 // not directly forward-referenced by an index but the bootstrap adds it
LOWtest/schema-bootstrap-coverage.test.ts101 // v0.29.1 (v41) — sibling columns added in the same migration as
LOWtest/schema-bootstrap-coverage.test.ts121 // them before SCHEMA_SQL replay creates the FK + index.
LOWtest/schema-bootstrap-coverage.test.ts141 // are added defense-in-depth so future schema work that does reference
LOWtest/schema-bootstrap-coverage.test.ts341// Codex outside-voice review of v0.28.5's plan caught a critical hole in
LOWtest/schema-bootstrap-coverage.test.ts641// schema-blob replay never adds the archive columns, so downstream visibility
LOWtest/schema-bootstrap-coverage.test.ts661const COLUMN_EXEMPTIONS = new Set<string>([
LOWtest/schema-bootstrap-coverage.test.ts701 // v55 in the migration sequence, so fresh installs get it correctly. No
LOWtest/schema-bootstrap-coverage.test.ts721 // (existing callers — founder-scorecard, eval-trajectory,
LOWtest/distribution-import-boundary.test.ts1// T26: `src/core/distribution/` import boundary regression guard.
517 more matches not shown…
Verbosity Indicators144 hits · 239 pts
SeverityFileLineSnippet
LOWtest/skill-brain-first.test.ts261 test('matches ### Step 0: Brain Context', () => {
LOWtest/skill-brain-first.test.ts262 expect(PHASE_HEADING_RE.test('### Step 0: Brain Context')).toBe(true);
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 \
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 a
LOWtest/apply-migrations-pglite-spawn.serial.test.ts115 // Step 1: init --migrate-only seeds the schema. Pre-fix on PGLite this
LOWtest/apply-migrations-pglite-spawn.serial.test.ts121 // Step 2: apply-migrations --yes runs the orchestrator chain. Pre-fix
LOWtest/apply-migrations-pglite-spawn.serial.test.ts143 // Step 3: re-run is idempotent — "All migrations up to date" must exit
LOWtest/apply-migrations-pglite-spawn.serial.test.ts149 // Step 4: --list exits 0 (third leg of the #1062 contract).
LOWtest/pages-soft-delete.test.ts210 // Step 1: page is visible by default.
LOWtest/pages-soft-delete.test.ts215 // Step 2: soft-delete, default getPage returns null.
LOWtest/pages-soft-delete.test.ts220 // Step 3: include_deleted: true surfaces the row with deleted_at populated.
LOWtest/pages-soft-delete.test.ts225 // Step 4: restore → default getPage returns the row again.
LOWtest/doctor-cli-smoke.serial.test.ts87 // Step 1: init + apply migrations so the brain is at head before doctor runs.
LOWtest/doctor-cli-smoke.serial.test.ts93 // Step 2: doctor --json against the fresh brain. This is the load-bearing
LOWtest/e2e/worker-abort-recovery.test.ts40 // Step 1: Submit a slow job with a short timeout
LOWtest/e2e/worker-abort-recovery.test.ts46 // Step 2: Submit a fast job that should run AFTER the slow one times out
LOWtest/e2e/worker-abort-recovery.test.ts75 // Step 3: Start worker
LOWtest/e2e/worker-abort-recovery.test.ts78 // Step 4: Wait for slow job timeout (200ms) + handler abort + fast job execution
LOWtest/e2e/worker-abort-recovery.test.ts81 // Step 5: Stop worker
LOWtest/e2e/worker-abort-recovery.test.ts85 // Step 6: Verify
LOWtest/e2e/serve-http-oauth.test.ts466 // Step 1: register a throwaway client via CLI.
LOWtest/e2e/serve-http-oauth.test.ts479 // Step 2: mint a token through the live server.
LOWtest/e2e/serve-http-oauth.test.ts492 // Step 3: revoke via the CLI subprocess.
LOWtest/e2e/serve-http-oauth.test.ts502 // Step 4: previously-minted token must now be rejected at /mcp. Cascade
LOWtest/e2e/serve-http-oauth.test.ts512 // Step 5: re-running revoke-client on the now-deleted id must exit 1.
LOWtest/e2e/sync.test.ts461 // Step 1: First sync of the clean repo — should succeed.
LOWtest/e2e/sync.test.ts467 // Step 2: Add a broken file — frontmatter slug doesn't match path-derived slug.
LOWtest/e2e/sync.test.ts477 // Step 3: Sync should block. Bookmark must NOT advance.
LOWtest/e2e/sync.test.ts491 // Step 4: Run with skipFailed — bookmark advances, entry gets acked.
LOWtest/e2e/sync.test.ts501 // Step 5: Verify what doctor would render for the historical entry.
LOWtest/e2e/sync.test.ts516 // Step 6: Add a second broken file — this one with a different failure code
LOWtest/e2e/sync.test.ts532 // Step 7: Sync blocks again on the new failure. Old entry stays acked.
LOWtest/e2e/sync.test.ts546 // Step 8: Skip again — both entries acked, summary aggregates the count.
LOWtest/e2e/eval-loop.test.ts153 // Step 1: capture three search queries against the live brain.
LOWtest/e2e/eval-loop.test.ts165 // Step 2: publish a baseline from the captured rows.
LOWtest/e2e/eval-loop.test.ts172 // Step 3: gate against the baseline. Since the brain hasn't changed,
LOWtest/e2e/system-of-record-invariant.test.ts207 // Step 3: snapshot.
LOWtest/e2e/system-of-record-invariant.test.ts216 // Step 4: DELETE every rebuildable derived table. NOT tags — tags
LOWtest/e2e/system-of-record-invariant.test.ts227 // Step 5: re-import all + re-extract. Re-import is what rebuilds
LOWtest/e2e/system-of-record-invariant.test.ts232 // Step 6: snapshot + diff.
LOWtests/heavy/pg_upgrade_matrix.sh62 # Step 1: build the legacy fixture (drop schema, init to LATEST, down-mutate)
LOWtests/heavy/pg_upgrade_matrix.sh73 # Step 2: walk forward. `gbrain doctor` triggers engine.connect() which
LOWtests/heavy/pg_upgrade_matrix.sh88 # Step 3: assert status is non-fatal. We accept 'ok' and 'warnings' because
LOWtests/heavy/frontmatter_scan_wallclock.sh54# Step 1: seed the synthetic brain.
LOWtests/heavy/frontmatter_scan_wallclock.sh81# Step 2: init brain + register the source.
LOWtests/heavy/frontmatter_scan_wallclock.sh106# Step 3: run gbrain doctor; capture wall-clock + exit + frontmatter_integrity status.
LOWtests/heavy/frontmatter_scan_wallclock.sh117# Step 4: assert.
LOWtests/heavy/sync_lock_regression.sh51# Step 1: ensure schema is up-to-date by running doctor once
LOWtests/heavy/sync_lock_regression.sh55# Step 2: create a tiny brain dir + register it as sync.repo_path so each sync
LOWtests/heavy/sync_lock_regression.sh84# Step 3: spawn N parallel sync processes. Capture each one's exit code +
LOWtests/heavy/sync_lock_regression.sh103# Step 4: collect outcomes
LOWtests/heavy/sync_lock_regression.sh128# Step 5: assert no leaked gbrain_cycle_locks rows. The pkey column is `id`,
LOWtests/heavy/sync_lock_regression.sh133# Step 6: verdict
LOWtests/heavy/_build_legacy_fixtures.sh58# Step 1: reset schema
LOWtests/heavy/_build_legacy_fixtures.sh62# Step 2: bring to LATEST via gbrain. The CLI's `doctor --json` triggers
LOWtests/heavy/_build_legacy_fixtures.sh70# Step 3: down-mutate to the target shape
LOWtests/heavy/_build_legacy_fixtures.sh74# Step 4: confirm the version was rolled back
LOWtests/heavy/measure_rss.sh69# Step 1: run the in-memory workload. Brain build + measurement happen in
LOWtests/heavy/measure_rss.sh89# Step 3: parse the workload output
LOWtests/heavy/measure_rss.sh97# Step 4: compare against baseline (if it exists and has a number)
84 more matches not shown…
Hyper-Verbose Identifiers218 hits · 218 pts
SeverityFileLineSnippet
LOWtest/cycle-synthesize.test.ts397 function scanForUnpairedSurrogates(s: string): { index: number; kind: 'lone-high' | 'lone-low' } | null {
LOWtest/benchmark-graph-quality.ts417async function measureBaselineRelational(
LOWtest/voyage-multimodal.test.ts33function configureVoyageMultimodal(env: Record<string, string | undefined> = {}) {
LOWtest/benchmark-knowledge-runtime.ts269async function runDoctorCompletenessBench(): Promise<{
LOWtest/schema-bootstrap-coverage.test.ts447function parseIndexColumnReferences(sql: string): Array<{ table: string; column: string }> {
LOWtest/mcp-tool-defs.test.ts37function referenceParamDefToSchema(p: ParamDefLike): Record<string, unknown> {
LOWtest/e2e/migration-v47-notability.test.ts85async function readNotabilityColumnState(): Promise<{
LOWtest/e2e/skill-brain-first.test.ts45function copyFixturesIntoTempWorkspace(): Workspace {
LOWtest/e2e/thin-client.test.ts128 function parseRegisterClientOutput(out: string): { clientId: string; clientSecret: string } {
LOWtest/e2e/source-routing.test.ts166async function seedTwoSourcesWithSharedSymbol(engine: PGLiteEngine): Promise<void> {
LOWtest/helpers/extract-added-columns.ts53function extractAlterAddColumnsFromSql(sql: string): Array<{ table: string; column: string }> {
LOWtest/helpers/extract-added-columns.ts81export function extractAddedColumnsFromMigrations(): AddedColumnRef[] {
LOWtest/helpers/schema-diff.ts181export function formatIndexDiffForFailure(diff: IndexDiff): string {
LOWtest/helpers/cli-pty-runner.ts41export function isNumberedOptionListVisible(visible: string): boolean {
LOWsrc/cli.ts517async function printIdentityBannerBestEffort(
LOWsrc/core/doctor-remote.ts76export async function collectRemoteDoctorReport(
LOWsrc/core/post-upgrade-reembed.ts131export async function runPostUpgradeReembedPrompt(
LOWsrc/core/last-retrieved.ts71export async function awaitPendingLastRetrievedWrites(
LOWsrc/core/destructive-guard.ts135export function checkDestructiveConfirmation(
LOWsrc/core/takes-fence.ts191export function normalizeWeightForStorage(
LOWsrc/core/thin-client-upgrade-prompt.ts275function defaultVerifyUpgradeAdvanced(remoteVersion: string): { advanced: boolean; newVersion: string | null } {
LOWsrc/core/embedding-dim-check.ts93export async function readContentChunksEmbeddingDim(engine: BrainEngine): Promise<ColumnDimResult> {
LOWsrc/core/embedding-dim-check.ts273export function resolveSchemaEmbeddingDim(opts: ResolveSchemaEmbeddingDimOpts): ResolveSchemaDimResult {
LOWsrc/core/embedding-dim-check.ts306export function resolveSchemaMultimodalDim(opts: ResolveSchemaMultimodalDimOpts): ResolveSchemaDimResult {
LOWsrc/core/embedding-dim-check.ts360function validateDimAgainstTouchpoint(
LOWsrc/core/embedding-dim-check.ts406function isCustomDimValidForProvider(
LOWsrc/core/embedding-dim-check.ts627export async function assertFactsEmbeddingDimMatchesConfig(engine: BrainEngine): Promise<void> {
LOWsrc/core/source-resolver.ts187export function formatSoleNonDefaultNudge(sourceId: string): string | null {
LOWsrc/core/migrate.ts5074async function checkForBlockingConnections(engine: BrainEngine): Promise<boolean> {
LOWsrc/core/brain-writer.ts81export function makeFrontmatterBackupRunId(date = new Date()): string {
LOWsrc/core/brain-writer.ts95export function defaultFrontmatterBackupRoot(runId = makeFrontmatterBackupRunId()): string {
LOWsrc/core/audit-quality-probe.ts45export function computeQualityProbeAuditFilename(now: Date = new Date()): string {
LOWsrc/core/audit-quality-probe.ts91export function readRecentQualityProbeEvents(
LOWsrc/core/audit-synopsis.ts76export function computeSynopsisAuditFilename(now: Date = new Date()): string {
LOWsrc/core/audit-synopsis.ts135export function readRecentSynopsisFailures(
LOWsrc/core/audit-synopsis.ts180export function summarizeSynopsisFailures(
LOWsrc/core/archive-crawler-config.ts154export function normalizeAndValidateArchiveCrawlerConfig(
LOWsrc/core/rerank-audit.ts61export function computeRerankAuditFilename(now: Date = new Date()): string {
LOWsrc/core/oauth-provider.ts103export function validateTokenEndpointAuthMethod(value: unknown): TokenEndpointAuthMethod {
LOWsrc/core/ssrf-validate.ts81export async function validateAndResolveUrl(urlStr: string): Promise<ResolvedTarget> {
LOWsrc/core/markdown.ts487export function inferTypeAndSubtypeFromPack(
LOWsrc/core/guardrails.ts82export function registerGuardrailProvider(provider: GuardrailProvider): void {
LOWsrc/core/guardrails.ts88export function unregisterGuardrailProvider(id: string): boolean {
LOWsrc/core/vector-index.ts32export function applyChunkEmbeddingIndexPolicy(sql: string, dims: number): string {
LOWsrc/core/vector-index.ts243export function isSupabaseAutoMaintenance(active: ActiveBuildInfo): boolean {
LOWsrc/core/contextual-retrieval-resolver.ts71export function resolveContextualRetrievalMode(
LOWsrc/core/retrieval-upgrade-prompt.ts62export async function runRetrievalUpgradePrompt(
LOWsrc/core/pglite-engine.ts112export function computeSnapshotSchemaHash(
LOWsrc/core/pglite-engine.ts164export function buildPgliteInitErrorMessage(
LOWsrc/core/contextual-retrieval-service.ts209export async function reembedPageWithContextualRetrieval(
LOWsrc/core/contextual-retrieval-service.ts523function readSourceTextWithFallback(page: Page, chunks: ChunkInput[]): string {
LOWsrc/core/contextual-retrieval-service.ts579export function expectedModeForPageSourceOnly(args: {
LOWsrc/core/context-engine.ts553export function createGBrainContextEngine(ctx: {
LOWsrc/core/remediation-checkpoint.ts60export function saveRemediationCheckpoint(cp: RemediationCheckpoint): void {
LOWsrc/core/remediation-checkpoint.ts74export function loadRemediationCheckpoint(planHash: string): RemediationCheckpoint | null {
LOWsrc/core/remediation-checkpoint.ts92export function listRemediationCheckpoints(): Array<{ plan_hash: string; mtime: number }> {
LOWsrc/core/remediation-checkpoint.ts115export function clearRemediationCheckpoint(planHash: string): void {
LOWsrc/core/audit-slug-fallback.ts43export function computeSlugFallbackAuditFilename(now: Date = new Date()): string {
LOWsrc/core/repo-root.ts64function resolveWorkspaceSkillsDir(
LOWsrc/core/repo-root.ts225export function autoDetectSkillsDirReadOnly(
158 more matches not shown…
Fake / Example Data41 hits · 44 pts
SeverityFileLineSnippet
LOWtest/extract-by-mention.test.ts91 await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: '
LOWtest/publish.test.ts89 expect(extractTitle('# Jane Doe\n\nContent.')).toBe('Jane Doe');
LOWtest/bench-publish.test.ts36 const input = [makeInput('hello world'), makeInput('lorem ipsum')];
LOWtest/eval-contradictions-fixture-redact.test.ts116 expect(out).not.toContain('foo@bar.com');
LOWtest/extract-by-mention-resume.test.ts63 await engine.putPage('companies/acme', { type: 'company', title: 'Acme Corp', compiled_truth: 'acme body', timeline: '
LOWtest/backlinks.test.ts14 expect(refs[0].name).toBe('Jane Doe');
LOWtest/backlinks.test.ts23 expect(refs[0].name).toBe('Acme Corp');
LOWtest/backlinks.test.ts47 expect(extractPageTitle('---\ntitle: "Jane Doe"\ntype: person\n---\n# Jane')).toBe('Jane Doe');
LOWtest/backlinks.test.ts51 expect(extractPageTitle('---\ntype: person\n---\n# Jane Doe')).toBe('Jane Doe');
LOWtest/frontmatter-inference.test.ts138 expect(result.title).toBe('John Doe');
LOWtest/sync.test.ts300 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });
LOWtest/by-mention.test.ts10 * 2. Multi-word phrase pass ("Acme Corp" matches "Acme Corp" not "Acme")
LOWtest/by-mention.test.ts100 test('2. multi-word phrase pass — "Acme Corp" matches multi-word, not single', () => {
LOWtest/by-mention.test.ts103 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },
LOWtest/by-mention.test.ts194 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },
LOWtest/by-mention.test.ts202 // Second occurrence of "Acme": multi-word "Acme Corp" matches → multi-word wins.
LOWtest/by-mention.test.ts213 { slug: 'companies/acme-corp', source_id: 'default', title: 'Acme Corp' },
LOWtest/performfullsync-source-id.test.ts72 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });
LOWtest/orphans.test.ts155 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },
LOWtest/orphans.test.ts184 { slug: 'companies/acme', title: 'Acme Corp', domain: 'companies' },
LOWtest/orphans.test.ts188 expect(out).toContain('Acme Corp');
LOWtest/sync-metafile-skip.serial.test.ts32 execSync('git config user.email "test@test.com"', { cwd: repo, stdio: 'pipe' });
LOWtest/sync-parallel.test.ts30 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });
LOWtest/enrichment-service.test.ts7 expect(slugifyEntity('Jane Doe', 'person')).toBe('people/jane-doe');
LOWtest/enrichment-service.test.ts11 expect(slugifyEntity('Acme Corp', 'company')).toBe('companies/acme-corp');
LOWtest/enrichment-service.test.ts33 expect(entityPagePath('Jane Doe', 'person')).toBe(slugifyEntity('Jane Doe', 'person'));
LOWtest/enrichment-service.test.ts56 const jane = entities.find(e => e.name === 'Jane Doe');
LOWtest/bench/baseline-file.test.ts54 const rows = [makeRow('hello world', 0), makeRow('lorem ipsum', 1)];
LOWtest/bench/baseline-file.test.ts63 expect(parsed.rows.map(r => r.query).sort()).toEqual(['hello world', 'lorem ipsum']);
LOWtest/e2e/sync.test.ts32 execSync('git config user.email "test@test.com"', { cwd: dir, stdio: 'pipe' });
LOWtest/e2e/sync.test.ts433 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });
LOWtest/e2e/sync-parallel.test.ts33 execSync('git config user.email "test@test.com"', { cwd: repoPath, stdio: 'pipe' });
LOWtests/heavy/_measure_rss_workload.ts93 `Section 1: lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ` +
LOWtests/heavy/_measure_rss_workload.ts93 `Section 1: lorem ipsum dolor sit amet, consectetur adipiscing elit, sed ` +
LOWtests/heavy/_measure_rss_workload.ts170 'synthetic page', 'lorem ipsum', 'consequat', 'voluptatem', 'aspernatur',
LOWtests/heavy/_read_latency_workload.ts81 `Section 1: lorem ipsum dolor sit amet consectetur adipiscing elit sed do ` +
LOWtests/heavy/_read_latency_workload.ts81 `Section 1: lorem ipsum dolor sit amet consectetur adipiscing elit sed do ` +
LOWtests/heavy/_read_latency_workload.ts141 'lorem ipsum', 'consequat', 'voluptatem', 'aspernatur', 'magna',
LOWsrc/core/by-mention.ts69 * share a first token (e.g. "Acme" + "Acme Corp" + "Acme Foundation").
LOWsrc/core/by-mention.ts153 * same first token co-exist in the same bucket (e.g. "Acme" + "Acme Corp").
LOWsrc/core/eval-capture-scrub.ts73 * Order of operations matters: email first so "user@example.com" doesn't
AI Slop Vocabulary8 hits · 22 pts
SeverityFileLineSnippet
MEDIUMtest/sources.test.ts30 // Match by substring so tests are robust against whitespace.
MEDIUMtest/hybrid-search-lite.serial.test.ts127 // is robust to the fixture’s actual chunking.
MEDIUMtest/sum-stale-chunk-chars.test.ts94 // depend on gateway-configured dimensions (keeps it robust regardless of
MEDIUMtest/sum-stale-chunk-chars.test.ts98 // in atttypmod) so the test is robust to whatever dim initSchema chose.
MEDIUMscripts/check-fuzz-purity.sh87# A fuzz harness that pulls in `engine.ts` could trigger DB connections through
LOWscripts/import-from-upstream.sh171# subordinate script. For v0, just call the guard against the destination
MEDIUMsrc/core/source-resolver.ts123 // to tier 6 rather than throwing. Resolver stays robust to bad config.
MEDIUMsrc/commands/eval-schema-authoring.ts3// Codex finding #9 honored: this harness's pass-criterion measures
Cross-Language Confusion (JS/TS)3 hits · 22 pts
SeverityFileLineSnippet
HIGHtest/e2e/code-indexing.test.ts86 print(f"started {self.config['name']}")
HIGHtest/e2e/code-indexing.test.ts90 print(f"stopped {self.config.get('name', 'anon')}")
HIGHtest/e2e/code-indexing.test.ts93 if not key: return None
Example Usage Blocks15 hits · 21 pts
SeverityFileLineSnippet
LOWtests/heavy/pg_upgrade_matrix.sh29# Usage:
LOWtests/heavy/_build_legacy_fixtures.sh11# Usage:
LOWtests/heavy/measure_rss.sh13# Usage:
LOWtests/heavy/read_latency_under_sync.sh13# Usage:
LOWtests/heavy/sync_timeout_rescue.sh39# Usage:
LOWscripts/check-proposal-pii.sh24# Usage:
LOWscripts/run-unit-parallel.sh11# Usage:
LOWscripts/fix-v0.11.0.sh5# Usage:
LOWscripts/run-heavy.sh7# Usage:
LOWscripts/ci-cache-hash.sh37# Usage:
LOWscripts/run-verify-parallel.sh11# Usage:
LOWscripts/import-from-upstream.sh5# Usage:
LOWscripts/profile-tests.sh7# Usage:
LOWscripts/check-privacy.sh16# Usage:
LOWscripts/smoke-test.sh7# Usage:
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHtest/sync-sole-non-default-routing.test.ts159 // Pages went to 'default' as requested.
HIGHtest/retrieval-upgrade-planner.test.ts327 // Resume path also calls runSchemaTransition. Mark as requested so the
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMsrc/core/cycle/extract-atoms.ts129 - Stand alone (no "as discussed above")
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWtest/edge-extractor.test.ts49def helper():
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/check-skill-brain-first.sh56 except Exception: