From b9ba7df80c229ac3d031b9fccca62e645d33f154 Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Fri, 28 Aug 2026 19:02:25 -0600 Subject: [PATCH 1/3] 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 From bce6b0c1fe6ad7f307d388e3d66d659b7fbede3b Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Mon, 31 Aug 2026 16:11:29 -0600 Subject: [PATCH 2/3] Allow Timestamp in dontScanBefore Now storing UTC timestamp in the dontScanBefore field. --- salt/soc/soc_soc.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/soc/soc_soc.yaml b/salt/soc/soc_soc.yaml index b4f01d541..2710ab179 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -855,8 +855,8 @@ soc: 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 + regex: "^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z)?$" + regexFailureMessage: Expecting date in RFC3339 format (2026-08-31T22:05:48Z) global: True advanced: True memoryScanIntervalSeconds: From fb7e065590a9b2bb8f6c04571c3637ac0e61a6fe Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Tue, 1 Sep 2026 09:32:26 -0600 Subject: [PATCH 3/3] Remove YYYY-MM-DD No more instances of YYYY-MM-DD --- 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 2710ab179..1471056bd 100644 --- a/salt/soc/soc_soc.yaml +++ b/salt/soc/soc_soc.yaml @@ -854,7 +854,7 @@ soc: global: True forcedType: bool dontScanBefore: - description: A date specifying how far back to scan for memories. Must be in YYYY-MM-DD format. + description: A date specifying how far back to scan for memories. Must be in UTC format (2026-08-31T22:05:48Z). regex: "^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z)?$" regexFailureMessage: Expecting date in RFC3339 format (2026-08-31T22:05:48Z) global: True