deepseek-harness/packages/core/session/tests
Yichen Jiang 17bd71e530 feat(agent): add the agent/request-messages request-only message seam
A new waterfall near request construction lets plugins contribute
request-ONLY messages framing the derived history: RequestMessages
{ before, after } with a frozen empty seed, fired inside the open step
after the agent/request config waterfall, so the step/start boundary
snapshot and its same-sync-frame invariant are untouched. The request
becomes messagePrefix + boundary snapshot + messageSuffix.

Contributions never enter session history — deriveMessages() is
unchanged — so the request header is their durable record:
EpochHeader gains messagePrefix/messageSuffix (canonical absence for
empty arrays), request/header-delta replaces either array whole with
an empty array encoding the transition back to absence, and the
dev-mode reconstruction cross-check now expects the folded header's
framing around the boundary derivation.

This is the seam for per-request advisory context that must be
model-visible now without becoming durable history (a skills catalog,
an environment reminder), keeping the base system prompt
workspace-independent and provider prefix caches stable. The docs
carry the channel cost model: session-frozen content belongs in
before, low-frequency change notices belong in durable history via
inject() (paid once, prefix-cached thereafter), and after is reserved
for small frequently-refreshed state snapshots re-paid on every
request they ride. No shipped producer yet, so ACP snapshot fixtures
are byte-identical.
2026-07-07 19:42:30 +08:00
..
derived-cache.spec.ts session: cache the derived history — one projection per node, frozen and shared 2026-07-06 02:51:20 +08:00
fork.spec.ts Inline session fork parameters 2026-07-07 09:04:49 +08:00
gen-persistence-catalog.spec.ts Close remaining keyof-join holes the review verification found 2026-07-04 23:21:23 +08:00
properties.spec.ts session: cache the derived history — one projection per node, frozen and shared 2026-07-06 02:51:20 +08:00
repair.spec.ts Merge remote-tracking branch 'origin/master' into session-surface 2026-06-22 10:35:59 +08:00
request-header.spec.ts feat(agent): add the agent/request-messages request-only message seam 2026-07-07 19:42:30 +08:00
session.spec.ts Merge remote-tracking branch 'origin/master' into session-fork 2026-07-06 14:30:36 +08:00
surface.spec.ts test: close the coverage gaps the gate found 2026-07-06 03:55:30 +08:00
tool-pairing.spec.ts fix(compact): decide step-alignment from surface tool-pairing, fire compaction pre-step (CBR-001) 2026-06-26 13:51:01 +08:00