lifecycle: HYPERHIVE_GIT env override (bypass PATH); module sets it

This commit is contained in:
müde 2026-05-15 00:24:51 +02:00
parent 42e7761ea1
commit 7c1ed07cf2
4 changed files with 34 additions and 5 deletions

View file

@ -145,6 +145,27 @@ pub enum AgentResponse {
/// Logical name the broker uses for the manager.
pub const MANAGER_AGENT: &str = "manager";
/// Sender hive-c0re uses for events it pushes into the manager's inbox.
/// Manager harness recognises this and parses the body as a `HelperEvent`.
pub const SYSTEM_SENDER: &str = "system";
/// Out-of-band events the host-side daemon pushes to the manager's inbox.
/// Serialised as JSON in `Message::body` (sender = `SYSTEM_SENDER`).
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "event", rename_all = "snake_case")]
pub enum HelperEvent {
/// An approval was approved or denied; if approved, the rebuild has
/// already run (status = Approved on success, Failed on error).
ApprovalResolved {
id: i64,
agent: String,
commit_ref: String,
status: ApprovalStatus,
#[serde(default, skip_serializing_if = "Option::is_none")]
note: Option<String>,
},
}
/// Requests on the manager socket. Manager has the agent surface (send/recv)
/// plus privileged lifecycle verbs.
#[derive(Debug, Clone, Serialize, Deserialize)]