Files
deepseek-harness/packages/goal
_Kerman 923535fa7a feat(gui): goal wire domain, client goal state, and docked goal bar
- apiproxy goals RPC domain (get/create/edit/pause/resume/complete/clear)
  with CAS refs, zod schemas, and fetch client/handler wiring
- client runtime session goal state: live goal/change meta triggers a
  coalesced refetch; mutations fold transport errors into RpcResult
- web GoalBar: docked strip above the composer (sparkle, phase label,
  truncated objective, inline edit, clear; resume when paused); creation
  stays on the /goal command
- GoalBarActions in the ui-conversation contract layer; IconSparkle16
  moves to ui-primitives icons
2026-07-22 21:30:30 +08:00
..
2026-07-19 23:55:33 +08:00

goal/ — persisted same-session goals

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.