feat(profiler/behave_shell): emit environmental.locale

Searches ANSI-stripped output for LANG / LC_ALL / LC_CTYPE envvar
substrings emitted by env / locale / printenv. Highest-priority key
wins (LC_ALL > LANG > LC_CTYPE); POSIX value normalised to BCP-47:
en_US.UTF-8 → en-US, pt_BR.UTF-8 → pt-BR, C/POSIX → und. Free-string
registry value emitted directly.

PII discipline: only the parsed locale value enters observations;
surrounding output is read once for matching and dropped.
This commit is contained in:
2026-05-04 00:35:31 -04:00
parent 4257f7b6e2
commit b7ff5d2cc1
4 changed files with 197 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ from decnet.profiler.behave_shell._features.cognitive import (
inter_command_latency_class,
)
from decnet.profiler.behave_shell._features.environmental import (
locale,
shell_type,
terminal_multiplexer,
)
@@ -73,4 +74,5 @@ FEATURES: tuple[FeatureFn, ...] = (
landing_ritual,
shell_type,
terminal_multiplexer,
locale,
)