Checkpoint / Restart
A SNAPSHOT OF STATE- ×Connection lost
- ×In-flight work uncertain
- ×New writes may be missing
- ×Client reconnect required
Keeping the session means coordinating more than its data. Explore how ANK is thinking about ownership, state recovery, and traffic as execution moves.
ANK gives a live interaction an identity independent of the machine, region, or provider currently executing it.
session_18f29STABLE IDENTITYThe stable session is the abstraction ANK is building toward. Continuity depends on the workload’s state model, transport, and recovery mechanisms.
session_18f29epoch —NO WRITE AUTHORITY
Watch authority move, one step at a time.
ANK tracks which runtime currently owns execution authority for a session. Ownership can move while the logical session remains unchanged. A stale runtime must no longer be able to make authoritative writes.
ANK’s current design explores epoch-based session ownership and fencing. Enforcement must reach the write path; an epoch in a JSON document alone is not a fence.
The manifest describes where a session is running, who owns it, where its recoverable state lives, and how execution can continue elsewhere.
{
"session_id": "session_18f29",
"epoch": 43,
"owner": {
"provider": "runpod",
"region": "ap-south"
},
"runtime": {
"image": "voice-agent:v7",
"gpu": "L40S"
},
"state": {
"checkpoint": "s3://...",
"cache": "redis://...",
"database": "postgres://..."
},
"transport": { "protocol": "webrtc" },
"fallback": { "provider": "coreweave" }
}ANK should know how to reconstruct the session without becoming the database behind the session. Storage references describe where recovery data lives.
A missed heartbeat is a signal, not proof of death.
Recovery needs a new owner—and a fence
around the old one.
epoch —NO WRITE AUTHORITY
Traffic → CoreWeave
Ready to simulate · no real infrastructure is contacted.
Animation is slowed for readability; displayed timings are illustrative. This scenario assumes the required state is recoverable and fencing is enforceable. Zero reconnects is a simulated outcome, not a transport guarantee.
session_18f29LOGICAL SESSION PRESERVEDANK treats network connections as ways of reaching a session rather than as the session itself.
Connection attached to the logical session. Illustrative interaction.
Designed to minimize reconnection and session interruption. Protocol adapters and application support determine reattachment behavior; universal WebRTC or QUIC handoff is not claimed.
owner = Aprepare destinationcheckpoint = 52new state = 5352 → 53epoch 42 → 43owner = BRestoring the checkpoint does not include the update that arrived at T3.
Session mobility requires ANK to account for state changes occurring during the migration window—not only the initial checkpoint.
Candidate mechanisms, not a list of implemented features. The right combination depends on application semantics and the state’s consistency requirements.
Proposed control plane for session ownership, recovery references, and traffic attachment.
Your data. Your storage.
ANK coordinates the references.
Design model: state and runtime adapters must enforce ownership at the write boundary. Components alone do not guarantee continuity.
Moving a JSON blob is easy. Moving authority over a live session is not.
session_18f29IDENTITY STAYSThe session remains the stable abstraction while the execution owner changes underneath it.
Checkpointing can be one ingredient. Continuity also needs ownership, in-flight work, transport, and routing to agree.
Migration is not successful simply because
Provider B started. The authoritative
runtime must be unambiguous.
session_18f29session_18f29 · epoch 43Safety goal: at most one authoritative writer, even if that means pausing writes during transfer.
Nine connected problems. Copying state addresses only part of one.
A stable logical identity independent of infrastructure.
Target: exactly one authoritative runtime, with no overlapping write authority during transfer.
Prevent stale infrastructure from continuing authoritative writes.
Restore the minimum state required before cutover.
Account for messages, operations, and side effects occurring during migration.
Reconnect users to the current owner of their logical session.
Distinguish unavailable or degraded infrastructure from a delayed heartbeat.
Evaluate health, latency, capacity, cost, and placement policy.
Reconstruct sessions after unplanned infrastructure loss.
These are design responsibilities and engineering goals, not a claim that every mechanism is production-ready.
Where should this workload run?
Where should this active session execute now?
ANK is not trying to replace workload schedulers.
It operates at the continuity layer above them.
Connect your providers. Inspect your sessions.
Make mobility part of your application.
Time from migration or failure initiation until the logical session is operational on its new execution owner.
End-to-end elapsed time; stages may overlap. Phase durations are not always additive.
Failure signal → threshold decision
Provision request → runtime ready
Recovery begins → required state ready
Fence initiation → new authority granted
Traffic paused → traffic resumed
Migration starts → new owner operational
Client transport reattachments
Accepted messages never delivered
Operations delivered more than once
Transport packets lost in the window
Mismatch from expected authoritative state
Comparable compute cost per hour
Benchmark reports should pair timing with workload, protocol, state size, failure scenario, and consistency checks. A fast cutover with lost or duplicated work is not a successful result.
The goal is to determine which classes of real-time applications can achieve useful session portability—and how far that boundary can be pushed.
Tell us what needs to survive when your infrastructure changes.