The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(kanban): worker guidance is scoped to the owning worker
teknium1f9745c1e3bff
diff --git a/cron/AGENTS.md b/cron/AGENTS.mdindex b2a5b6b3909..ec38f3dcdbb 100644--- a/cron/AGENTS.md+++ b/cron/AGENTS.md@@ -88,6 +88,11 @@ recycled PID gets killed on reclaim.Dispatched workers get `HERMES_KANBAN_BOARD` and the assignee's `HERMES_HOME` pinned in ascrubbed child env (`build_subprocess_env` + `strip_launch_profile_env`); they never inherit thedefault profile's `.env`.+- **Prompt injection sites gate on ownership, not tool access.** Tool access (`kanban_show` visible+ via a profile's toolset) and an inherited `HERMES_KANBAN_TASK` (delegate children, cron runs beside+ a worker) are not ownership. The kanban guidance (`agent_init`, `system_prompt` fallback) and the+ stop nudge resolve the task via `agent/delegation_context.py::owned_kanban_task()`; other readers+ pair their env read with `is_dispatcher_owned_worker_context()`.- **Descendant fence is a path, not a flag.** A delegated child's Kanban marker(`agent/delegation_context.py::DELEGATED_CHILD_ENV_MARKER`) carries the fenced board ROOT;`kanban_path_is_fenced(path)` denies mutations only on the dispatcher-pinned `HERMES_KANBAN_DB`diff --git a/website/docs/user-guide/features/kanban.md b/website/docs/user-guide/features/kanban.mdindex ffc4164efe4..93b06f426a7 100644--- a/website/docs/user-guide/features/kanban.md+++ b/website/docs/user-guide/features/kanban.md@@ -455,7 +455,7 @@ Three reasons:**Zero schema footprint on normal sessions.** A regular `hermes chat` session has zero `kanban_*` tools in its schema unless the active profile explicitly enables the `kanban` toolset for orchestrator work. Dispatcher-spawned task workers get task-scoped tools because `HERMES_KANBAN_TASK` is set; orchestrator profiles get the broader routing surface through config. No tool bloat for users who never touch kanban.-The auto-injected kanban guidance teaches the model which tool to call when and in what order.+The auto-injected kanban guidance teaches the model which tool to call when and in what order. It is injected only for the dispatcher-spawned worker that owns the task: an interactive session that merely has the `kanban` toolset enabled keeps the tools but is not told it "has been assigned ONE task", and a `delegate_task` child or a cron run fired from inside a worker — which inherit the worker's `HERMES_KANBAN_TASK` — neither receives the worker protocol nor records a terminal outcome against the worker's card when its own turn budget runs out.### Recommended handoff evidence