deepseek-harness/packages/core/session/src
Tianyi Cui 8bd80e5e9b fix review findings: one frozen seed through the waterfall; stale agent/request docs
Codex diff review, round 1, two (A) findings:

- The agent/request fallback resolved the RAW seed object — on later
  steps the session's cached header fold — so a delegating listener
  (await next(), mutate, return) could rewrite the fold in place and
  the change would compare as already-baseline: no delta logged, the
  persisted log unable to reconstruct the request (the dev invariant
  would fire on the divergence, but the log would still lie). One
  structuredClone'd, deep-frozen seed now serves both the listener
  chain and the fallback — in-place shaping after delegation throws —
  and Session.requestHeader() freezes its fold on update, so the leak
  class is unrepresentable from either side. Pinned by a loop-level
  delegating-mutator test.
- Doc sweep for the old contract: agent README's event row (mutate
  GenerateOptions / tool filtering → frozen config seed, replacement
  out, logged header), compact-basic's module JSDoc (summarize routed
  through agent/request → direct one-shot at llm/stream), and
  architecture.md's event-domain line (request mutation → call-config
  shaping).
2026-07-06 04:17:29 +08:00
..
index.ts fix review findings: one frozen seed through the waterfall; stale agent/request docs 2026-07-06 04:17:29 +08:00
json.ts feat(tool-fs): result-time applied-hunk diffs for write/edit 2026-07-03 17:12:00 +08:00
repair.ts Merge remote-tracking branch 'origin/master' into session-surface 2026-06-22 10:35:59 +08:00
request-header.ts loop: every request is built from the log — boundary snapshot, header events, config-only waterfall 2026-07-06 03:07:34 +08:00
surface.ts session: cache the derived history — one projection per node, frozen and shared 2026-07-06 02:51:20 +08:00
tool-pairing.ts fix(compact): decide step-alignment from surface tool-pairing, fire compaction pre-step (CBR-001) 2026-06-26 13:51:01 +08:00
types.ts session: the request header becomes logged state — request/header events + fold/diff/apply 2026-07-06 02:42:51 +08:00