From 60052e0910946b89cd0e42d9ed279c00bd06ec96 Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Tue, 18 Aug 2026 15:31:15 -0600 Subject: [PATCH 1/4] Memory Defaults and Annotations --- salt/soc/defaults.yaml | 11 +++++++++++ salt/soc/soc_soc.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index c5e14d31b..0b74ca332 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1537,6 +1537,17 @@ soc: Orchestrator: sonnet@SOAI Investigator: gemma@SOAI DetectionEngineer: gemma@SOAI + useMemory: true + useMemoryScanner: true + memoryProximityThreshold: 0.8 + messageProximityThreshold: 0.5 + maxUserMemoriesToInclude: 5 + maxGlobalMemoriesToInclude: 5 + maxUserMemoriesToReconcile: 20 + maxGlobalMemoriesToReconcile: 20 + memoryModel: gemma@SOAI + embedModel: gemma@SOAI + reconcileModel: gemma@SOAI onionconfig: saltstackDir: /opt/so/saltstack bypassEnabled: false diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 0dda9d090..627bb660e 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -845,6 +845,39 @@ soc: DetectionEngineer: description: This agent manages detections and their overrides, including tuning noisy rules and authoring rule content. global: True + useMemory: + description: Enables the Memory system for OnionAI + global: True + useMemoryScanner: + description: Enables the memory scanner for automatic memory extraction from historical sessions. + global: True + memoryProximityThreshold: + description: Describes how close memories need to be on a floating point scale from 0.0 to 1.0 to be considered when reconciling new memories with old ones. This value is usually higher than messageProximityThreshold. + global: True + messageProximityThreshold: + description: Describes how close a memory needs to be to a user's message on a floating point scale from 0.0 to 1.0 to be included in the context. This value is usually lower than memoryProximityThreshold. + global: True + maxUserMemoriesToInclude: + description: Specify the max number of user-specific memories to include in the prompt when a user sends a message. + global: True + maxGlobalMemoriesToInclude: + description: Specify the max number of global memories to include in the prompt when a user sends a message. + global: True + maxUserMemoriesToReconcile: + description: When reconciling new user-specific memories with existing user-specific memories, this determines how many old memories may be considered. + global: True + maxGlobalMemoriesToReconcile: + description: When reconciling new global memories with existing global memories, this determines how many old memories may be considered. + global: True + memoryModel: + description: The model to use when extracting memories from sessions. + global: True + embedModel: + description: The model to use when embedding a memory as a vector. Note that only memories embedded using the same model may be compared and only memories created with the model specified here will be considered when informing an agent of existing memories. + global: True + reconcileModel: + description: The model to use when reconciling memories that contain nearly the same content. + global: True client: assistant: enabled: From 99e1d83358394d00ecdefb3de905aa548b756e72 Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Wed, 19 Aug 2026 14:16:12 -0600 Subject: [PATCH 2/4] Add Interval and Disable by Default Added `memoryScanIntervalSeconds` with a default of 5 mins. Opted to set `useMemoryScanner` to false so by default our user's sessions are not sent to the cloud before they have a chance to configure the new setting. --- salt/soc/defaults.yaml | 12 +++++++++++- salt/soc/soc_soc.yaml | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 0b74ca332..3d7098960 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1538,7 +1538,8 @@ soc: Investigator: gemma@SOAI DetectionEngineer: gemma@SOAI useMemory: true - useMemoryScanner: true + useMemoryScanner: false + memoryScanIntervalSeconds: 300 memoryProximityThreshold: 0.8 messageProximityThreshold: 0.5 maxUserMemoriesToInclude: 5 @@ -2738,5 +2739,14 @@ soc: enabled: true adapter: SOAI charsPerTokenEstimate: 4 + - id: amazon.titan-embed-text-v2 + displayName: amazon.titan-embed-text-v2 + origin: USA + contextLimitSmall: 8192 + contextLimitLarge: 8192 + lowBalanceColorAlert: 500000 + enabled: true + adapter: SOAI + charsPerTokenEstimate: 4 diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 627bb660e..5fef5eded 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -851,6 +851,9 @@ soc: useMemoryScanner: description: Enables the memory scanner for automatic memory extraction from historical sessions. global: True + memoryScanIntervalSeconds: + description: How long to wait in seconds between attempts to scan sessions for new memories. + global: True memoryProximityThreshold: description: Describes how close memories need to be on a floating point scale from 0.0 to 1.0 to be considered when reconciling new memories with old ones. This value is usually higher than messageProximityThreshold. global: True From fcb889a30c16d7c496d383272af6b0a904b7cc1a Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Wed, 19 Aug 2026 14:17:21 -0600 Subject: [PATCH 3/4] Specify Default Embed Model --- salt/soc/defaults.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index 3d7098960..c6e833d32 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1547,7 +1547,7 @@ soc: maxUserMemoriesToReconcile: 20 maxGlobalMemoriesToReconcile: 20 memoryModel: gemma@SOAI - embedModel: gemma@SOAI + embedModel: amazon.titan-embed-text-v2@SOAI reconcileModel: gemma@SOAI onionconfig: saltstackDir: /opt/so/saltstack From a127ef57140109c0eead9181408c41829e2ff15b Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Mon, 24 Aug 2026 14:09:25 -0600 Subject: [PATCH 4/4] Show Toggle in UI Must specify bool fields with `forcedType: bool` in order for them to render as toggles in the UI. --- salt/soc/soc_soc.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 5fef5eded..b329b736b 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -848,9 +848,11 @@ soc: useMemory: description: Enables the Memory system for OnionAI global: True + forcedType: bool useMemoryScanner: description: Enables the memory scanner for automatic memory extraction from historical sessions. global: True + forcedType: bool memoryScanIntervalSeconds: description: How long to wait in seconds between attempts to scan sessions for new memories. global: True @@ -878,6 +880,7 @@ soc: embedModel: description: The model to use when embedding a memory as a vector. Note that only memories embedded using the same model may be compared and only memories created with the model specified here will be considered when informing an agent of existing memories. global: True + advanced: True reconcileModel: description: The model to use when reconciling memories that contain nearly the same content. global: True