[ HYDRA + INSTINCT ]
One router in front of every engine. Off until you ask.
beast-hydra is an OpenAI-compatible router that sits in front of one or more inference engines and routes each request on its model field. beast-instinct is a decision plane beside it that answers typed questions with a calibrated confidence.
[ HOW IT WORKS ]
One router, and a way round a failing engine
Choose a step to light its part of the picture.
- Callers
- The browser interface, agents, evaluation runs
- beast-hydra
- beast-hydra: routes on the model field
- instinct
- beast-instinct: can only skip work
- Sparks
- The DGX Spark pair
- RTX 5090
- The RTX 5090
- Failing
- A failing deployment: passed over
Describe this diagram
A laptop on the left sends requests to a router module in the middle. The router sends them on to two machines on the right, a DGX Spark and a PC tower. A third machine, faded, is a failing deployment: the traffic toward it stops half way. Behind the router a block, beast-instinct, sends it a line.
OPT-IN · v1.7
Both shipped in v1.7 and are off by default; with them unset the stack is byte-identical to one without them. The router is tested against simulated fleets and the rig’s own model server. It has not been run against the Spark pair, which serves without it.
Router and decisions · from the guides
NODES
Kinds of engine a node can be
4llama, vllm, tensorfold, openai
The last is anything that speaks the OpenAI API.
FAMILY POLICY
Ways to treat model families
3uncensored-preferred by default
The preference is a tie-breaker after every health and capacity filter has run.
INSTINCT
Decisions a setting alone can promote
0a gate record is required
Nothing is enforced until its quality is measured on the project’s data and the record is committed.
[ 01 · ROUTER ]
What changes when it is on
Every consumer on the rig talks to the router instead of the engine. With no fleet file, the router builds a single-node configuration from the existing settings, which behaves like the stack without it.
| Consumer | Before | With the router on |
|---|---|---|
| The browser interface | The engine | The router, directly or through the agent router |
| beast-gate, when enabled | The engine | The router |
| Spawned agents | The engine | The router, with the route’s id as the model name |
| Evaluation runs | The engine | The engine. Evaluations bypass the router. |
A route picks among deployments by health, capability, context fit and operator drains. A deployment addressed by its own id, or through the pin path, is strict: no rules and no fallback, and an error when that deployment is down. The router never forwards identity headers to a node; it uses them for routing and for its own audit row only.
[ 02 · POLICY ]
Uncensored-preferred, as a tie-breaker
The fleet policy follows the project’s model policy. An operator declares which model families are abliterated; a family is listed only when its weights really are. The Spark pair’s default is stock weights and is not on that list.
Abliterated weights change what a model refuses. They change nothing about keys, roles, file scopes, sandboxing or audit. The model policy
| Policy | Effect |
|---|---|
uncensored-preferred | The default. Every family may serve. Among candidates that passed every filter and have free capacity, an abliterated family goes before a stock one. Priority still wins, and an unavailable abliterated target never blocks a stock one. |
uncensored-only | Opt-in. A hard filter on every candidate; a stock deployment is reachable only by pinning its own id. |
any | Families play no part in routing. |
[ 03 · FAILURES ]
Failover, timeouts and the breaker
The router fails over only before the first byte of a response. A failure in the middle of a stream ends with an error event, never with a silent replay of the request on another node.
A busy node is not a failing node
A first-byte timeout does not count against a node when the request had one candidate and that node was already full. That is the engine’s queue. Counting it used to open the breaker on a rig that was only busy.
A bad request is not a node failure
An engine’s own JSON error about a request still fails over, but it is charged to the breaker only if another deployment then serves the same body. One caller with a malformed body cannot black out a route.
A trial lasts until the first byte
After the breaker’s open period, one request at a time tests the deployment. Once it has its first byte the next caller may try too, so one long generation does not turn everyone else away.
The single-node default waits as long as before
With no fleet file, the deadlines match what the stack did without the router, because a one-slot engine queues a second request behind the first.
[ 04 · INSTINCT ]
A decision plane that can only skip work
beast-instinct answers named questions of four types: yes or no, a choice, a score, or a ranking. Each answer carries a label distribution, a calibrated confidence and one of four outcomes: act, review, abstain or fall back.
Its status in the guide is “built and wired, opt-in; nothing enforces until gated”. The seed dataset is synthetic and is not a gate set.
It never grants anything
It can only skip work, or reorder or narrow options the deterministic layer already made eligible. For its one router decision the only label allowed to act is “inline”, so it can never cause an agent to be spawned.
Nothing is enforced until measured
Promotion needs a gate record written by the decision-quality harness and committed to git. A configuration setting cannot promote a decision.
It fails open
On any failure the caller runs the path it runs today. The router works unchanged with instinct absent, and acts only on an answer marked both act and enforce.
It is kept away from security
A test checks that no authentication, role, request-guard, gate, runner or grading module imports it, and every call writes one ledger row, shadow and fallback calls included.
[ 05 · OPERATE ]
Check before you start
An invalid fleet file stops the stack from starting, so validate it first. A reload validates and swaps the configuration, and a bad file keeps the old one.
scripts/hydra.sh check # validate the fleet file
scripts/hydra.sh status # nodes, deployments and routes, with health
scripts/hydra.sh explain '<json>' # dry-run a routing decision
scripts/hydra.sh drain <node> # stop new traffic to a node
scripts/hydra.sh decisions # recent decision tracesThe reference topology and its honest status · The engines it routes to
[ 06 · SOURCES ]
Where this page comes from
Everything above restates the project’s own documents, read at upstream commit 8dfddb3c (2026-11-30). Nothing here was measured for this page.
- docs/BEAST_HYDRA.md · status, what changes, the family policy, timeouts and the breaker, the operator commands
- docs/BEAST_INSTINCT.md · the two rules, the status table, the invariants and the contract
- docs/BEAST_HYDRA_PLAN.md · the design record, with the hardware beliefs still to verify
- v1.7.0 release notes · the release that shipped both