2026-07-19 18:47:34 +08:00
# goal/ — persisted same-session goals
2026-07-26 05:03:53 +08:00
English | [中文 ](README.zh.md )
2026-07-19 18:47:34 +08:00
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` |
2026-07-19 20:30:43 +08:00
| `goal-session/` | Same-session goal-round admission, outcome mapping, and lifecycle race fencing | — |
2026-07-19 19:22:10 +08:00
| `tool-goal/` | Model-facing read/create/update tools with execution-time authority checks | — |
2026-07-19 23:55:33 +08:00
| `command-goal/` | Human-facing `/goal` status and lifecycle control over the command plane | — |
2026-07-19 18:47:34 +08:00
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.