@framers/agentos 0.13.1 → 0.13.3

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.
Files changed (112) hide show
  1. package/README.md +11 -11
  2. package/dist/api/AgentOS.d.ts +29 -0
  3. package/dist/api/AgentOS.d.ts.map +1 -1
  4. package/dist/api/AgentOS.js +137 -10
  5. package/dist/api/AgentOS.js.map +1 -1
  6. package/dist/api/agent.d.ts +7 -3
  7. package/dist/api/agent.d.ts.map +1 -1
  8. package/dist/api/agent.js.map +1 -1
  9. package/dist/api/embedText.d.ts.map +1 -1
  10. package/dist/api/embedText.js +1 -8
  11. package/dist/api/embedText.js.map +1 -1
  12. package/dist/api/gmi.d.ts.map +1 -1
  13. package/dist/api/gmi.js +24 -19
  14. package/dist/api/gmi.js.map +1 -1
  15. package/dist/api/runtime/AgentOSOrchestrator.d.ts +7 -0
  16. package/dist/api/runtime/AgentOSOrchestrator.d.ts.map +1 -1
  17. package/dist/api/runtime/AgentOSOrchestrator.js +7 -0
  18. package/dist/api/runtime/AgentOSOrchestrator.js.map +1 -1
  19. package/dist/api/runtime/agentCognitiveMemory.d.ts +12 -9
  20. package/dist/api/runtime/agentCognitiveMemory.d.ts.map +1 -1
  21. package/dist/api/runtime/agentCognitiveMemory.js +53 -17
  22. package/dist/api/runtime/agentCognitiveMemory.js.map +1 -1
  23. package/dist/api/runtime/completionGateway.d.ts.map +1 -1
  24. package/dist/api/runtime/completionGateway.js +7 -0
  25. package/dist/api/runtime/completionGateway.js.map +1 -1
  26. package/dist/api/runtime/gmiResults.d.ts +63 -6
  27. package/dist/api/runtime/gmiResults.d.ts.map +1 -1
  28. package/dist/api/runtime/gmiResults.js +83 -13
  29. package/dist/api/runtime/gmiResults.js.map +1 -1
  30. package/dist/api/runtime/gmiSession.d.ts +17 -2
  31. package/dist/api/runtime/gmiSession.d.ts.map +1 -1
  32. package/dist/api/runtime/gmiSession.js +32 -7
  33. package/dist/api/runtime/gmiSession.js.map +1 -1
  34. package/dist/api/runtime/provider-defaults.d.ts +9 -0
  35. package/dist/api/runtime/provider-defaults.d.ts.map +1 -1
  36. package/dist/api/runtime/provider-defaults.js +9 -0
  37. package/dist/api/runtime/provider-defaults.js.map +1 -1
  38. package/dist/cognition/emergent/executor/QuickJSExecutor.d.ts.map +1 -1
  39. package/dist/cognition/emergent/executor/QuickJSExecutor.js +28 -7
  40. package/dist/cognition/emergent/executor/QuickJSExecutor.js.map +1 -1
  41. package/dist/cognition/emergent/executor/guest-prelude.d.ts.map +1 -1
  42. package/dist/cognition/emergent/executor/guest-prelude.js +6 -0
  43. package/dist/cognition/emergent/executor/guest-prelude.js.map +1 -1
  44. package/dist/cognition/emergent/executor/guest-surface.d.ts.map +1 -1
  45. package/dist/cognition/emergent/executor/guest-surface.js +10 -0
  46. package/dist/cognition/emergent/executor/guest-surface.js.map +1 -1
  47. package/dist/cognition/memory/CognitiveMemoryManager.d.ts +28 -21
  48. package/dist/cognition/memory/CognitiveMemoryManager.d.ts.map +1 -1
  49. package/dist/cognition/memory/CognitiveMemoryManager.js +76 -26
  50. package/dist/cognition/memory/CognitiveMemoryManager.js.map +1 -1
  51. package/dist/cognition/memory/retrieval/store/MemoryStore.d.ts +10 -2
  52. package/dist/cognition/memory/retrieval/store/MemoryStore.d.ts.map +1 -1
  53. package/dist/cognition/memory/retrieval/store/MemoryStore.js +11 -2
  54. package/dist/cognition/memory/retrieval/store/MemoryStore.js.map +1 -1
  55. package/dist/cognition/substrate/ConversationHistoryManager.d.ts +3 -1
  56. package/dist/cognition/substrate/ConversationHistoryManager.d.ts.map +1 -1
  57. package/dist/cognition/substrate/ConversationHistoryManager.js +9 -2
  58. package/dist/cognition/substrate/ConversationHistoryManager.js.map +1 -1
  59. package/dist/cognition/substrate/GMI.d.ts +33 -2
  60. package/dist/cognition/substrate/GMI.d.ts.map +1 -1
  61. package/dist/cognition/substrate/GMI.js +231 -71
  62. package/dist/cognition/substrate/GMI.js.map +1 -1
  63. package/dist/cognition/substrate/IGMI.d.ts +14 -3
  64. package/dist/cognition/substrate/IGMI.d.ts.map +1 -1
  65. package/dist/cognition/substrate/IGMI.js +2 -1
  66. package/dist/cognition/substrate/IGMI.js.map +1 -1
  67. package/dist/cognition/substrate/SentimentTracker.d.ts +8 -0
  68. package/dist/cognition/substrate/SentimentTracker.d.ts.map +1 -1
  69. package/dist/cognition/substrate/SentimentTracker.js +20 -0
  70. package/dist/cognition/substrate/SentimentTracker.js.map +1 -1
  71. package/dist/cognition/substrate/personas/IPersonaDefinition.d.ts +6 -0
  72. package/dist/cognition/substrate/personas/IPersonaDefinition.d.ts.map +1 -1
  73. package/dist/cognition/substrate/personas/SoulLoader.js.map +1 -1
  74. package/dist/cognition/substrate/personas/hardLimits.d.ts +16 -0
  75. package/dist/cognition/substrate/personas/hardLimits.d.ts.map +1 -0
  76. package/dist/cognition/substrate/personas/hardLimits.js +21 -0
  77. package/dist/cognition/substrate/personas/hardLimits.js.map +1 -0
  78. package/dist/core/conversation/ConversationContext.d.ts +8 -0
  79. package/dist/core/conversation/ConversationContext.d.ts.map +1 -1
  80. package/dist/core/conversation/ConversationContext.js +17 -0
  81. package/dist/core/conversation/ConversationContext.js.map +1 -1
  82. package/dist/core/llm/providers/implementations/OpenAIProvider.d.ts.map +1 -1
  83. package/dist/core/llm/providers/implementations/OpenAIProvider.js +23 -4
  84. package/dist/core/llm/providers/implementations/OpenAIProvider.js.map +1 -1
  85. package/dist/core/utils/errors.d.ts +2 -0
  86. package/dist/core/utils/errors.d.ts.map +1 -1
  87. package/dist/core/utils/errors.js +3 -0
  88. package/dist/core/utils/errors.js.map +1 -1
  89. package/dist/extensions/ExtensionRegistry.d.ts.map +1 -1
  90. package/dist/extensions/ExtensionRegistry.js +4 -1
  91. package/dist/extensions/ExtensionRegistry.js.map +1 -1
  92. package/dist/safety/guardrails/IGuardrailService.d.ts +11 -0
  93. package/dist/safety/guardrails/IGuardrailService.d.ts.map +1 -1
  94. package/dist/safety/guardrails/ParallelGuardrailDispatcher.d.ts.map +1 -1
  95. package/dist/safety/guardrails/ParallelGuardrailDispatcher.js +206 -80
  96. package/dist/safety/guardrails/ParallelGuardrailDispatcher.js.map +1 -1
  97. package/dist/safety/guardrails/builtin/PhraseListGuardrail.d.ts +109 -0
  98. package/dist/safety/guardrails/builtin/PhraseListGuardrail.d.ts.map +1 -0
  99. package/dist/safety/guardrails/builtin/PhraseListGuardrail.js +180 -0
  100. package/dist/safety/guardrails/builtin/PhraseListGuardrail.js.map +1 -0
  101. package/dist/safety/guardrails/guardrailDispatcher.d.ts +20 -0
  102. package/dist/safety/guardrails/guardrailDispatcher.d.ts.map +1 -1
  103. package/dist/safety/guardrails/guardrailDispatcher.js.map +1 -1
  104. package/dist/safety/guardrails/index.d.ts +3 -1
  105. package/dist/safety/guardrails/index.d.ts.map +1 -1
  106. package/dist/safety/guardrails/index.js +4 -0
  107. package/dist/safety/guardrails/index.js.map +1 -1
  108. package/dist/safety/guardrails/requiredGuardrails.d.ts +34 -0
  109. package/dist/safety/guardrails/requiredGuardrails.d.ts.map +1 -0
  110. package/dist/safety/guardrails/requiredGuardrails.js +68 -0
  111. package/dist/safety/guardrails/requiredGuardrails.js.map +1 -0
  112. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  # **AgentOS** · TypeScript AI Agent Framework
10
10
 
11
- **Agents that remember, forge their own tools, and survive long-running sessions.** Persistent cognitive memory, optional HEXACO personality, multi-agent orchestration, and one dispatch interface across 11 LLM providers. Apache-2.0.
11
+ **Agents that remember, forge their own tools, and survive long-running sessions.** Persistent cognitive memory, optional HEXACO personality, multi-agent orchestration, and one dispatch interface across 13 LLM providers. Apache-2.0.
12
12
 
13
13
  [![npm](https://img.shields.io/npm/v/@framers/agentos?style=flat-square&logo=npm&color=cb3837)](https://www.npmjs.com/package/@framers/agentos)
14
14
  [![CI](https://img.shields.io/github/actions/workflow/status/framerslab/agentos/ci.yml?branch=master&style=flat-square&logo=github&label=CI)](https://github.com/framerslab/agentos/actions/workflows/ci.yml)
@@ -31,9 +31,9 @@
31
31
  AgentOS is an open-source TypeScript framework for AI agents that **remember, adapt, and write their own tools**.
32
32
 
33
33
  - **Top open-source memory benchmarks:** [85.6% on LongMemEval-S](https://github.com/framerslab/agentos-bench/blob/master/results/LEADERBOARD.md) at $0.0090/correct (gpt-4o), and 70.2% on LongMemEval-M, the only open-source library above 65% on M with reproducible methodology.
34
- - **Runtime tool forging.** An agent writes a JavaScript function with JSON Schemas for its input and output, an LLM judge approves it, and it runs in a `node:vm` context or, with `QuickJSExecutor`, in a QuickJS WebAssembly instance of its own for each call, before joining the catalog for the rest of the session.
35
- - **Persistent [cognitive memory](https://docs.agentos.sh/features/cognitive-memory)** with 8 neuroscience-backed mechanisms: Ebbinghaus decay, retrieval-induced forgetting, reconsolidation, source-confidence decay.
36
- - **Optional [HEXACO personality](https://docs.agentos.sh/features/hexaco-personality)**, [6 orchestration strategies](https://docs.agentos.sh/features/agency-collaboration), [guardrails](https://docs.agentos.sh/features/guardrails-architecture), and [voice](https://docs.agentos.sh/features/voice-pipeline) across **11 LLM providers**; 100+ extensions and 88 skills auto-load at startup.
34
+ - **Runtime tool forging.** An agent writes a JavaScript function with JSON Schemas for its input and output, the declared test cases run it, an LLM judge reviews the result, and on approval the tool joins the session's tool list. Forged code runs in an in-process `node:vm` context or, with `QuickJSExecutor`, in a QuickJS WebAssembly instance of its own for each call.
35
+ - **Persistent [cognitive memory](https://docs.agentos.sh/features/cognitive-memory)** with Ebbinghaus decay and 8 neuroscience-backed mechanisms, among them retrieval-induced forgetting, reconsolidation and source-confidence decay.
36
+ - **Optional [HEXACO personality](https://docs.agentos.sh/features/hexaco-personality)**, [6 orchestration strategies](https://docs.agentos.sh/features/agency-collaboration), [guardrails](https://docs.agentos.sh/features/guardrails-architecture), and [voice](https://docs.agentos.sh/features/voice-pipeline) across **13 LLM providers**; 100+ extensions and 88 skills auto-load at startup.
37
37
 
38
38
  ---
39
39
 
@@ -90,11 +90,11 @@ bounded.reseed([{ role: 'user', content: 'compact resume snapshot' }]);
90
90
 
91
91
  ## Emergent Design
92
92
 
93
- Three things accumulate across a session and compose into behavior: **memory** (what was said, decided, retrieved), the **tool surface** (which grows when an agent forges a tool the judge approves), and an optional **HEXACO personality** vector that biases retrieval, routing, and decisions. Each is configurable and observable.
93
+ Three things accumulate across a session and compose into behavior: **memory** (what was said, decided, retrieved), the **tool surface** (which grows when an agent forges a tool the judge approves), and an optional **HEXACO personality** vector that shapes the prompt and scales memory encoding. Each is configurable and observable.
94
94
 
95
- **Runtime tool forging.** When no tool covers a sub-task, the agent writes a JavaScript function with JSON Schemas for its input and output; a separate LLM judge approves it; it runs in a `node:vm` context (5s wall clock, no `eval`/`require`/`process`) or, with `QuickJSExecutor`, in a QuickJS WebAssembly instance of its own for each call with its memory limited, then joins a discoverable index for the rest of the session. First forge costs full tokens; reuse costs tens. Promoted tools export as `SKILL.md` skills. [Emergent capabilities ->](https://docs.agentos.sh/features/emergent-capabilities)
95
+ **Runtime tool forging.** When no tool covers a sub-task, the agent calls `forge_tool` with a chain of existing tools or a JavaScript function, JSON Schemas for input and output, and test cases. Code mode is off until the host sets `emergentConfig.allowSandboxTools`. Source that uses `eval`, `require` or `process` is rejected before it runs. Forged code runs in an in-process `node:vm` context by default, with a 5 s timeout, and `node:vm` is not a security boundary; with `QuickJSExecutor`, each call runs in a QuickJS WebAssembly instance of its own with its memory limited. A separate LLM judge reviews the candidate with its test results, and an approved tool joins the session's tool list. A forged tool exports as a `SKILL.md` skill. [Emergent capabilities ->](https://docs.agentos.sh/features/emergent-capabilities)
96
96
 
97
- **HEXACO personality (optional).** Off by default; the runtime behaves identically without it. When supplied, the kernel weights retrieval, specialist routing, and tool selection by trait values, so the same prompt and tools yield measurably different decision sequences. It lives in the kernel, not the prompt, so it persists under context pressure. [HEXACO docs ->](https://docs.agentos.sh/features/hexaco-personality)
97
+ **HEXACO personality (optional).** Off by default. `agent()` writes the trait values into the system prompt as directives, one for each trait above 0.65 or below 0.35. A cognitive memory manager given the same traits scales its encoding and seven of its eight mechanisms by them, and an `AgentGraph` branches on a trait with `addPersonalityEdge()`. [HEXACO docs ->](https://docs.agentos.sh/features/hexaco-personality)
98
98
 
99
99
  **Soul files.** Identity, voice, hard limits, and HEXACO scores can live in a `SOUL.md` workspace. Its `memory/` directory is a markdown wiki (an `index.md` catalog plus `entities/`, `concepts/`, `log/` pages with `[[wikilinks]]`) that *is* the agent's long-term memory: markdown is the source of truth, the vector/graph index is rebuilt from it, and [`souledAgent()`](https://docs.agentos.sh/getting-started/high-level-api) wires it end to end. [Soul Files ->](https://docs.agentos.sh/features/soul-files)
100
100
 
@@ -161,7 +161,7 @@ for await (const chunk of agentos.processRequest({
161
161
 
162
162
  | Category | Highlights |
163
163
  |---|---|
164
- | **LLM Providers** | 11 (9 API-key + 2 local CLI): OpenAI, Anthropic, Gemini, Groq, Ollama, OpenRouter, Together, Mistral, xAI, Claude CLI, Gemini CLI. Plus image/video/audio generation providers. |
164
+ | **LLM Providers** | 13 (11 by API key or base URL + 2 local CLI): OpenAI, Anthropic, Gemini, Groq, Ollama, OpenRouter, Requesty, LiteLLM, Together, Mistral, xAI, Claude CLI, Gemini CLI. Plus image/video/audio generation providers. |
165
165
  | **Prompt Caching** | Zero config on every provider: automatic Anthropic breakpoints incl. multi-turn history (direct + OpenRouter) * OpenAI cache-key routing * normalized cache usage + leak detection * per-call TTL/opt-out * [guide](https://docs.agentos.sh/features/prompt-caching) |
166
166
  | **Cognitive Memory** | 8 mechanisms: reconsolidation, retrieval-induced forgetting, involuntary recall, FOK, gist extraction, schema encoding, source decay, emotion regulation |
167
167
  | **HEXACO Personality** | 6 traits modulate memory, retrieval bias, response style |
@@ -202,7 +202,7 @@ Strategies: `sequential`, `parallel`, `debate`, `review-loop`, `hierarchical`, `
202
202
 
203
203
  | Package | Role |
204
204
  |---|---|
205
- | [`@framers/agentos`](https://www.npmjs.com/package/@framers/agentos) | Core runtime: agents, cognitive memory, orchestration, guardrails, voice, 11 LLM providers. Apache-2.0. |
205
+ | [`@framers/agentos`](https://www.npmjs.com/package/@framers/agentos) | Core runtime: agents, cognitive memory, orchestration, guardrails, voice, 13 LLM providers. Apache-2.0. |
206
206
  | [`@framers/agentos-extensions`](https://www.npmjs.com/package/@framers/agentos-extensions) | 100+ first-party extensions: channel adapters, tool packs, integrations, guardrail packs. |
207
207
  | [`@framers/agentos-extensions-registry`](https://www.npmjs.com/package/@framers/agentos-extensions-registry) | Discovery + auto-loader for the extensions catalog. |
208
208
  | [`@framers/agentos-skills`](https://www.npmjs.com/package/@framers/agentos-skills) | 88 curated `SKILL.md` skills. |
@@ -218,7 +218,7 @@ Extensions and skills auto-load at startup. [Extensions architecture ->](https:/
218
218
 
219
219
  ## Configure API Keys
220
220
 
221
- Three layers, highest priority first: inline `apiKey` on the call, a module-level `setDefaultProvider()` at boot, or environment-variable auto-detection (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and the rest, resolved in priority order and reorderable with `setProviderPriority([...])`). Comma-separated keys auto-rotate on quota.
221
+ Three layers, highest priority first: inline `apiKey` on the call, a module-level `setDefaultProvider()` at boot, or environment-variable auto-detection (`OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, and the rest, resolved in priority order and reorderable with `setProviderPriority([...])`). A comma-separated list of keys rotates per request on the providers that support it ([Key rotation](https://github.com/framerslab/agentos/blob/master/docs/KEY_ROTATION.md)).
222
222
 
223
223
  [Full credential resolution + default models per provider ->](https://docs.agentos.sh/architecture/llm-providers)
224
224
 
@@ -227,7 +227,7 @@ Three layers, highest priority first: inline `apiKey` on the call, a module-leve
227
227
  ## API Surfaces
228
228
 
229
229
  - **`agent()`**: lightweight stateful agent. Prompts, sessions, personality, hooks, tools, memory.
230
- - **`agency()`**: multi-agent teams built from `agent()` members, with emergent tooling, guardrails, RAG, voice and HITL. It wires no channels; channel adapters run on the full runtime or with `ChannelRouter`.
230
+ - **`agency()`**: multi-agent teams built from `agent()` members, with HITL approval gates, run limits, structured output, provenance and, on the hierarchical strategy, specialists spawned at runtime. Its `guardrails` and `rag` options are reported or logged and not applied, and `voice.enabled` serves the agency as JSON text over a local WebSocket. It wires no channels; channel adapters run on the full runtime or with `ChannelRouter`.
231
231
  - **`generateText()` / `streamText()` / `generateObject()` / `generateImage()` / `generateVideo()` / `generateMusic()` / `performOCR()` / `embedText()`**: low-level multi-modal helpers with native tool calling.
232
232
  - **`workflow()` / `AgentGraph` / `mission()`**: three orchestration authoring APIs over one graph runtime.
233
233
 
@@ -67,6 +67,7 @@ import { StreamingManagerConfig, StreamId } from '../core/streaming/StreamingMan
67
67
  import { ILogger } from '../core/logging/ILogger';
68
68
  import { type AgentOSObservabilityConfig } from '../safety/evaluation/observability/otel';
69
69
  import type { IGuardrailService } from '../safety/guardrails/IGuardrailService';
70
+ import { type RequiredGuardrailSpec } from '../safety/guardrails/requiredGuardrails';
70
71
  import { type ISpendMeter } from '../safety/runtime/SpendMeter';
71
72
  import type { EmergentConfig } from '../cognition/emergent/types.js';
72
73
  import type { IPersonaLoader } from '../cognition/substrate/personas/IPersonaLoader';
@@ -310,6 +311,18 @@ export interface AgentOSConfig {
310
311
  subscriptionService?: ISubscriptionService;
311
312
  /** Optional guardrail service implementation used for policy enforcement. */
312
313
  guardrailService?: IGuardrailService;
314
+ /**
315
+ * Guards the deployment cannot run without, by id and stage. `initialize()` refuses to finish when one is missing
316
+ * or does not implement a named stage; `processRequest()` refuses a request (`SYS_GUARDRAIL_REQUIRED_MISSING`) when
317
+ * one has gone missing since. Each runs fail-closed with its deadline, and a guard required on `output` puts the
318
+ * output in hold mode.
319
+ */
320
+ requiredGuardrails?: RequiredGuardrailSpec[];
321
+ /**
322
+ * `hold`: no TEXT_DELTA reaches the caller before the output guards have judged the whole reply. Default `stream`;
323
+ * forced to `hold` when a required guard covers the output stage.
324
+ */
325
+ guardrailOutputMode?: 'stream' | 'hold';
313
326
  /** Optional map of secretId -> value for extension/tool credentials. */
314
327
  extensionSecrets?: Record<string, string>;
315
328
  /**
@@ -648,8 +661,24 @@ export declare class AgentOS implements IAgentOS {
648
661
  * with `code` set to `GMIErrorCode.CONFIGURATION_ERROR`.
649
662
  */
650
663
  private validateConfiguration;
664
+ /** True when the overrides disable the guard given in `config.guardrailService`. */
665
+ private configGuardrailDisabled;
651
666
  private registerConfigGuardrailService;
667
+ /** Every active guard with the id a required guard is named by: its own `id`, else its descriptor's. */
668
+ private listActiveGuardrails;
669
+ /** The required guards' report for this moment, or null when the deployment requires none. */
670
+ private requiredGuardrailReport;
652
671
  private getActiveGuardrailServices;
672
+ /**
673
+ * With conversational persistence on, the orchestrator stores the model's reply before the output guards run. When
674
+ * a guard replaced or rewrote it, the stored message is made to hold what the person saw, so the history never
675
+ * carries a reply the guards refused. A reply blocked with no replacement is emptied, with the reason recorded.
676
+ */
677
+ private recordGuardedReply;
678
+ /** Hold mode: set, or forced by a guard required on the output stage. */
679
+ private holdsOutputUntilFinal;
680
+ /** The error chunk a request is refused with while a required guard is missing. */
681
+ private requiredGuardrailMissingChunk;
653
682
  private ensureUtilityAIService;
654
683
  private buildDefaultUtilityAI;
655
684
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"AgentOS.d.ts","sourceRoot":"","sources":["../../src/api/AgentOS.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EACV,iCAAiC,EACjC,uCAAuC,EACxC,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EACL,eAAe,EAIhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,+BAA+B,CAA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AClB,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKtB,wBAAwB,CACnC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,kBAAkB,EAAE,GAC5B,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKnC;;;;;;;;;;;OAWG;IACU,qBAAqB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAiB3F;;;;;;;;;;;;OAYG;IACU,sBAAsB,CACjC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC;IAwCzB,6BAA6B,CACxC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,iCAAiC,GAAG,IAAI,CAAC;IAYtC,yBAAyB,CACrC,cAAc,EAAE,iCAAiC,EACjD,WAAW,EAAE,sBAAsB,EAAE,EACrC,OAAO,GAAE,uCAA4C,GACpD,cAAc,CAAC,eAAe,EAAE,IAAI,EAAE,SAAS,CAAC;IA2FnD;;;;;;;;;;;;;;OAcG;IACU,eAAe,CAC1B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,mBAAmB,GACnC,OAAO,CAAC,IAAI,CAAC;IA0BhB;;;;;;;;OAQG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CA2EvC"}
@@ -55,6 +55,8 @@ import { GMIError, GMIErrorCode } from '../core/utils/errors.js';
55
55
  import { uuidv4 } from '../core/utils/uuid.js';
56
56
  import { createLogger } from '../core/logging/loggerFactory.js';
57
57
  import { configureAgentOSObservability, } from '../safety/evaluation/observability/otel.js';
58
+ import { MessageRole } from '../core/conversation/ConversationMessage.js';
59
+ import { assertRequiredGuardrails, checkRequiredGuardrails, withRequiredPosture, } from '../safety/guardrails/requiredGuardrails.js';
58
60
  import { SpendMeterUnavailableError } from '../safety/runtime/SpendMeter.js';
59
61
  // SelfImprovementToolDeps reserved for emergent capability integration
60
62
  import { GuardrailAction } from '../safety/guardrails/IGuardrailService.js';
@@ -320,6 +322,14 @@ export class AgentOS {
320
322
  const extensionLifecycleContext = { logger: this.logger };
321
323
  await this.extensionManager.loadManifest(extensionLifecycleContext);
322
324
  await this.registerConfigGuardrailService(extensionLifecycleContext);
325
+ if (this.config.requiredGuardrails?.length) {
326
+ try {
327
+ assertRequiredGuardrails(this.listActiveGuardrails(), this.config.requiredGuardrails);
328
+ }
329
+ catch (error) {
330
+ throw AgentOSServiceError.wrap(error, GMIErrorCode.CONFIGURATION_ERROR, 'A required guardrail is missing.', 'AgentOS.initialize');
331
+ }
332
+ }
323
333
  if (this.config.schemaOnDemandTools?.enabled === true) {
324
334
  const allowPackages = typeof this.config.schemaOnDemandTools.allowPackages === 'boolean'
325
335
  ? this.config.schemaOnDemandTools.allowPackages
@@ -609,8 +619,12 @@ export class AgentOS {
609
619
  });
610
620
  }
611
621
  }
622
+ /** True when the overrides disable the guard given in `config.guardrailService`. */
623
+ configGuardrailDisabled() {
624
+ return this.config.extensionOverrides?.guardrails?.['config-guardrail-service']?.enabled === false;
625
+ }
612
626
  async registerConfigGuardrailService(context) {
613
- if (!this.config.guardrailService) {
627
+ if (!this.config.guardrailService || this.configGuardrailDisabled()) {
614
628
  return;
615
629
  }
616
630
  const registry = this.extensionManager.getRegistry(EXTENSION_KIND_GUARDRAIL);
@@ -622,16 +636,82 @@ export class AgentOS {
622
636
  metadata: { origin: 'config' },
623
637
  }, context);
624
638
  }
625
- getActiveGuardrailServices() {
626
- const services = [];
639
+ /** Every active guard with the id a required guard is named by: its own `id`, else its descriptor's. */
640
+ listActiveGuardrails() {
641
+ const active = [];
627
642
  if (this.extensionManager) {
628
643
  const registry = this.extensionManager.getRegistry(EXTENSION_KIND_GUARDRAIL);
629
- services.push(...registry.listActive().map((descriptor) => descriptor.payload));
644
+ for (const descriptor of registry.listActive()) {
645
+ active.push({ id: descriptor.payload?.id ?? descriptor.id, service: descriptor.payload });
646
+ }
630
647
  }
631
- if (this.guardrailService && !services.includes(this.guardrailService)) {
632
- services.push(this.guardrailService);
648
+ if (this.guardrailService && !this.configGuardrailDisabled() && !active.some((a) => a.service === this.guardrailService)) {
649
+ active.push({ id: this.guardrailService.id ?? 'config-guardrail-service', service: this.guardrailService });
633
650
  }
634
- return services;
651
+ return active;
652
+ }
653
+ /** The required guards' report for this moment, or null when the deployment requires none. */
654
+ requiredGuardrailReport() {
655
+ const required = this.config.requiredGuardrails;
656
+ if (!required?.length)
657
+ return null;
658
+ return checkRequiredGuardrails(this.listActiveGuardrails(), required);
659
+ }
660
+ getActiveGuardrailServices() {
661
+ const required = this.config.requiredGuardrails ?? [];
662
+ return this.listActiveGuardrails().map(({ id, service }) => {
663
+ const spec = required.find((r) => r.id === id);
664
+ return spec ? withRequiredPosture(id, service, spec) : service;
665
+ });
666
+ }
667
+ /**
668
+ * With conversational persistence on, the orchestrator stores the model's reply before the output guards run. When
669
+ * a guard replaced or rewrote it, the stored message is made to hold what the person saw, so the history never
670
+ * carries a reply the guards refused. A reply blocked with no replacement is emptied, with the reason recorded.
671
+ */
672
+ async recordGuardedReply(conversationKey, verdict) {
673
+ const rewritten = verdict.action === GuardrailAction.SANITIZE || verdict.action === GuardrailAction.BLOCK;
674
+ // a verdict on a streamed delta judged no whole reply, and the orchestrator stores the reply only once the turn
675
+ // ends: that case is left to hold mode, where nothing streams before the final verdict
676
+ if (!rewritten || verdict.originalText === null || !this.config.orchestratorConfig?.enableConversationalPersistence || !this.conversationManager)
677
+ return;
678
+ try {
679
+ const context = await this.conversationManager.getConversation(conversationKey);
680
+ if (!context)
681
+ return;
682
+ // the message the verdict was about, by its text (the orchestrator stored the same string the guards judged):
683
+ // the newest such message is this turn's, and an earlier turn's reply is never touched
684
+ const stored = [...context.getAllMessages()].reverse().find((m) => m.role === MessageRole.ASSISTANT && m.metadata?.source === 'agentos_output' && m.content === verdict.originalText);
685
+ if (!stored)
686
+ return;
687
+ context.replaceMessageContent(stored.id, verdict.finalText ?? '', {
688
+ modificationInfo: { strategy: 'filtered', reason: `guardrail:${verdict.reasonCode ?? verdict.action}` },
689
+ });
690
+ await this.conversationManager.saveConversation(context);
691
+ }
692
+ catch (error) {
693
+ this.logger.warn('The guarded reply could not be written to the conversation', {
694
+ error: error instanceof Error ? error.message : String(error),
695
+ });
696
+ }
697
+ }
698
+ /** Hold mode: set, or forced by a guard required on the output stage. */
699
+ holdsOutputUntilFinal() {
700
+ return this.config.guardrailOutputMode === 'hold' || (this.config.requiredGuardrails ?? []).some((r) => r.stages.includes('output'));
701
+ }
702
+ /** The error chunk a request is refused with while a required guard is missing. */
703
+ requiredGuardrailMissingChunk(report, streamId, personaId) {
704
+ return {
705
+ type: AgentOSResponseChunkType.ERROR,
706
+ streamId,
707
+ gmiInstanceId: 'guardrail',
708
+ personaId,
709
+ isFinal: true,
710
+ timestamp: new Date().toISOString(),
711
+ code: GMIErrorCode.GUARDRAIL_REQUIRED_MISSING,
712
+ message: 'A guardrail this deployment requires is not active, so the request was not run.',
713
+ details: { missing: report.missing, missingStage: report.missingStage },
714
+ };
635
715
  }
636
716
  async ensureUtilityAIService() {
637
717
  if (this.utilityAIService) {
@@ -836,6 +916,12 @@ export class AgentOS {
836
916
  conversationId: input.conversationId,
837
917
  metadata: input.options?.customFlags,
838
918
  };
919
+ const requiredReport = this.requiredGuardrailReport();
920
+ if (requiredReport && !requiredReport.ok) {
921
+ this.logger.error('A required guardrail is missing; the request was not run', { missing: requiredReport.missing, missingStage: requiredReport.missingStage });
922
+ yield this.requiredGuardrailMissingChunk(requiredReport, input.sessionId || `agentos-guardrail-${Date.now()}`, effectivePersonaId);
923
+ return;
924
+ }
839
925
  const guardrailServices = this.getActiveGuardrailServices();
840
926
  const guardrailReadyInput = {
841
927
  ...input,
@@ -956,6 +1042,8 @@ export class AgentOS {
956
1042
  streamId: streamIdToListen,
957
1043
  personaId: effectivePersonaId,
958
1044
  inputEvaluations: guardrailInputOutcome.evaluations ?? [],
1045
+ holdUntilFinal: this.holdsOutputUntilFinal(),
1046
+ onVerdict: (verdict) => this.recordGuardedReply(orchestratorInput.conversationId || orchestratorInput.sessionId, verdict),
959
1047
  });
960
1048
  if (orchestratorInput.workflowRequest) {
961
1049
  const wfRequest = orchestratorInput.workflowRequest;
@@ -1102,11 +1190,32 @@ export class AgentOS {
1102
1190
  // Register the bridge client to listen for new chunks on the existing stream
1103
1191
  await this.streamingManager.registerClient(streamId, bridge);
1104
1192
  console.log(`AgentOS.handleToolResults: Bridge client ${bridge.id} registered to stream ${streamId}.`);
1193
+ // The stream's identity and the required guards, before the continuation starts: a missing guard means no
1194
+ // model call, and a continuation that ends the turn removes the stream's context when it finishes.
1195
+ const identity = this.agentOSOrchestrator.getStreamIdentity(streamId);
1196
+ const continuationContext = {
1197
+ userId: identity?.userId ?? 'unknown_user',
1198
+ sessionId: identity?.sessionId ?? streamId,
1199
+ personaId: identity?.personaId,
1200
+ conversationId: identity?.conversationId,
1201
+ };
1202
+ const continuationReport = this.requiredGuardrailReport();
1203
+ if (continuationReport && !continuationReport.ok) {
1204
+ yield this.requiredGuardrailMissingChunk(continuationReport, streamId, identity?.personaId ?? 'unknown_persona');
1205
+ return;
1206
+ }
1105
1207
  // This call is `async Promise<void>`; it triggers the orchestrator to process the tool result(s)
1106
1208
  // and push new chunks to the StreamingManager for the given streamId.
1107
1209
  await this.agentOSOrchestrator.orchestrateToolResults(streamId, toolResults);
1108
- // Yield new chunks received by our bridge client on the same stream
1109
- for await (const chunk of bridge.consume()) {
1210
+ // Yield new chunks received by our bridge client on the same stream, through the same output guards a turn has
1211
+ const continuationKey = identity?.conversationId || identity?.sessionId || streamId;
1212
+ const guardedContinuation = wrapOutputGuardrails(this.getActiveGuardrailServices(), continuationContext, bridge.consume(), {
1213
+ streamId,
1214
+ personaId: identity?.personaId,
1215
+ holdUntilFinal: this.holdsOutputUntilFinal(),
1216
+ onVerdict: (verdict) => this.recordGuardedReply(continuationKey, verdict),
1217
+ });
1218
+ for await (const chunk of guardedContinuation) {
1110
1219
  yield chunk;
1111
1220
  if (isActionableToolCallRequestChunk(chunk)) {
1112
1221
  break;
@@ -1254,9 +1363,27 @@ export class AgentOS {
1254
1363
  let shouldDeregisterBridge = false;
1255
1364
  const bridge = new AsyncStreamClientBridge(`client-resumeToolReq-${pendingRequest.conversationId}-${Date.now()}`);
1256
1365
  try {
1366
+ // the required guards, before the resumed turn starts: a missing guard means no model call
1367
+ const resumeReport = this.requiredGuardrailReport();
1368
+ if (resumeReport && !resumeReport.ok) {
1369
+ yield this.requiredGuardrailMissingChunk(resumeReport, pendingRequest.streamId, pendingRequest.personaId);
1370
+ return;
1371
+ }
1257
1372
  streamIdToListen = await this.agentOSOrchestrator.orchestrateResumedToolResults(pendingRequest, toolResults, options);
1258
1373
  await this.streamingManager.registerClient(streamIdToListen, bridge);
1259
- for await (const chunk of bridge.consume()) {
1374
+ const resumeContext = {
1375
+ userId: pendingRequest.userId,
1376
+ sessionId: pendingRequest.sessionId,
1377
+ personaId: pendingRequest.personaId,
1378
+ conversationId: pendingRequest.conversationId,
1379
+ };
1380
+ const guardedResume = wrapOutputGuardrails(this.getActiveGuardrailServices(), resumeContext, bridge.consume(), {
1381
+ streamId: streamIdToListen,
1382
+ personaId: pendingRequest.personaId,
1383
+ holdUntilFinal: this.holdsOutputUntilFinal(),
1384
+ onVerdict: (verdict) => this.recordGuardedReply(pendingRequest.conversationId, verdict),
1385
+ });
1386
+ for await (const chunk of guardedResume) {
1260
1387
  yield chunk;
1261
1388
  if (isActionableToolCallRequestChunk(chunk)) {
1262
1389
  shouldDeregisterBridge = true;