Architecture & security

Constal limits authority with immutable identity, explicit boundaries, and least-privilege execution.

Authority boundaries

ConcernGuarantee
Agents and ChannelsExecute one pinned immutable revision
Sessions and RunsPreserve ordered work and durable history
ResourcesExpose only declared operations allowed by Policy
CredentialsRemain encrypted and unavailable to Agent code
AnalyticsObserve workflows without becoming workflow authority
SandboxesIsolate code and restrict external access

Security invariants

  • Agent and Channel code receives no ambient privileged storage, secret, analytics, or provider authority.
  • Identity is normalized before execution; Agent code sees only safe customer references.
  • Deployments, Policies, Resources, and Tools are pinned into Run authority.
  • Every external operation crosses authorization, durable recording, and effect-aware recovery.
  • Credential material is supplied only to the authorized integration that consumes it.

Determinism and failure

Canonical hashes bind accepted definitions and inputs to exact semantics. Stale execution cannot change acknowledged truth. Direct nondeterminism and arbitrary network access are denied in managed execution; use journaled Resource operations. Stable SDK errors distinguish Policy failure, unknown outcome, lost execution, invalid binding, and related recovery cases.