deepseek-harness/packages/core/tools/tests
Yichen Jiang e258cf7a2d fix(tools): resolve the collapse through the scope, not the deployment default
`collapses()` read `defaultMode`, so the collapse only applied when the
DEPLOYMENT was `code`. An agent handed `code` by an agent preset under a
native default announced `[run_code]` on the wire and still executed a
model-direct native call -- the bypass this collapse exists to close,
reopened for exactly the composition `dsh-agent-tool-mode` produces.

`modeFor(scope)` is the same resolution `wireSchemas` and the SDK section
already use, so presentation and execution cannot disagree, and a mode
inherited from a standing preset scope collapses like a declared one.

The per-agent and preset tests asserted only the wire, which is why the
regression passed them. They now assert through the executor: the body
never runs, the call resolves UNKNOWN_TOOL, and the native sibling beside
it still executes.
2026-08-11 22:53:17 +08:00
..
code-mode.spec.ts fix(tools): resolve the collapse through the scope, not the deployment default 2026-08-11 22:53:17 +08:00
execution-mode.spec.ts build(vendor): rescope the vendored Cordis packages into @deepseek-ai 2026-08-10 22:04:13 +08:00
execution-signal-types.spec.ts build(vendor): rescope the vendored Cordis packages into @deepseek-ai 2026-08-10 22:04:13 +08:00
gen-tool-catalog.spec.ts Merge remote-tracking branch 'origin/master' into worktree/schedule-conversational-after 2026-08-11 19:05:13 +08:00
invariant.spec.ts build(vendor): rescope the vendored Cordis packages into @deepseek-ai 2026-08-10 22:04:13 +08:00
json-schema.spec.ts fix(schema): align projected and enforced declarations 2026-07-23 01:05:41 +08:00
properties.spec.ts test(tools): cover adversarial JSON containers 2026-07-21 18:20:18 +08:00
py-types.spec.ts test(tools): drop the quantifier that miscounted its own enumeration 2026-08-06 02:33:25 +08:00
schema.spec.ts fix(schema): align projected and enforced declarations 2026-07-23 01:05:41 +08:00
scoped.spec.ts fix(tools): collapse code-mode executor to run_code for model-direct calls 2026-08-11 22:40:36 +08:00
tools.spec.ts fix(tools): collapse code-mode executor to run_code for model-direct calls 2026-08-11 22:40:20 +08:00
ts-types.spec.ts feat(tools): live dispatch lifecycle + native-contract parallel sub-calls in Code Mode 2026-07-26 06:02:36 +08:00