AI Slop Code RIsk Monitor

CortexReach/memory-lancedb-pro

Enhanced LanceDB memory plugin for OpenClaw — Hybrid Retrieval (Vector + BM25), Cross-Encoder Rerank, Multi-Scope Isolation, Management CLI

5.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for CortexReach/memory-lancedb-pro, a JavaScript project with 4,453 GitHub stars. SynthScan examined 61,189 lines of code across 102 source files, recording 312 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 5.2 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.2
Adjusted Signal
5.2
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
4.5K
Stars
JavaScript
Language
61.2K
Lines of Code
102
Files
312
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 19.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 274 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

Are imports declared and package/API names verified? 34 finding(s).

Agent Over-Engineering Ratio 17.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 230 finding(s).

PR Review Velocity Impact 22.9/100 · LOW

Which changes need focused human review? 312 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 1MEDIUM 1LOW 310

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 312 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers226 hits · 222 pts
SeverityFileLineSnippetContext
LOWcli.ts92function resolveOpenClawConfigPath(explicit?: string): string {CODE
LOWcli.ts120function resolveConfiguredOauthPath(configPath: string, rawPath: unknown): string {CODE
LOWcli.ts153function extractRestorableApiKeyLlmConfig(value: unknown): RestorableApiKeyLlmConfig {CODE
LOWcli.ts177function extractOauthSafeLlmConfig(value: unknown): RestorableApiKeyLlmConfig {CODE
LOWcli.ts192function hasRestorableApiKeyLlmConfig(value: RestorableApiKeyLlmConfig): boolean {CODE
LOWcli.ts196function buildLogoutFallbackLlmConfig(value: unknown): RestorableApiKeyLlmConfig {CODE
LOWcli.ts263async function promptOauthProviderSelection(CODE
LOWcli.ts361async function resolveOauthProviderSelection(CODE
LOWcli.ts512function formatRetrievalDiagnosticsLines(diagnostics: {CODE
LOWcli.ts2505function registerConsolidateCommand(memory: Command, context: CLIContext) {CODE
LOW⚡index.ts581function getEffectiveAutoRecallMaxItems(config: PluginConfig): number {CODE
LOW⚡index.ts587function getAutoRecallRetrieveLimit(autoRecallMaxItems: number): number {CODE
LOW⚡index.ts591function getAutoRecallRerankInputLimit(retrieveLimit: number): number {CODE
LOW⚡index.ts595function getAutoRecallRerankTimeoutMs(CODE
LOW⚡index.ts2376function isSessionBoundaryReflectionAction(action: unknown): boolean {CODE
LOW⚡index.ts2383function getReflectionEmptyEventGuardMap(): Map<string, ReflectionEmptyEventGuardEntry> {CODE
LOW⚡index.ts2389function pruneReflectionEmptyEventGuard(now = Date.now()): void {CODE
LOWindex.ts24export function isCliMetadataRegistration(api: OpenClawPluginApi): boolean {CODE
LOWindex.ts419function resolveWorkspaceDirFromContext(context: Record<string, unknown> | undefined): string {CODE
LOWindex.ts441function isSupportedSecretRefSource(value: unknown): value is SecretRefSource {CODE
LOWindex.ts491function resolveSecretCredentialArray(CODE
LOWindex.ts513function resolveOptionalPathWithEnv(CODE
LOWindex.ts610export function buildAutoRecallRerankCostWarning(CODE
LOWindex.ts685function resolveSourceFromSessionKey(sessionKey: string | undefined): string {CODE
LOWindex.ts692function summarizeAgentEndMessages(messages: unknown[]): string {CODE
LOWindex.ts877export function getExtensionApiImportSpecifiers(CODE
LOWindex.ts927export function resolveEmbeddedRunnerExportName(candidate: unknown): EmbeddedRunnerExportName | undefined {CODE
LOWindex.ts935export function getEmbeddedRunnerExportName(): EmbeddedRunnerExportName | undefined {CODE
LOWindex.ts1009async function loadSelfImprovementReminderContent(workspaceDir?: string): Promise<string> {CODE
LOWindex.ts1023function resolveAgentPrimaryModelRef(cfg: unknown, agentId: string): string | undefined {CODE
LOWindex.ts1111export function resolveRuntimeLlmComplete(api: OpenClawPluginApi): RuntimeLlmCompleteFn | undefined {CODE
LOWindex.ts1122function isInternalReflectionSessionKey(sessionKey: unknown): boolean {CODE
LOWindex.ts1181function shouldSkipReflectionMessage(role: string, text: string): boolean {CODE
LOWindex.ts1215function isSubstantiveUserReferent(turn: ConversationTurn): boolean {CODE
LOWindex.ts1249function prunePairWindowEpochsCoupled(CODE
LOWindex.ts1266function isExplicitRememberCommand(text: string): boolean {CODE
LOWindex.ts1271export function buildAutoCaptureConversationKeyFromIngress(CODE
LOWindex.ts1290function autoCaptureRetainedTextCap(minMessages: number): number {CODE
LOWindex.ts1294function buildAutoCaptureConversationKeyFromSessionKey(sessionKey: string): string | null {CODE
LOWindex.ts1365function extractTextFromToolResult(result: unknown): string {CODE
LOWindex.ts1395function summarizeRecentConversationMessages(CODE
LOWindex.ts1434function conversationFromHookSessionMemory(CODE
LOWindex.ts1456async function readSessionConversationForReflection(filePath: string, messageCount: number, format: ConversationTranscriCODE
LOWindex.ts1477export async function readSessionConversationWithResetFallback(sessionFilePath: string, messageCount: number, format: CoCODE
LOWindex.ts1512function trimTranscriptToTagBoundary(transcript: string, maxChars: number): string {CODE
LOWindex.ts1674function buildReflectionFallbackText(): string {CODE
LOWindex.ts1736function resolveReflectionModelTarget(CODE
LOWindex.ts1792async function generateReflectionTextUnbounded(CODE
LOWindex.ts2252function createAdmissionRejectionAuditWriter(CODE
LOWindex.ts2403async function getReflectionEmptyEventGuardKey(params: {CODE
LOWindex.ts2921function isPluginExplicitlyDisabled(config: Record<string, unknown>, pluginName: string): boolean {CODE
LOWindex.ts2931export function warnForDisabledChannelPlugin(CODE
LOWindex.ts6915 function scheduleNextDreamingSweep() {CODE
LOWsrc/workspace-boundary.ts44export function resolveUserMdExclusiveConfig(CODE
LOWsrc/workspace-boundary.ts58export function shouldFilterUserMdExclusiveRecall(CODE
LOWsrc/batch-dedup.ts140export function createExtractionCostStats(): ExtractionCostStats {CODE
LOWsrc/auto-capture-cleanup.ts28function stripLeadingInboundMetadata(text: string): string {CODE
LOWsrc/auto-capture-cleanup.ts47function stripAutoCaptureSessionResetPrefix(text: string): string {CODE
LOWsrc/auto-capture-cleanup.ts65function stripAutoCaptureAddressingPrefix(text: string): string {CODE
LOWsrc/auto-capture-cleanup.ts69function stripRuntimeWrapperBoilerplate(text: string): string {CODE
166 more matches not shown…
Fake / Example Data32 hits · 37 pts
SeverityFileLineSnippetContext
LOW⚡openclaw.plugin.json1780 "placeholder": "sk-proj-... or [\"key1\", \"key2\"] for rotation",CODE
LOW⚡openclaw.plugin.json1785 "placeholder": "text-embedding-3-small",CODE
LOW⚡openclaw.plugin.json1790 "placeholder": "https://api.openai.com/v1",CODE
LOW⚡openclaw.plugin.json1796 "placeholder": "auto-detected from model",CODE
LOW⚡openclaw.plugin.json1802 "placeholder": "omit by default",CODE
LOW⚡openclaw.plugin.json1868 "placeholder": "24",CODE
LOW⚡openclaw.plugin.json1874 "placeholder": "7",CODE
LOW⚡openclaw.plugin.json1880 "placeholder": "300000",CODE
LOW⚡openclaw.plugin.json1886 "placeholder": "0",CODE
LOW⚡openclaw.plugin.json1892 "placeholder": "redis://localhost:6379",CODE
LOW⚡openclaw.plugin.json1904 "placeholder": "redis://localhost:6379",CODE
LOW⚡openclaw.plugin.json1911 "placeholder": "memory-lancedb-pro:write-lock",CODE
LOW⚡openclaw.plugin.json1917 "placeholder": "60000",CODE
LOW⚡openclaw.plugin.json1923 "placeholder": "5000",CODE
LOW⚡openclaw.plugin.json1929 "placeholder": "50",CODE
LOW⚡openclaw.plugin.json1935 "placeholder": "1000",CODE
LOW⚡openclaw.plugin.json1946 "placeholder": "sk-... or ${GROQ_API_KEY}",CODE
LOW⚡openclaw.plugin.json1951 "placeholder": "openai/gpt-oss-120b",CODE
LOW⚡openclaw.plugin.json1956 "placeholder": "https://api.groq.com/openai/v1",CODE
LOW⚡openclaw.plugin.json2116 "placeholder": "jina_... / sk-... / pcsk_...",CODE
LOW⚡openclaw.plugin.json2122 "placeholder": "jina-reranker-v3",CODE
LOW⚡openclaw.plugin.json2128 "placeholder": "https://api.jina.ai/v1/rerank",CODE
LOW⚡openclaw.plugin.json2134 "placeholder": "5000",CODE
LOWopenclaw.plugin.json1813 "placeholder": "retrieval.query",CODE
LOWopenclaw.plugin.json1819 "placeholder": "retrieval.passage",CODE
LOWopenclaw.plugin.json1830 "placeholder": "model-specific default",CODE
LOWopenclaw.plugin.json1851 "placeholder": "30000",CODE
LOWopenclaw.plugin.json1857 "placeholder": "~/.openclaw/memory/lancedb-pro",CODE
LOWopenclaw.plugin.json2289 "placeholder": "anthropic/claude-sonnet-4-6",CODE
LOWopenclaw.plugin.json2406 "placeholder": "30000",CODE
LOWopenclaw.plugin.json2445 "placeholder": "0 3 * * *",CODE
LOWopenclaw.plugin.json2450 "placeholder": "anthropic/claude-sonnet-4-6",CODE
Over-Commented Block33 hits · 26 pts
SeverityFileLineSnippetContext
LOWindex.ts2321export function _getRegisteredApisForTest(): Map<OpenClawPluginApi, boolean> {COMMENT
LOWindex.ts2961 register(api: OpenClawPluginApi) {COMMENT
LOWindex.ts3301 reflectionByAgentCache.set(cacheKey, next);COMMENT
LOWindex.ts3601COMMENT
LOWindex.ts4101 // remember command. The pending-ingress queue is deliberately NOTCOMMENT
LOWindex.ts4481 // known; the builder's no-correlation fallback would re-tag themCOMMENT
LOWindex.ts4521 }COMMENT
LOWindex.ts4801 // every upstream selector (session compression and the embeddingCOMMENT
LOWindex.ts4821 // flow (prepended referent) bypasses the prepend for its ownCOMMENT
LOWindex.ts4841 ? finalConversationTurnsCOMMENT
LOWindex.ts4861 // an enabled-era run possibly in flight) is bumped so thatCOMMENT
LOWindex.ts4981 // their counter is a pure accumulator of new texts towardCOMMENT
LOWindex.ts5041 // Below-threshold turns are deferred, never handed to the rawCOMMENT
LOWindex.ts5341 // registered hook like __lastRun rather than the package's export list:COMMENT
LOW.github/workflows/claude.yml41 actions: readCOMMENT
LOWsrc/corpus-indexer.ts581 staleDeleted: 0,COMMENT
LOWsrc/auto-recall-tier1.ts1import type { SmartMemoryMetadata } from "./smart-metadata.ts";COMMENT
LOWsrc/tools.ts1561 action: "duplicate",COMMENT
LOWsrc/tools.ts1581 // nothing and both plain-store, leaving two active rows for oneCOMMENT
LOWsrc/manual-echo-guard.ts261 // whole tokens. A raw substring test would accept "has a cat" inside "hasCOMMENT
LOWsrc/consolidate.ts801 // primitive applySupersedeVerdict uses (invalidated_at + superseded_by +COMMENT
LOWsrc/consolidate.ts1221 // pre-sorted candidate array makes both which rows end up in the sameCOMMENT
LOWsrc/reflection-store.ts541 // below, which now requires an exact owner match (no more universal main fallback)COMMENT
LOWsrc/store.ts161 // @lancedb/lancedb's napi-rs loader (dist/native.js) detects musl viaCOMMENT
LOWsrc/store.ts1301COMMENT
LOWsrc/store.ts1441 // 等 flushLock 釋放(即上一個 doFlush 完成後)COMMENT
LOWsrc/store.ts1681 // 【MR4 fix】設定 destroyed flag,阻止後續 bulkStore() 呼叫COMMENT
LOWsrc/store.ts3221 // A systemic failure (version refresh unavailable, lock unacquirable,COMMENT
LOWsrc/store.ts3641 .map((scope) => `scope = '${escapeSqlLiteral(scope)}'`)COMMENT
LOWsrc/smart-extractor.ts861 } catch (err) {COMMENT
LOWsrc/smart-extractor.ts1841 // Batch-level register signal, judged once per extraction. The modelCOMMENT
LOWsrc/smart-extractor.ts1881 return !!cat && DURABLE_CATEGORIES.has(cat);COMMENT
LOWsrc/smart-extractor.ts2141 this.debugLog(COMMENT
Verbosity Indicators7 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡src/memory-upgrader.ts494 // Step 1: Reverse-map categoryCOMMENT
LOW⚡src/memory-upgrader.ts497 // Step 2: Generate L0/L1/L2COMMENT
LOWsrc/memory-upgrader.ts546 // Step 3: Build enriched metadataCOMMENT
LOWsrc/smart-extractor.ts725 // Step 1: LLM extractionCOMMENT
LOWsrc/smart-extractor.ts815 // Step 2: Process each surviving candidate through dedup pipeline.COMMENT
LOWsrc/smart-extractor.ts1733 // Step 1: LLM ExtractionCOMMENT
LOWsrc/smart-extractor.ts2272 // Step 2: Dedup + PersistCOMMENT
Structural Annotation Overuse7 hits · 12 pts
SeverityFileLineSnippetContext
LOW⚡src/memory-upgrader.ts494 // Step 1: Reverse-map categoryCOMMENT
LOW⚡src/memory-upgrader.ts497 // Step 2: Generate L0/L1/L2COMMENT
LOWsrc/memory-upgrader.ts546 // Step 3: Build enriched metadataCOMMENT
LOWsrc/smart-extractor.ts725 // Step 1: LLM extractionCOMMENT
LOWsrc/smart-extractor.ts815 // Step 2: Process each surviving candidate through dedup pipeline.COMMENT
LOWsrc/smart-extractor.ts1733 // Step 1: LLM ExtractionCOMMENT
LOWsrc/smart-extractor.ts2272 // Step 2: Dedup + PersistCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHscripts/jsonl_distill.py436except Exception:CODE
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcli.ts971 // ── Deduplication check (scope-aware exact match) ───────────────────COMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/jsonl_distill.py312 except Exception:CODE
LOWscripts/jsonl_distill.py436 except Exception:CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/jsonl_distill.py17CODE
LOWscripts/jsonl_distill.py24CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/jsonl_distill.py98CODE