From ecdd3d390fb733058f72ea9cd849151d4ddb1629 Mon Sep 17 00:00:00 2001 From: iris Date: Sat, 15 Aug 2026 11:54:31 +0200 Subject: [PATCH] docs(turn-loop): drop historical framing, fix stale hive_ag3nt:: refs --- docs/turn-loop/claude-invocation.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/turn-loop/claude-invocation.md b/docs/turn-loop/claude-invocation.md index 0d92d3d4..377921b4 100644 --- a/docs/turn-loop/claude-invocation.md +++ b/docs/turn-loop/claude-invocation.md @@ -14,12 +14,13 @@ claude --print --verbose --output-format stream-json --model \ lookup/archive, and the durable-session compaction loop — live in the reusable **`hive-claude`** crate (`hive_claude::{Claude, InfiniteSession, Attach, CompactionPolicy, PercentPolicy, Telemetry, Sink, SessionStore}`; -see `hive-claude/README.md`). `hive_ag3nt::turn` is the hyperhive **policy -layer** on top: it builds the per-turn config from the bus, bridges the -output stream onto the event bus (`BusSink`), and owns the compaction / -auto-reset / retry decisions in `drive_turn`. The lib returns everything it -parsed from a turn (usage, cost, context window, resolved model) as -`Telemetry`, which the policy layer applies to the bus. +see `hive-claude/README.md`). `hive-agent`'s `turn` module is the +hyperhive **policy layer** on top: it builds the per-turn config from +the bus, bridges the output stream onto the event bus (`BusSink`), and +owns the compaction / auto-reset / retry decisions in `drive_turn`. The +lib returns everything it parsed from a turn (usage, cost, context +window, resolved model) as `Telemetry`, which the policy layer applies +to the bus. **Which `claude` binary.** The bare name `claude`, resolved off the harness unit's PATH. By default that's the `claude-code` in the agent's @@ -205,7 +206,7 @@ socket at `/run/hive/` once at startup: race), trading that for a hard dependency on the daemon's uptime (`Restart=always`, no stdio fallback). Extra servers stay stdio. - `claude-system-prompt.md` — rendered from - `hive-ag3nt/prompts/system.md` by `hive_ag3nt::prompt::render`: + `hive-agent/prompts/system.md` by `hive-agent`'s `prompt::render`: HTML-comment markers (`...`, same for `role:manager`) gate the role-specific blocks; everything else is shared. Five placeholders are then