/** * tibetclaw/orchestrator — Trust-First Agent Orchestrator * * Wires together the three pillars: * 1. TrustKernel — FIR/A behavioral trust * 2. ProvenanceChain — TIBET tokens * 3. SNAFTFirewall — Semantic firewall * * Every agent action follows: * trust.check → firewall.check → execute → provenance.record → trust.update * * Standards: * IETF draft-vandemeent-tibet-provenance-00 * IETF draft-vandemeent-jis-identity-00 * OWASP LLM Top 10 */ import { TrustKernel, TrustScore } from "./trust"; import { ProvenanceChain, TIBETToken } from "./provenance"; import { SNAFTFirewall, FirewallDecision } from "./firewall"; export declare enum TaskStatus { SUCCESS = "success", FAILED = "failed", BLOCKED = "blocked", UNTRUSTED = "untrusted", ERROR = "error" } export interface AgentConfig { agentId: string; handler: (task: unknown) => unknown | Promise; description: string; initialTrust: number; allowedActions?: string[]; metadata: Record; } export interface TaskResult { status: TaskStatus; output: unknown; error: string | null; agentId: string | null; tibetToken: TIBETToken | null; trustScore: TrustScore | null; firewallDecision: FirewallDecision | null; duration: number; success: boolean; } export declare class Orchestrator { readonly trust: TrustKernel; readonly firewall: SNAFTFirewall; readonly provenance: ProvenanceChain; private agents; private results; constructor(options?: { trustKernel?: TrustKernel; firewall?: SNAFTFirewall; provenance?: ProvenanceChain; }); /** * Register an agent with the orchestrator. */ register(agentId: string, handler: (task: unknown) => unknown | Promise, options?: { description?: string; initialTrust?: number; allowedActions?: string[]; metadata?: Record; }): AgentConfig; /** * Execute a task through the trust-first pipeline. */ run(agentId: string, task: unknown, options?: { intent?: string; context?: Record; dependencies?: string[]; }): Promise; /** Get all agent trust scores as a plain object. */ trustScores(): Record; /** Is the provenance chain intact? */ get chainVerified(): boolean; /** All task results. */ getResults(): TaskResult[]; private onAgentReset; private onAgentBan; } //# sourceMappingURL=orchestrator.d.ts.map