Files
deepseek-harness/packages/goal
ZiyaZhang e72978ba98 fix(tool-goal): scope the wrap-up no-more-tools clause to the current run
The injected instruction persists as a durable user message, so an
unscoped 'Do not call any more tools.' stays in every later request's
history. Scope it: '...in this run; further work waits for the user's
next instruction.' A/B probes on deepseek-v4-pro show the scoped wording
is non-inferior in-turn (4/4 zero tool calls, closing quality unchanged)
and next-turn tool use is unaffected under both wordings; the scoped
form states the instruction's actual lifetime.
2026-08-02 07:29:18 -07:00
..
2026-07-26 05:06:39 +08:00

goal/ — persisted same-session goals

English | 中文

The goal family owns durable objective state independently of the model-facing tools and continuation policy that consume it.

Package Role ctx key
goal/ Event-sourced goal lifecycle, replay fold, compare-and-set mutations, and process-local activation ctx.goals
goal-session/ Same-session goal-round admission, outcome mapping, and lifecycle race fencing
tool-goal/ Model-facing read/create/update tools with execution-time authority checks
command-goal/ Human-facing /goal status and lifecycle control over the command plane

Goal state is part of the owning session log. Consumers depend on dsh-goal, not on the concrete agent loop; continuation behavior belongs in a separate plugin on the public agent seams.