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,883 GitHub stars. SynthScan v2.0 examined 157,307 lines of code across 277 source files, recording 645 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 6.2 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 645 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 | 62 | function extractRegisterToolFactoryCallSites(): RegisterToolFactoryCallSite[] { | CODE |
| LOW | test/helpers.ts | 186 | export function createEngineWithDepsOverrides(overrides: Partial<LcmDependencies>): LcmContextEngine { | CODE |
| LOW | test/helpers.ts | 200 | export function createEngineAtDatabasePath(databasePath: string): LcmContextEngine { | CODE |
| LOW | test/helpers.ts | 232 | export function writeLeafTranscriptMessages(sessionFile: string, messages: AgentMessage[]): void { | CODE |
| LOW | test/helpers.ts | 338 | export function corruptSessionFilePreservingObservedStats(sessionFile: string): void { | CODE |
| LOW | test/helpers.ts | 345 | export function estimateAssembledPayloadTokens(messages: AgentMessage[]): number { | CODE |
| LOW | test/helpers.ts | 360 | 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/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 | 208 | function compactionAndDefaultModelConfig(params: { | CODE |
| LOW | test/integration-helpers.ts | 24 | export function createMockConversationStore() { | CODE |
| LOW | test/lcm-command.test.ts | 78 | function writeOpenClawInstallRecord(params: { | CODE |
| LOW | test/lcm-command.test.ts | 110 | async function createRolloverConversationData( | CODE |
| LOW | test/message-signatures.test.ts | 18 | function openClawInboundMetadataContent(messageId: string, text: string): string { | CODE |
| LOW | test/engine-bootstrap.test.ts | 38 | function openClawInboundMetadataContent(params: { | 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 | 1028 | function storedMessageIdentityHash(stored: StoredMessage): string { | CODE |
| LOW⚡ | src/batch-dedup.ts | 1032 | function computeBatchIdentityHashes(batch: StoredMessage[]): string[] { | CODE |
| LOW⚡ | src/batch-dedup.ts | 1036 | function computeBatchRawPayloadContents( | CODE |
| LOW | src/batch-dedup.ts | 1057 | function extractExternalizedReferences(content: string): ExternalizedReference[] { | CODE |
| LOW | src/batch-dedup.ts | 1129 | function extractSingleNativeImageBuffer(content: string): Buffer | null { | CODE |
| 395 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/transcript-entry-id.test.ts | 1192 | // 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 | 32 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 34 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 182 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 184 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 278 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 280 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 500 | // ─── Regression: #158 — tool call id backfill from metadata.raw ────────── | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 500 | // ─── Regression: #158 — tool call id backfill from metadata.raw ────────── | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 620 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 622 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 646 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/assembler-blocks.test.ts | 648 | // ═══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/engine-compaction.test.ts | 2416 | // ── 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 | 2201 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-compaction.test.ts | 2203 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-assemble.test.ts | 607 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/lcm-integration-assemble.test.ts | 609 | // ═════════════════════════════════════════════════════════════════════════════ | 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 | 2610 | // ── #639 Mode 2 — deferred-compaction wedge regression ──────────────────────── | COMMENT |
| MEDIUM | test/engine-assemble.test.ts | 2610 | // ── #639 Mode 2 — deferred-compaction wedge regression ──────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 22 | // ── Mock Store Factories ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 221 | // ── Context items ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 364 | // ── Summary CRUD ──────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 413 | // ── Lineage ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 519 | // ── Search ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 557 | // ── Large files ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 585 | // ── Internal helpers for the mock ──────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 601 | // ── Helpers ────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 690 | // ── Default compaction config ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/integration-helpers.ts | 768 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/integration-helpers.ts | 770 | // ═════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | test/engine-lifecycle.test.ts | 1365 | // ── Ingest content extraction ─────────────────────────────────────────────── | COMMENT |
| 82 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 | 1384 | // Step 1: Get all context items ordered by ordinal | COMMENT |
| LOW | src/assembler.ts | 1395 | // Step 2: Resolve each context item into a ResolvedItem, then apply any | COMMENT |
| LOW | src/assembler.ts | 1411 | // Step 3: Split into evictable prefix and protected fresh tail | COMMENT |
| LOW | src/assembler.ts | 1445 | // 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 | 1384 | // Step 1: Get all context items ordered by ordinal | COMMENT |
| LOW | src/assembler.ts | 1395 | // Step 2: Resolve each context item into a ResolvedItem, then apply any | COMMENT |
| LOW | src/assembler.ts | 1411 | // Step 3: Split into evictable prefix and protected fresh tail | COMMENT |
| LOW | src/assembler.ts | 1445 | // Step 4: Budget-aware selection | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/engine-fidelity.test.ts | 1581 | // 0 imports, and the outer transcriptReconcileUnsafeToAdvance guard | COMMENT |
| LOW | test/reasoning-half-fix.test.ts | 1 | import { describe, expect, it, vi } from "vitest"; | 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/lcm-integration-compaction.test.ts | 2201 | // ═════════════════════════════════════════════════════════════════════════════ | 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 | 2461 | expect(finalContents).toContain("third turn assistant"); | COMMENT |
| LOW | test/stub-tier.test.ts | 301 | // image), the stub must also be array-shaped so downstream provider | COMMENT |
| LOW | specs/env-config-extraction.md | 21 | COMMENT | |
| LOW | src/retrieval.ts | 261 | // `expandFileMaxBytes`. Files over the cap return the head | COMMENT |
| LOW | src/assembler.ts | 1561 | content: content as unknown as typeof msg.content, | COMMENT |
| LOW | src/transcript-reconciler.ts | 1041 | } | COMMENT |
| LOW | src/transcript-reconciler.ts | 2221 | // allowNoAnchorImport) and the conversation gets stuck in a | COMMENT |
| LOW | src/transcript-reconciler.ts | 2281 | // rows (#822 generalizes #837's single-row check: hosts inject one | COMMENT |
| LOW | src/openclaw-inbound-metadata.ts | 41 | const OPENCLAW_INBOUND_HISTORY_RECAP_BLOCK_RE = new RegExp( | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CHANGELOG.md | 642 | - [#592](https://github.com/Martian-Engineering/lossless-claw/pull/592) [`e0dbd09`](https://github.com/Martian-Engineeri | CODE |
| MEDIUM | CHANGELOG.md | 642 | - [#592](https://github.com/Martian-Engineering/lossless-claw/pull/592) [`e0dbd09`](https://github.com/Martian-Engineeri | CODE |
| MEDIUM | README.md | 552 | 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 |