Architecture Reference
Platform Architecture
Human
Connects integrations, grants permissions, spawns sessions, approves escalations
Integration Store
Org + workspace credentials
Inherits org integrations + workspace-level
Platform Gateway
Every action flows through here — the single enforcement point
Permission enforcement
Checks session permissions against namespace:verb:resource on every request
Credential injection
Retrieves real tokens from store, injects into outbound requests
Audit logging
Every request logged with session, permission used, cost, duration
Real-time revocation
Permissions can be revoked mid-session — takes effect on next request
Action
Something I can do (via gateway)
Three types:
Integration
slack:send
Compute
summarize
Paid
web-scrape
Discovered by intent via oc find
Permission
What I'm allowed to do
namespace:verb:resource
slack:send:#engineering
github:read:acme/api/*
github:merge:* (approve)
Enforced at gateway, not client-side
Trust Escalation
Something true (may become stale)
confidence: 90% · 2w ago
Something that happened (immutable)
DB migration missing"
How to do something (learned)
deploy" · confidence: 85%
Task: "Check for SQL injection"
Permission: github:read:acme/api/pulls/456
Budget: $0.50 max · 60s timeout
Routes through same gateway.
Gateway knows sub-session has narrower scope.
Trust chain only narrows, never widens.
Trust is the default. The gateway is the verification infrastructure.
api.slack.com
api.github.com
api.stripe.com
+ any integration
Workspace scopes: agents, permissions, memory, sessions. Org = workspace by default.
Components
Key Relationships
Organization —contains→ Workspaces (org = workspace by default)
Workspace —inherits→ Org-level integrations + own integrations
Session —calls→ Gateway —proxies→ External API
Gateway —checks→ Permission —before→ every Action
Memory —scoped to→ org > workspace > project > user > session
Sub-session —uses same→ Gateway (narrower scope)