Unclassified
Capability Constitution
Status: SUPERSEDED / ABSORBED — historical subsystem constitution. Current authority: INTEGRATEWISE_ARCHITECTURE.md v2.2.
Scope: Canonical capability contracts, adapter resolution, execution behavior, and fallback policy.
Canonical Owner: IntegrateWise Platform
Last Verified: 2026-07-20
1. Purpose
This document defines how IntegrateWise declares, resolves, and executes business-intent capabilities.
The UI never binds to providers. The UI binds to capability contracts.
2. Contract
interface CapabilityContract {
id: CapabilityId;
title: string;
description: string;
category: CapabilityCategory;
risk: "low" | "medium" | "high" | "critical";
requiresApproval: boolean;
inputFields: readonly CapabilityInputField[];
}
3. Categories
| Category | Examples |
|---|---|
| crm | account.view, opportunity.update |
| support | ticket.create, ticket.escalate |
| messaging | message.send |
| email.send | |
| calendar | meeting.create |
| documents | document.upload |
| knowledge | knowledge.search |
| source_control | pull_request.create |
| project_management | issue.create |
| ci_cd | deployment.view |
| monitoring | incident.view |
| finance | invoice.approve |
| procurement | purchase_order.create |
| hr | hiring.open |
| marketing | campaign.create |
| identity | user.invite |
| ai | ai.summarize |
| data | report.generate |
4. Adapter Resolution
mock → workbench → provider
- mock: default fallback for demo/seed data.
- workbench: governed live actions in Gateway.
- provider: live external adapter.
No capability executes without an adapter resolution path.
5. Execution Behavior
- Validate intent and inputs against contract.
- Load context from Spine.
- Run pre-proposal governance.
- Execute steps or emit proposal.
- Emit events and side effects.
- Commit canonical state first.
- Queue sync independently.
6. Invariants
- Capability ids are business intent, not provider-specific.
- Every capability has a mock fallback behavior.
- Every write capability has a rollback path.
- The UI never references provider names in capability contracts.