Skip to main content

Contract Types

Governance contracts are typed agreements that define what actions one workspace can take toward another. Each contract type has a specific purpose, default permissions, and approval requirements.

Built-in Contract Types

MedicationRequest

For healthcare workspaces that need to query or update medication information across departments.

FieldValue
Allowed Actionsquery, delegate, message
Approval RequiredYes — physician sign-off
Typical SourcePharmacy
Typical TargetICU, Emergency, Inpatient
ComplianceHIPAA, Joint Commission

ComplianceReview

For workspaces that need to submit actions for compliance review before execution.

FieldValue
Allowed Actionsquery, delegate, review
Approval RequiredYes — compliance officer
Typical SourceAny department
Typical TargetCompliance, Legal, Executive
ComplianceSOX, MiFID II, SEC

DataQuery

For workspaces that need read-only access to another workspace's data connections.

FieldValue
Allowed Actionsquery, summarize
Approval RequiredNo — auto-approved
Typical SourceExecutive, Reporting
Typical TargetAnalytics, Data Engineering
ComplianceGeneral — scoped read access

McpToolAccess

For workspaces that need to call specific tools exposed by an MCP server connected to another workspace.

FieldValue
Allowed Actionstool_call
Approval RequiredConfigurable
Typical SourceAny workspace
Typical TargetWorkspace hosting the MCP server
ComplianceVaries by tool

AgentDelegation

For workspaces that need to delegate tasks to an external A2A-compatible agent connected to another workspace.

FieldValue
Allowed Actionsdelegate, message
Approval RequiredConfigurable
Typical SourceAny workspace
Typical TargetWorkspace hosting the A2A agent
ComplianceVaries by agent

Custom Contract Types

Organizations can define custom contract types that map to their specific governance requirements. Custom types inherit all cryptographic enforcement (HKDF keys, AES-256-GCM encryption, HMAC signing) automatically.

To create a custom contract type, specify the type field when creating a contract in the dashboard:

FieldDescription
typeA descriptive name (e.g., TradeExecution, PatientTransfer, IncidentEscalation)
allowedActionsArray of permitted operations
approvalRequiredBoolean — whether human approval is needed
prerequisitesArray of conditions (e.g., ["hipaa_trained", "level_3_clearance"])
escalationTargetWorkspace ID to route denials and failures to
expiresAtISO 8601 timestamp for automatic expiration

Contract Lifecycle

Created Pending Active Expired
│ │ │ │
▼ ▼ ▼ ▼
┌────────┐ ┌────────────┐ ┌──────────┐ ┌──────────┐
│ Draft │───▶│ Awaiting │───▶│ Active │───▶│ Expired │
│ │ │ Approval │ │ │ │ │
└────────┘ └────────────┘ └────┬─────┘ └──────────┘
│ │
│ Denied │ Revoked
▼ ▼
┌──────────┐ ┌──────────┐
│ Rejected │ │ Revoked │
└──────────┘ └──────────┘

Key lifecycle events:

  • Draft → Pending: Contract submitted for approval by the source workspace admin
  • Pending → Active: Approved by the target workspace admin (or auto-approved for some types)
  • Active → Expired: Contract reaches its expiresAt timestamp
  • Active → Revoked: Manually revoked by either workspace admin or org owner
  • Pending → Rejected: Target workspace admin denies the contract

:::warning Revocation Is Immediate When a contract is revoked, its HKDF-derived key is immediately invalidated. Any in-flight requests using the old key will fail authentication. There is no grace period. :::