mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
An out-of-band zero-step turn (durable command lifecycle on an idle log) advances the log's turn numbering behind ReactLoopAgent's cached lastTurn, so the next real turn reused a stale number and tripped the session invariant (turn/start expected N, got 1) — hanging the TUI after any idle slash command. The log is the numbering authority: take max(cached, logged) + 1 at open. The command-goal stub's inject helper also gains the one-shot injection turn wrap the real agent performs, restoring turn enclosure in its log assertions.
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.