Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(privacy): replace personal handle in STT dictionary examples; extend PII scrub register

Ruben Lütkedf6f482b2e2c
diff --git a/jarvis/speech/stt_dictionary.py b/jarvis/speech/stt_dictionary.py
index 7abb251421..2ee7a8d6c7 100644
--- a/jarvis/speech/stt_dictionary.py
+++ b/jarvis/speech/stt_dictionary.py
@@ -6,7 +6,7 @@ a dictation app-style feature: the user registers words the STT keeps getting wr
- ``misheard`` empty → plain vocabulary word. The corrector canonicalizes the
casing of exact (case-insensitive) hits and repairs conservative near-misses
- of single tokens ("Aethrok" → "Aethroc").
+ of single tokens ("Veltrok" → "Veltroc").
- ``misheard`` non-empty → explicit replacement pairs ("Gitter" → "GitHub"),
word-boundary + case-insensitive, multi-word capable.
@@ -52,7 +52,7 @@ MAX_MISHEARD_PER_ENTRY = 20
# Conservative fuzzy-repair gates (plain vocabulary words only). A token is
# rewritten toward a dictionary word only when ALL hold: same first letter,
# minimum length, and edit distance within the length-scaled budget below.
-# This keeps "table" from becoming "Fable" while still fixing "Aethrok".
+# This keeps "table" from becoming "Fable" while still fixing "Veltrok".
_FUZZY_MIN_TOKEN_LEN = 4
_FUZZY_DISTANCE_BUDGET = ((8, 2), (_FUZZY_MIN_TOKEN_LEN, 1))
@@ -360,7 +360,7 @@ class TranscriptCorrector:
for pattern, target in self._casing:
text = pattern.sub(target, text)
# 3) Conservative fuzzy repair of single tokens toward vocabulary
- # words ("Aethrok" → "Aethroc").
+ # words ("Veltrok" → "Veltroc").
if self._fuzzy_index:
text = self._token_re.sub(self._fix_token, text)
return text
diff --git a/scripts/ci/privacy_gate/references/pii-scrub.tsv b/scripts/ci/privacy_gate/references/pii-scrub.tsv
index 838897e9e0..ad23e2655b 100644
--- a/scripts/ci/privacy_gate/references/pii-scrub.tsv
+++ b/scripts/ci/privacy_gate/references/pii-scrub.tsv
@@ -66,6 +66,19 @@ scrub LUETKE MAINTAINER maintainer surname all-caps ascii-fold (regression guard
scrub C:.Users.Administrator <USER_HOME> windows personal home path
scrub C:[\\/]+Users[\\/]+Administrator <USER_HOME> windows personal home path (escaped/double-separator variant in source literals & docstrings)
scrub C--Users-Administrator-Desktop-Personal-Jarvis <your-claude-project-dir> personal .claude memory dir
+# Partial-slug backstop for ellipsis/abbreviated forms (e.g. `C--Users-Administrator-…`
+# in agent-definition prose) that the full-slug rule above cannot match. Ordered
+# AFTER it so the more specific full-slug replacement wins where both apply.
+scrub C--Users-Administrator C--Users-<name> partial memory-dir slug (abbreviated forms in agent defs; 2026-07-15 privacy review)
+
+# --- maintainer personal online handle (2026-07-15 privacy review) -----------
+# The local-part of a private email address; appeared as STT example vocabulary.
+# Sources were renamed to the invented word pair Veltrok/Veltroc; these rules
+# are the regression net for any future occurrence.
+scrub Aethroc Veltroc maintainer personal handle -> neutral invented word
+scrub Aethrok Veltrok maintainer personal handle (misheard form) -> neutral invented word
+scrub aethroc veltroc maintainer personal handle, lowercase -> neutral invented word
+scrub aethrok veltrok maintainer personal handle (misheard form), lowercase -> neutral invented word
# --- cloud project identifier (regression guard; 0 current hits) ------------
scrub gen-lang-client-0108934957 <GCP_PROJECT_ID> personal GCP project id
diff --git a/tests/unit/speech/test_stt_dictionary.py b/tests/unit/speech/test_stt_dictionary.py
index c31e450544..f1a1eff418 100644
--- a/tests/unit/speech/test_stt_dictionary.py
+++ b/tests/unit/speech/test_stt_dictionary.py
@@ -160,8 +160,8 @@ class TestVocabularyWords:
assert c.correct("open github and GITHUB") == "open GitHub and GitHub"
def test_fuzzy_repairs_near_miss(self) -> None:
- c = corrector_for(("Aethroc", []))
- assert c.correct("write to Aethrok") == "write to Aethroc"
+ c = corrector_for(("Veltroc", []))
+ assert c.correct("write to Veltrok") == "write to Veltroc"
def test_fuzzy_requires_same_first_letter(self) -> None:
# "table" is distance 2 from "Fable" but starts differently — untouched.
@@ -188,10 +188,10 @@ class TestVocabularyWords:
assert c.correct("write to nico müller") == "write to Nico Müller" # i18n-allow: umlauted proper name under test
def test_email_entry_matches_boundary(self) -> None:
- c = corrector_for(("[email protected]", []))
+ c = corrector_for(("[email protected]", []))
assert (
- c.correct("send it to [email protected] please")
- == "send it to [email protected] please"
+ c.correct("send it to [email protected] please")
+ == "send it to [email protected] please"
)
def test_empty_dictionary_is_noop(self) -> None: