Intent Compilation Engine (ICE)
The Intent Compilation Engine transforms cross-workspace AI communication from natural language into compiled, deterministic operations that execute without LLM inference on the receiving workspace.
Why ICE?
| Metric | Natural Language Bridge | Intent Bridge (ICE) |
|---|---|---|
| Receiver AI inference | Full LLM call (~4,300 tokens) | Zero |
| Execution model | Non-deterministic | Deterministic |
| Response time | 2-8 seconds | ~15ms (cached: <1ms) |
| Token cost per call | ~$0.065 | $0 |
| Audit trail | None | Cryptographic execution proof |
How It Works
When Workspace A needs to query data or execute a tool on Workspace B:
- Workspace A's AI calls the
intent_bridgetool with structured parameters - Intent Bridge compiles the operation into a signed
IntentToken(HMAC-SHA256 + optional AES-256-GCM) - Token is sent via JSON-RPC
intent/executeto Workspace B's/a2aendpoint - Workspace B verifies the signature, checks the nonce (replay prevention), and validates the contract
- Intent Executor dispatches directly to the target tool — no LLM inference
- Execution Proof is generated (SHA-256 hashes of input/output, policy checks applied)
- Result is signed and returned to Workspace A
Intent Operations
ICE supports five operation types:
| Operation | Description | Example |
|---|---|---|
query | Execute a structured data query | SELECT revenue FROM sales WHERE year = 2024 |
tool_call | Invoke a specific tool with arguments | read_file({ path: '/data/report.md' }) |
discover | List workspace capabilities | Available tools, tables, data sources |
aggregate | Multi-step pipeline | Query → transform → aggregate (auto-optimized by SQL fusion) |
capability | Invoke a published workspace capability by name | risk.calculateVar |
Note:
intent_bridgeautomatically wakes sleeping workspaces. If the target is scaled to zero, the caller scales it up via K8s API and retries transparently.
SQL Fusion Compiler
When an aggregate intent contains multiple queries against the same table, the SQL fusion compiler merges them:
-- Before fusion: 3 separate queries
SELECT revenue FROM sales WHERE year = 2024
SELECT dept FROM sales WHERE year = 2024
SELECT region FROM sales WHERE year = 2024
-- After fusion: 1 optimized query
SELECT revenue, dept, region FROM sales WHERE year = 2024 LIMIT 1000
The compiler also:
- Deduplicates identical intents in a batch
- Injects LIMIT on queries without one (safety net: LIMIT 1000)
- Reports optimization stats in the response
Execution Proofs
Every compiled execution produces a cryptographic proof:
{
"inputHash": "sha256(canonical intent)",
"outputHash": "sha256(canonical result)",
"toolName": "query_bigquery",
"executionMs": 142,
"contractId": "contract-finance-001",
"policyChecks": [
{ "type": "sql_safety", "passed": true },
{ "type": "action_auth", "passed": true, "detail": "query:query_bigquery authorized" }
],
"proofSignature": "hmac-sha256(...)"
}
This provides audit-grade traceability: "this result came from this computation under this policy."
Intent Cache
Identical intents within the cache TTL (default: 60 seconds) return cached results instantly:
- Cache key: SHA-256 of canonical JSON
- Max size: 1,000 entries with LRU eviction
- Non-cacheable:
discoverandaggregateoperations are never cached - Success only: Only successful results are cached
Security
ICE uses the same HKDF key derivation tree as governance contracts:
ORG_MASTER_SECRET
└─ HKDF(contractId, version) → contractKey
├─ HMAC-SHA256(token) → signature
├─ AES-256-GCM(intent) → encrypted payload
├─ HMAC-SHA256(result) → result signature
├─ HMAC-SHA256(proof) → proof signature
└─ Nonce dedup → replay prevention (10-min window)
Defense in depth:
- Authentication — HMAC signature proves the sender has the contract key
- Integrity — Signature covers the full canonical token
- Confidentiality — Optional AES-256-GCM encryption
- Replay prevention — Unique nonce per token
- Expiry — Configurable TTL (default 5 minutes)
- Authorization — Contract
allowedActionsgate - SQL safety — Blocklist for destructive SQL operations
When to Use ICE vs. Natural Language Bridges
| Use Case | Use intent_bridge | Use bridge_workspace |
|---|---|---|
| Query specific data | ✅ | |
| Execute a known tool | ✅ | |
| Discover capabilities | ✅ | |
| Multi-step data pipeline | ✅ | |
| Creative analysis | ✅ | |
| Subjective questions | ✅ | |
| Open-ended conversation | ✅ |
Plan Availability
| Plan | Natural Language Bridges | Intent Bridges (ICE) |
|---|---|---|
| Community | ❌ | ❌ |
| Team | ✅ Preset contracts | ✅ Preset contracts |
| Business | ✅ Custom contracts | ✅ Custom contracts |
| Enterprise | ✅ Custom contracts | ✅ Custom contracts |