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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(hotkeys): make every pickable key bindable on macOS
rubenluetke10-beep656ec9e21ac9
diff --git a/jarvis/trigger/backends/quartz.py b/jarvis/trigger/backends/quartz.pyindex 01c9736938..8937bbf065 100644--- a/jarvis/trigger/backends/quartz.py+++ b/jarvis/trigger/backends/quartz.py@@ -38,6 +38,7 @@ from __future__ import annotationsimport loggingimport threading+import timefrom jarvis.trigger.backends.global_hotkeys import MOUSE_BUTTON_TOKENSfrom jarvis.trigger.backends.pynput import (@@ -50,6 +51,22 @@ log = logging.getLogger(__name__)# Fixed ANSI virtual keycodes (Carbon kVK_ANSI_* / kVK_* constants) -> the# canonical lowercase tokens `_parse_combo_tokens` produces. Physical-position# matching keeps this table layout-independent and TSM-free.+#+# COMPLETENESS IS A CONTRACT, not a nicety. The recorder offers a key, the+# validator accepts it, the route saves it and the row renders it as bound —+# and then a key MISSING here simply never enters ``self._held``, so the chord+# can never match. There is no error anywhere in that chain: the user sees a+# saved shortcut that does nothing, on this OS only. That is exactly what+# happened to the whole nav cluster (Home/End/PageUp/PageDown/Insert), the+# entire numpad and F13-F20, every one of which the picker draws as a live,+# clickable cap (``keyboardLayout.ts`` NAV_ROWS, ``codeToKeyToken``'s+# ``Numpad*`` / ``F13+`` branches) while the Windows backend registers them+# fine.+#+# So the rule for this table: it must cover every token+# ``codeToKeyToken`` / ``_NAMED_KEY_TOKENS`` can emit. Adding a bindable cap to+# the picker without adding its keycode here is the same silent-dead-shortcut+# bug again. ``tests/unit/trigger/test_quartz_backend.py`` pins the parity._KEYCODE_TO_TOKEN: dict[int, str] = {0x00: "a", 0x0B: "b", 0x08: "c", 0x02: "d", 0x0E: "e", 0x03: "f",0x05: "g", 0x04: "h", 0x22: "i", 0x26: "j", 0x28: "k", 0x25: "l",@@ -62,7 +79,26 @@ _KEYCODE_TO_TOKEN: dict[int, str] = {0x33: "backspace", 0x75: "delete",0x7A: "f1", 0x78: "f2", 0x63: "f3", 0x76: "f4", 0x60: "f5", 0x61: "f6",0x62: "f7", 0x64: "f8", 0x65: "f9", 0x6D: "f10", 0x67: "f11", 0x6F: "f12",+ # F13-F20 live on the full-size Apple keyboard (and on every PC keyboard+ # plugged into a Mac). They are the SAFEST keys to bind — nothing else+ # claims them — and ``_SOLO_SAFE_KEYS`` allows f1..f24 solo for that reason.+ 0x69: "f13", 0x6B: "f14", 0x71: "f15", 0x6A: "f16",+ 0x40: "f17", 0x4F: "f18", 0x50: "f19", 0x5A: "f20",0x7B: "left", 0x7C: "right", 0x7D: "down", 0x7E: "up",+ # Nav cluster. ``kVK_Help`` is the physical key an external PC keyboard+ # sends for Insert, which is how the picker labels that cap.+ 0x72: "insert", 0x73: "home", 0x74: "page_up",+ 0x77: "end", 0x79: "page_down",+ # Numpad. The digits are ``numpad_N`` and the operators carry the+ # ``*_key`` names, both matching what ``codeToKeyToken`` emits and what the+ # Windows library registers. Keypad Enter folds onto the same ``enter``+ # token the main Return key uses — the picker maps ``NumpadEnter`` there+ # too, so one spelling covers both physical keys.+ 0x52: "numpad_0", 0x53: "numpad_1", 0x54: "numpad_2", 0x55: "numpad_3",+ 0x56: "numpad_4", 0x57: "numpad_5", 0x58: "numpad_6", 0x59: "numpad_7",+ 0x5B: "numpad_8", 0x5C: "numpad_9",+ 0x45: "add_key", 0x4E: "subtract_key", 0x43: "multiply_key",+ 0x4B: "divide_key", 0x41: "decimal_key", 0x4C: "enter",}# CGEventFlags modifier masks -> canonical modifier tokens. `ctrl_r` is folded@@ -85,6 +121,13 @@ _MOUSE_BUTTON_TO_TOKEN: dict[int, str] = {4: "mouse_x2",}+# How long a grant verdict stays good inside the event-tap callback. Short+# enough that revoking Accessibility mid-session stops the shortcuts about as+# fast as a human can switch back from System Settings; long enough that+# ordinary typing does not re-probe TCC natively dozens of times a second.+# See :meth:`QuartzHotkeyBackend._permitted`.+_PERMISSION_TTL_S = 1.0+class QuartzHotkeyBackend:"""Quartz event-tap hotkey backend for macOS (AD-8).@@ -100,6 +143,10 @@ class QuartzHotkeyBackend:self._got_event = Falseself._held: set[str] = set()self._permission_check = _macos_hotkey_permissions_granted+ # Last grant verdict + when it was taken (see ``_permitted``). ``None``+ # means "never probed", so the first event of a session always asks.+ self._permission_cache: bool | None = None+ self._permission_checked_at = 0.0self._tap: object | None = Noneself._source: object | None = Noneself._runloop: object | None = None@@ -139,12 +186,45 @@ class QuartzHotkeyBackend:combo["tokens"] & MOUSE_BUTTON_TOKENS for combo in combos)- def _reconcile(self) -> None:- """Fire press/release handlers on chord down/up transitions."""+ def _permitted(self) -> bool:+ """The grant verdict, re-probed at most every ``_PERMISSION_TTL_S``.++ The probe itself is deliberately uncached one level down+ (``permissions.py::_state``) so a revoked grant is seen live — but it+ is a native TCC call (``AXIsProcessTrusted`` + ``IOHIDCheckAccess``),+ and it used to run on EVERY reconcile. That put two ObjC round trips+ into the event-tap callback for every keystroke the machine sees —+ not just ours, since a session tap observes the whole system. Typing+ an ordinary sentence therefore fired dozens of native probes a second+ inside a callback macOS holds the input pipeline on.++ That is not merely slow, it is how the shortcuts go dead: a tap whose+ callback overruns its deadline is DISABLED by the OS+ (``kCGEventTapDisabledByTimeout``). We re-enable it above, but the+ events during the gap are gone — which is exactly the reported "the+ shortcut works sometimes, or not at all" on a Mac.++ A short TTL keeps the fail-closed contract intact: a grant revoked+ mid-session still takes effect within a second, and a revocation also+ kills the tap outright, so this check is the belt to that suspenders.+ """+ now = time.monotonic()+ if (+ self._permission_cache is not None+ and now - self._permission_checked_at < _PERMISSION_TTL_S+ ):+ return self._permission_cachetry:- permitted = self._permission_check()+ permitted = self._permission_check() is Trueexcept Exception: # noqa: BLE001 — the probe must never kill the tappermitted = False+ self._permission_cache = permitted+ self._permission_checked_at = now+ return permitted++ def _reconcile(self) -> None:+ """Fire press/release handlers on chord down/up transitions."""+ permitted = self._permitted()if permitted is not True:# A grant can be revoked while the tap thread is alive: clear every# partial chord and refuse the callback (same contract as pynput).@@ -449,6 +529,10 @@ class QuartzHotkeyBackend:for combo in self._combos:combo["down"] = Falseself._started = False+ # A re-arm must ask TCC again rather than trust a verdict taken before+ # the user was sent to System Settings.+ self._permission_cache = None+ self._permission_checked_at = 0.0def unregister(self) -> None:"""Drop the armed bindings. The tap is torn down in ``stop``."""diff --git a/scripts/ci/privacy_gate/references/pii-scrub.tsv b/scripts/ci/privacy_gate/references/pii-scrub.tsvindex 5eb7dc3a3d..c4bfa02a05 100644--- a/scripts/ci/privacy_gate/references/pii-scrub.tsv+++ b/scripts/ci/privacy_gate/references/pii-scrub.tsv@@ -107,18 +107,18 @@ scrub f260abcc-b5a3-4c38-9502-3f6473ba0ae9 20000002-0000-4000-8000-000000000002scrub 8cf7b42d-5229-4617-91fe-d406b1e4fe6d 20000003-0000-4000-8000-000000000003 private evidence turn idscrub e97522ea-2c2e-4ae8-8b41-3441f257c96e 20000004-0000-4000-8000-000000000004 private latency session idscrub e97522ea 20000004 short private latency session reference-scrub 019f0fa6-4ff6-7bd9-87fd-a32e201b32c9 019f0000-2001-7000-8000-000000000001 private parent mission id-scrub 019f0fac-26a3-7c59-bfa3-385fb1e426fc 019f0000-2002-7000-8000-000000000002 private child mission id-scrub 019f0fa6-4ff6 019f0000-2001 private parent mission slug-scrub 019f0fac-26a3 019f0000-2002 private child mission slug-scrub 019f3cd8-1dd4 019f0000-3001 private quota-incident mission id-scrub 019f26d0-bb07 019f0000-3002 private deliverable-incident mission id-scrub 019fa4bc-9110 019f0000-3003 private task id-scrub 019fa4bc91100000 019f000030030000 private compact task id-scrub 019fa4bc8d2b 019f00003004 private mission directory id-scrub 019f5ca2-e30f 019f0000-3005 private mission result id-scrub 019ea1da-4552-7ec4-8a88-ffba1773521e 019f0040-4001-7000-8000-000000000001 private phantom-worker mission id-scrub 019ea1da 019f0040 short private phantom-worker mission reference+scrub 019f0fa6-4ff6-7bd9-87fd-a32e201b32c9 019f1049-0001-7000-8000-000000001049 private parent mission id+scrub 019f0fac-26a3-7c59-bfa3-385fb1e426fc 019f104a-0001-7000-8000-00000000104a private child mission id+scrub 019f0fa6-4ff6 019f1049-0001 private parent mission slug+scrub 019f0fac-26a3 019f104a-0001 private child mission slug+scrub 019f3cd8-1dd4 019f104e-0001 private quota-incident mission id+scrub 019f26d0-bb07 019f104b-0001 private deliverable-incident mission id+scrub 019fa4bc-9110 019f1053-0001 private task id+scrub 019fa4bc91100000 019f105300010000 private compact task id+scrub 019fa4bc8d2b 019f10530002 private mission directory id+scrub 019f5ca2-e30f 019f1052-0001 private mission result id+scrub 019ea1da-4552-7ec4-8a88-ffba1773521e 019f101f-0001-7000-8000-00000000101f private phantom-worker mission id+scrub 019ea1da 019f101f short private phantom-worker mission referencescrub 2995997b 10000010 private voice-confirmation session referencescrub 1a3df62a 10000011 private orb session referencescrub 06a65611 10000012 private computer-use session reference@@ -128,16 +128,16 @@ scrub fa9d4279 10000015 private screen-context session referencescrub 5edf0245 20000010 private tool-loop trace referencescrub c82aa1a6 20000011 private capability trace referencescrub af736681 20000012 private delegate turn reference-scrub 019ea82e 019f0010 private provider-fallback mission prefix-scrub 019ea830 019f0011 private provider-fallback mission prefix-scrub 019ecb56 019f0012 private research mission prefix-scrub 019ec761 019f0013 private informational mission prefix-scrub 019f36e5 019f0014 private auth incident mission prefix-scrub 019f38b1 019f0015 private auth incident mission prefix-scrub 019e70a9 019f0020 private prompt incident mission prefix-scrub 019e7e04 019f0021 private quality incident mission prefix-scrub 019ec708 019f0022 private deliverable incident mission prefix-scrub 019ef052 019f0023 private scope incident mission prefix+scrub 019ea82e 019f1020 private provider-fallback mission prefix+scrub 019ea830 019f1021 private provider-fallback mission prefix+scrub 019ecb56 019f1037 private research mission prefix+scrub 019ec761 019f1035 private informational mission prefix+scrub 019f36e5 019f104c private auth incident mission prefix+scrub 019f38b1 019f104d private auth incident mission prefix+scrub 019e70a9 019f101a private prompt incident mission prefix+scrub 019e7e04 019f101d private quality incident mission prefix+scrub 019ec708 019f1033 private deliverable incident mission prefix+scrub 019ef052 019f1046 private scope incident mission prefix# --- private-life and verbatim-transcript fixture cleanup -------------------scrub move to the USA move to Exampleland private relocation scenario -> synthetic country@@ -147,6 +147,243 @@ scrub The exact final transcript of the live turn \(trace [0-9a-f]+, [0-9:]+\)\.scrub _LIVE_GERMAN_TRANSCRIPT _SYNTHETIC_GERMAN_TRANSCRIPT synthetic transcript fixture identifierscrub fire on the live turn fire on the synthetic turn synthetic transcript fixture description+# --- residual live provenance found by the v1.2.2 semantic audit -----------+# These values escaped the earlier targeted pass because most occur only as+# short forensic prefixes in comments and regression docstrings. Keep every+# replacement obviously synthetic and shape-preserving; full/sluggified values+# precede their shorter prefixes so related fixtures remain internally stable.+scrub 8fd4ce9f-0c3d-4502-8ff7-c22a79a11833 019f0000-0100-4000-8000-000000000100 private machine installation id+scrub 67276501 10000101 private sessions.db turn prefix+scrub 09eef351 10000102 private fallback-chain session prefix+scrub 1fd3fa38 10000103 private realtime session prefix+scrub 204b108a 10000104 private realtime session prefix+scrub 2260c291 10000105 private speech session prefix+scrub 236877e6 10000106 private local-action session prefix+scrub 241a1984 10000107 private computer-use session prefix+scrub 296abc82 10000108 private evidence-gate session prefix+scrub 38134fab 10000109 private hotkey session prefix+scrub 3e27dd8e 10000110 private tool-loop session prefix+scrub 43cb78d0 10000111 private audio session prefix+scrub 514cddc0 10000112 private post-hangup session prefix+scrub 71f2d2de 10000113 private VAD session prefix+scrub 95a404b4 10000114 private search session prefix+scrub b34a4bba 10000115 private CLI session prefix+scrub b55afd02 10000116 private computer-use session prefix+scrub c995c9bc 10000117 private browser-search session prefix+scrub da25113a 10000118 private continuation session prefix+scrub dc533e39 10000119 private recorder session prefix+scrub e0898d6e 10000120 private search session prefix+scrub f260abcc 20000002 short private evidence session reference++# The collision-free range 019f1000-019f10ff is reserved exclusively for+# privacy-generated mission identities. Source prefixes are sorted and assigned+# once; longer IDs are listed first and always retain their family's new prefix.+scrub 019e63c6-4133 019f1015-0001 private screenshot mission slug+scrub 019e63c6-b3cf 019f1015-0002 private screenshot mission slug+scrub 019eadaf-272d 019f1025-0001 private injection incident mission slug+scrub 019eae15-5a31 019f1026-0001 private output-poll mission slug+scrub 019eb17d-710a 019f1027-0001 private capability incident mission slug+scrub 019ecbb2-c9ff 019f1038-0001 private cancellation incident mission slug+scrub 019eefcb-cee2 019f1044-0001 private rerun incident mission slug+scrub 019eefda-7e5f 019f1045-0001 private capability incident mission slug+scrub 019e70d0-6c19 019f101b-0001 private delivery mission slug+scrub 019eeb34-bb67 019f1043-0001 private browser-QA mission slug+scrub 019eeb34-bc50 019f1043-0002 private browser-QA fixture slug+scrub 019edf4c-f827 019f103e-0001 private post-hangup task slug+scrub 019e3c52-0acd 019f100d-0001 private model incident mission slug+scrub 019e3c1a-948e 019f100b-0001 private environment incident mission slug+scrub 019e6858-ab9a 019f1016-0001 private deliverable incident mission slug+scrub 019e6983-82e7 019f1017-0001 private duplicate-spawn mission slug+scrub 019e6983-a83b 019f1017-0002 private duplicate-spawn mission slug+scrub 019e6983-b0be 019f1017-0003 private duplicate-spawn mission slug+scrub 019f26d0be1f0000 019f104b00010000 private compact deliverable task id++scrub 019e256f 019f1000 private provider-chain mission prefix+scrub 019e2572 019f1001 private provider-chain mission prefix+scrub 019e2605 019f1002 private critic-iteration mission prefix+scrub 019e2bbf 019f1003 private workspace mission prefix+scrub 019e2c18 019f1004 private evidence mission prefix+scrub 019e2d35 019f1005 private workspace mission prefix+scrub 019e3236 019f1006 private startup mission prefix+scrub 019e3288 019f1007 private critic mission prefix+scrub 019e358e 019f1008 private critic mission prefix+scrub 019e35a4 019f1009 private external-worker mission prefix+scrub 019e35e2 019f100a private injection incident mission prefix+scrub 019e3c1a 019f100b private environment incident mission prefix+scrub 019e3c51 019f100c private model incident mission prefix+scrub 019e3c52 019f100d private model incident mission prefix+scrub 019e5952 019f100e private critic mission prefix+scrub 019e5960 019f100f private critic mission prefix+scrub 019e5966 019f1010 private critic mission prefix+scrub 019e5a0f 019f1011 private deliverable mission prefix+scrub 019e5a16 019f1012 private staged-diff mission prefix+scrub 019e5a52 019f1013 private staged-diff mission prefix+scrub 019e63c5 019f1014 private screenshot task prefix+scrub 019e63c6 019f1015 private screenshot mission prefix+scrub 019e6858 019f1016 private deliverable mission prefix+scrub 019e6983 019f1017 private duplicate-spawn mission prefix+scrub 019e6fea 019f1018 private recovery mission prefix+scrub 019e7095 019f1019 private recovery mission prefix+scrub 019e70d0 019f101b private delivery mission prefix+scrub 019e7abd 019f101c private external-write mission prefix+scrub 019e7f6d 019f101e private critic mission prefix+scrub 019ea8a5 019f1022 private critic-auth mission prefix+scrub 019ea8db 019f1023 private worker-auth mission prefix+scrub 019eacb8 019f1024 private deliverable mission prefix+scrub 019eadaf 019f1025 private injection incident mission prefix+scrub 019eae15 019f1026 private output-poll mission prefix+scrub 019eb17d 019f1027 private workspace mission prefix+scrub 019eb1ac 019f1028 private critic mission prefix+scrub 019eb25c 019f1029 private recovery mission prefix+scrub 019eb27f 019f102a private streaming mission prefix+scrub 019eb288 019f102b private streaming mission prefix+scrub 019eb2fd 019f102c private quota mission prefix+scrub 019ec602 019f102d private process-spawn mission prefix+scrub 019ec615 019f102e private model-fallback mission prefix+scrub 019ec61b 019f102f private critic mission prefix+scrub 019ec638 019f1030 private capability mission prefix+scrub 019ec66c 019f1031 private answer-only mission prefix+scrub 019ec674 019f1032 private answer-only mission prefix+scrub 019ec742 019f1034 private latency mission prefix+scrub 019ecb35 019f1036 private shutdown mission prefix+scrub 019ecbb2 019f1038 private cancellation mission prefix+scrub 019ecbb8 019f1039 private research mission prefix+scrub 019ecc48 019f103a private critic regression mission prefix+scrub 019ecc78 019f103b private output fixture mission prefix+scrub 019ed04e 019f103c private recap mission prefix+scrub 019ed051 019f103d private recap mission prefix+scrub 019edf4c 019f103e private post-hangup mission prefix+scrub 019ee416 019f103f private deliverable mission prefix+scrub 019ee554 019f1040 private worker mission prefix+scrub 019ee555 019f1041 private worker mission prefix+scrub 019ee558 019f1042 private worker mission prefix+scrub 019eeb34 019f1043 private browser-QA mission prefix+scrub 019eefcb 019f1044 private rerun incident mission prefix+scrub 019eefda 019f1045 private capability incident mission prefix+scrub 019ef099 019f1047 private deliverable mission prefix+scrub 019f07cb 019f1048 private Google CLI mission prefix+scrub 019f0fa6 019f1049 private parent mission prefix+scrub 019f0fac 019f104a private child mission prefix+scrub 019f26d0 019f104b private deliverable incident mission prefix+scrub 019f3cd8 019f104e private quota incident mission prefix+scrub 019f3d01 019f104f private provider-quota mission prefix+scrub 019f3d0f 019f1050 private provider-quota mission prefix+scrub 019f3d18 019f1051 private critic-auth mission prefix++scrub a050f7fdf922fc5f00d643f547bc02bcc216abf5c8b26341697459f64041989d 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef private board smoke-test public key+scrub 172\.21\.0\.1 192.0.2.1 private Docker bridge client address -> RFC 5737 TEST-NET+scrub (?<=192\.0\.2\.1:)53972 51001 private Docker smoke-test ephemeral port after scrubbed TEST-NET address+scrub (?<=192\.0\.2\.1:)56842 51002 private Docker smoke-test ephemeral port after scrubbed TEST-NET address+scrub (?<=192\.0\.2\.1:)56854 51003 private Docker smoke-test ephemeral port after scrubbed TEST-NET address+scrub (?<=192\.0\.2\.1:)56858 51004 private Docker smoke-test ephemeral port after scrubbed TEST-NET address+scrub 2026-04-25T09:05:14\.584974 2026-01-01T12:00:00.000000 private board smoke-test timestamp+scrub 2026-04-25T09:05:15\.040344Z 2026-01-01T12:00:01.000000Z private board smoke-test timestamp+scrub 2026-04-25T09:05:15\.040344 2026-01-01T12:00:01.000000 private board smoke-test timestamp++scrub When was I at dinner with Viktoria in San Francisco\? When did Alex have dinner with Testoria in Exampleville? private-life query -> synthetic worked example+scrub On 23 June 2024, at Trestle in San Francisco\. On 15 March 2024, at Example Bistro in Exampleville. private-life answer -> synthetic worked example+scrub 23 Jun 15 Mar private-life source date -> synthetic date+scrub Dinner w/ Viktoria Dinner w/ Testoria private-life calendar title -> synthetic person+scrub who is Viktoria who is Testoria private-life entity explanation -> synthetic person+scrub Viktoria Müller Testoria Example private-life full name -> synthetic identity+scrub Viktoria Novak Testoria Novak private-life identity fixture -> synthetic identity+scrub Viktor Novak Testor Novak paired identity fixture -> synthetic identity+scrub Novak, Viktoria Novak, Testoria private-life inverted identity fixture -> synthetic identity+scrub V\. Novak T. Novak private-life abbreviated identity fixture -> synthetic identity+scrub viktoria novak testoria novak private-life identity fixture lowercase -> synthetic identity+scrub viktor novak testor novak paired identity fixture lowercase -> synthetic identity+scrub novak, viktoria novak, testoria private-life inverted identity fixture lowercase -> synthetic identity+scrub v\. novak t. novak private-life abbreviated identity fixture lowercase -> synthetic identity+scrub VIKTORIA TESTORIA private-life identity fixture uppercase -> synthetic identity+scrub viktoria testoria private-life identity fixture lowercase -> synthetic identity+scrub Viktoria Testoria private-life identity fixture -> synthetic identity+scrub viki test private-life nickname lowercase -> synthetic nickname+scrub Viki Test private-life nickname -> synthetic nickname+scrub Trestle Example Bistro private restaurant -> synthetic venue+scrub the photo's metadata says San\s+Francisco the photo's metadata says Exampleville private-life photo provenance -> synthetic city+scrub My girlfriend Laura works at X\. My partner ExampleContact works at X. private relationship example -> synthetic contact+scrub LAURA EXAMPLE_CONTACT private contact identity uppercase -> synthetic identity+scrub laura examplecontact private contact identity lowercase -> synthetic identity+scrub Laura ExampleContact private contact identity -> synthetic identity++# --- final semantic-audit synthetic fixtures ------------------------------+# These late rules operate after the older identity substitutions above. They+# remove live wake/person/location details while keeping paired source/tests+# internally consistent in the public distribution tree.+scrub owner:\s+sam owner: maintainers personal ADR owner -> collective project ownership++scrub hey_nico hey_nova live wake model slug -> synthetic wake model slug+scrub hey-nico hey-nova live wake model slug -> synthetic wake model slug+scrub \bNICO\b NOVA live wake identity uppercase -> synthetic wake identity+scrub \bNIKO\b NOVA live wake phonetic variant uppercase -> synthetic wake identity+scrub \bNico\b Nova live wake identity -> synthetic wake identity+scrub \bNiko\b Nova live wake phonetic variant -> synthetic wake identity+scrub \bnico\b nova live wake identity lowercase -> synthetic wake identity+scrub \bniko\b nova live wake phonetic variant lowercase -> synthetic wake identity++scrub San Francisco Exampleville private location -> explicitly synthetic city+scrub san-francisco exampleville private location slug -> synthetic city slug+scrub SAN FRANCISCO EXAMPLEVILLE private location uppercase -> synthetic city+scrub work visa entry permit jurisdiction-specific relocation detail -> generic fixture+scrub H-1B or O-1 the relevant permit jurisdiction-specific visa classes -> generic fixture+scrub US bank account local payment account jurisdiction-specific banking detail -> generic fixture+scrub \bSSN\b local registration jurisdiction-specific identifier -> generic fixture+scrub visa process permit process jurisdiction-specific relocation detail -> generic fixture++scrub Europe/Berlin Etc/UTC preserve a valid IANA-zone example before city anonymization+scrub PROFILE_WITH_LENA PROFILE_WITH_EXAMPLEFRIEND private biography fixture identifier -> synthetic identifier+scrub LENA_BODY EXAMPLEFRIEND_BODY private biography fixture identifier -> synthetic identifier+scrub cid_lena cid_examplefriend private biography fixture identifier -> synthetic identifier+scrub lena_page examplefriend_page private biography fixture identifier -> synthetic identifier+scrub lena_with_job examplefriend_with_job private biography fixture identifier -> synthetic identifier+scrub berlin_body exampletown_body private biography fixture identifier -> synthetic identifier+scrub cid_berlin cid_exampletown private biography fixture identifier -> synthetic identifier+scrub \bLENA\b EXAMPLEFRIEND private biography identity uppercase -> synthetic identity+scrub \bLena\b ExampleFriend private biography identity -> synthetic identity+scrub \blena\b examplefriend private biography identity lowercase/slug -> synthetic identity+scrub \bHamburg\b Exampleville private biography location -> synthetic city+scrub \bhamburg\b exampleville private biography location lowercase/slug -> synthetic city+scrub \bBerlin\b Exampletown private biography/coded family location -> synthetic city+scrub \bberlin\b exampletown private biography/coded family location lowercase/slug -> synthetic city+scrub \bAltona\b Example District private biography district -> synthetic district+scrub \baltona\b example-district private biography district slug -> synthetic district slug+scrub veterinarian specialist private profession -> generic synthetic occupation+scrub animal clinic example studio private workplace -> generic synthetic workplace+scrub born 1994 active since ExampleYear private birth year -> synthetic timeline marker+scrub Born 1994 Active since ExampleYear private birth year -> synthetic timeline marker++scrub Mein Bruder heisst Tom und wohnt schon lange in Exampletown Dieses Beispielprojekt heisst Atlas und laeuft schon lange stabil private family fact -> non-biographical German language fixture+scrub My brother is a doctor and he lives here with me now The example project is documented and it runs here now private family fact -> non-biographical English language fixture+scrub Joy's birthday is August 14th\. She is Sam's younger sister\. ExampleRelative's synthetic milestone is ExampleDate. private family relationship and date -> synthetic milestone+scrub Joy's birthday is August 14th\. ExampleRelative's synthetic milestone is ExampleDate. private birthday fact -> synthetic milestone+scrub Joy hat am 14\. August Geburtstag\. ExampleRelative hat am Beispieldatum einen synthetischen Meilenstein. private birthday fact -> synthetic German fixture+scrub dass Joys Geburtstag am 14\. August ist dass ExampleRelative am Beispieldatum einen synthetischen Meilenstein hat private birthday fact -> synthetic German fixture+scrub Notier dir, dass Joy am 14\. August Geburtstag hat\. Remember the synthetic ExampleRelative milestone. private birthday fact -> non-biographical English memory-intent fixture+scrub \bJOY\b EXAMPLERELATIVE private family identity uppercase -> synthetic identity+scrub \bJoy\b ExampleRelative private family identity -> synthetic identity+scrub \bjoy\b examplerelative private family identity lowercase/slug -> synthetic identity++scrub Maintainer mandate 2026-07-18: Regression contract: live provenance -> neutral regression provenance+scrub The two live regression utterances pinned below come verbatim\s+from the 2026-07-18 voice sessions \(08:25 Gulfstream remark, 08:29 relocation\s+remark\) The two synthetic regression utterances below represent ordinary conversational remarks live timestamps and conversation provenance -> synthetic fixture description+scrub live regressions synthetic regressions live provenance -> synthetic fixture label+scrub voice-session 2026-07-18 08:25 synthetic regression A live voice timestamp -> synthetic fixture label+scrub voice-session 2026-07-18 08:29 synthetic regression B live voice timestamp -> synthetic fixture label+scrub live utterance synthetic utterance live voice provenance -> synthetic fixture label+scrub Kann er jetzt überhaupt, der kann sich ja Dies ist eine beiläufige Bemerkung, bei der man sich private conversational lead-in -> synthetic German remark+scrub jeden Tag 'ne Golf Stream kaufen\. jeden Tag ein Beispielauto vorstellen kann. private conversational detail -> synthetic German remark+scrub Ah, ich will gucken, wo ich als nächstes hinziehe\. Ich überlege, welchen Ansatz ich für das Beispielprojekt wähle. private relocation intention -> synthetic German planning remark+scrub Ich will gucken, wo ich als nächstes hinziehe\. Ich überlege, welchen Ansatz ich für das Beispielprojekt wähle. private relocation intention -> synthetic German planning remark+scrub Wo soll ich als nächstes hinziehen\? Welchen Ansatz soll ich für das Beispielprojekt wählen? private relocation question -> synthetic German planning question+scrub Live forensic 2026-06-20: Synthetic regression fixture: live timestamp/provenance -> synthetic fixture label+scrub was ich alles beachten muss, wenn ich auswandern moechte\? wie eine allgemeine Beispiel-Checkliste aufgebaut ist? private emigration intention -> synthetic evergreen question+scrub live relocation-comparison turn synthetic advice question private relocation provenance -> synthetic fixture label+scrub a relocation-comparison turn a synthetic advice question private relocation provenance -> synthetic fixture label+scrub ich möchte auswandern ich plane ein Beispielprojekt private emigration intention -> synthetic German planning fixture+scrub emigration turn advice turn private emigration provenance -> synthetic fixture label+scrub emigration case evergreen-knowledge case private emigration provenance -> synthetic fixture label+scrub emigration forensic evergreen-knowledge regression private emigration provenance -> synthetic fixture label+scrub a relocation-research ask a synthetic planning ask private relocation provenance -> synthetic fixture label+# --- private emails ---------------------------------------------------------# 2026-07-20: the two rows that spelled out the maintainer's private addresses# were REMOVED. A denylist that quotes the very strings it protects publishesdiff --git a/scripts/ci/privacy_gate/references/secret-allowlist.tsv b/scripts/ci/privacy_gate/references/secret-allowlist.tsvindex 4c80757419..93b2e19d02 100644--- a/scripts/ci/privacy_gate/references/secret-allowlist.tsv+++ b/scripts/ci/privacy_gate/references/secret-allowlist.tsv@@ -24,5 +24,6 @@ xoxb-1234567890-abcdefghijkl scripts/ci/privacy_gate/references/secret-allowlist-----BEGIN OPENSSH PRIVATE KEY----- scripts/ci/privacy_gate/references/secret-allowlist.tsv this allowlist's own OPENSSH header row -- same reason as the RSA row above-----BEGIN OPENSSH PRIVATE KEY----- tests/unit/screen_context/test_redaction.py intentional fake: bare PEM header line, no key body -- fixture proving the screen-context redactor strips private-key blocks before a screenshot is described019f3cd8-1dd4 docs/BUGS.md already-reviewed public-baseline mission reference; newer local BUGS content is withheld+019f3cd8 docs/BUGS.md short form of the same already-reviewed public-baseline mission reference; required because the scrub map protects both full and abbreviated occurrencesaf736681 docs/BUGS.md already-reviewed public-baseline turn reference; newer local BUGS content is withheldc77b7a88 docs/BUGS.md already-reviewed public-baseline abbreviated session reference; newer local BUGS content is withhelddiff --git a/tests/unit/trigger/test_quartz_backend.py b/tests/unit/trigger/test_quartz_backend.pyindex b1a6801eea..acc3ae845a 100644--- a/tests/unit/trigger/test_quartz_backend.py+++ b/tests/unit/trigger/test_quartz_backend.py@@ -9,6 +9,9 @@ degrade paths; the live tap is exercised on macOS hardware/CI only.from __future__ import annotations+import re+from pathlib import Path+from jarvis.trigger.backends.quartz import (_FLAG_MASK_TO_TOKEN,_KEYCODE_TO_TOKEN,@@ -128,6 +131,103 @@ def test_keycode_table_covers_the_combo_vocabulary() -> None:assert {t for _, t in _FLAG_MASK_TO_TOKEN} == {"shift", "ctrl", "alt", "cmd"}+def test_keycode_table_covers_every_token_the_picker_can_record() -> None:+ """The Quartz table must know every key the keybind UI lets a user pick.++ The drift this pins is SILENT and macOS-only. The recorder emits a token,+ the validator accepts it, the route saves it and the row renders it as+ bound — but a token missing from ``_KEYCODE_TO_TOKEN`` never enters the+ held-set, so the chord cannot match and the shortcut is simply dead. No+ error is raised anywhere along that path.++ It is not hypothetical: the whole nav cluster, the entire numpad and+ F13-F20 were offered by the picker and unmatchable on macOS while the+ Windows backend registered all of them. Reading the tokens out of the+ frontend source rather than restating them here is the point — adding a+ bindable cap without its keycode fails this test instead of shipping.+ """+ source = (+ Path(__file__).resolve().parents[3]+ / "jarvis/ui/web/frontend/src/hooks/useHotkey.ts"+ ).read_text(encoding="utf-8")++ named = source.split("_NAMED_KEY_TOKENS", 1)[1].split("};", 1)[0]+ # `Insert: "insert",` -> the token on the right-hand side.+ expected = set(re.findall(r':\s*"([a-z0-9_]+)"', named))+ assert "home" in expected, "frontend token map failed to parse"++ # The generated families `codeToKeyToken` derives by pattern rather than+ # from the map: numpad digits, and the F-row up to what a keyboard has.+ expected |= {f"numpad_{n}" for n in range(10)}+ expected |= {f"f{n}" for n in range(1, 21)}++ missing = sorted(expected - set(_KEYCODE_TO_TOKEN.values()))+ assert not missing, (+ "these keys are bindable in the picker but have no macOS keycode, so "+ f"the shortcut would save and never fire: {missing}"+ )+++def test_permission_probe_is_not_run_per_keystroke() -> None:+ """The TCC probe must stay OFF the per-event path (AP-9 / AP-26 in spirit).++ A session event tap sees every keystroke on the machine, and the grant+ probe below it is two native ObjC calls that are deliberately uncached.+ Running it per event overran the tap's callback deadline, and macOS+ answers that by DISABLING the tap — the reported "the Mac shortcut works+ sometimes, or not at all".+ """+ calls = 0++ def _probe() -> bool:+ nonlocal calls+ calls += 1+ return True++ backend = QuartzHotkeyBackend()+ backend._permission_check = _probe+ backend.register([["control + j", lambda: None, None]])++ backend._handle_flags(_FLAG_CTRL)+ for _ in range(50):+ backend._handle_key_down(_KC_J)+ backend._handle_key_up(_KC_J)++ # Without the TTL this is well over a hundred native probes.+ assert calls <= 2, f"grant probed {calls}x for 100 key events"+++def test_revoked_permission_still_disarms_the_chord() -> None:+ """The TTL is a throttle, not a bypass: a revoked grant still closes."""+ granted = True+ fired: list[str] = []+ backend = QuartzHotkeyBackend()+ backend._permission_check = lambda: granted+ backend.register([["control + j", lambda: fired.append("press"), None]])++ backend._handle_flags(_FLAG_CTRL)+ backend._handle_key_down(_KC_J)+ assert fired == ["press"]++ granted = False+ backend._permission_checked_at = 0.0 # the TTL elapsing, deterministically+ backend._handle_key_up(_KC_J)+ backend._handle_key_down(_KC_J)+ assert fired == ["press"], "a revoked grant must not fire the chord again"+ assert backend._held == set()+++def test_stop_clears_the_cached_grant_verdict() -> None:+ """A re-arm re-asks TCC — the user may have just granted it."""+ backend = _backend_with_permission()+ backend.register([["control + j", lambda: None, None]])+ backend._handle_flags(_FLAG_CTRL)+ assert backend._permission_cache is True++ backend.stop()+ assert backend._permission_cache is None++def test_stop_is_idempotent_without_start() -> None:backend = _backend_with_permission()backend.stop()