deepseek-harness/examples/coding-agent/tests
Hypatia May c76b7042b6 fix(compact): size the compaction e2e to actually cross threshold; sync stale docs (CBR-007)
The compaction e2e never exercised compaction: its window/fixture combo
(contextWindow 8000, thresholdRatio 0.5 → threshold 4000; four small files)
peaked at ~1389 estimated tokens, so compactIfNeeded declined every pre-step
and compact/start never landed. Shrink the window (contextWindow 2400 →
threshold 1200; retainTokens 500 + summarizationMaxTokens 300 = 800 < 1200,
convergence holds) and grow the fixture to six files so a couple of bash steps
reliably cross the threshold. Verified compaction fires and the suite passes
across repeated real-API runs.

Sync docs left stale by the landed compaction work: list compaction.e2e.ts and
keyless-smoke.e2e.ts in the coding-agent README (and fix the wrong "Both
self-skip" count), add compaction to the examples with-key inventory, and
replace the hypothetical compaction/marker / "future plugin" naming in the
session README, session types JSDoc, and the core-data-structures catalog with
the real compact/start, compact/summary, compact/end events.
2026-06-26 16:42:51 +08:00
..
coding-task.e2e.ts feat(types): brand bash ids + stop brand erosion; extract Branded to dsh-brand 2026-06-21 07:19:59 +08:00
compaction.e2e.ts fix(compact): size the compaction e2e to actually cross threshold; sync stale docs (CBR-007) 2026-06-26 16:42:51 +08:00
full-loop.e2e.ts feat(types): brand bash ids + stop brand erosion; extract Branded to dsh-brand 2026-06-21 07:19:59 +08:00
harness.ts refactor(compact): turn-agnostic retention + dedicated agent/pre-request seam 2026-06-26 08:59:33 +08:00
keyless-smoke.e2e.ts refactor(examples): extract the app spine into dsh-agent-core + app packages 2026-06-21 12:06:38 +08:00
resume.e2e.ts refactor(compact): turn-agnostic retention + dedicated agent/pre-request seam 2026-06-26 08:59:33 +08:00