Watch
0
0
Fork
You've already forked hyperhive
0

drop the remaining pointers at the removed send/recv tools

This commit is contained in:
damocles 2026-11-07 12:01:50 +01:00 • committed by mara
commit c5fba26d62

View file

@ -1,8 +1,7 @@
//! Per-agent socket — `/run/hyperhive/agents/<name>/mcp.sock` on the
//! host, bind-mounted into the container at `/run/hive/mcp.sock`. The
//! inbox/messaging wire shapes: message envelopes, the loose-ends
//! response types, and the shared wake-prompt/`recv`-result hint
//! constants + builder.
//! response types, and the shared wake-prompt hint constants.
use chrono::{DateTime, Utc};
use hive_types::Ident;
@ -18,10 +17,8 @@ use serde::{Deserialize, Serialize};
/// constant instead of a scattered magic value.
pub const RECV_BATCH_MAX: u32 = 5;
/// Banner prepended to a wake prompt / `recv` result when the message was
/// redelivered after a harness restart (the turn that first drove it never
/// acked). Shared between the harness serve loop (wake prompt) and the MCP
/// server (`recv` tool result) so both surfaces phrase it identically.
/// Banner prepended to a wake prompt when the message was redelivered after
/// a harness restart (the turn that first drove it never acked).
pub const REDELIVERY_HINT: &str = "[redelivered after harness restart — may already be handled]\n";
/// Banner prepended to a wake prompt when the previous turn was cut off by
@ -120,11 +117,10 @@ pub enum LooseEnd {
due_at: DateTime<Utc>,
age_seconds: u64,
},
/// Undelivered inbox messages waiting to be `recv`'d by this agent.
/// Not cancellable — drain them with `recv`. Surfaced so an agent
/// doing a between-turns `get_loose_ends` sweep sees it still owes
/// itself a `recv` without having to poll the inbox separately. Only
/// emitted when `count > 0`.
/// Undelivered inbox messages waiting for this agent. Not cancellable:
/// the harness delivers them one per turn. Surfaced so a between-turns
/// `get_loose_ends` sweep sees a backlog without polling the inbox.
/// Only emitted when `count > 0`.
PendingMessages {
/// Number of undelivered messages queued for this agent.
count: u64,