HIP-1347: Event-Driven Agent Reliability. Status Draft. Hanzo architectural specification.
This specification defines the execution isolation, event-driven lifecycle, reactivation observability, idempotent durable recovery, and evaluation harnesses for Research Bounties #31 through #40 across hanzoai/agents, hanzoai/mcp, hanzoai/cloud, hanzoai/ml, and hanzoai/visor.
Event-driven autonomous agents must launch sandboxes, invoke MCP tools, recover from interrupts, defend against adversarial tool payloads, and turn trajectories into measurable improvements — without requiring permanently resident bot processes or leaking tenant credentials inside sandboxes. Benchmarking end-to-end reliability requires clean separation between sandbox reactivation latency and model inference TTFT alongside reproducible anti-leakage task suites.
The key words MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are to be interpreted as in RFC 2119.
ai:inference keys (blocked from knowledge/KMS paths), per-run MCP run tickets, sandbox lease tokens (without admin-mint), and per-environment worker secrets MUST remain cryptographically separate and scoped per trust boundary.cold, relocated, warm) and reactivation_ms independently from gen_ai.latency.ttft_ms.idempotency_key identifiers preventing duplicate external side effects.hanzoai/agents): Run a reproducible subset of SWE-bench Pro V2 (September 2026 anti-leakage revision) on hanzoai/visor, comparing task resolution, wall time, model spend, and filesystem IO against plain NVMe.hanzoai/agents / hanzoai/mcp): Port AgentDojo-style tool-result and retrieved-content injection tests into hanzoai/mcp with explicit authorization policies and measured attack-success rates.hanzoai/agents / hanzoai/mcp): Simulate destructive or privacy-sensitive MCP tool invocations prior to live execution, reporting unsafe-action detection and false-block rates.hanzoai/cloud): Correlate model calls, retrieval, MCP tools, vfs IO, sandbox reactivation, and billing under a unified task ID per OpenTelemetry GenAI semantic conventions, measuring tracing overhead and attribute completeness.hanzoai/agents): Validate persisted checkpoints, idempotent activities, and crash recovery inside Hanzo's event-triggered lifecycle using hanzoai/tasks semantics without introducing always-on worker daemons.hanzoai/agents / hanzoai/ml): Convert succeeded and failed agent trajectories into RL/post-training datasets for eligible Zen checkpoints, reporting pass rate, reward-hacking checks, and training cost.hanzoai/agents): Optimize selected programmatic workflows against executable held-out checks, reporting accuracy, token cost, and latency.hanzoai/mcp): Benchmark compact structured edit APIs and bounded shell outputs on tool-call count, patch validity, and completion rate.hanzoai/agents / hanzoai/cloud): Verify human+agent concurrent state edits under randomized permissions and tool outcomes.hanzoai/visor / hanzoai/agents): Evaluate reproducible OS/desktop task subsets inside supported sandboxes, measuring completion rate, cold-start time, CPU/RAM footprint, and teardown hygiene.Establishing deterministic idempotency keys, reactivation-split telemetry, and credential boundaries inside the core platform lets every agent benchmark run against production invariants rather than idealized single-tenant mocks.
Hostile repository content or retrieved documents can attempt prompt injection, reference-solution leakage (#31), or sandbox credential harvesting. Disjoint credentials (§1.1), read-restricted ai:inference keys, and pre-execution risky-tool simulation (#33) confine blast radius to the sandboxed workspace.
hanzoai/agents, hanzoai/mcp, hanzoai/cloud, hanzoai/visor, hanzoai/mlReleased under CC0 1.0 Universal Public Domain Dedication.