Skip to main content

Runtime Guarantees Overview

IntentusNet provides explicit, documented guarantees for production multi-agent systems. This section details what the runtime promises, what it doesn't promise, and the failure modes you should expect.

The Guarantee Contract

Every production runtime needs a clear contract. IntentusNet's contract is:

GuaranteeStatusDescription
Deterministic RoutingProvidedSame input → same agent selection order
Execution RecordingProvidedEvery execution captured with stable hash
Replay Without Re-executionProvidedReturn recorded output, no model calls
Policy FilteringProvidedPartial allow/deny with continuation
Structured ErrorsProvidedTyped error codes, no silent failures
Crash RecoveryProvided (v1.3.0)WAL-backed execution state with deterministic recovery
Design Goals vs. Implemented Guarantees

Features marked as "Design Goal" are architecturally planned but may have implementation limitations in the current version. See individual guarantee pages for details.

Quick Reference

What IS Guaranteed (v1.3.x)

✓ Deterministic agent ordering
✓ Single response per intent
✓ Execution recording with stable hashes
✓ Replay returns recorded outputs
✓ Typed error codes (ErrorCode enum)
✓ Trace span emission for every decision
✓ Policy allow/deny evaluation

What is NOT Guaranteed

✗ Automatic retries (explicit fallback only)
✗ Transaction rollback (agents responsible)
✗ Distributed consensus
✗ Load balancing
✗ Rate limiting (policy layer, not runtime)
✗ Agent internal determinism

Guarantee Categories

1. Routing Guarantees

IntentusNet guarantees deterministic agent selection:

  • Given the same intent and available agents, routing produces the same order
  • Ordering based on: (isLocal DESC, nodePriority ASC, agentName ASC)
  • No implicit retries or hidden load balancing
  • Explicit fallback via routing strategy

Read more: Deterministic Routing →

2. Execution Recording Guarantees

IntentusNet guarantees complete execution capture:

  • Every execution produces an ExecutionRecord
  • Envelope hash computed via SHA-256 for integrity
  • Events recorded with deterministic sequence numbers
  • Final response captured exactly as produced

Read more: Crash-Safe Execution →

3. Replay Guarantees

IntentusNet guarantees deterministic replay:

  • Replay returns the recorded output, not a re-execution
  • No model calls during replay
  • Envelope hash validation available
  • Explicit replayable flag on records

Read more: Replayability →

4. Policy Guarantees

IntentusNet guarantees policy evaluation:

  • Policies evaluated before execution
  • Partial filtering: deny specific targets, allow rest
  • Clear denial reasons in response
  • No silent blocking

Read more: Policy Filtering →

5. Observability Guarantees

IntentusNet guarantees structured output:

  • Every routing decision produces a TraceSpan
  • JSON-structured outputs for CLI tooling
  • Execution IDs for cross-reference
  • Error codes from defined enum

Read more: Observability Contract →

Failure Modes

IntentusNet makes failure modes explicit:

FailureBehaviorRecovery
No matching agentCAPABILITY_NOT_FOUND errorRegister appropriate agent
Agent errorError propagated, recordedRetry with fallback strategy
Policy denialPartial execution or full denialAdjust policy rules
Crash mid-executionRecorded events preservedReplay from last checkpoint
Invalid envelopeVALIDATION_ERRORFix envelope structure

Guarantee Versions

Guarantees may evolve across versions:

VersionKey Guarantees Added
0.1.xBasic routing, registry
0.2.xExecution recording, trace spans
0.3.xReplay engine, stable hashes
0.4.x (planned)Enhanced WAL, distributed recording

Verifying Guarantees

You can verify IntentusNet's guarantees programmatically:

from intentusnet import IntentusRuntime, IntentEnvelope

runtime = IntentusRuntime(enable_recording=True)

# Verify deterministic routing
envelope = create_test_envelope()
results = [runtime.router.route_intent(envelope) for _ in range(10)]

# All should select same agent
agents = set(r.metadata.get('selected_agent') for r in results)
assert len(agents) == 1, "Routing is non-deterministic"

# Verify recording
execution_id = results[0].metadata.get('execution_id')
assert execution_id is not None, "Execution not recorded"

# Verify replay
replay_result = runtime.replay(execution_id)
assert replay_result.payload == results[0].payload, "Replay mismatch"

Next Steps

Explore each guarantee in detail: