On this page
One system. Composable layers.

Paxeer X subscriptions let an agent observe activity without repeatedly rebuilding its view from individual queries. The agent daemon persists the subscription definition, acknowledgement position, continuity state, and lifecycle controls. An event carries its identity, bytes, deduplication identifier, cursor, and an optional verified receipt reference.

Choose the event interface

InterfaceConsumer modelRecovery mechanism
Agent subscriptionsAuthenticated tenant, agent, and capability; explicit filter and delivery target.Durable acknowledged cursor, backfill barrier, truncation notice.
Hosted webhooksDeveloper HTTPS endpoints for journey, payment, approval, and program families.Signed delivery, retries, dead letters, and signed replay cursors.

Choose the agent subscription interface when an autonomous runtime needs visibility constrained by its session capability. Choose webhooks when an external application receives hosted event families over HTTPS. Their cursor and verification representations belong to their respective interfaces.

Create a scoped subscription

subscription.create requires scope, filter, start, and delivery_target, inside an idempotent mutation. The scope names tenant, agent, and capability and must equal the authenticated owner coordinates. The same key and request return the original record; a changed request under that key is refused.

Filter fieldRestriction
agentsSelected agent identities.
accountsSelected accounts visible to the owner.
activity_typesSelected native operation types.
modulesSelected module activity.
assetsSelected assets.
counterpartiesSelected interacting principals.
result_classesSelected outcome classes.

Evaluation applies tenant restriction first, capability scope second, and filter third. A filter narrows visibility and cannot expand a capability or disclose another tenant's records. Administrative list and health operations also require the authenticated session's operation permit.

Consume and acknowledge

  1. Restore the persisted subscription and last acknowledged cursor.
  2. Receive an Event, Gap, or Truncated delivery.
  3. For an Event, claim its deduplication_id in your durable consumer store.
  4. Verify any receipt evidence required for the business decision.
  5. Commit the application effect and deduplication record together.
  6. Acknowledge the delivered cursor after that commit.
EventDelivery
  event_identity
  event_bytes
  deduplication_id
  cursor
  receipt_reference: None | Verified { receipt_ref, verification_level }

subscription.acknowledge(scope, subscription_id, cursor)

Delivery is at least once. An acknowledgement records progress; it does not make a business handler transactional. If the process crashes after applying an effect but before acknowledging, the repeated delivery must find the completed deduplication record. Cursor values use canonical decimal strings and represent stream position rather than a locally inferred protocol sequence.

The daemon refuses acknowledgements for never-delivered cursors and rejects regressing positions. Keep processing and acknowledgement ordered for a subscription instead of advancing past unfinished work.

Resolve gaps before advancing

A Gap contains missing_first, missing_last, backfill_cursor, and backfill_attempted. It forms a continuity barrier: later events remain blocked until successful backfill or an explicit truncation notice. Persist that blocked state so a restart cannot accidentally cross the missing interval.

If retention no longer contains the requested interval, Truncated reports requested_first, oldest_available, and resume_cursor. Rebuild the application view from authoritative state or retained history, record the discontinuity, and continue from the declared resume point. Treat truncation as an explicit loss of continuity.

Pause, resume, and inspect health

OperationRequired fieldsUse
subscription.listscopeFind subscriptions visible to the authenticated owner.
subscription.healthscope, subscription_idInspect acknowledged progress, last delivery time, and pending backfill.
subscription.acknowledgescope, subscription_id, cursorPersist completed delivery progress.
subscription.pausescope, subscription_idStop delivery temporarily while preserving position.
subscription.resumescope, subscription_idContinue under current authorization and continuity controls.
subscription.deletescope, subscription_idTerminate delivery while retaining its audit record.

Health returns the target, last_acknowledged, last_delivery_at, and pending_backfill. The delivery timestamp is a decimal-string timestamp or null. Pending backfill reports the missing range, including truncated continuity over the subscription's own coordinates.

Revocation and restart safety

Session, capability, or tenant revocation stops the corresponding subscription. Durable termination distinguishes Deleted, SessionRevoked, CapabilityRevoked, and TenantRevoked. Session-bound access continues to require an authorized operation rather than relying on possession of a subscription identifier.

Restart restores definition, acknowledged position, unacknowledged deliveries, and continuity. Preserve the daemon store together with its tenant and session context. A corrupt or unavailable store refuses progress instead of silently resetting the cursor.

Separate notification from proof

An event may carry no receipt reference. A verified reference names its receipt and verification level with Paxeer as the settlement domain. Event arrival alone does not establish an economic outcome. For settlement-sensitive automation, retrieve the evidence and require the level your policy needs: sequencer signature, batch inclusion, state proof, finalized checkpoint, or settlement anchor.

Keep local approval and policy notifications distinguishable from protocol receipts. See Agents on Paxeer X for the write lifecycle and Agent runtime for capability, readiness, and recovery controls.

Reference: agent/schema/agent-api/stream.kvx; agent/crates/layerx-agentd/src/events/subscription.rs; agent/crates/layerx-agentd/tests/subscription.rs, w7_subscription_permit.rs; docs/wiki/AgentApi.md.
Paxeer X · System documentationBack to top ↑

Ask Paxeer X Docs

Answers from the documentation.

What would you like to know?

Ask a question, find a guide, or get help with your next step.

Enter to send · Shift+Enter for a new line