Cookbook
Sovereign isolation
Pin a metro and enforce the sovereign tier client-side.
When sovereign=True and pinned_metro=... are set, the SDK validates every
response and withholds the payload on a mismatch — defense in depth on top of
server-side enforcement.
from volt import Volt, SovereigntyViolation
client = Volt(sovereign=True, pinned_metro="us-east-iad")
try:
resp = client.chat.completions.create(
model="llama-3.3-70b-instruct",
messages=[{"role": "user", "content": "Summarize this contract."}],
pod_affinity="contract-review-42", # sticky session for KV-cache reuse
)
print(resp.choices[0].message.content)
print("verified:", resp.volt.tier, resp.volt.metro)
except SovereigntyViolation as e:
# The response data is NOT exposed to your code on a breach.
print(f"sovereignty breach withheld: {e}")See sovereignty for the full model.