Control Plane & Multi-Criteria Router
Intelligence Router
Composite scoring formula: S = (Privacy × 3) + (Capability × 3) + (Context × 2) + (Latency × 2) + (Cost × 1) (max 110 pts, external cutoff ≥ 60 pts). External providers are scored 0 on RESTRICTED or HIGHLY_CONFIDENTIAL payloads without cloud consent, enforcing local execution or iRiel Presence.
Multi-Criteria Routing Simulator
Test PII redaction, privacy eligibility gates, threshold 60, the iRiel Gemini Kill-Switch, and offline graceful degradation. No external AI API call is fabricated.
Stage 3 · MinimalContext Projection (2 redaction(s))
Summarize quarterly architecture brief for [REDACTED_EMAIL] using token [REDACTED_API_KEY]
Digest: fnv1a-678bebad · Stripped: openai_key, email_pii
DecisionReceipt & Candidate Scoring
CANONICAL_V5_MULTICRITERIA_THRESHOLD_60- Selected Route
- Local On-Device / Qwen (WebGPU / Edge)
- Composite Score
- 95 / 110
- Fallback Queue
- iriel-gemini → anthropic-claude
- Decision ID / Fallbacks
- dec-8bebad-mxahbch6 · 0 failover(s)
Adapter Score Matrix
Task 'reasoning' unsupported
Adapter currently unavailable
Route 'local-qwen' cleared threshold 60 with retry budget 3 and 60s circuit breaker. Session memory stays ephemeral unless signed for LONG_TERM.
Typed Skills Catalog (src/lib/pi/skills.ts)
Resolves institutional navigation, policy lookups, and deterministic workflows without invoking any LLM.
Strips API keys, credentials, local file paths, and PII before any routing or adapter invocation.
Evaluates 110-point weighted scores, enforces threshold 60, and issues auditable DecisionReceipts.
Dispatches sanitized ephemeral payloads to authorized adapters under strict circuit breakers and Kill-Switch protection.
Detects working language across 17 supported locales (including Arabic RTL) and enforces canonical brand concordance.
MCP Tools Registry (src/lib/pi/tools.ts)
Reads versioned Founders, entities, functions, and Canonical v5 architectural contracts locally.
prsl-core-mcp · scope: read-only
Captures and restores local SESSION and WORKING context snapshots without cloud synchronization.
prsl-context-mcp · scope: local-write
Verifies cryptographic @iriel identity sessions via WebAuthn/Passkey in Phase 4.
iriel-identity-mcp · scope: consent-gated
Scoped least-privilege connector for @iriel iMail synchronization scheduled for Phase 4.
iriel-imail-mcp · scope: consent-gated
Provider-Independent Adapter Contracts (9)
Local & On-Device Runtime Adapter
Preferred first choice under strict local privacy policies; requires a local runtime daemon or native model host.
Browser Local Deterministic Engine
Active in this web platform for deterministic intent parsing, policy checks, and local registry lookup—no external network call.
Apple Foundation Models Adapter
Optional Apple Services Founder integration for supported Apple platforms; not a core architectural dependency.
Apple Intelligence & Private Cloud Compute
Optional Apple Services integration utilizing Private Cloud Compute where applicable and explicitly authorized.
OpenAI Provider Adapter
External cloud adapter gated by Privacy & Security Founder policy; not connected in this browser-only environment.
Google Gemini Adapter
External provider adapter contract supporting multimodal and long-context workloads under explicit policy consent.
Google Cloud Vertex AI Adapter
Enterprise cloud adapter contract with regional data-residency policy metadata.
Anthropic Claude Adapter
External reasoning and coding adapter contract; strictly optional and never hard-coded into Core AI.
Custom / Self-Hosted Model Adapter
Extensible contract for enterprise, laboratory, or future AI provider implementations.
Multi-Environment Intelligence & Hardware Backends
Execution Environments (5)
Active institutional platform runtime executing deterministic routing simulation, registries, i18n, and accessibility controls locally.
CPU thread count pending browser probe · Web Workers check pending · Standard context
Local workstation daemon for offline model hosts, file indexing, and local MCP services (not connected to this browser session).
Local IPC Bridge (Planned) · Offline Model Host Contract (Planned)
Native mobile/desktop runtime for Apple Foundation Models, CoreML, and OS-level App Intents (requires native iRiel client).
Native OS Intents (Planned) · On-Device Inference Adapter (Planned)
User-owned or institutional private server hosting custom models and organization MCP tools.
Self-Hosted Model Endpoint Contract (Planned) · Federated Audit Ledger (Planned)
Optional policy-gated external AI providers and Private Cloud Compute envelopes—never connected without explicit configuration.
Policy-Gated External Providers (Planned) · Private Cloud Compute Contract (Planned)
Acceleration Backends
Standard JS runtime
Active for deterministic browser orchestration UI, search indexing, and routing simulation.
Awaiting browser probe
API presence is probed honestly; no GPU shader execution or local LLM weights are fabricated.
Not accessible from browser sandbox
Targeted via Local or Remote Server runtime adapters outside the web browser.
Requires native Apple Services Founder client
Optional native hardware acceleration via Apple Foundation Models adapter.
Contract-defined (Vulkan / Metal / NPU / ROCm)
Extensible hardware abstraction so future compute backends plug in without core rewrites.
