From b9ba7df80c229ac3d031b9fccca62e645d33f154 Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Fri, 28 Aug 2026 19:02:25 -0600 Subject: [PATCH] DontScanBefore New field that'll stop the memory scanner from scanning before an indicated date. Leaving it empty lets the scanner scan everything. The regex for it allows YYYY-MM-DD and ensures months only allow the max number of days (no June the 43rd). --- salt/soc/defaults.yaml | 1 + salt/soc/soc_soc.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/salt/soc/defaults.yaml b/salt/soc/defaults.yaml index bda6e1c9d..e0e61df48 100644 --- a/salt/soc/defaults.yaml +++ b/salt/soc/defaults.yaml @@ -1539,6 +1539,7 @@ soc: DetectionEngineer: gemma@SOAI useMemory: true useMemoryScanner: false + dontScanBefore: "" memoryScanIntervalSeconds: 300 memoryProximityThreshold: 0.8 messageProximityThreshold: 0.5 diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index dc1d2e80b..b4f01d541 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -853,6 +853,12 @@ soc: description: Enables the memory scanner for automatic memory extraction from historical sessions. global: True forcedType: bool + dontScanBefore: + description: A date specifying how far back to scan for memories. Must be in YYYY-MM-DD format. + regex: "^(\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|02-(0[1-9]|[12]\d)))?$" + regexFailureMessage: Expecting date in YYYY-MM-DD format + global: True + advanced: True memoryScanIntervalSeconds: description: How long to wait in seconds between attempts to scan sessions for new memories. global: True