From 26d503cb1e92fa3d199dbd10bba28aafd8a4647e Mon Sep 17 00:00:00 2001 From: Matthew Wright Date: Tue, 24 Nov 2026 09:36:58 -0500 Subject: [PATCH 1/2] query_notifications configurable defaults annotations --- salt/soc/defaults.yaml | 6 ++++++ salt/soc/soc_soc.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index f643ac09c..ec17a107c 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1638,6 +1638,12 @@ soc: - "user.effective.name" - "weird.name" - "tags" + queryNotifications: + defaultLimit: 10 + maxLimit: 50 + summaryMaxLength: 1000 + fieldValueMaxLength: 200 + maxEntries: 25 onionconfig: saltstackDir: /opt/so/saltstack bypassEnabled: false diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 6255fbd23..1ed29d61d 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -1112,6 +1112,32 @@ soc: description: A whitelist of fields to return when OnionAI uses the query_events tool. All other fields are removed. One field per line. global: True multiline: True + queryNotifications: + defaultLimit: + description: Number of notifications Onion AI reads with the query_notifications tool when it doesn't ask for a specific number. Must be greater than 0. Values above maxLimit use maxLimit. + global: True + advanced: True + forcedType: int + maxLimit: + description: Maximum number of notifications Onion AI may read with one query_notifications call. Must be greater than 0. Higher values put more notification text into the model's context. + global: True + advanced: True + forcedType: int + summaryMaxLength: + description: Maximum number of characters of each notification summary that query_notifications returns to Onion AI. Must be greater than 0. Longer summaries are shortened. + global: True + advanced: True + forcedType: int + fieldValueMaxLength: + description: Maximum number of characters of each notification field value that query_notifications returns to Onion AI. Must be greater than 0. Longer values are shortened. Link values are never shortened. + global: True + advanced: True + forcedType: int + maxEntries: + description: Maximum number of fields, links, and attachment names per notification that query_notifications returns to Onion AI. Must be greater than 0. The result tells Onion AI how many were left out. + global: True + advanced: True + forcedType: int client: assistant: enabled: From 7d8edebf0e4c6b90d6dbf5d541a3d7ce48f50a46 Mon Sep 17 00:00:00 2001 From: Matthew Wright Date: Tue, 24 Nov 2026 15:39:09 -0500 Subject: [PATCH 2/2] field reword --- salt/soc/soc_soc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index 1ed29d61d..ff1ab291c 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -1134,7 +1134,7 @@ soc: advanced: True forcedType: int maxEntries: - description: Maximum number of fields, links, and attachment names per notification that query_notifications returns to Onion AI. Must be greater than 0. The result tells Onion AI how many were left out. + description: Maximum number of fields, of links, and of attachment names, each counted separately, per notification that query_notifications returns to Onion AI. Must be greater than 0. The result tells Onion AI how many were left out. global: True advanced: True forcedType: int