MaxQ Engine

MaxQ Engine

Keep people and agents in sync.

MaxQ Engine syncs changes in real time and picks up after a disconnect. Signed permissions control which data and actions each participant can access.

01 · Deployment
Cloud · On-prem · Edge
02 · State
Real-time · Sync engine
03 · Access
Signed capabilities
01

One execution model across deployments.

Cloud, your own servers, or edge. Add resources and handle growing workloads with one execution model.

Elastic runtime
appreadyMaxQreadycloudidleon-premidleedgeidleappreadyMaxQdeployingcloudstartingon-premstartingedgestartingappreadyMaxQscalingcloudstartingon-premstartingedgestartingappreadyMaxQelasticcloudliveon-premliveedgelive
const app = maxq.app("workspace"); await app.deploy({  environments: ["cloud", "on-prem", "edge"],  scale: "elastic",});
02

See changes as they happen.

One workspace for many participants. People and agents work on shared state simultaneously and receive changes in real time.

Shared state
peoplejoinedsharedopenagentsjoinedpeopleeditingsharedmergedagentseditingpeoplesyncingsharedsyncingagentssyncingpeoplesyncedsharedliveagentssynced
const room = await maxq.room("workspace");await room.join([person, ...agents]); room.sync.onChange(render);await room.sync.apply(signedChange);
03

Permissions, signed.

Cryptographically signed capabilities define who can access data and perform actions. Before execution, each request is checked against the signature, resource, action, expiry, and revocation status.

Signed capabilities
signatureidentityhuman + AIcapabilitysignedworkspaceblockedidentityhuman + AIcapabilitycheckingworkspaceblockedidentityhuman + AIcapabilityverifiedworkspaceallowedidentityhuman + AIcapabilityverifiedworkspaceapplied
const access = await maxq.capability.issue({  subject: actor.publicKey,  resource: room.ref,  rights: ["read", "write"],}, ownerKey); await room.sync.apply(change, {  capability: access,});

Sync engine

04

Only what changed.

The sync engine sends changes to selected objects and fields. Each subscriber receives patches for its query instead of downloading the entire dataset again.

Delta sync
sourcechangeddeltawatchingviewwaitingsourcechangeddelta1 patchviewwaitingsourcechangeddeltasendingviewwaitingsourcechangeddeltaappliedviewcurrent
const tasks = room.sync.watch({  collection: "tasks",  where: { projectId },  fields: ["id", "status"],  capability: taskRead,}); tasks.onPatch((patch) => view.apply(patch));
05

Continue after disconnect.

Local changes remain queued. On reconnect, sync resumes from a saved cursor and receives the operations missed while the connection was unavailable.

Reconnect and replay
localqueuedcursorsavedreplicawaitinglocalconnectingcursorresumereplicawaitinglocalsendingcursorreplayreplicawaitinglocalsyncedcursorcurrentreplicacurrent
const cursor = await room.sync.checkpoint();room.sync.disconnect(); await room.sync.commit(change, {  offline: "queue",  capability: sessionAccess,}); await room.sync.connect({  after: cursor,  capability: sessionAccess,});
06

Different edits. One result.

A person changes the title while an agent assigns the task. Independent field edits combine into one shared state, delivered to every participant.

Concurrent changes
personReadyagentassignedmergeeditingtaskwaitingpersonReadyagentassignedmergemergingtaskwaitingpersonReadyagentassignedmergemergedtaskwaitingpersonReadyagentassignedmergesyncedtaskcombined
await Promise.all([  room.sync.patch(taskId, { title: "Ready" }, {    capability: personAccess,  }),  room.sync.patch(taskId, { assignee: "agent" }, {    capability: agentAccess,  }),]); const task = await room.sync.read(taskId, {  capability: personAccess,});

Cryptographic permissions

07

Access to a specific object.

A capability binds a participant’s key to a resource and allowed actions. Read permission does not grant write access, and knowing an object’s address grants no authority.

Object and action
capabilityreadrightsreadcheckingwritecheckingcapabilityreadrightsreadcheckingwritecheckingcapabilityreadrightsreadcheckingwritedeniedcapabilityreadrightsreadallowedwritedenied
const readOnly = await maxq.capability.issue({  subject: analyst.publicKey,  resource: task.ref,  rights: ["read"],}, ownerKey); await task.read({ capability: readOnly });const canWrite = await task.permits("write", readOnly);
08

Delegate less authority.

Give an agent access to a task and a tool only the action it needs. Each further delegation narrows rights and stays within the original capability’s expiry.

Attenuated delegation
ownerread/writeagentwaitingtoolwaitingownerread/writeagentreadtoolwaitingownerread/writeagentreadtoolwaitingownerread/writeagentreadtoolread
const reader = await access.delegate({  subject: agent.publicKey,  resource: task.ref,  rights: ["read"],  expiresAt: deadline,}, personKey); const toolAccess = await reader.delegate({  subject: tool.publicKey, rights: ["read"],}, agentKey);
09

Access can be revoked.

Revocation or expiry invalidates the capability. New requests are blocked and its subscription closes, while previously received data remains intact.

Capability revocation
revokeclientactiveaccessvalidstreamliveclientactiveaccessvalidstreamliveclientblockedaccessrevokedstreamclosedclientblockedaccessrevokedstreamclosed
const feed = room.sync.watch({  collection: "tasks",  capability: agentAccess,}); await agentAccess.revoke({ signedBy: ownerKey });await feed.closed;

Bring MaxQ Engine into your product.

Talk through what needs to sync, who needs access, and where you run your application.