normalize-policy phase-4: remove extra trim/lower from language/trigger/context handling

This commit is contained in:
DBT
2026-02-27 17:06:53 +00:00
parent 4a9baf91ca
commit 9feb4d0c53
3 changed files with 9 additions and 11 deletions

View File

@@ -4,7 +4,6 @@ import (
"encoding/json"
"os"
"path/filepath"
"strings"
"sync"
"time"
)
@@ -79,7 +78,7 @@ func (ta *triggerAudit) Record(trigger, channel, session string, suppressed bool
}
func normalizeTrigger(v string) string {
s := strings.ToLower(strings.TrimSpace(v))
s := v
if s == "" {
return "user"
}