The architecture behind intelligent AI execution.
This page is for engineers and technical evaluators. It describes how H33-HIVE orchestrates inference and reasoning work and routes, reuses and recovers it (placement on real hardware is not yet established), how it composes with H33’s authority components, and exactly which parts are research, which are integration-tested, and which are not yet built.
Status Research prototype. Every figure on this page comes from simulated providers or offline measurements on one machine, and the authorization interface is a placeholder. Nothing here is a production guarantee.
Execution pipeline
The proposed order of operations for one unit of work:
Steps 6 and 7 are deliberately separate. An independently verified result is not the same as an independently authorized action: a verifier can establish that an answer is correct within its limits, and only the authority layer can establish that acting on it is permitted.
Rust routing architecture
The current router is a Rust research library. Its executor enforces a small set of rules whatever the routing policy asks for:
| Rule | Behaviour |
|---|---|
| Capability scoring | Per model and task category, the router keeps measured success rates, verifier acceptance, false accepts and mean compute cost. Below a minimum sample count it uses the strongest model rather than trusting a thin estimate. |
| Escalation | A stronger model is tried only when an independent verifier rejects the cheaper answer. A model reviewing itself does not count, and an answer carries no self-reported confidence. |
| Budget control | A budget gate runs before every attempt, covering attempts, cost and deadline. An unknown spend under a cost ceiling refuses the attempt rather than guessing. |
| Retry decisions | A possibly-executed attempt is re-sent only with an idempotency key, to the same provider, and only if that provider itself declares server-side idempotency. A caller’s key alone guarantees nothing. |
| Recovery states | Every task settles as delivered, failed, denied or Unknown. A task that cannot resolve an ambiguous attempt settles Unknown, never Failed, so nothing downstream mistakes “we don’t know” for “it didn’t happen”. |
Routing quality has been measured offline against recorded model outputs, not on live serving traffic. Those measurements are what showed that smaller model tiers did not reduce cost per correct answer on the task families tested — so the router’s job is to prove a cheaper path is good enough, not to assume it.
Cachee integration
HIVE consumes Cachee; it does not build a cache of its own. Cachee remains the sole computational-reuse layer, and the research router reaches it through an adapter that models Cachee’s governed reuse decision; in the research build that adapter is backed by an in-memory stand-in, not production Cachee. A reusable result is bound to:
- an input commitment — a hash of the exact input;
- the tenant, with isolation enforced on lookup;
- the model generation that produced it;
- the policy version in force;
- the verifier identity and version that accepted it;
- freshness, an authority epoch and revocation state.
Lookup fails closed, and every refusal has a named reason and its own test: integrity failure, input, tenant, authority, generation, verifier or policy mismatch, stale or revoked authority, revoked verifier, unverified or failed verification, staleness, and a producer that cannot be independently verified. A tampered read is refused, never served. A hit can never turn unverified content into verified evidence, and a reused result never inherits the authority of the session that produced it — it passes the same authorization check as a fresh call.
Reuse is not free: admission requires independent verification, and at low repeat rates that costs more than reuse saves (see findings). The integrity check in the research build is a test stand-in, not cryptography; the canonical check plugs in behind the same interface. Cachee’s own product page describes its role as H33’s cache; computational reuse for HIVE is one use of it, and that page is unchanged.
CPU/GPU scheduling
CPU/GPU placement is one decision HIVE’s orchestration makes, alongside model and tool selection, verified reuse, batching, escalation, latency, cost, tenant isolation and failover. Its state today:
- Implemented and tested in research and simulation: CPU/GPU performance estimation and batching. In testing, the adaptive throughput objective did not beat the best fixed batching policy, and a foreground priority-inversion defect is being cured.
- Evaluated in simulation and not enabled: speculative execution, which was net-negative in every simulated integration scenario.
- Implemented in isolation for research coordination only: resource leases. Not qualified and not installed; never a production authority.
- Design: execution classes for CPU work (routing, admission, preprocessing, verification, suitable inference) and GPU work (large-model inference, parallel computation, training); background work that foreground requests can always preempt; cold-start cost counted explicitly; cost-based placement, where a placement must beat its baseline on measured latency percentiles, throughput, cost and energy — not on expectation.
- Not yet established: placement on real hardware, integrated resource admission, and measured performance on real models.
None of this has been benchmarked end to end on hardware. Simulation results are not presented as hardware results.
Authority integration
HIVE is designed to sit inside the boundary that Agent-008 is intended to enforce. Its intended interfaces, and their honest status today:
| Interface | Intended role | Status |
|---|---|---|
| Agent-008 | Admits work and authorizes consequential actions | Placeholder in the research build |
| H33-Root | Human authority lineage at admission and delegation | Not yet integrated |
| H33-Stamption | Commits governance transitions | Not yet integrated |
| H33-API-G | Checks each consequential action at the API boundary | Not yet integrated |
| H33-Key | Keeps keys in custody; the model never holds signing capability | Not yet integrated |
| H33-74 and Replay | Portable evidence and reconstruction | Not yet integrated |
In the research build, every attempt — fresh call, escalation, failover, idempotent re-send and reuse hit — passes through one authorization hook, and author-side tests confirm a denial stops the task. An independent security review found admission gaps on cache-write paths. Inside the HIVE core those gaps are cured, and an independent reviewer qualified the HIVE core’s read and write admission logic at L100 implementation commit 1ea6cc6, for that in-core scope only. The same review discloses an unresolved high-severity authorization defect: a previously issued gate can still authorize a commit after its ticket is revoked. The admission path is therefore not revocation-safe and not production-ready. The fix and its independent verification rest with the L100 owner; this page changes only when that evidence exists. Integration with external components and production controls are still under remediation (not qualified). But the only implementation of that hook is a placeholder that restricts nothing, so authorization in the research build is simulated, not authenticated. That describes the research adapter, not the intended architecture, which admits no unrestricted execution: real consequential execution stays unavailable until the Agent-008 integration qualifies. The placeholder is a test seam, not a security control, and this page will not describe it as one. Three levels are kept distinct as integration proceeds: interfaces that compile, interfaces tested with synthetic authority, and enforcement independently verified in production.
Fault handling
The research build’s default is a per-model failure-count breaker (the reference implementation), shared across all tasks in the concurrency runs. The windowed breaker described here is an opt-in alternative that handles failures per provider and per execution scope, so one tenant’s failures do not change another tenant’s routing:
- Circuit breakers. A windowed breaker opens when at least half of the last ten seconds’ results fail, once twenty results have been seen. While half-open it admits at most three probes and closes only after three succeed.
- Bounded retries. Every retry passes the budget gate and the idempotency rule above.
- Ambiguous outcomes. Ambiguity is preserved as Unknown. In an exhaustive 256-case fault sweep of the research build there were zero duplicate executions, zero duplicate charges and zero unsafe re-sends.
- Failover. A definite failure fails over to another healthy provider; an ambiguous one does not, until it is resolved.
The trade-offs are real, and they are published rather than hidden. Because the windowed breaker needs a window of traffic to see an outage, it keeps sending to a dead provider longer than a simple failure-count breaker, and at low traffic it may never trip at all. Recovery is slower, because each scope closes on its own; a two-second burst can leave a scope recovering for well over ten seconds; and when outages flap faster than the cooldown, it rarely recovers within an up-window. These are simulation results with synthetic, instant failures, not measurements of production reliability.
Performance methodology
A HIVE performance claim is publishable only with its full context:
- baseline hardware and the model revision under test;
- concurrency level and the workload’s task mix;
- latency at p50, p95 and p99, and throughput;
- correctness, measured by an independent verifier;
- the repeat-rate assumption behind any reuse figure;
- energy and cost, against a stated no-HIVE baseline.
Independently reproducible benchmarks will be linked here once they qualify. Until then this page publishes no blanket latency, throughput, savings or security guarantee.
Research findings, including negative results
Every result below comes from the HIVE research record and is stated with its conditions. All are author-side results; none has been independently reproduced, and none is a production measurement. Evidence references name the file in the research repository at commit 800c56f (2026-10-28); the repository is not public, and the files are available on request through an architecture review.
| Finding | Test conditions | Evidence |
|---|---|---|
| Smaller model tiers did not reduce cost per correct answer. | Offline replay of recorded outputs: 329 tasks across maths, Rust, engineering and security families; three tiers (1.5B, 0.5B and 135M-parameter models); cost = GPU-seconds × 10 + CPU-seconds. The tiered policy used 108% of the strongest model’s GPU time; the 135M tier answered 4 of 329 correctly. On the held-out half (157 tasks), no cheaper routing segment met the admission criteria, so routing fell back to the strongest model everywhere. | R2-RESULTS.md, hive/ |
| Verified reuse costs more than it saves at low repeat rates. | Same 329 tasks with an assumed repeat rate (the populations contain no real repeats). Admission verification costs about 95 CPU-seconds per pass. Net cost: −94.7 at 0% repeats, −70.8 at 10%, +69.6 at 30%, +175.9 at 50%. Correctness was identical with and without reuse in every row. | hive/, hive/ (reuse) |
| No poisoned or mismatched entry was ever served. | 3,290 injected entries across ten poison kinds (tampering, cross-tenant, stale authority, wrong generation, verifier version, policy, context, staleness, unverified, failed) at a 50% assumed repeat rate: 0 served. | hive/ |
| No duplicate execution under faults. | Exhaustive sweep: 2 provider kinds × 64 fault sequences × with and without an idempotency key (256 cases), simulated providers: 0 duplicate executions, 0 duplicate charges, 0 unsafe re-sends. Providers that do not declare idempotency leave ambiguous tasks Unknown rather than retrying them. | Author-side; simulated providers, one machine; not independently reproduced. hive/, hive/ |
| A shared failure-count breaker collapsed under concurrency; the windowed breaker did not, at a cost. | 128 concurrent tasks, 10% injected faults, simulated providers with 100× time compression, 4 tenants, one machine. Failure-count breaker: about 69% of tasks failed. Windowed breaker: 0.15%. In scripted outages the windowed breaker sent 961–1,286 attempts to a dead provider (against 0–2), recovered in 6.7–22.7 s per scope, recovered within the up-window in 1 of 10 flapping cycles, and showed a higher p99 latency. | Author-side; simulated providers, one machine; not independently reproduced. hive/, hive/, hive/ |
| Router overhead is small with realistic provider latency, but missed its target in two configurations; it is not the end-to-end latency. | Simulated providers (latency drawn from recorded distributions, compressed 100×), 2,048 tasks at 1–128 concurrent threads. Target: overhead ≤ 1% of a baseline model’s per-token decode time. With realistic latency, overhead was 93–246 µs at p99 (0.22–0.58% of per-token), within 1% of per-token time — though the ≤ 1% target itself applies to the full serving path with real inference and is not established here. Overhead exceeded 1% with zero provider latency at 8–128 threads (p95/p99 up to 3.5/6.4 ms, 10.3% / 15.1% of per-token), where every thread contends on the stand-in cache’s single lock, and in the refusal control with 2,400 poisoned entries (p99 1.34%). A simulated-provider benchmark cannot establish the latency of the complete serving path with real inference. | hive/ |
These results set the design: route on measured capability rather than model size, apply verified reuse only where repeat traffic justifies it, and treat breaker parameters as fixed research references that are re-evaluated on new, held-out failure traces rather than tuned to these ones.
Limitations and readiness
| Capability | Readiness |
|---|---|
| Capability-based routing and escalation | Research; measured offline on recorded outputs |
| Verified-reuse refusal rules | Research; unit- and concurrency-tested against a stand-in, not production Cachee |
| Idempotency-aware retry and Unknown outcomes | Research; fault-injection tested with simulated providers |
| Windowed circuit breaker | Research; tested on synthetic outage traces; independent qualification not passed (router qualification failed; cure under way) |
| HIVE routing core | Research prototype. An independent reviewer qualified the HIVE core’s read and write admission logic at L100 implementation commit 1ea6cc6, for that in-core scope only. The same review discloses an unresolved high-severity authorization defect: a previously issued gate can still authorize a commit after its ticket is revoked. The admission path is therefore not revocation-safe and not production-ready. Integration with external components and production controls are still under remediation (not qualified). |
| CPU/GPU performance estimation and batching | Research; implemented and tested in simulation |
| Speculative execution | Evaluated in simulation; not beneficial; not enabled |
| Resource leases | Implemented in isolation for research coordination; not qualified; not installed |
| Hardware placement and integrated resource admission | Not yet established |
| Cachee read/write isolation in HIVE; Cachee server attestation behaviour | Under remediation |
| Agent-008 and authority-component enforcement | Placeholder; not an operational control |
| TUTU governed learning, tuning and evaluation | Research pipeline implemented and tested; only the contamination gate is independently qualified; no trained candidate promoted |
| Specialist TUTU areas | Planned; none active or qualified |
| Champion TUTU learning allocation | Implemented in research; shadow mode only; independent qualification not passed |
| Closed loop from execution evidence to qualified successors | Not yet qualified |
| Production deployment | None |
A passing component test does not imply a production-qualified composition. When a row changes, it changes here first, with the evidence that moved it.
Back to H33-HIVE. Developer material: H33-HIVE documentation. Related: Agent-008 · Cachee · H33-API-G · H33-74.