deepseek-harness/packages/core/session/tests
Tianyi Cui 3d16026eb0 feat(core): scope-aware registries and session dispatch carriers
dsh-tools and dsh-system-prompt gain a per-scope registration layer over
dsh-scope: a registration through a scoped context files into that scope,
shadows a same-named global contribution for that scope (per-agent persona
and tool variants), and unwinds with the scope. tools.restrict() masks the
global surface per scope (snapshot-at-registration, loud unknown-name
validation, intersection composition; scoped grants bypass). One visibility
function feeds schemas/get/execute, so prompt, presentation, and dispatch
can never disagree; out-of-view executes as UNKNOWN_TOOL.

Prompt tool providers now receive the AssembleContext and return
{schemas, knownNames}: toolOrder validates against the pre-restriction name
universe (a typo fails every assembly loudly) while ordering operates on
the post-restriction schemas (a restricted-away tool is a normal absence).

dsh-session captures each session's dispatch carrier at enter() from the
entering context's scope tag, and the new sessions.flush(session) owns the
awaited session/flush dispatch. tools/pre|post-execute and
system-prompt/assemble dispatch with scope carriers keyed by their subject;
session/created|event|flush by the owning session's scope.
2026-07-09 01:09:21 +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 session: the request header becomes logged state — request/header events + fold/diff/apply 2026-07-06 02:42:51 +08:00
scoped.spec.ts feat(core): scope-aware registries and session dispatch carriers 2026-07-09 01:09:21 +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