zenith.book()
// Book a load under tenant policy v42
const decision = await rios.zenith.book({
load: "L-20260414-8821",
policy: "tnt-acme@42",
objectives: ["on_time", "cost"],
constraints: {
min_safety: 85,
max_rate_pct_of_ceiling: 0.96,
require_insurance: "CARGO_100K"
},
human_above: { value_usd: 10000 }
});
// → { action: "booked", carrier: "C-884", confidence: 0.93,
// replay_id: "r_a1b2…", policy_hash: "0x7f…", alternatives: [...] }
zenith.replay()
// Replay any decision. Byte-for-byte.
const replay = await rios.zenith.replay("r_a1b2…");
replay.inputs // → { load, lanes, ratesheets, safety, hos... }
replay.policy // → { hash: "0x7f…", clauses: [...] }
replay.model // → { name: "zenith-cortex", ver: "2.1.4" }
replay.alternatives // → [{ carrier: "C-119", score: .88, rejected_by: "insurance" }, ...]
replay.evidence // → { bundle_url, signature, timestamp }