hive-agent: remove the in-container questions mirror
This commit is contained in:
parent
1c4d662cf1
commit
c865114743
7 changed files with 59 additions and 528 deletions
|
|
@ -4,9 +4,9 @@
|
|||
//! ops below is a plain string, not a closed set: any user-configured MCP
|
||||
//! server declared in an agent's `agent.nix` can dial this socket and push
|
||||
//! its own todos the same way. Carries the loose-ends-v2 *todo* op family
|
||||
//! plus the harness-local *reminder* and *question* op families; more
|
||||
//! in-agent request families may be added over time (the socket is
|
||||
//! deliberately named for the agent, not the todos).
|
||||
//! plus the harness-local *reminder* op family; more in-agent request
|
||||
//! families may be added over time (the socket is deliberately named for
|
||||
//! the agent, not the todos).
|
||||
//!
|
||||
//! Distinct from `hive-core-agent-sock`, the *host*-served core↔agent
|
||||
//! protocol on `/run/hive/mcp.sock`: this socket never leaves the
|
||||
|
|
@ -123,30 +123,6 @@ pub enum Request {
|
|||
/// through this variant, since a human watching the dashboard isn't
|
||||
/// waiting on a wake.
|
||||
Compact { wake_prompt: Option<String> },
|
||||
/// Mirror an outstanding question this agent asked (`ask()` succeeded).
|
||||
/// `target` is who it's waiting on (`"operator"` when asked with
|
||||
/// `to: None`). Part of the questions-mirror increment — see
|
||||
/// `hive-agent::questions`.
|
||||
RecordAskedQuestion {
|
||||
id: i64,
|
||||
target: String,
|
||||
question: String,
|
||||
},
|
||||
/// Mirror an outstanding question this agent was asked (a
|
||||
/// `question_asked` system event arrived in the inbox). `asker` is who's
|
||||
/// waiting on this agent for a reply.
|
||||
RecordAnsweringQuestion {
|
||||
id: i64,
|
||||
asker: String,
|
||||
question: String,
|
||||
},
|
||||
/// Drop the mirror row for `id` (either role) — the question resolved
|
||||
/// from this agent's side (answered, or the `question_answered` event
|
||||
/// for a question this agent asked arrived).
|
||||
ClearQuestion { id: i64 },
|
||||
/// List this agent's mirrored questions (both roles) — single-agent
|
||||
/// scope, same shape as `ListReminders`.
|
||||
ListQuestions,
|
||||
}
|
||||
|
||||
/// A response on the in-agent socket. Serialised with a `kind` tag,
|
||||
|
|
@ -158,8 +134,8 @@ pub enum Response {
|
|||
Ok,
|
||||
/// Op succeeded and touched `count` rows (clear / mark-done).
|
||||
Acked { count: u64 },
|
||||
/// `ListTodos` / `ListReminders` / `ListQuestions` result (each wraps
|
||||
/// its rows as the matching [`LooseEnd`] variant).
|
||||
/// `ListTodos` / `ListReminders` result (each wraps its rows as the
|
||||
/// matching [`LooseEnd`] variant).
|
||||
LooseEnds { loose_ends: Vec<LooseEnd> },
|
||||
/// `CountPendingReminders` result.
|
||||
PendingRemindersCount { count: u64 },
|
||||
|
|
|
|||
Loading…
Reference in a new issue