Lossless Claw — LCM (Lossless Context Management) plugin for OpenClaw
This report presents the forensic synthetic code analysis of Martian-Engineering/lossless-claw, a TypeScript project with 4,895 GitHub stars. SynthScan v2.0 examined 170,487 lines of code across 304 source files, recording 692 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 5.9 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).
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.
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.
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.
The scanner identified 692 distinct pattern matches across 8 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | doctor-contract-api.d.ts | 21 | export function normalizeCompatibilityConfig(params: { cfg: unknown }): { | CODE |
| LOW⚡ | doctor-contract-api.d.ts | 26 | export function collectLosslessRuntimeLlmModelRefs(cfg: unknown): { | CODE |
| LOW⚡ | doctor-contract-api.d.ts | 31 | export function collectLosslessSubagentModelRefs(cfg: unknown): { | CODE |
| LOW | doctor-contract-api.js | 47 | function toProviderPrefixedModelRef(provider, model) { | CODE |
| LOW | doctor-contract-api.js | 81 | function collectLosslessRuntimeLlmModelRefs(cfg) { | CODE |
| LOW | doctor-contract-api.js | 155 | function collectLosslessSubagentModelRefs(cfg) { | CODE |
| LOW | doctor-contract-api.js | 188 | function collectMissingPolicyEntries(cfg) { | CODE |
| LOW | doctor-contract-api.js | 203 | function collectMissingSubagentPolicyEntries(cfg) { | CODE |
| LOW | doctor-contract-api.js | 268 | function cloneRootWithLosslessEntry(cfg) { | CODE |
| LOW | doctor-contract-api.js | 287 | function applyModelOverridePolicyRepair({ policy, issues, changes, policyPath, subject }) { | CODE |
| LOW | doctor-contract-api.js | 321 | export function normalizeCompatibilityConfig({ cfg }) { | CODE |
| LOW | test/manifest.test.ts | 63 | function extractRegisterToolFactoryCallSites(): RegisterToolFactoryCallSite[] { | CODE |
| LOW | test/soft-reset-new-sibling-rebind.test.ts | 256 | function archiveTrackedFileAtInstant(trackedFile: string, instantMs: number): void { | CODE |
| LOW | test/helpers.ts | 187 | export function createEngineWithDepsOverrides(overrides: Partial<LcmDependencies>): LcmContextEngine { | CODE |
| LOW | test/helpers.ts | 201 | export function createEngineAtDatabasePath(databasePath: string): LcmContextEngine { | CODE |
| LOW | test/helpers.ts | 233 | export function writeLeafTranscriptMessages(sessionFile: string, messages: AgentMessage[]): void { | CODE |
| LOW | test/helpers.ts | 352 | export function corruptSessionFilePreservingObservedStats(sessionFile: string): void { | CODE |
| LOW | test/helpers.ts | 359 | export function estimateAssembledPayloadTokens(messages: AgentMessage[]): number { | CODE |
| LOW | test/helpers.ts | 374 | export async function ingestAndReadStoredContent(params: { | CODE |
| LOW⚡ | test/migration.test.ts | 30 | function legacyRawMessageIdentityHash(role: string, content: string): string { | CODE |
| LOW⚡ | test/migration.test.ts | 38 | function legacyRawBootstrapEntryHash(role: string, content: string): string { | CODE |
| LOW⚡ | test/migration.test.ts | 44 | function openClawInboundMetadataContent(params: { | CODE |
| LOW | test/migration.test.ts | 70 | function legacyCanonicalOpenClawIdentityContentWithRecap(params: { | CODE |
| LOW | test/engine-compaction.test.ts | 44 | function projectContextEngineHostParams( | CODE |
| LOW | test/ambiguous-rollover-rotation.test.ts | 198 | function writeIdlessEnvelopeTranscript(params: { | CODE |
| LOW | test/bootstrap-flood-regression.test.ts | 48 | function buildRepeatedPatternSession(sessionFile: string, pairCount: number): void { | CODE |
| LOW | test/live-turn-structural-supersede.test.ts | 608 | function decoratedMemoryFirstMetadataFace(body: string): string { | CODE |
| LOW | test/isolated-cron-checkpoint-missing-race.test.ts | 72 | function updateConversationSessionId( | CODE |
| LOW | test/message-identity.test.ts | 332 | function openClawInboundMetadataContent(params: { | CODE |
| LOW | test/prune.test.ts | 103 | async function seedConversationWithSummary( | CODE |
| LOW | test/bounded-assemble.test.ts | 81 | function makeHeavyToolResultMessage(index: number, payloadChars: number): AgentMessage { | CODE |
| LOW | test/same-turn-body-collapse.test.ts | 26 | function metadataWrappedWithHistory( | CODE |
| LOW | test/same-turn-body-collapse.test.ts | 73 | function metadataWrappedWithContextAndRecap(recap: string, body: string): string { | CODE |
| LOW | test/same-turn-body-collapse.test.ts | 86 | function metadataWrappedWithReplyContext(replyBody: string, body: string): string { | CODE |
| LOW | test/same-turn-body-collapse.test.ts | 356 | function metadataWrappedWithLineRecap(recap: string, body: string): string { | CODE |
| LOW | test/same-turn-body-collapse.test.ts | 527 | function metadataWrappedWithHeaderLineRecap( | CODE |
| LOW | test/doctor-archive-cause-skip.test.ts | 51 | async function seedConversationWithMessage( | CODE |
| LOW | test/plugin-config-registration.test.ts | 209 | function compactionAndDefaultModelConfig(params: { | CODE |
| LOW | test/integration-helpers.ts | 24 | export function createMockConversationStore() { | CODE |
| LOW | test/lcm-command.test.ts | 81 | function writeOpenClawInstallRecord(params: { | CODE |
| LOW | test/lcm-command.test.ts | 113 | async function createRolloverConversationData( | CODE |
| LOW | test/message-signatures.test.ts | 146 | function openClawInboundMetadataContent(messageId: string, text: string): string { | CODE |
| LOW | test/metadata-face-double-write.test.ts | 34 | function decoratedWithAnnouncedRecap(body: string): string { | CODE |
| LOW | test/engine-bootstrap.test.ts | 38 | function openClawInboundMetadataContent(params: { | CODE |
| LOW | test/batch-dedup.test.ts | 128 | function metadataWrappedWithInjectedContext(body: string): string { | CODE |
| LOW | specs/depth-aware-prompts-and-rewrite.md | 62 | function buildCondensedSummaryPrompt(params: { | CODE |
| LOW | src/expansion-policy.ts | 95 | export function detectBroadTimeRangeIndicator(query?: string): boolean { | CODE |
| LOW | src/expansion-policy.ts | 192 | export function classifyExpansionTokenRisk(input: { estimatedTokens: number; tokenCap: number }): { | CODE |
| LOW | src/expansion-policy.ts | 217 | export function decideLcmExpansionRouting( | CODE |
| LOW | src/lcm-log.ts | 73 | function readRuntimeConfigCandidates(api: OpenClawPluginApi): Record<string, unknown>[] { | CODE |
| LOW | src/lcm-log.ts | 88 | function readOpenClawRedactionConfig(api: OpenClawPluginApi): IndependentLogRedactionConfig { | CODE |
| LOW | src/lcm-log.ts | 102 | function shouldWriteIndependentDebug(api: OpenClawPluginApi): boolean { | CODE |
| LOW | src/transaction-mutex.ts | 30 | function getOrCreateMutex(db: DatabaseSync): MutexState { | CODE |
| LOW | src/transaction-mutex.ts | 104 | export async function acquireTransactionLockWithTimeout( | CODE |
| LOW | src/lcm-file-log.ts | 71 | function resolvePreferredOpenClawTmpDir(): string { | CODE |
| LOW | src/lcm-file-log.ts | 109 | function isTrustedExistingOpenClawTmpDir(stat: fs.Stats, uid: number | "user"): boolean { | CODE |
| LOW | src/lcm-file-log.ts | 143 | function getCurrentRegularLogFileBytes(file: string): number | undefined { | CODE |
| LOW | src/lcm-file-log.ts | 223 | function fallbackRedactSensitiveText( | CODE |
| LOW | src/lcm-file-log.ts | 286 | export function createIndependentLcmFileLogger( | CODE |
| LOW | src/batch-dedup.ts | 52 | function redactedMatchesHaveAdjacentAnchor(matches: readonly AlignmentMatch[]): boolean { | CODE |
| 435 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/transcript-entry-id.test.ts | 1195 | // append-only import path ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 55 | // ── createGrant ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 102 | // ── getGrant ───────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 146 | // ── revokeGrant ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 171 | // ── validateExpansion ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 342 | // ── cleanup ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/expansion-auth.test.ts | 782 | // ── describeAndExpand ────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/lcm-integration-retrieval.test.ts | 459 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-retrieval.test.ts | 461 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 19 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 21 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 65 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 67 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 110 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 112 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 166 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-empty-content.test.ts | 168 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 33 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 35 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 183 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 185 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 279 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 281 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 596 | // ─── Regression: #158 — tool call id backfill from metadata.raw ────────── | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 596 | // ─── Regression: #158 — tool call id backfill from metadata.raw ────────── | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 716 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 718 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 864 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 866 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 890 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 892 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/engine-compaction.test.ts | 2631 | // ── Compact token budget plumbing ─────────────────────────────────────────── | COMMENT |
| MEDIUM | test/bootstrap-flood-regression.test.ts | 14 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/bootstrap-flood-regression.test.ts | 140 | // ── Tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/lcm-integration-compaction.test.ts | 2374 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-compaction.test.ts | 2376 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-assemble.test.ts | 626 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-assemble.test.ts | 628 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 252 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 254 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 456 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 458 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 656 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-roundtrip.test.ts | 658 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-sweep-bounds.test.ts | 252 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-sweep-bounds.test.ts | 254 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-sweep-bounds.test.ts | 485 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-sweep-bounds.test.ts | 487 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/engine-assemble.test.ts | 2850 | // ── #639 Mode 2 — deferred-compaction wedge regression ──────────────────────── | COMMENT |
| MEDIUM | test/engine-assemble.test.ts | 2850 | // ── #639 Mode 2 — deferred-compaction wedge regression ──────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 22 | // ── Mock Store Factories ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 224 | // ── Context items ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 367 | // ── Summary CRUD ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 416 | // ── Lineage ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 522 | // ── Search ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 560 | // ── Large files ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 588 | // ── Internal helpers for the mock ──────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 604 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 693 | // ── Default compaction config ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 771 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 155 | // Step 1: Create conversation with ~100 messages (50 pairs, repeated patterns) | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 158 | // Step 2: Initial bootstrap — seeds DB with messages | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 172 | // Step 3: Simulate maintain() — rewrite JSONL (shrink last 35 messages) | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 176 | // Step 4: Simulate gateway restart — bootstrap again | COMMENT |
| LOW | test/bootstrap-flood-regression.test.ts | 192 | // Step 5: Assert no duplicate messages in DB | COMMENT |
| LOW | tui/transplant.go | 1115 | // Step 1: Shift all existing ordinals up to make room for inserts without | COMMENT |
| LOW | tui/transplant.go | 1139 | // Step 2: Insert transplanted summaries into the free low-ordinal range. | COMMENT |
| LOW | tui/transplant.go | 1156 | // Step 3: Move all summaries out of the final low-ordinal range before | COMMENT |
| LOW | tui/transplant.go | 1172 | // Step 4: Reorder all summary context items by depth DESC, then created_at ASC. | COMMENT |
| LOW | tui/transplant.go | 1194 | // Step 5: Reorder message context items to follow after all summaries. | COMMENT |
| LOW | src/assembler.ts | 1505 | // Step 1: Get all context items ordered by ordinal | COMMENT |
| LOW | src/assembler.ts | 1516 | // Step 2: Resolve each context item into a ResolvedItem, then apply any | COMMENT |
| LOW | src/assembler.ts | 1532 | // Step 3: Split into evictable prefix and protected fresh tail | COMMENT |
| LOW | src/assembler.ts | 1566 | // Step 4: Budget-aware selection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 155 | // Step 1: Create conversation with ~100 messages (50 pairs, repeated patterns) | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 158 | // Step 2: Initial bootstrap — seeds DB with messages | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 172 | // Step 3: Simulate maintain() — rewrite JSONL (shrink last 35 messages) | COMMENT |
| LOW⚡ | test/bootstrap-flood-regression.test.ts | 176 | // Step 4: Simulate gateway restart — bootstrap again | COMMENT |
| LOW | test/bootstrap-flood-regression.test.ts | 192 | // Step 5: Assert no duplicate messages in DB | COMMENT |
| LOW | tui/transplant.go | 1115 | // Step 1: Shift all existing ordinals up to make room for inserts without | COMMENT |
| LOW | tui/transplant.go | 1139 | // Step 2: Insert transplanted summaries into the free low-ordinal range. | COMMENT |
| LOW | tui/transplant.go | 1156 | // Step 3: Move all summaries out of the final low-ordinal range before | COMMENT |
| LOW | tui/transplant.go | 1172 | // Step 4: Reorder all summary context items by depth DESC, then created_at ASC. | COMMENT |
| LOW | tui/transplant.go | 1194 | // Step 5: Reorder message context items to follow after all summaries. | COMMENT |
| LOW | src/assembler.ts | 1505 | // Step 1: Get all context items ordered by ordinal | COMMENT |
| LOW | src/assembler.ts | 1516 | // Step 2: Resolve each context item into a ResolvedItem, then apply any | COMMENT |
| LOW | src/assembler.ts | 1532 | // Step 3: Split into evictable prefix and protected fresh tail | COMMENT |
| LOW | src/assembler.ts | 1566 | // Step 4: Budget-aware selection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/engine-fidelity.test.ts | 1641 | // from allowNoAnchorImport), the slow path returns hasOverlap:false + | COMMENT |
| LOW | test/reasoning-half-fix.test.ts | 1 | import { describe, expect, it, vi } from "vitest"; | COMMENT |
| LOW | test/whitespace-divergence-double-write.test.ts | 1 | // Whitespace-divergent store double-write on the NORMAL (transcript-covered) | COMMENT |
| LOW | test/f1-degraded-double-write.test.ts | 1 | // F1 follow-up repro: does the DEGRADED (non-covered transcript) afterTurn path | COMMENT |
| LOW | test/live-turn-structural-supersede.test.ts | 1 | // The live current turn (the decorated, model-facing copy OpenClaw delivers) | COMMENT |
| LOW | test/isolated-cron-checkpoint-missing-race.test.ts | 81 | .prepare("UPDATE conversations SET session_id = ? WHERE conversation_id = ?") | COMMENT |
| LOW | test/engine-after-turn.test.ts | 2521 | COMMENT | |
| LOW | test/stub-tier.test.ts | 301 | tokenBudget: 200_000, | COMMENT |
| LOW | test/metadata-face-double-write.test.ts | 1 | // Metadata-face store double-write across the afterTurn dedup boundaries. | COMMENT |
| LOW | specs/env-config-extraction.md | 21 | COMMENT | |
| LOW | src/compaction.ts | 1021 | let condensed = false; | COMMENT |
| LOW | src/retrieval.ts | 261 | // `expandFileMaxBytes`. Files over the cap return the head | COMMENT |
| LOW | src/engine.ts | 1481 | // leaves but cannot reduce the host's OBSERVED live tokens, so retrying the | COMMENT |
| LOW | src/assembler.ts | 621 | const rawType = | COMMENT |
| LOW | src/assembler.ts | 1681 | ...msg, | COMMENT |
| LOW | src/transcript-reconciler.ts | 1061 | } | COMMENT |
| LOW | src/transcript-reconciler.ts | 2301 | blockedByImportCap: false, | COMMENT |
| LOW | src/transcript-reconciler.ts | 2361 | } | COMMENT |
| LOW | src/openclaw-inbound-metadata.ts | 41 | const OPENCLAW_INBOUND_HISTORY_RECAP_BLOCK_RE = new RegExp( | COMMENT |
| LOW | src/openclaw-inbound-metadata.ts | 61 | /^[A-Za-z]{3} \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \S+ /; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 871 | - [#592](https://github.com/Martian-Engineering/lossless-claw/pull/592) [`e0dbd09`](https://github.com/Martian-Engineeri | CODE |
| MEDIUM | CHANGELOG.md | 871 | - [#592](https://github.com/Martian-Engineering/lossless-claw/pull/592) [`e0dbd09`](https://github.com/Martian-Engineeri | CODE |
| MEDIUM | README.md | 561 | types.ts # Core type definitions (dependency injection contracts) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tui/doctor_test.go | 25 | ('sum_new_false', 1, 'leaf', 0, '%s520 tokens] was mentioned earlier in this summary body and then the text continued | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/engine-ingest.test.ts | 644 | const longBody = "lorem ipsum ".repeat(2_000); | CODE |