Skip to main content
PRSL-AI Ecosystem — Privacy by Default, On-Device First

PRSL-AI Ecosystem

Developer Founder · Platform Infrastructure

PRSL-AI Developer Portal

Extend the PRSL-AI Ecosystem with independent Founders, modular AI provider adapters, MCP tools, webhooks, and agent extensions without modifying PRSL-AI Core AI.

API & SDK Interfaces

Strict TypeScript contracts using dependency inversion; zero vendor SDK leaks into core logic.

Founder Development

Scaffold independent domains with manifest IDs, explicit dependencies, and versioned interfaces.

Module & Capability Registration

Declare capabilities with AVAILABLE, EXPERIMENTAL, or PLANNED readiness states.

Provider Adapters

Implement IProviderAdapter for local runtimes, Apple Foundation Models, cloud models, or custom servers.

Tool & MCP Integrations

Expose typed Model Context Protocol tools behind Privacy & Security Founder least-privilege scopes.

Webhooks, Agent Extensions & Versioning

Cryptographically signed event hooks, grounded Agent PRSL-AI extensions, and semantic contract versions.

Live HTTP Integration APIs

External iRiel & Ecosystem Endpoints

Stateless, CORS-enabled public endpoints exposing PRSL-AI Ecosystem status, 17-language i18n bundles, and multi-criteria Core AI routing evaluation with automatic PII redaction.

GET

/api/public/v1/status

Operational health, canonical principles, 17 supported locales, and router invariants.

GET

/api/public/v1/i18n?locale=pt-BR

Fetch any of the 17 language packs (or ?locale=all) with RTL metadata for external iRiel surfaces.

POST

/api/public/v1/core-ai/evaluate

Evaluate multi-criteria routing (110 pts / threshold 60), PII sanitization, and DecisionReceipt generation.

Core TypeScript Architecture Contracts

Founder Development

Founder Manifest Contract

Register an independent domain Founder without modifying PRSL-AI Core AI.

export interface IFounderManifest {
  readonly id: string;
  readonly slug: string;
  readonly name: string;
  readonly domain: string;
  readonly version: string;
  readonly status: "AVAILABLE" | "EXPERIMENTAL" | "PLANNED";
  readonly interfaces: readonly string[];
  readonly dependencies: readonly string[];
}

Provider Adapters

Provider-Agnostic Adapter Contract

Uniform abstraction isolating Intelligence Router from vendor SDKs.

export interface IProviderAdapter<TConfig = unknown> {
  readonly adapterId: string;
  readonly privacyTier: "strict-local" | "private-cloud" | "policy-gated-external";
  readonly capabilities: readonly CapabilityTag[];
  checkAvailability(): Promise<{ ready: boolean; environment: ExecutionEnvironment }>;
  execute(request: RoutedIntentPayload, config: TConfig): Promise<ProvenanceResult>;
}

MCP Integrations

MCP Tool & Capability Registration

Expose external systems as least-privilege tools with explicit policy scopes.

export interface IMcpToolRegistration {
  readonly toolId: string;
  readonly founderOwner: string;
  readonly requiredScopes: readonly string[];
  readonly privacyBoundary: "local-only" | "minimized-payload" | "explicit-consent";
  readonly inputSchema: Record<string, unknown>;
}

Webhooks & Agent Extensions

Signed Webhook & Agent Extension Contract

Verify event authenticity and register read-only or authorized agent extensions.

export interface IAgentExtension {
  readonly extensionId: string;
  readonly role: "documentation" | "navigation" | "authorized-capability";
  readonly requiresConsent: boolean;
  canHandle(intent: string): boolean;
  resolve(context: ExtensionContext): Promise<ExtensionResponse>;
}

Engineering Principles — Prefer

  • + Clear module boundaries & explicit TypeScript interfaces
  • + Dependency inversion & provider abstraction
  • + Configuration over hard-coding
  • + Secure defaults & least-privilege access
  • + Observable services & versioned contracts
  • + Deterministic behavior & graceful fallbacks
  • + Platform & OS independence

Architectural Anti-Patterns — Avoid

  • - Hard-coding a single AI provider into PRSL-AI Core AI
  • - Mixing provider SDK logic with business or orchestration logic
  • - Binding context infrastructure to one vendor model
  • - Treating memory as raw, unversioned chat transcripts
  • - Coupling the ecosystem to a single operating system or device
  • - Storing sensitive data without an explicit privacy boundary
  • - Creating circular or unnecessary dependencies between Founders