Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5, MCP server, HTTP API, CLI, and TUI.
This report summarizes scanner evidence for Gentleman-Programming/engram, a Go project with 7,136 GitHub stars. SynthScan examined 246,848 lines of code across 548 source files, recording 774 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 7.9 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 181 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 620 finding(s).
Which changes need focused human review? 774 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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.
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.
The scanner identified 774 distinct pattern matches across 9 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | cmd/engram/conflicts_test.go | 25 | // ─── mock runner for D.2 tests ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts_test.go | 61 | // ─── helpers ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts_test.go | 151 | // ─── D.1 RED tests ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts_test.go | 553 | // ─── G.1 — End-to-end CLI lifecycle integration tests ──────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts_test.go | 685 | // ─── D.2 RED tests — agentRunnerFactory + resolveAgentRunner ───────────────── | COMMENT |
| MEDIUM | cmd/engram/delete_args_test.go | 13 | // ─── delete strict trailing-argument validation (issue #1084) ───────────────── | COMMENT |
| MEDIUM | cmd/engram/delete_args_test.go | 13 | // ─── delete strict trailing-argument validation (issue #1084) ───────────────── | COMMENT |
| MEDIUM | cmd/engram/autosync_status_test.go | 40 | // ─── Status adapter tests (REQ-209) ────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/llm.go | 12 | // ─── agentRunnerFactory default ─────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/llm.go | 26 | // ─── llmRunnerAdapter ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/llm.go | 52 | // ─── llmBuildPrompt ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/llm.go | 64 | // ─── resolveAgentRunner ─────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts.go | 62 | // ─── list ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts.go | 165 | // ─── show ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts.go | 226 | // ─── stats ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts.go | 294 | // ─── scan ───────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/conflicts.go | 511 | // ─── deferred ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main.go | 885 | // ─── Commands ──────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main.go | 3739 | // ─── Helpers ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/autosync_e2e_test.go | 65 | // ─── E2E Round-trip test (REQ-212) ─────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/autosync_e2e_test.go | 293 | // ─── Fake store for E2E tests ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 1815 | // ─── Projects command tests ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3100 | // ─── obsidian-export command tests ─────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3281 | // ─── obsidian-export Phase 4 tests (graph-config, watch, interval) ─────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3515 | // ─── Delete command tests ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3615 | // ─── delete session sub-command tests ───────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3697 | // ─── delete prompt sub-command tests ────────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3767 | // ─── delete project sub-command tests ───────────────────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3833 | // ─── backward-compat: delete <obs_id> still works ───────────────────────────── | COMMENT |
| MEDIUM | cmd/engram/main_test.go | 3849 | // ─── usage shows new sub-commands ───────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/claude-code/scripts/user-prompt-submit.sh | 639 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/claude-code/scripts/user-prompt-submit.sh | 645 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/claude-code/scripts/user-prompt-submit.sh | 669 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/claude-code/scripts/user-prompt-submit.sh | 674 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/claude-code/scripts/user-prompt-submit.sh | 687 | # ── FIRST MESSAGE ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/claude-code/scripts/user-prompt-submit.sh | 696 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/claude-code/scripts/user-prompt-submit.sh | 698 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/codex/scripts/user-prompt-submit.sh | 33 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/codex/scripts/user-prompt-submit.sh | 40 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/codex/scripts/user-prompt-submit.sh | 100 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/codex/scripts/user-prompt-submit.sh | 105 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/codex/scripts/user-prompt-submit.sh | 117 | # ── FIRST MESSAGE ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/codex/scripts/user-prompt-submit.sh | 126 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | plugin/codex/scripts/user-prompt-submit.sh | 128 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 10 | // ─── Plugin ─────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 24 | // ─── Lifecycle ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 69 | // ─── Settings ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 80 | // ─── Auto-sync ──────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 118 | // ─── Sync ───────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 134 | // ── Failure path ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 145 | // ── Success path ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/main.ts | 169 | // ─── Status Bar ─────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 4 | // ─── Settings Interface ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 30 | // ─── Settings Tab ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 50 | // ── Engram URL ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 95 | // ── Auto-sync Interval ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 118 | // ── Project Filter ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 134 | // ── Vault Subfolder ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 151 | // ── Manual Sync Button ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | plugin/obsidian/src/settings.ts | 189 | // ─── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| 529 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.beta.yml | 1 | # Engram Beta — Phases 2 + 3 + 4 community testing | COMMENT |
| LOW | DOCS.md | 1101 | ```bash | COMMENT |
| LOW | cmd/engram/cloud.go | 121 | options = append(options, cloudserver.WithPrincipalProjectAuthorizer(cloudPrincipalProjectAuthorizer{store: grantStore | COMMENT |
| LOW | cmd/engram/cloud.go | 141 | // in addition to the legacy ENGRAM_CLOUD_TOKEN/ENGRAM_CLOUD_ADMIN env | COMMENT |
| LOW | cmd/engram/cloud_bootstrap.go | 21 | cloudBootstrapAuditOutcomeSuccess = "success" | COMMENT |
| LOW | cmd/engram/cloud_runtime_auth.go | 21 | // actually checks the legacy credentials FIRST and only falls back to | COMMENT |
| LOW | cmd/engram/cloud_runtime_auth.go | 41 | // cloudRuntimeAuthenticator always implements ResolveBearerToken, | COMMENT |
| LOW | cmd/engram/cloud_bootstrap_test.go | 321 | // TestCloudBootstrapAdminConcurrentFirstAdminCreatesExactlyOneAdmin is the | COMMENT |
| LOW | cmd/engram/cloud_runtime_e2e_test.go | 61 | // real HTTP requests through the assembled *cloudserver.CloudServer, proving: | COMMENT |
| LOW | cmd/engram/main.go | 81 | // injectable for testing so tests can drive EOF-driven shutdown with an | COMMENT |
| LOW | cmd/engram/main.go | 1221 | }() | COMMENT |
| LOW | tools/repair-missing-session-directory.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | plugin/claude_code_hook_behavior_test.go | 21 | "testing" | COMMENT |
| LOW | plugin/claude-code/scripts/user-prompt-submit.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | plugin/claude-code/scripts/user-prompt-submit.sh | 61 | encoded+="$byte" | COMMENT |
| LOW | plugin/claude-code/scripts/subagent-stop.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | plugin/claude-code/scripts/session-start.sh | 141 | # Fetch memory context. | COMMENT |
| LOW | plugin/codex/scripts/user-prompt-submit.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | plugin/codex/scripts/subagent-stop.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | internal/llm/runner.go | 1 | // Package llm defines the AgentRunner abstraction used by Engram to delegate | COMMENT |
| LOW | internal/llm/runner.go | 21 | // structured Verdict. | COMMENT |
| LOW | internal/llm/claude.go | 21 | // runCLI is the shell-out function. Defaults to defaultRunCLI. | COMMENT |
| LOW | internal/llm/cost.go | 1 | package llm | COMMENT |
| LOW | internal/llm/cost.go | 21 | // EstimateScanCost returns the estimated total input and output token counts | COMMENT |
| LOW | internal/llm/prompt.go | 21 | } | COMMENT |
| LOW | internal/setup/generate.go | 1 | package setup | COMMENT |
| LOW | internal/setup/protocol.go | 41 | } | COMMENT |
| LOW | internal/setup/registry.go | 21 | const ( | COMMENT |
| LOW | internal/setup/setup.go | 1 | // Package setup handles agent plugin installation. | COMMENT |
| LOW | internal/setup/setup.go | 521 | // | COMMENT |
| LOW | internal/setup/setup.go | 1421 | // resolveEngramCommand returns the most stable command to spawn the engram | COMMENT |
| LOW | internal/setup/setup.go | 1501 | return "", false | COMMENT |
| LOW | internal/mcp/mcp_test.go | 11001 | } | COMMENT |
| LOW | internal/mcp/context_budget_test.go | 21 | // tool arguments. Every case compares the handler's rendered context against | COMMENT |
| LOW | internal/mcp/mcp_conflict_loop_test.go | 421 | } | COMMENT |
| LOW | internal/mcp/mcp.go | 1 | // Package mcp implements the Model Context Protocol server for Engram. | COMMENT |
| LOW | internal/mcp/mcp.go | 41 | sessionIDPropertyDescription = "Optional authoritative session ID already registered by the runtime or mem_session_star | COMMENT |
| LOW | internal/mcp/mcp.go | 201 | COMMENT | |
| LOW | internal/mcp/mcp.go | 1361 | if compact { | COMMENT |
| LOW | internal/mcp/mcp.go | 1981 | memContextDefaultMaxBytes = 16 * 1024 | COMMENT |
| LOW | internal/mcp/serverinstructions_length_test.go | 1 | package mcp | COMMENT |
| LOW | internal/project/detect.go | 61 | // ProcessOverride returns the single process-level project override that every | COMMENT |
| LOW | internal/project/detect.go | 121 | // Warning is a non-empty advisory message when Source==SourceGitChild. | COMMENT |
| LOW | internal/cloud/cloudstore/identity_storage_test.go | 981 | defer func() { _ = tx.Rollback() }() | COMMENT |
| LOW | internal/cloud/cloudstore/identity.go | 741 | // auth import would cycle) by cloudauth.ManagedTokenLookup at runtime, so | COMMENT |
| LOW | internal/cloud/autosync/manager.go | 1 | // Package autosync implements a lease-guarded background sync manager | COMMENT |
| LOW | internal/cloud/autosync/manager.go | 321 | COMMENT | |
| LOW | internal/cloud/cloudserver/dashboard_session.go | 161 | } | COMMENT |
| LOW | internal/cloud/cloudserver/dashboard_session.go | 201 | log.Printf("[engram-cloud] dashboard login audit insert failed (best-effort): %v", err) | COMMENT |
| LOW | internal/cloud/cloudserver/dashboard_session.go | 561 | if source := string(actor.Source); source != "" { | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1701 | result = append(result, row) | COMMENT |
| LOW | internal/cloud/cloudserver/dashboard_admin_users.go | 21 | // (requireManagedAdmin), and SAME audit path (recordAdminAudit) already | COMMENT |
| LOW | internal/cloud/cloudserver/dashboard_admin_users.go | 81 | // renderDashboardAdminComponentStatus is renderDashboardAdminComponent but | COMMENT |
| LOW | internal/sync/transport.go | 21 | // WriteManifest persists the manifest. | COMMENT |
| LOW | internal/sync/sync.go | 1 | // Package sync implements git-friendly memory synchronization for Engram. | COMMENT |
| LOW | internal/sync/sync.go | 1241 | COMMENT | |
| LOW | internal/store/prompt_discard.go | 381 | } | COMMENT |
| LOW | internal/store/store_migration_test.go | 401 | COMMENT | |
| LOW | internal/store/store_migration_test.go | 541 | missing = append(missing, req) | COMMENT |
| LOW | internal/store/store_legacy_ddl_test.go | 1 | package store | COMMENT |
| 38 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CONTRIBUTING.md | 13 | ### Step 1: Open an Issue | COMMENT |
| LOW⚡ | CONTRIBUTING.md | 28 | ### Step 2: Wait for Approval | COMMENT |
| LOW⚡ | CONTRIBUTING.md | 34 | ### Step 3: Open a Pull Request | COMMENT |
| LOW⚡ | CONTRIBUTING.md | 43 | ### Step 4: Automated PR Checks | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 960 | // Step 1: from SearchResults, enter ObservationDetail — PrevScreen = ScreenSearchResults | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 969 | // Step 2: from ObservationDetail, Esc → back to SearchResults (via PrevScreen) | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 978 | // Step 3: from SearchResults, Esc → back to ScreenSearch, PrevScreen reset to Dashboard | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 989 | // Step 4: from Search (no input focused), Esc → always Dashboard, never loops | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 997 | // Step 5: from Search input focused, Esc → always Dashboard, never loops | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1024 | // Step 1: Add marketplace (idempotent — if already added, claude will say so) | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1034 | // Step 2: Install the plugin | COMMENT |
| LOW | internal/setup/setup.go | 1057 | // Step 3: Claude CLI owns user-scope MCP writes. Engram only reads the | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1678 | // Step 1: add the marketplace (idempotent — tolerate "already" in output). | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1685 | // Step 2: install the plugin (idempotent — tolerate "already" in output). | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1730 | // Step 1: POST to mutation push with paused project → should 409 + emit audit. | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1746 | // Step 2: verify audit row was captured in the store. | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1758 | // Step 3: list via the store's audit method (simulates what the dashboard handler would call). | COMMENT |
| LOW⚡ | internal/sync/sync.go | 2525 | // Step 1: index sessions that match by their own project | COMMENT |
| LOW⚡ | internal/sync/sync.go | 2534 | // Step 2: observations — match by own project OR by session | COMMENT |
| LOW | internal/sync/sync.go | 2550 | // Step 3: prompts — match by own project OR by session | COMMENT |
| LOW | internal/sync/sync.go | 2565 | // Step 4: include sessions that matched directly or are referenced by included entities | COMMENT |
| LOW | internal/store/store.go | 11866 | // Step 1: decode payload. | COMMENT |
| LOW | internal/store/store.go | 11913 | // Step 2: FK precondition — both observations must exist locally (by sync_id). | COMMENT |
| LOW | internal/store/store.go | 11935 | // Step 3: upsert into memory_relations keyed on sync_id (idempotent re-apply). | COMMENT |
| LOW | internal/store/store.go | 11964 | // Step 4: clean up the rows this relation left behind (its pending retry | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | internal/tui/update_test.go | 960 | // Step 1: from SearchResults, enter ObservationDetail — PrevScreen = ScreenSearchResults | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 969 | // Step 2: from ObservationDetail, Esc → back to SearchResults (via PrevScreen) | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 978 | // Step 3: from SearchResults, Esc → back to ScreenSearch, PrevScreen reset to Dashboard | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 989 | // Step 4: from Search (no input focused), Esc → always Dashboard, never loops | COMMENT |
| LOW⚡ | internal/tui/update_test.go | 997 | // Step 5: from Search input focused, Esc → always Dashboard, never loops | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1024 | // Step 1: Add marketplace (idempotent — if already added, claude will say so) | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1034 | // Step 2: Install the plugin | COMMENT |
| LOW | internal/setup/setup.go | 1057 | // Step 3: Claude CLI owns user-scope MCP writes. Engram only reads the | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1678 | // Step 1: add the marketplace (idempotent — tolerate "already" in output). | COMMENT |
| LOW⚡ | internal/setup/setup.go | 1685 | // Step 2: install the plugin (idempotent — tolerate "already" in output). | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1730 | // Step 1: POST to mutation push with paused project → should 409 + emit audit. | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1746 | // Step 2: verify audit row was captured in the store. | COMMENT |
| LOW | internal/cloud/cloudserver/cloudserver_test.go | 1758 | // Step 3: list via the store's audit method (simulates what the dashboard handler would call). | COMMENT |
| LOW⚡ | internal/sync/sync.go | 2525 | // Step 1: index sessions that match by their own project | COMMENT |
| LOW⚡ | internal/sync/sync.go | 2534 | // Step 2: observations — match by own project OR by session | COMMENT |
| LOW | internal/sync/sync.go | 2550 | // Step 3: prompts — match by own project OR by session | COMMENT |
| LOW | internal/sync/sync.go | 2565 | // Step 4: include sessions that matched directly or are referenced by included entities | COMMENT |
| LOW | internal/store/store.go | 11866 | // Step 1: decode payload. | COMMENT |
| LOW | internal/store/store.go | 11913 | // Step 2: FK precondition — both observations must exist locally (by sync_id). | COMMENT |
| LOW | internal/store/store.go | 11935 | // Step 3: upsert into memory_relations keyed on sync_id (idempotent re-apply). | COMMENT |
| LOW | internal/store/store.go | 11964 | // Step 4: clean up the rows this relation left behind (its pending retry | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugin/pi/compaction-recovery.js | 78 | function unknownArchiveInstruction(project) { | CODE |
| LOW | plugin/pi/compaction-recovery.js | 86 | function unavailableRecoveryInstruction() { | CODE |
| LOW | plugin/pi/index.ts | 182 | function isIdempotentSessionRegistration(path: string, method: string): boolean { | CODE |
| LOW | plugin/pi/index.ts | 290 | function shouldScheduleEngramSelfHeal(error: unknown, failure: EngramTransportFailure | undefined): boolean { | CODE |
| LOW | plugin/pi/index.ts | 308 | function sessionProjectConflictFromResponse(error: unknown, sessionId: string, requestedProject: string, resumeRoot?: st | CODE |
| LOW | plugin/pi/index.ts | 332 | function isDefinitelyPreDispatchError(error: unknown): boolean { | CODE |
| LOW | plugin/pi/index.ts | 453 | function isObservationSaveResultMiss(response: Response, data: unknown): boolean { | CODE |
| LOW | plugin/pi/index.ts | 460 | function isAmbiguousObservationSaveReplayStatus(status: number): boolean { | CODE |
| LOW | plugin/pi/index.ts | 565 | function createMemoryToolTransport(signal?: AbortSignal): { fetch: EngramFetcher; transportFailure: () => EngramTranspor | CODE |
| LOW | plugin/pi/index.ts | 640 | function projectCurrentUnsupportedError(cwd: string): CurrentProjectResponse { | CODE |
| LOW | plugin/pi/index.ts | 696 | function isPreIdentityEngramVersion(version: string): boolean { | CODE |
| LOW | plugin/pi/index.ts | 810 | function legacyEngramServerMessage(engramServerVersion: string): string { | CODE |
| LOW | plugin/pi/index.ts | 814 | function missingInstanceIdentityMessage(engramServerVersion: string): string { | CODE |
| LOW | plugin/pi/index.ts | 1150 | function recoverImplicitEngramServer(): Promise<boolean> { | CODE |
| LOW | plugin/pi/index.ts | 1229 | function warnSessionProjectConflictOnce(error: unknown, ctx?: SessionContext): void { | CODE |
| LOW | plugin/pi/index.ts | 1254 | function pendingEffectiveSessionProject(ctx: SessionContext, runtimeID: string, effectiveID: string): string | undefined | CODE |
| LOW | plugin/pi/index.ts | 1279 | function supportsRootSessionResume(health: unknown): boolean { | CODE |
| LOW | plugin/pi/index.ts | 1293 | function rootResumeCompatibilityError(health: unknown): Error { | CODE |
| LOW | plugin/pi/index.ts | 1601 | async function resolveExplicitWriteTarget(params: Record<string, unknown>, fetch: EngramFetcher): Promise<{ project: str | CODE |
| LOW | plugin/pi/index.ts | 1641 | function hasSessionRegistrationInFlight(sessionId: string): boolean { | CODE |
| LOW | plugin/pi/index.ts | 1645 | async function waitForSessionRegistration(sessionId: string, propagateFailure = false): Promise<void> { | CODE |
| LOW | plugin/pi/index.ts | 1694 | function normalizeInitializationError(error: unknown): Error { | CODE |
| LOW | plugin/pi/index.ts | 1757 | function soleActiveRuntimeSessionID(): string | undefined { | CODE |
| LOW | plugin/pi/index.ts | 1763 | function soleObservedRuntimeSessionID(): string | undefined { | CODE |
| LOW | plugin/pi/index.ts | 1922 | async function loadCompactionRecoveryContext(sessionId: string, ctx?: SessionContext): Promise<string | undefined> { | CODE |
| LOW | plugin/opencode/engram.ts | 282 | export function shouldNudgeForObservations( | CODE |
| LOW | plugin/opencode/engram.ts | 416 | function isKnownAuthoritativeRootSession(sessionId: string): boolean { | CODE |
| LOW | plugin/opencode/engram.ts | 511 | async function resolveAuthoritativeSessionID(sessionId: string): Promise<string> { | CODE |
| LOW | internal/setup/plugins/opencode/engram.ts | 282 | export function shouldNudgeForObservations( | CODE |
| LOW | internal/setup/plugins/opencode/engram.ts | 416 | function isKnownAuthoritativeRootSession(sessionId: string): boolean { | CODE |
| LOW | internal/setup/plugins/opencode/engram.ts | 511 | async function resolveAuthoritativeSessionID(sessionId: string): Promise<string> { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | plugin/claude-code/scripts/user-prompt-submit.sh | 688 | # Create the state file immediately to prevent repeat injections | COMMENT |
| MEDIUM⚡ | plugin/codex/scripts/user-prompt-submit.sh | 118 | # Create the state file immediately to prevent repeat injections | COMMENT |
| MEDIUM | .github/labels.yml | 3 | # This file is the canonical label set and policy source for this repo. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/ARCHITECTURE.md | 230 | ├── skills/ # Contributor AI skills (repo-wide standards + Engram-specific guardrails) | CODE |
| MEDIUM | docs/codebase/sync-and-cloud.md | 166 | ## Sync/cloud guardrails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/store/store_test.go | 19028 | Content: fmt.Sprintf("## Goal\nLine one for obs %d\n\n## Details\nLorem ipsum dolor sit amet, a long body Compact m | CODE |
| LOW | internal/store/store_test.go | 19028 | Content: fmt.Sprintf("## Goal\nLine one for obs %d\n\n## Details\nLorem ipsum dolor sit amet, a long body Compact m | CODE |
| LOW | internal/store/store_test.go | 19044 | Content: fmt.Sprintf("Pinned body %d with a Lorem ipsum preview Compact should drop.", i), | CODE |
| LOW | internal/store/store_test.go | 19219 | if strings.Contains(got, "Lorem ipsum") { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.beta.yml | 7 | # Usage: | COMMENT |