Cut
Remove adaptive chunking. It is unreachable: no caller sets chunkingStrategy: "adaptive", the daemon passes {tier: "auto"}, smoke and the CLI pass "fixed", and config.dream.chunkingStrategy (from ENGRAM_CHUNKING_STRATEGY) is loaded but never threaded into extractFromConversation.
Findings
- delete
src/semantic/adaptive-chunker.ts (~245 lines with the items below)
- delete the two
cfg.chunkingStrategy === "adaptive" ternaries in src/semantic/extractor.ts:541
- delete
chunkingStrategy from ExtractionConfig, src/_core/types/index.ts:132 and src/_core/config/index.ts:129
- drop
ENGRAM_CHUNKING_STRATEGY from CLAUDE.md, README.md, .env templates and ensureServiceEnvFile
- delete
tests/contracts/chunking-contract.test.ts cases that only cover the adaptive path
Verification
npm run build and npm run test:run green before and after. engram extract on a real conversation still produces the same fixed chunks.
Cut
Remove adaptive chunking. It is unreachable: no caller sets
chunkingStrategy: "adaptive", the daemon passes{tier: "auto"}, smoke and the CLI pass"fixed", andconfig.dream.chunkingStrategy(fromENGRAM_CHUNKING_STRATEGY) is loaded but never threaded intoextractFromConversation.Findings
src/semantic/adaptive-chunker.ts(~245 lines with the items below)cfg.chunkingStrategy === "adaptive"ternaries insrc/semantic/extractor.ts:541chunkingStrategyfromExtractionConfig,src/_core/types/index.ts:132andsrc/_core/config/index.ts:129ENGRAM_CHUNKING_STRATEGYfromCLAUDE.md,README.md,.envtemplates andensureServiceEnvFiletests/contracts/chunking-contract.test.tscases that only cover the adaptive pathVerification
npm run buildandnpm run test:rungreen before and after.engram extracton a real conversation still produces the same fixed chunks.