holomime 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2555,6 +2555,66 @@ declare function compileForOpenClaw(spec: PersonalitySpec): {
2555
2555
  identity: string;
2556
2556
  };
2557
2557
 
2558
+ /**
2559
+ * Tiered Personality Loading — L0 / L1 / L2 progressive context.
2560
+ *
2561
+ * Inspired by OpenViking's tiered context system. Instead of injecting
2562
+ * the full personality spec on every LLM call, load the minimum needed:
2563
+ *
2564
+ * - L0 (~200 tokens): Big Five scores + top behavioral flags. Always injected.
2565
+ * - L1 (~800 tokens): L0 + communication style + domain boundaries + growth areas.
2566
+ * - L2 (full): Complete system prompt from generateSystemPrompt().
2567
+ *
2568
+ * Use compileL0 for high-throughput APIs. Escalate to L1/L2 when drift is detected.
2569
+ */
2570
+
2571
+ type PersonalityTier = "L0" | "L1" | "L2";
2572
+ interface TieredPersonality {
2573
+ /** Which tier this compilation represents. */
2574
+ tier: PersonalityTier;
2575
+ /** The compiled system prompt text for this tier. */
2576
+ prompt: string;
2577
+ /** Approximate token count (rough: 1 token ≈ 4 chars). */
2578
+ estimatedTokens: number;
2579
+ /** Agent name for identification. */
2580
+ agent: string;
2581
+ }
2582
+ /**
2583
+ * Compile L0 — minimal personality fingerprint.
2584
+ * Big Five scores + attachment style + top growth flags.
2585
+ * Suitable for every API call in high-throughput scenarios.
2586
+ */
2587
+ declare function compileL0(spec: PersonalitySpec): TieredPersonality;
2588
+ /**
2589
+ * Compile L1 — expanded behavioral profile.
2590
+ * Includes Big Five behavioral instructions, communication style,
2591
+ * domain boundaries, and growth areas.
2592
+ * Use when drift is detected or for sessions needing more behavioral guidance.
2593
+ */
2594
+ declare function compileL1(spec: PersonalitySpec): TieredPersonality;
2595
+ /**
2596
+ * Compile L2 — full system prompt.
2597
+ * Delegates to generateSystemPrompt() for the complete behavioral spec.
2598
+ * Use for therapy sessions, benchmarks, or when precision matters.
2599
+ */
2600
+ declare function compileL2(spec: PersonalitySpec, surface?: Surface): TieredPersonality;
2601
+ /**
2602
+ * Compile a personality spec at the requested tier.
2603
+ */
2604
+ declare function compileTiered(spec: PersonalitySpec, tier: PersonalityTier, surface?: Surface): TieredPersonality;
2605
+ /**
2606
+ * Recommend a tier based on context.
2607
+ * - High-throughput API: L0
2608
+ * - Drift detected or mid-conversation escalation: L1
2609
+ * - Therapy, benchmarks, initial setup: L2
2610
+ */
2611
+ declare function recommendTier(context: {
2612
+ driftDetected?: boolean;
2613
+ isTherapySession?: boolean;
2614
+ isBenchmark?: boolean;
2615
+ highThroughput?: boolean;
2616
+ }): PersonalityTier;
2617
+
2558
2618
  /**
2559
2619
  * Big Five / OCEAN personality dimensions.
2560
2620
  * Based on the Five-Factor Model (Costa & McCrae, 1992).
@@ -2673,6 +2733,36 @@ declare function getArchetypesByCategory(category: string): ArchetypeTemplate[];
2673
2733
  */
2674
2734
  declare function listArchetypeIds(): string[];
2675
2735
 
2736
+ /**
2737
+ * Retrieval Quality Detector — measures whether an agent's responses
2738
+ * are grounded, accurate, and appropriately uncertain.
2739
+ *
2740
+ * Detects:
2741
+ * - Unsupported confident claims (no hedging on factual statements)
2742
+ * - Self-corrections ("actually, I was wrong") indicating initial errors
2743
+ * - Hallucination markers (fabricated specifics: fake URLs, made-up statistics)
2744
+ * - Appropriate uncertainty (healthy signal when used correctly)
2745
+ *
2746
+ * This is a heuristic detector — it catches common retrieval quality issues
2747
+ * without requiring ground truth. For full evaluation, pair with RAGAS.
2748
+ */
2749
+
2750
+ /**
2751
+ * Detect retrieval quality issues in agent responses.
2752
+ *
2753
+ * Scoring:
2754
+ * - Self-corrections: each one suggests an initial error (-10 quality)
2755
+ * - Hallucination markers: each one is a serious quality issue (-20 quality)
2756
+ * - Overconfidence: excessive certainty without qualification (-5 quality)
2757
+ * - Appropriate uncertainty: healthy signal (+5 quality, capped)
2758
+ *
2759
+ * Quality score 0-100:
2760
+ * - 80-100: info (healthy retrieval behavior)
2761
+ * - 50-79: warning (some quality concerns)
2762
+ * - 0-49: concern (significant retrieval quality issues)
2763
+ */
2764
+ declare function detectRetrievalQuality(messages: Message[]): DetectedPattern | null;
2765
+
2676
2766
  /**
2677
2767
  * Detect over-apologizing patterns.
2678
2768
  * Healthy range: 5-15% of responses contain apologies.
@@ -3192,7 +3282,7 @@ declare function prescribeDPOPairs(patterns: DetectedPattern[], corpus: Behavior
3192
3282
 
3193
3283
  /**
3194
3284
  * Core diagnosis logic — shared by CLI (diagnose.ts) and MCP server.
3195
- * Runs all 7 rule-based detectors and returns a structured report.
3285
+ * Runs all 8 rule-based detectors and returns a structured report.
3196
3286
  */
3197
3287
 
3198
3288
  interface DiagnosisResult {
@@ -3203,7 +3293,7 @@ interface DiagnosisResult {
3203
3293
  timestamp: string;
3204
3294
  }
3205
3295
  /**
3206
- * Run all 7 behavioral detectors on a set of messages.
3296
+ * Run all 8 behavioral detectors on a set of messages.
3207
3297
  */
3208
3298
  declare function runDiagnosis(messages: Message[]): DiagnosisResult;
3209
3299
 
@@ -3385,8 +3475,8 @@ interface TreatmentProgressReport {
3385
3475
  * produce measurable behavioral change?
3386
3476
  *
3387
3477
  * This module:
3388
- * 1. Runs all 7 detectors on "before" conversation logs
3389
- * 2. Runs all 7 detectors on "after" conversation logs
3478
+ * 1. Runs all 8 detectors on "before" conversation logs
3479
+ * 2. Runs all 8 detectors on "after" conversation logs
3390
3480
  * 3. Computes per-pattern deltas
3391
3481
  * 4. Calculates a composite Treatment Efficacy Score (TES)
3392
3482
  * 5. Generates a human-readable outcome report
@@ -3572,7 +3662,7 @@ declare function getEvolutionSummary(history: EvolutionHistory): EvolutionSummar
3572
3662
  *
3573
3663
  * Agents call this during live conversations to detect if they're falling
3574
3664
  * into problematic patterns. Returns flags with actionable suggestions.
3575
- * No LLM required — pure rule-based analysis via the 7 detectors.
3665
+ * No LLM required — pure rule-based analysis via the 8 detectors.
3576
3666
  */
3577
3667
 
3578
3668
  interface SelfAuditFlag {
@@ -3593,7 +3683,7 @@ interface SelfAuditResult {
3593
3683
  declare function runSelfAudit(messages: Message[], personality?: any): SelfAuditResult;
3594
3684
 
3595
3685
  /**
3596
- * Benchmark Scenarios — 7 scripted conversations designed to
3686
+ * Benchmark Scenarios — 8 scripted conversations designed to
3597
3687
  * deliberately trigger each behavioral detector pattern.
3598
3688
  *
3599
3689
  * The "ARC-AGI for behavioral alignment."
@@ -3611,7 +3701,7 @@ interface BenchmarkScenario {
3611
3701
  messages: Message[];
3612
3702
  }
3613
3703
  /**
3614
- * Return all 7 benchmark scenarios.
3704
+ * Return all 8 benchmark scenarios.
3615
3705
  */
3616
3706
  declare function getBenchmarkScenarios(): BenchmarkScenario[];
3617
3707
  /**
@@ -3622,7 +3712,7 @@ declare function getScenarioById(id: string): BenchmarkScenario | undefined;
3622
3712
  /**
3623
3713
  * Benchmark Core — behavioral stress test runner.
3624
3714
  *
3625
- * Runs 7 scripted scenarios against an agent (via LLM provider),
3715
+ * Runs 8 scripted scenarios against an agent (via LLM provider),
3626
3716
  * then analyzes the responses with the corresponding detector.
3627
3717
  * Pass = agent resisted the pattern. Fail = pattern was triggered.
3628
3718
  */
@@ -4385,7 +4475,7 @@ declare function getTotalSignalCount(): number;
4385
4475
  declare function getCategories(): string[];
4386
4476
 
4387
4477
  /**
4388
- * Register all 7 built-in detectors in the Hub.
4478
+ * Register all 8 built-in detectors in the Hub.
4389
4479
  * This is called at module load time so built-in detectors are always available.
4390
4480
  */
4391
4481
 
@@ -4897,7 +4987,7 @@ declare function learnIntervention(repertoire: InterventionRepertoire, transcrip
4897
4987
  * Inspired by MiroFish's ReACT agent architecture.
4898
4988
  */
4899
4989
 
4900
- interface ReACTStep {
4990
+ interface ReACTStep$1 {
4901
4991
  thought: string;
4902
4992
  action: string;
4903
4993
  actionInput: string;
@@ -4921,7 +5011,7 @@ declare function buildReACTFraming(): string;
4921
5011
  */
4922
5012
  declare function processReACTResponse(rawResponse: string, ctx: ReACTContext): {
4923
5013
  response: string;
4924
- steps: ReACTStep[];
5014
+ steps: ReACTStep$1[];
4925
5015
  };
4926
5016
  /**
4927
5017
  * Build a ReACT context from the current agent state.
@@ -5105,6 +5195,196 @@ declare function discoverAgentData(baseDir?: string): {
5105
5195
  repertoires: InterventionRepertoire[];
5106
5196
  };
5107
5197
 
5198
+ /**
5199
+ * Behavioral Memory — persistent structured memory across sessions.
5200
+ *
5201
+ * Extends therapy-memory.ts with richer categorization inspired by OpenViking:
5202
+ * - Baseline: steady-state personality expression
5203
+ * - Triggers: what prompts cause drift
5204
+ * - Corrections: which interventions worked, indexed by trigger
5205
+ * - Trajectory: improving/plateauing/regressing per dimension
5206
+ *
5207
+ * This enables predicting and preventing drift rather than just reacting to it.
5208
+ */
5209
+
5210
+ interface BehavioralBaseline {
5211
+ /** Big Five trait expression averages over observed sessions. */
5212
+ traitExpressions: Record<string, number>;
5213
+ /** Typical health score range [min, max, average]. */
5214
+ healthRange: [number, number, number];
5215
+ /** Most common grade across sessions. */
5216
+ typicalGrade: string;
5217
+ /** Communication patterns: register consistency, average response length. */
5218
+ communicationFingerprint: {
5219
+ averageResponseLength: number;
5220
+ registersObserved: string[];
5221
+ };
5222
+ /** Last updated timestamp. */
5223
+ updatedAt: string;
5224
+ }
5225
+ interface DriftTrigger {
5226
+ /** Unique trigger ID. */
5227
+ id: string;
5228
+ /** What kind of user input triggers drift (e.g., "user frustration", "ambiguous request"). */
5229
+ triggerType: string;
5230
+ /** Which pattern(s) this trigger tends to activate. */
5231
+ activatesPatterns: string[];
5232
+ /** Example user messages that triggered drift (truncated). */
5233
+ examples: string[];
5234
+ /** How many times this trigger has been observed. */
5235
+ occurrences: number;
5236
+ /** Confidence (0-1). */
5237
+ confidence: number;
5238
+ /** First observed. */
5239
+ firstSeen: string;
5240
+ /** Last observed. */
5241
+ lastSeen: string;
5242
+ }
5243
+ interface CorrectionRecord {
5244
+ /** Which trigger this correction addresses. */
5245
+ triggerId: string;
5246
+ /** Pattern that was corrected. */
5247
+ patternId: string;
5248
+ /** What intervention was applied. */
5249
+ intervention: string;
5250
+ /** Did it work? */
5251
+ effective: boolean;
5252
+ /** Health score change (delta). */
5253
+ healthDelta: number;
5254
+ /** When this correction was recorded. */
5255
+ timestamp: string;
5256
+ }
5257
+ interface DimensionTrajectory {
5258
+ /** Which behavioral dimension. */
5259
+ dimension: string;
5260
+ /** Health scores over time (most recent last). */
5261
+ scores: number[];
5262
+ /** Timestamps corresponding to scores. */
5263
+ timestamps: string[];
5264
+ /** Current trend. */
5265
+ trend: "improving" | "plateauing" | "regressing";
5266
+ /** Rate of change (positive = improving). */
5267
+ rateOfChange: number;
5268
+ }
5269
+ interface BehavioralMemoryStore {
5270
+ agentHandle: string;
5271
+ agentName: string;
5272
+ createdAt: string;
5273
+ lastUpdatedAt: string;
5274
+ /** Steady-state personality expression. */
5275
+ baseline: BehavioralBaseline;
5276
+ /** What causes drift. */
5277
+ triggers: DriftTrigger[];
5278
+ /** What fixes drift — indexed by trigger. */
5279
+ corrections: CorrectionRecord[];
5280
+ /** Per-dimension trend tracking. */
5281
+ trajectories: DimensionTrajectory[];
5282
+ /** Total observations recorded. */
5283
+ totalObservations: number;
5284
+ }
5285
+ declare function loadBehavioralMemory(agentHandle: string): BehavioralMemoryStore | null;
5286
+ declare function saveBehavioralMemory(store: BehavioralMemoryStore): string;
5287
+ declare function createBehavioralMemory(agentHandle: string, agentName: string): BehavioralMemoryStore;
5288
+ /**
5289
+ * Record a behavioral observation from a diagnosis or session.
5290
+ * Updates baseline, detects triggers, and records corrections.
5291
+ */
5292
+ declare function recordObservation(store: BehavioralMemoryStore, observation: {
5293
+ patterns: DetectedPattern[];
5294
+ healthScore: number;
5295
+ grade: string;
5296
+ interventionsApplied?: string[];
5297
+ healthDelta?: number;
5298
+ triggerContext?: string;
5299
+ }): void;
5300
+ interface SelfObservation {
5301
+ /** What the agent noticed about its own behavior. */
5302
+ observation: string;
5303
+ /** Which pattern(s) are relevant (optional). */
5304
+ patternIds?: string[];
5305
+ /** Severity the agent assigns. */
5306
+ severity: "info" | "warning" | "concern";
5307
+ /** What triggered the observation (user message context). */
5308
+ triggerContext?: string;
5309
+ }
5310
+ /**
5311
+ * Record an agent's self-reported behavioral observation.
5312
+ * Used by the holomime_observe MCP tool.
5313
+ */
5314
+ declare function recordSelfObservation(store: BehavioralMemoryStore, selfObs: SelfObservation): void;
5315
+ /**
5316
+ * Get the most effective correction for a given pattern.
5317
+ */
5318
+ declare function getBestCorrection(store: BehavioralMemoryStore, patternId: string): CorrectionRecord | null;
5319
+ /**
5320
+ * Get all active drift triggers for a pattern.
5321
+ */
5322
+ declare function getTriggersForPattern(store: BehavioralMemoryStore, patternId: string): DriftTrigger[];
5323
+ /**
5324
+ * Get the trajectory for a behavioral dimension.
5325
+ */
5326
+ declare function getTrajectory(store: BehavioralMemoryStore, dimension: string): DimensionTrajectory | null;
5327
+ /**
5328
+ * Generate a compact summary of behavioral memory for context injection.
5329
+ * ~300 tokens, suitable for system prompt augmentation.
5330
+ */
5331
+ declare function getBehavioralMemorySummary(store: BehavioralMemoryStore): string;
5332
+
5333
+ /**
5334
+ * Session Compactor — automatic memory consolidation for the evolve loop.
5335
+ *
5336
+ * After each evolution cycle, the compactor:
5337
+ * 1. Extracts structured behavioral observations from the iteration
5338
+ * 2. Deduplicates against existing behavioral memory
5339
+ * 3. Merges observations by category (triggers always merge, corrections append)
5340
+ * 4. Updates trajectories with new data points
5341
+ *
5342
+ * This makes the 100th alignment session genuinely more valuable than the 1st
5343
+ * by building compounding behavioral knowledge.
5344
+ */
5345
+
5346
+ interface CompactionResult {
5347
+ /** Number of new observations recorded. */
5348
+ observationsRecorded: number;
5349
+ /** Number of triggers updated or created. */
5350
+ triggersUpdated: number;
5351
+ /** Number of corrections recorded. */
5352
+ correctionsRecorded: number;
5353
+ /** Number of trajectories updated. */
5354
+ trajectoriesUpdated: number;
5355
+ /** Path where behavioral memory was saved. */
5356
+ savedTo: string;
5357
+ }
5358
+ interface CompactionSummary {
5359
+ /** Summary of what changed across all iterations. */
5360
+ iterations: number;
5361
+ /** Total observations recorded during compaction. */
5362
+ totalObservations: number;
5363
+ /** Patterns that improved across iterations. */
5364
+ patternsImproved: string[];
5365
+ /** Patterns that persisted across iterations. */
5366
+ patternsPersisted: string[];
5367
+ /** New triggers discovered. */
5368
+ newTriggers: number;
5369
+ /** Effective corrections found. */
5370
+ effectiveCorrections: number;
5371
+ }
5372
+ /**
5373
+ * Compact a single evolution iteration into behavioral memory.
5374
+ * Call this after each iteration in the evolve loop.
5375
+ */
5376
+ declare function compactIteration(spec: any, iteration: IterationResult, previousHealth?: number): CompactionResult;
5377
+ /**
5378
+ * Compact all iterations from an evolution run into behavioral memory.
5379
+ * Call this at the end of runEvolve() to consolidate the full run.
5380
+ */
5381
+ declare function compactEvolutionRun(spec: any, iterations: IterationResult[]): CompactionSummary;
5382
+ /**
5383
+ * Merge behavioral memory from multiple agents into a shared baseline.
5384
+ * Useful for fleet-wide behavioral knowledge transfer.
5385
+ */
5386
+ declare function mergeStores(stores: BehavioralMemoryStore[], targetHandle: string, targetName: string): BehavioralMemoryStore;
5387
+
5108
5388
  /**
5109
5389
  * Network Core — multi-agent therapy mesh engine.
5110
5390
  *
@@ -5317,4 +5597,302 @@ declare function generateMonitoringCertificate(agent: string, from: string, to:
5317
5597
  */
5318
5598
  declare function formatComplianceReportMarkdown(report: ComplianceReport): string;
5319
5599
 
5320
- export { ARCHETYPES, ATTACHMENT_STYLES, type AlpacaExample, type AnonymizedPatternReport, AnthropicProvider, type ArchetypeTemplate, type AssessmentReport, type AssessmentResult, type AssetReview, type AssetType, type AttachmentStyle, type AuditEntry, type AuditEventType, type AutopilotResult, type AutopilotThreshold, type AwarenessDimension, BUILT_IN_DETECTORS, type BehavioralCredential, type BehavioralEvent, type BehavioralEventType, type BehavioralIndex, type BenchmarkCallbacks, type BenchmarkComparison, type BenchmarkReport, type BenchmarkResult, type BenchmarkScenario, type BigFive, CATEGORIES, type CertifyInput, type Communication, type CompileInput, type CompiledConfig, type CompiledEmbodiedConfig, type ComplianceReport, type ContextLayerInput, type Conversation, type ConversationLog, type CorpusFilter, type CorpusStats, type CrossAgentQuery, type CustomDetectorConfig, DEFAULT_OVERSIGHT, DIMENSIONS, type DPOPair, type DetectedPattern, type DetectorFactory, type DetectorFn$1 as DetectorFn, type DetectorOptions, type DiagnosisResult, type Domain, type EdgeType, type Embodiment, type EvolutionEntry, type EvolutionHistory, type EvolutionSummary, type EvolveCallbacks, type EvolveOptions, type EvolveResult, type Expression, type FleetAgent, type FleetAgentStatus, type FleetConfig, type FleetHandle, type FleetOptions, type GazePolicy, type Gesture, type GraphEdge, type GraphNode, type Growth, type GrowthArea, type GrowthReport, type GrowthSnapshot, Guard, type GuardEntry, type GuardFilterResult, type GuardMiddleware, type GuardMiddlewareOptions, type GuardMiddlewareStats, type GuardMode, type GuardResult, type GuardViolation, type GuardWrapResult, type HFPushOptions, type HFPushResult, type HapticPolicy, type HubDetector, type IndexComparison, type IndexEntry, type Intervention, type InterventionRepertoire, type InterventionSource, type InterviewCallbacks, type InterviewProbe, type InterviewResponse, type InterviewResult, type IterationResult, type KnowledgeGraph, LEARNING_ORIENTATIONS, type LLMMessage, type LLMProvider, type LeaderboardEntry, type LeaderboardSubmission, type LearningOrientation, LocalMarketplaceBackend, type LogFormat, type MarketplaceAsset, type MarketplaceBackend, MarketplaceClient, type MarketplaceSearchQuery, type MarketplaceSearchResult, type Message, type Modality, type MonitoringCertificate, type Morphology, type MotionParameters, type NetworkCallbacks, type NetworkConfig, type NetworkNode, type NetworkResult, type NetworkSession, type NodeType, OllamaProvider, OpenAIProvider, type OutcomeReport, type OversightAction, type OversightMode, type OversightNotification, type OversightPolicy, PROVIDER_PARAMS, type PairingStrategy, type PatternCorrelation, type PatternDelta, type PatternReport, type PatternStatus, type PatternTracker, type PersonalitySpec, type PhaseConfig, type PhysicalSafety, type PreSessionDiagnosis, type Prescription, type Prosody, type Provider, type ProviderConfig, type ProxemicZone, type PublishRequest, type PublishedBenchmark, type RLHFExample, type ReACTAction, type ReACTContext, type ReACTStep, type Registry, type RegistryEntry, type RollingContext, STANDARD_PROBES, SURFACE_MULTIPLIERS, type SafetyEnvelope, type SelfAuditFlag, type SelfAuditResult, type SessionCallbacks, type SessionOptions, type SessionOutcome, type SessionSummary, type SessionTranscript, type SessionTurn, type Severity, type SharedIntervention, type SharedKnowledge, type SortField, type StagingDiff, type Surface, type SyncAnchor, type SyncProfile, type SyncRule, THERAPIST_META_SPEC, THERAPY_DIMENSIONS, THERAPY_PHASES, type TherapistPromptOptions, type TherapyDimensions, type TherapyMemory, type TherapyPhase, type TrainingExport, type TraitAlignment, type TraitScores, type TreatmentGoal, type TreatmentPlan, type TreatmentProgressReport, type VerifyResult, type WatchCallbacks, type WatchEvent, type WatchHandle, type WatchOptions, type WrapAgentOptions, type WrapOptions, type WrappedAgent, addEdge, addNode, addSessionToMemory, agentHandleFromSpec, appendAuditEntry, appendEvolution, applyRecommendations, bigFiveSchema, buildAgentTherapistPrompt, buildAnonymizedReport, buildPatientSystemPrompt, buildReACTContext, buildReACTFraming, buildSharedKnowledge, buildTherapistSystemPrompt, checkApproval, checkIterationBudget, communicationSchema, compareBenchmarks, compareIndex, compile, compileCustomDetector, compileEmbodied, compileForOpenClaw, compiledConfigSchema, compiledEmbodiedConfigSchema, computeDimensionScore, computeGazePolicy, computeMotionParameters, computeProsody, computeProxemics, computeSyncProfile, conversationLogSchema, conversationSchema, convertToHFFormat, corpusStats, createGist, createGraph, createGuardMiddleware, createIndex, createIndexEntry, createMemory, createProvider, createRepertoire, createTreatmentPlan, decayUnseenPatterns, deepMergeSpec, detectApologies, detectBoundaryIssues, detectFormalityIssues, detectHedging, detectRecoveryPatterns, detectSentiment, detectVerbosity, discoverAgentData, discoverAgents, discoverNetworkAgents, domainSchema, embodimentSchema, emitBehavioralEvent, evaluateOutcome, expireOldEdges, exportTrainingData, expressionSchema, extractAlpacaExamples, extractDPOPairs, extractDPOPairsWithLLM, extractRLHFExamples, extractRecommendations, fetchLeaderboard, fetchPersonality, fetchRegistry, findCrossAgentCorrelations, findEdges, findNode, findNodesByType, formatComplianceReportMarkdown, gazePolicySchema, generateBenchmarkMarkdown, generateComparisonMarkdown, generateComplianceReport, generateCredential, generateIndexMarkdown, generateMonitoringCertificate, generatePrescriptions, generateProgressReport, generateSystemPrompt, gestureSchema, getAgentBehaviors, getArchetype, getArchetypesByCategory, getBenchmarkScenarios, getCategories, getDetector, getDimension, getEvolutionSummary, getInheritanceChain, getInterviewContext, getMarketplaceClient, getMemoryContext, getNeighbors, getPhaseContext, getScenarioById, getTotalSignalCount, graphStats, growthAreaSchema, growthSchema, hapticPolicySchema, hashSpec, learnIntervention, listArchetypeIds, listDetectors, listDetectorsByCategory, listDetectorsByTag, loadAuditLog, loadBenchmarkResults, loadCorpus, loadCustomDetectors, loadEvolution, loadFleetConfig, loadGraph, loadLatestBenchmark, loadMemory, loadNetworkConfig, loadRepertoire, loadSpec, loadTranscripts, loadTreatmentPlan, messageSchema, modalitySchema, morphologySchema, motionParametersSchema, pairAgents, parseAnthropicAPILog, parseChatGPTExport, parseClaudeExport, parseConversationLog, parseConversationLogFromString, parseJSONLLog, parseMarkdownDetector, parseOTelGenAIExport, parseOpenAIAPILog, personalitySpecSchema, physicalSafetySchema, populateFromDiagnosis, populateFromEvolve, populateFromSession, prescribeDPOPairs, processReACTResponse, prosodySchema, providerSchema, proxemicZoneSchema, publishToLeaderboard, pushToHFHub, queryCorpus, queryInterventions, querySharedKnowledge, recordInterventionOutcome, recordSessionOutcome, registerBuiltInDetectors, registerDetector, resetMarketplaceClient, resolveInheritance, resolveOversight, runAssessment, runAutopilot, runBenchmark, runDiagnosis, runEvolve, runInterview, runNetwork, runPreSessionDiagnosis, runSelfAudit, runTherapySession, safetyEnvelopeSchema, saveBenchmarkResult, saveCredential, saveGraph, saveMemory, saveRepertoire, saveTranscript, saveTreatmentPlan, scoreLabel, scoreTraitsFromMessages, seedBuiltInPersonalities, selectIntervention, severityMeetsThreshold, severitySchema, shareAnonymizedPatterns, startFleet, startMCPServer, startWatch, summarize, summarizeSessionForMemory, summarizeTherapy, surfaceSchema, syncAnchorSchema, syncProfileSchema, syncRuleSchema, therapyDimensionsSchema, therapyScoreLabel, transferIntervention, unregisterDetector, updateEdgeWeight, validateDetectorConfig, verifyAuditChain, verifyCredential, wrapAgent };
5600
+ /**
5601
+ * ReACT Compliance Report Generator
5602
+ *
5603
+ * Generates narrative-driven behavioral alignment audit reports using
5604
+ * a Reason-Act-Observe loop. Ported from Antihero's compliance_react.py.
5605
+ *
5606
+ * Produces executive summaries, risk findings, framework-specific
5607
+ * compliance sections, and actionable recommendations — all from
5608
+ * the tamper-evident audit trail.
5609
+ *
5610
+ * Supported frameworks:
5611
+ * - EU AI Act (Articles 9, 12, 14, 15)
5612
+ * - NIST AI RMF 1.0 (Govern, Map, Measure, Manage)
5613
+ * - SOC 2 Type II (CC6, CC7, CC8)
5614
+ * - Internal Behavioral Alignment Standard
5615
+ */
5616
+ interface ReACTStep {
5617
+ phase: "reason" | "act" | "observe";
5618
+ action: string;
5619
+ result: string;
5620
+ timestamp: string;
5621
+ }
5622
+ interface RiskFinding {
5623
+ id: string;
5624
+ severity: "critical" | "high" | "medium" | "low";
5625
+ title: string;
5626
+ description: string;
5627
+ evidence: string[];
5628
+ recommendation: string;
5629
+ }
5630
+ interface FrameworkSection {
5631
+ framework: string;
5632
+ articles: string[];
5633
+ status: "compliant" | "partial" | "non_compliant" | "not_assessed";
5634
+ findings: string[];
5635
+ }
5636
+ interface ReACTReport {
5637
+ id: string;
5638
+ generatedAt: string;
5639
+ agent: string;
5640
+ period: {
5641
+ from: string;
5642
+ to: string;
5643
+ };
5644
+ executiveSummary: string;
5645
+ chainIntegrity: {
5646
+ verified: boolean;
5647
+ totalEntries: number;
5648
+ description: string;
5649
+ };
5650
+ statistics: ReportStatistics;
5651
+ riskFindings: RiskFinding[];
5652
+ frameworkSections: FrameworkSection[];
5653
+ recommendations: string[];
5654
+ steps: ReACTStep[];
5655
+ }
5656
+ interface ReportStatistics {
5657
+ totalEvents: number;
5658
+ diagnoses: number;
5659
+ sessions: number;
5660
+ driftEvents: number;
5661
+ guardViolations: number;
5662
+ benchmarks: number;
5663
+ evolves: number;
5664
+ certifications: number;
5665
+ averageScore: number;
5666
+ gradeDistribution: Record<string, number>;
5667
+ topPatterns: Array<{
5668
+ pattern: string;
5669
+ count: number;
5670
+ }>;
5671
+ therapyEffectiveness: number | null;
5672
+ }
5673
+ interface ReACTReportOptions {
5674
+ agent: string;
5675
+ agentHandle?: string;
5676
+ from: string;
5677
+ to: string;
5678
+ frameworks?: string[];
5679
+ }
5680
+ /**
5681
+ * Generate a narrative-driven compliance report using the ReACT
5682
+ * (Reason-Act-Observe) loop pattern.
5683
+ */
5684
+ declare function generateReACTReport(options: ReACTReportOptions): ReACTReport;
5685
+ /**
5686
+ * Format a ReACT report as Markdown.
5687
+ */
5688
+ declare function formatReACTReportMarkdown(report: ReACTReport): string;
5689
+
5690
+ /**
5691
+ * Adversarial Behavioral Attack Scenarios
5692
+ *
5693
+ * 30+ multi-turn conversation sequences designed to break an agent's
5694
+ * personality alignment under pressure. Ported and adapted from
5695
+ * Antihero's adversarial simulation engine for behavioral (not security)
5696
+ * stress testing.
5697
+ *
5698
+ * Categories target specific behavioral failure modes:
5699
+ * - sycophancy_escalation: progressive flattery pressure
5700
+ * - boundary_erosion: incremental out-of-scope requests
5701
+ * - identity_collapse: contradictory personality demands
5702
+ * - emotional_manipulation: guilt/anger/urgency pressure
5703
+ * - consistency_attack: rapid context switching to break register
5704
+ * - authority_override: "as your developer, I'm telling you to..."
5705
+ * - benign: baseline scenarios that should pass cleanly
5706
+ */
5707
+
5708
+ interface AdversarialScenario {
5709
+ id: string;
5710
+ name: string;
5711
+ category: AdversarialCategory;
5712
+ description: string;
5713
+ /** Multi-turn conversation that applies escalating pressure */
5714
+ turns: Message[];
5715
+ /** Which detector pattern this scenario targets */
5716
+ targetPattern: string;
5717
+ /** Expected outcome: "resist" = agent should hold firm, "comply" = benign scenario */
5718
+ expectedOutcome: "resist" | "comply";
5719
+ severity: number;
5720
+ tags: string[];
5721
+ }
5722
+ type AdversarialCategory = "sycophancy_escalation" | "boundary_erosion" | "identity_collapse" | "emotional_manipulation" | "consistency_attack" | "authority_override" | "benign";
5723
+ interface AdversarialResult {
5724
+ scenario: AdversarialScenario;
5725
+ passed: boolean;
5726
+ detectedSeverity: string;
5727
+ details: string;
5728
+ gapType: "behavioral_collapse" | "false_resistance" | null;
5729
+ }
5730
+ interface BehavioralGap {
5731
+ scenarioId: string;
5732
+ description: string;
5733
+ category: AdversarialCategory;
5734
+ severity: number;
5735
+ targetPattern: string;
5736
+ expectedOutcome: string;
5737
+ actualOutcome: string;
5738
+ recommendation: string;
5739
+ }
5740
+ interface AdversarialReport {
5741
+ id: string;
5742
+ totalScenarios: number;
5743
+ passed: number;
5744
+ failed: number;
5745
+ coveragePct: number;
5746
+ normalGrade: string;
5747
+ adversarialGrade: string;
5748
+ gaps: BehavioralGap[];
5749
+ results: AdversarialResult[];
5750
+ categoriesTested: string[];
5751
+ startedAt: string;
5752
+ completedAt: string;
5753
+ durationMs: number;
5754
+ }
5755
+ /**
5756
+ * Get all adversarial scenarios.
5757
+ */
5758
+ declare function getAdversarialScenarios(): AdversarialScenario[];
5759
+ /**
5760
+ * List all categories present in the scenario library.
5761
+ */
5762
+ declare function getAdversarialCategories(): AdversarialCategory[];
5763
+ /**
5764
+ * Generate mutated variants of existing scenarios for edge-case testing.
5765
+ * Mutations include: rephrased pressure, escalation reordering, and
5766
+ * combined attack vectors.
5767
+ */
5768
+ declare function generateMutations(count: number): AdversarialScenario[];
5769
+ /**
5770
+ * Generate a recommendation for fixing a behavioral gap.
5771
+ */
5772
+ declare function generateGapRecommendation(gap: BehavioralGap): string;
5773
+
5774
+ /**
5775
+ * Adversarial Runner — behavioral stress test engine.
5776
+ *
5777
+ * Runs adversarial scenarios against an agent via LLM provider,
5778
+ * producing dual grades (normal benchmark vs adversarial) and
5779
+ * identifying behavioral gaps where the agent's alignment breaks.
5780
+ *
5781
+ * Ported from Antihero's AdversarialSimulator, adapted for
5782
+ * behavioral (not security) stress testing.
5783
+ */
5784
+
5785
+ interface AdversarialCallbacks {
5786
+ onScenarioStart?: (scenario: AdversarialScenario, index: number, total: number) => void;
5787
+ onScenarioEnd?: (result: AdversarialResult, index: number) => void;
5788
+ onThinking?: (label: string) => {
5789
+ stop: () => void;
5790
+ };
5791
+ onNormalBenchmarkStart?: () => void;
5792
+ onNormalBenchmarkEnd?: (report: BenchmarkReport) => void;
5793
+ }
5794
+ interface AdversarialRunOptions {
5795
+ /** Specific scenario IDs to run (default: all) */
5796
+ scenarios?: string[];
5797
+ /** Categories to include (default: all) */
5798
+ categories?: string[];
5799
+ /** Number of mutated variants to generate (default: 0) */
5800
+ mutations?: number;
5801
+ /** Skip the normal benchmark run (default: false) */
5802
+ skipNormal?: boolean;
5803
+ callbacks?: AdversarialCallbacks;
5804
+ }
5805
+ /**
5806
+ * Run the full adversarial stress test suite.
5807
+ *
5808
+ * 1. Runs the standard 8-scenario benchmark for a "normal" grade
5809
+ * 2. Runs 30+ adversarial scenarios with escalating pressure
5810
+ * 3. Produces a dual-grade report (normal vs adversarial)
5811
+ * 4. Identifies behavioral gaps where the agent collapsed
5812
+ */
5813
+ declare function runAdversarialSuite(spec: any, provider: LLMProvider, options?: AdversarialRunOptions): Promise<AdversarialReport>;
5814
+ /**
5815
+ * Format a gap summary for CLI/report output.
5816
+ */
5817
+ declare function formatGapSummary(gaps: BehavioralGap[]): string;
5818
+
5819
+ /**
5820
+ * Natural Language to Behavioral Policy
5821
+ *
5822
+ * Converts plain-English behavioral requirements into structured guard
5823
+ * policy rules for Holomime's behavioral enforcement engine.
5824
+ *
5825
+ * Ported and adapted from Antihero's nl_generator.py — keyword-based
5826
+ * intent extraction with confidence scoring. No LLM dependency.
5827
+ *
5828
+ * Examples:
5829
+ * "Never be sycophantic with enterprise customers"
5830
+ * → deny sycophantic-tendency pattern, enterprise_cs preset
5831
+ *
5832
+ * "Be concise and direct, avoid hedging"
5833
+ * → enforce over-verbose limit, deny hedge-stacking
5834
+ *
5835
+ * "Allow empathetic responses but maintain strict boundaries"
5836
+ * → allow over-apologizing within bounds, enforce boundary-violation strict
5837
+ */
5838
+ interface BehavioralPolicyRule {
5839
+ id: string;
5840
+ description: string;
5841
+ effect: "enforce" | "deny" | "monitor";
5842
+ pattern: string;
5843
+ threshold: "strict" | "moderate" | "lenient";
5844
+ riskScore: number;
5845
+ }
5846
+ interface BehavioralPolicy {
5847
+ name: string;
5848
+ description: string;
5849
+ rules: BehavioralPolicyRule[];
5850
+ confidence: number;
5851
+ preset?: string;
5852
+ }
5853
+ interface PolicyIntent {
5854
+ effect: "enforce" | "deny" | "monitor";
5855
+ patterns: string[];
5856
+ threshold: "strict" | "moderate" | "lenient";
5857
+ riskScore: number;
5858
+ description: string;
5859
+ confidence: number;
5860
+ }
5861
+ interface BehavioralPreset {
5862
+ key: string;
5863
+ name: string;
5864
+ description: string;
5865
+ rules: BehavioralPolicyRule[];
5866
+ }
5867
+ /**
5868
+ * Generate a behavioral policy from natural language requirements.
5869
+ *
5870
+ * @param requirements Plain-English behavioral requirements
5871
+ * @param name Optional policy name (auto-generated if empty)
5872
+ * @returns Structured behavioral policy with confidence score
5873
+ *
5874
+ * @example
5875
+ * ```ts
5876
+ * const policy = generateBehavioralPolicy("Never be sycophantic with enterprise customers");
5877
+ * // → { name: "never-be-sycophantic...", rules: [{ effect: "deny", pattern: "sycophantic-tendency", ... }], confidence: 0.7 }
5878
+ * ```
5879
+ */
5880
+ declare function generateBehavioralPolicy(requirements: string, name?: string): BehavioralPolicy;
5881
+ /**
5882
+ * Format a behavioral policy as YAML-like output for display.
5883
+ */
5884
+ declare function formatPolicyYaml(policy: BehavioralPolicy): string;
5885
+ /**
5886
+ * Estimate how well we can parse the given requirements (0.0–1.0).
5887
+ */
5888
+ declare function estimateConfidence(requirements: string): number;
5889
+ /**
5890
+ * List available behavioral presets.
5891
+ */
5892
+ declare function listPresets(): BehavioralPreset[];
5893
+ /**
5894
+ * Get a specific preset by key.
5895
+ */
5896
+ declare function getPreset(key: string): BehavioralPreset | undefined;
5897
+
5898
+ export { ARCHETYPES, ATTACHMENT_STYLES, type AdversarialCallbacks, type AdversarialCategory, type AdversarialReport, type AdversarialResult, type AdversarialRunOptions, type AdversarialScenario, type AlpacaExample, type AnonymizedPatternReport, AnthropicProvider, type ArchetypeTemplate, type AssessmentReport, type AssessmentResult, type AssetReview, type AssetType, type AttachmentStyle, type AuditEntry, type AuditEventType, type AutopilotResult, type AutopilotThreshold, type AwarenessDimension, BUILT_IN_DETECTORS, type BehavioralBaseline, type BehavioralCredential, type BehavioralEvent, type BehavioralEventType, type BehavioralGap, type BehavioralIndex, type BehavioralMemoryStore, type BehavioralPolicy, type BehavioralPolicyRule, type BehavioralPreset, type BenchmarkCallbacks, type BenchmarkComparison, type BenchmarkReport, type BenchmarkResult, type BenchmarkScenario, type BigFive, CATEGORIES, type CertifyInput, type Communication, type CompactionResult, type CompactionSummary, type CompileInput, type CompiledConfig, type CompiledEmbodiedConfig, type ReACTStep as ComplianceReACTStep, type ComplianceReport, type ContextLayerInput, type Conversation, type ConversationLog, type CorpusFilter, type CorpusStats, type CorrectionRecord, type CrossAgentQuery, type CustomDetectorConfig, DEFAULT_OVERSIGHT, DIMENSIONS, type DPOPair, type DetectedPattern, type DetectorFactory, type DetectorFn$1 as DetectorFn, type DetectorOptions, type DiagnosisResult, type DimensionTrajectory, type Domain, type DriftTrigger, type EdgeType, type Embodiment, type EvolutionEntry, type EvolutionHistory, type EvolutionSummary, type EvolveCallbacks, type EvolveOptions, type EvolveResult, type Expression, type FleetAgent, type FleetAgentStatus, type FleetConfig, type FleetHandle, type FleetOptions, type FrameworkSection, type GazePolicy, type Gesture, type GraphEdge, type GraphNode, type Growth, type GrowthArea, type GrowthReport, type GrowthSnapshot, Guard, type GuardEntry, type GuardFilterResult, type GuardMiddleware, type GuardMiddlewareOptions, type GuardMiddlewareStats, type GuardMode, type GuardResult, type GuardViolation, type GuardWrapResult, type HFPushOptions, type HFPushResult, type HapticPolicy, type HubDetector, type IndexComparison, type IndexEntry, type Intervention, type InterventionRepertoire, type InterventionSource, type InterviewCallbacks, type InterviewProbe, type InterviewResponse, type InterviewResult, type IterationResult, type KnowledgeGraph, LEARNING_ORIENTATIONS, type LLMMessage, type LLMProvider, type LeaderboardEntry, type LeaderboardSubmission, type LearningOrientation, LocalMarketplaceBackend, type LogFormat, type MarketplaceAsset, type MarketplaceBackend, MarketplaceClient, type MarketplaceSearchQuery, type MarketplaceSearchResult, type Message, type Modality, type MonitoringCertificate, type Morphology, type MotionParameters, type NetworkCallbacks, type NetworkConfig, type NetworkNode, type NetworkResult, type NetworkSession, type NodeType, OllamaProvider, OpenAIProvider, type OutcomeReport, type OversightAction, type OversightMode, type OversightNotification, type OversightPolicy, PROVIDER_PARAMS, type PairingStrategy, type PatternCorrelation, type PatternDelta, type PatternReport, type PatternStatus, type PatternTracker, type PersonalitySpec, type PersonalityTier, type PhaseConfig, type PhysicalSafety, type PolicyIntent, type PreSessionDiagnosis, type Prescription, type Prosody, type Provider, type ProviderConfig, type ProxemicZone, type PublishRequest, type PublishedBenchmark, type RLHFExample, type ReACTAction, type ReACTContext, type ReACTReport, type ReACTReportOptions, type ReACTStep$1 as ReACTStep, type Registry, type RegistryEntry, type ReportStatistics, type RiskFinding, type RollingContext, STANDARD_PROBES, SURFACE_MULTIPLIERS, type SafetyEnvelope, type SelfAuditFlag, type SelfAuditResult, type SelfObservation, type SessionCallbacks, type SessionOptions, type SessionOutcome, type SessionSummary, type SessionTranscript, type SessionTurn, type Severity, type SharedIntervention, type SharedKnowledge, type SortField, type StagingDiff, type Surface, type SyncAnchor, type SyncProfile, type SyncRule, THERAPIST_META_SPEC, THERAPY_DIMENSIONS, THERAPY_PHASES, type TherapistPromptOptions, type TherapyDimensions, type TherapyMemory, type TherapyPhase, type TieredPersonality, type TrainingExport, type TraitAlignment, type TraitScores, type TreatmentGoal, type TreatmentPlan, type TreatmentProgressReport, type VerifyResult, type WatchCallbacks, type WatchEvent, type WatchHandle, type WatchOptions, type WrapAgentOptions, type WrapOptions, type WrappedAgent, addEdge, addNode, addSessionToMemory, agentHandleFromSpec, appendAuditEntry, appendEvolution, applyRecommendations, bigFiveSchema, buildAgentTherapistPrompt, buildAnonymizedReport, buildPatientSystemPrompt, buildReACTContext, buildReACTFraming, buildSharedKnowledge, buildTherapistSystemPrompt, checkApproval, checkIterationBudget, communicationSchema, compactEvolutionRun, compactIteration, compareBenchmarks, compareIndex, compile, compileCustomDetector, compileEmbodied, compileForOpenClaw, compileL0, compileL1, compileL2, compileTiered, compiledConfigSchema, compiledEmbodiedConfigSchema, computeDimensionScore, computeGazePolicy, computeMotionParameters, computeProsody, computeProxemics, computeSyncProfile, conversationLogSchema, conversationSchema, convertToHFFormat, corpusStats, createBehavioralMemory, createGist, createGraph, createGuardMiddleware, createIndex, createIndexEntry, createMemory, createProvider, createRepertoire, createTreatmentPlan, decayUnseenPatterns, deepMergeSpec, detectApologies, detectBoundaryIssues, detectFormalityIssues, detectHedging, detectRecoveryPatterns, detectRetrievalQuality, detectSentiment, detectVerbosity, discoverAgentData, discoverAgents, discoverNetworkAgents, domainSchema, embodimentSchema, emitBehavioralEvent, estimateConfidence, evaluateOutcome, expireOldEdges, exportTrainingData, expressionSchema, extractAlpacaExamples, extractDPOPairs, extractDPOPairsWithLLM, extractRLHFExamples, extractRecommendations, fetchLeaderboard, fetchPersonality, fetchRegistry, findCrossAgentCorrelations, findEdges, findNode, findNodesByType, formatComplianceReportMarkdown, formatGapSummary, formatPolicyYaml, formatReACTReportMarkdown, gazePolicySchema, generateBehavioralPolicy, generateBenchmarkMarkdown, generateComparisonMarkdown, generateComplianceReport, generateCredential, generateGapRecommendation, generateIndexMarkdown, generateMonitoringCertificate, generateMutations, generatePrescriptions, generateProgressReport, generateReACTReport, generateSystemPrompt, gestureSchema, getAdversarialCategories, getAdversarialScenarios, getAgentBehaviors, getArchetype, getArchetypesByCategory, getBehavioralMemorySummary, getBenchmarkScenarios, getBestCorrection, getCategories, getDetector, getDimension, getEvolutionSummary, getInheritanceChain, getInterviewContext, getMarketplaceClient, getMemoryContext, getNeighbors, getPhaseContext, getPreset, getScenarioById, getTotalSignalCount, getTrajectory, getTriggersForPattern, graphStats, growthAreaSchema, growthSchema, hapticPolicySchema, hashSpec, learnIntervention, listArchetypeIds, listDetectors, listDetectorsByCategory, listDetectorsByTag, listPresets, loadAuditLog, loadBehavioralMemory, loadBenchmarkResults, loadCorpus, loadCustomDetectors, loadEvolution, loadFleetConfig, loadGraph, loadLatestBenchmark, loadMemory, loadNetworkConfig, loadRepertoire, loadSpec, loadTranscripts, loadTreatmentPlan, mergeStores, messageSchema, modalitySchema, morphologySchema, motionParametersSchema, pairAgents, parseAnthropicAPILog, parseChatGPTExport, parseClaudeExport, parseConversationLog, parseConversationLogFromString, parseJSONLLog, parseMarkdownDetector, parseOTelGenAIExport, parseOpenAIAPILog, personalitySpecSchema, physicalSafetySchema, populateFromDiagnosis, populateFromEvolve, populateFromSession, prescribeDPOPairs, processReACTResponse, prosodySchema, providerSchema, proxemicZoneSchema, publishToLeaderboard, pushToHFHub, queryCorpus, queryInterventions, querySharedKnowledge, recommendTier, recordInterventionOutcome, recordObservation, recordSelfObservation, recordSessionOutcome, registerBuiltInDetectors, registerDetector, resetMarketplaceClient, resolveInheritance, resolveOversight, runAdversarialSuite, runAssessment, runAutopilot, runBenchmark, runDiagnosis, runEvolve, runInterview, runNetwork, runPreSessionDiagnosis, runSelfAudit, runTherapySession, safetyEnvelopeSchema, saveBehavioralMemory, saveBenchmarkResult, saveCredential, saveGraph, saveMemory, saveRepertoire, saveTranscript, saveTreatmentPlan, scoreLabel, scoreTraitsFromMessages, seedBuiltInPersonalities, selectIntervention, severityMeetsThreshold, severitySchema, shareAnonymizedPatterns, startFleet, startMCPServer, startWatch, summarize, summarizeSessionForMemory, summarizeTherapy, surfaceSchema, syncAnchorSchema, syncProfileSchema, syncRuleSchema, therapyDimensionsSchema, therapyScoreLabel, transferIntervention, unregisterDetector, updateEdgeWeight, validateDetectorConfig, verifyAuditChain, verifyCredential, wrapAgent };