strip issue-tag comments from #2635 inc1 commits per hive-rules

This commit is contained in:
damocles 2026-07-22 22:38:42 +02:00 committed by mara
commit dcb2b79715
9 changed files with 26 additions and 26 deletions

View file

@ -332,8 +332,8 @@ impl Surface for AgentSurface {
Ok(Response::LooseEnds { loose_ends }) => u64::try_from(loose_ends.len()).ok(),
_ => None,
};
// Reminders are harness-local (#2635 inc 1) — dial the in-agent
// socket directly instead of the broker.
// Reminders are harness-local — dial the in-agent socket directly
// instead of the broker.
let reminders =
match todo_server::dial(&hive_agent_sock::Request::CountPendingReminders).await {
Some(hive_agent_sock::Response::PendingRemindersCount { count }) => Some(count),
@ -458,7 +458,7 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
tracing::error!(error = %e, "web_ui::serve exited with error");
}
});
// Harness-local reminders (#2635 increment 1): a due reminder fires
// Harness-local reminders: a due reminder fires
// straight into an mpsc channel the serve loop races against the
// broker long-poll (unlike todos, a fire carries real per-row data,
// so a bare `Notify` doesn't fit — see `reminder_timer` docs).
@ -476,8 +476,8 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
}
};
tokio::spawn(reminder_timer::run(reminder_store.clone(), reminder_tx));
// In-agent todo socket (loose-ends v2 + #2635 reminders): the harness
// owns the todo + reminder stores locally and serves the
// In-agent todo socket (loose-ends v2 + harness-local reminders): the
// harness owns the todo + reminder stores locally and serves the
// in-container producers on `HIVE_AGENT_SOCKET`. A new/changed todo
// upsert fires `todo_wake` so the serve loop drives a turn directly —
// no broker round-trip, no marker files. Best-effort: if the todos

View file

@ -48,9 +48,9 @@ pub fn todos_db() -> PathBuf {
harness_dir().join("hyperhive-todos.sqlite")
}
/// Harness-local reminder store (#2635 increment 1). Same rationale as
/// [`todos_db`] — mutable per-agent state the harness owns, kept out of
/// the append-only events sink.
/// Harness-local reminder store. Same rationale as [`todos_db`] — mutable
/// per-agent state the harness owns, kept out of the append-only events
/// sink.
#[must_use]
pub fn reminders_db() -> PathBuf {
harness_dir().join("hyperhive-reminders.sqlite")

View file

@ -1,5 +1,5 @@
//! Delivery half of the harness-local reminders store (#2635 increment 1).
//! Polls [`Reminders`] for due rows and pushes each as a
//! Delivery half of the harness-local reminders store. Polls [`Reminders`]
//! for due rows and pushes each as a
//! [`hive_sh4re::DeliveredMessage`] down an mpsc channel the serve loop
//! races against the broker long-poll — mirrors `todo_server`'s `Notify`
//! wake, but a reminder fire carries real per-row data (message/id), so a

View file

@ -1,6 +1,6 @@
//! Harness-local reminder store — the persistent, DB-backed half of the
//! in-container reminders migration (#2635 increment 1). Mirrors
//! `todos.rs`'s shape: one sqlite db under the harness dir, single-agent
//! in-container reminders migration. Mirrors `todos.rs`'s shape: one
//! sqlite db under the harness dir, single-agent
//! scope (no `agent` column — every row belongs to this agent, unlike the
//! old c0re-side store which served every agent in the hive).
//!

View file

@ -1,5 +1,5 @@
//! In-agent socket server (loose-ends v2 + #2635 reminders). Binds the
//! harness-owned `HIVE_AGENT_SOCKET` and serves the `hive-agent-sock`
//! In-agent socket server (loose-ends v2 + harness-local reminders). Binds
//! the harness-owned `HIVE_AGENT_SOCKET` and serves the `hive-agent-sock`
//! protocol to the in-container producers (matrix / bash daemons,
//! forge-notify) and to `hive-agent-mcp`'s `remind`/`get_loose_ends`/
//! `cancel_loose_end` tool impls. Todo ops hit the harness-local [`Todos`]

View file

@ -26,8 +26,8 @@ pub(super) async fn api_stats(
}
/// Fetch reminder activity stats from the harness-local reminder store over
/// `HIVE_AGENT_SOCKET` (#2635 inc 1 — was a broker RPC before reminders
/// moved in-container). Returns `None` on any transport / decode failure or
/// `HIVE_AGENT_SOCKET` — was a broker RPC before reminders moved
/// in-container. Returns `None` on any transport / decode failure or
/// when the socket is unset — the stats are decorative, not authoritative.
async fn fetch_reminder_stats(window_secs: u64) -> Option<hive_sh4re::ReminderStats> {
match crate::todo_server::dial(&hive_agent_sock::Request::ReminderRollup {