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
chore: auto-save WIP via Claude stop-hook safety net (2026-06-30 18:36)
Ruben Lütkefa47e7b07f23
diff --git a/docs/handoffs/report-tutorial-review-answers.md b/docs/handoffs/report-tutorial-review-answers.mdnew file mode 100644index 0000000000..ac55803a9f--- /dev/null+++ b/docs/handoffs/report-tutorial-review-answers.md@@ -0,0 +1,277 @@+# Report-Tutorial — Secrets/PII review answers (LOCAL investigation)++> Produced by the LOCAL full-working-tree session in response to+> `reporttutorialpickupprompt (1).md`. Read-only investigation — nothing was+> modified, committed, pushed, or shipped. Evidence is given as `path:line`+> where relevant.++## TL;DR (read this first)++- **The "Report-Tutorial" is the `video/` Remotion project** — the source for the+ **Personal Jarvis onboarding tutorial video** that ends up on YouTube. The+ "Report" in the name is the sub-agents demo scene where the user asks for a+ **"deep-dive report on the global EV market"** and Jarvis delivers+ `ev-market-report.pdf`.+- **The git repo is safe.** The entire `video/**` tree is on the distribution+ denylist and partly `.gitignore`d, so **none of it ever reaches the public+ PersonalJarvis repo.** That is exactly why the depersonalized cloud session+ couldn't find it.+- **The real public surface is the YouTube video + thumbnail**, not git. Those are+ mostly clean: no API key, no token, no email, no desktop, no foreign windows.+ The first name "Ruben" is shown on purpose (he introduces himself by name).+- **One genuine, actionable finding:** the in-video GitHub screenshot+ (`video/public/shot-github.png`, used in the CreatorIntro scene) shows the **real+ surname "Ruben Lütke"** and GitHub login **"rubenluetke10-beep"** in the+ contributor list — readable at 4K / on pause. It is also **stale** (the public+ history has since been anonymized, so the video would show data that no longer+ exists in the live repo).+- **One secondary, non-video finding:** a stray ShareX capture+ `video/pythonw_xpdq2qZtJg.png` shows the **private email+ `[email protected]`** twice. It is `.gitignore`d and is **NOT** used in+ the film, but it is sitting in `video/` and should be removed / ShareX repointed.++---++## A — Identify the artifact++### 1. What exactly is the "Report-Tutorial"? Exact path(s).++The **`video/` Remotion project** — the build that renders the onboarding tutorial+film. Concretely:++- Whole tree: `video/` (115 git-tracked non-`node_modules` files).+- Main deliverable: `video/out/onboarding.mp4` and `video/out/onboarding-4k.mp4`+ (the 4K upload master).+- Composition source: `video/src/intro/OnboardingVideo.tsx` ++ `video/src/intro/onboarding/scenes/*.tsx`.+- Real-app screenshots shown in it: `video/public/shot-*.png`,+ `video/public/app-home.png`.+- Voiceover script + audio: `video/vo-script.json`, `video/public/vo/*.mp3`.+- Review frames: `video/analysis/*.png`.++The literal string "Report-Tutorial" appears **only** in the pickup prompt+(`reporttutorialpickupprompt (1).md`), so it is Ruben's informal label, not a+filename.++### 2. What kind of thing is it (one line)?++It is the **onboarding tutorial video** for Personal Jarvis — and it itself+contains a **report-generation demo**: the sub-agents scene asks for a *"deep-dive+report on the global EV market"* and delivers `ev-market-report.pdf`+(`video/vo-script.json:85`; `video/src/intro/onboarding/scenes/SubAgentsYT.tsx`).+That tutorial-that-demos-a-report is the "Report" + "Tutorial" combination.++### 3. Git-tracked, untracked, or generated at runtime?++**Git-tracked source, but denylisted from the public snapshot.**++- Tracked: 115 files under `video/` (TSX, JSON, screenshots, VO audio, analysis+ frames).+- Withheld from public ship: `video/**` is on the distribution denylist —+ `.claude/skills/ship-public-release/references/distribution-denylist.txt:134`+ (rationale lines 126–133).+- Additionally `.gitignore`d (never tracked at all): the rendered films+ (`git check-ignore video/out/onboarding.mp4` → IGNORED) and the stray ShareX+ PNGs in the `video/` root (`video/pythonw_xpdq2qZtJg.png` → IGNORED).++### 4. Format/type.++Mixed project: TypeScript/TSX (Remotion), JSON (VO script + generated timeline),+PNG screenshots, MP3 voiceover, and rendered MP4 films.++### 5. Last modified; hand-written or generated?++Active **late June 2026**. Onboarding scenes edited through ~Jun 27;+`video/out/onboarding.mp4` + `onboarding-4k.mp4` rendered **2026-06-27 09:27**;+thumbnails **2026-06-27 10:00**. The TSX scenes and the VO script are+**hand-authored**; the screenshots are **hand-captured** from the real app; the+MP4 films and the `timeline.json` are **generated** output.++---++## B — Publication intent++### 6. Public repo, or private/local only?++**Not the public repo.** The `video/` project is a build tool that stays private.+The *finished film* is meant to be **public on YouTube** — Ruben uploads it himself+and the app embeds it by link from youtube-nocookie.com+(`IntroVideoScreen.tsx`), it is never bundled. So: source project = private;+rendered film = intentionally public (that is its whole purpose).++### 7. On the denylist / in `.gitignore`?++**Both.**++- Denylist: `video/**` —+ `.claude/skills/ship-public-release/references/distribution-denylist.txt:134`.+- `.gitignore`: rendered `video/out/*.mp4` and root-level `video/*.png`+ screenshots are ignored (confirmed via `git check-ignore`).++This double exclusion is why the public-snapshot cloud reviewer had no files to+look at.++---++## C — Leak surface (the actual review)++### 8. Does it embed real data?++Yes — by design it shows **real app screenshots** and a **real GitHub screenshot**,+the voiceover names "Ruben … a developer from Germany", and the wake word is+"Hey Ruben". One stray (non-video) screenshot also embeds the private email. No+logs, transcripts, or example API responses with secrets.++### 9. Per-category search results (every hit with evidence)++**Maintainer real name (Lütke / Luetke + first name)**+- Surname "Ruben Lütke": **only in pixels** of `video/public/shot-github.png`+ (contributor list). **Zero** hits as text in any tracked `video/` file+ (full-text scan of all tracked non-binary files returned no `Lütke`/`Luetke`;+ the one `luetke` match was a false positive — "queue-microtask" in+ `video/package-lock.json:4264`).+- First name "Ruben": text in 11 tracked files — `video/vo-script.json:15,16,53`+ and scene files (`CreatorIntro.tsx`, `SetupWake.tsx`, `Examples.tsx`,+ `ComputerUseYT.tsx`, `SubAgentsYT.tsx`, `SpokenCommand.tsx`,+ `generated/timeline.json`, plus the older `scenes/MorningOverview.tsx`,+ `VoiceChat.tsx`, `WakeWord.tsx`); also in pixels of `shot-apikeys.png`,+ `shot-wake-crop.png`, `shot-outputs.png`. **This is intentional** — he introduces+ himself by first name in the film.++**Personal email(s)**+- `[email protected]`: **only in pixels** of+ `video/pythonw_xpdq2qZtJg.png` (shown twice — "Connected as …" on the OpenAI+ Codex and Antigravity rows). This file is `.gitignore`d and is **not referenced+ by any scene**, so it is **not in the film**. Zero email hits as text in tracked+ files.++**GitHub login**+- `rubenluetke10-beep`: in pixels of `shot-github.png` (commit-author line ++ contributor list). Not present as text.++**C:\Users\<name> / personal filesystem paths** — none found in tracked `video/`+text files.++**Machine/user identifiers, Windows SIDs (S-1-5-21-…)** — none.++**Internal project ids** — none. (`shot-outputs.png` shows a mission UUID+`mission_019efb1e-dfcc`, but that is a random run id, not an internal project id,+and that screenshot is not used in the film.)++**Private IPs (192.168.* / 10.* / 172.16–31.*)** — none.++**API keys / tokens / private-key blocks / JWTs** — **none in clear text.**+`shot-apikeys.png` shows the Claude key **masked** (dots) and the OpenAI field+**empty** ("Enter openai_api_key…"). No visible token anywhere.++### 10. Screenshots / images — do they show secrets?++- `video/public/shot-github.png` — **shows the real name "Ruben Lütke" + login+ "rubenluetke10-beep"** (contributor list). **Appears in the film** (CreatorIntro,+ `video/src/intro/onboarding/scenes/CreatorIntro.tsx:29`, displayed near native+ width → readable at 4K). **Primary finding.**+- `video/pythonw_xpdq2qZtJg.png` — shows the **private email** twice. **Not in the+ film**; stray ShareX capture, `.gitignore`d.+- `video/public/shot-outputs.png` — shows an internal **German mission prompt**+ ("…Das war einfach starr. Kannst mal einen Deep Dive machen…") + first name.+ **Not referenced by any scene → not in the film.**+- `video/public/shot-apikeys.png` — first name in the sidebar; key **masked**, no+ token. In the film (SetupKeys).+- `video/public/shot-wake-crop.png` — "Hey Ruben" / "called: Ruben" (first name).+ In the film (SetupWake). Intentional.+- `video/public/app-home.png` — **cleanly depersonalized**: shows "Jarvis" /+ "Hey Jarvis", no personal data. In the film (RealApp).+- `video/public/personal-jarvis-onboarding-thumbnail.png` (public YouTube+ thumbnail) — only the first name in the "Hey Ruben …" command cards; no email,+ token, surname, or desktop. Clean.+- `video/analysis/*.png` (48 review frames) — spot-checked `int_01.png`+ ("Works with your world" plugin grid) and `k_01.png` ("Personal Jarvis" title) —+ clean, no PII. The denylist flags these as possibly carrying personalized demo+ text in pixels, which is why the whole tree is withheld.++No screenshot shows the desktop wallpaper, foreign window titles, the taskbar, or+other-app content — they are all in-app captures.++### 11. Embedded URLs / IDs — intended-public or accidental?++- YouTube video id `FXz1HclXL1g` lives in the **frontend** (`IntroVideoScreen.tsx`),+ not in the `video/` project — **intended public** (the published onboarding+ video).+- `https://discord.gg/6VzzNDwUwV` in `video/README.md:46` is **Remotion's official+ template Discord** (boilerplate from the starter), **not** Ruben's server — not+ sensitive.+- The plugins scene names "Gmail, Calendar, Telegram, Discord, Spotify, GitHub"+ only as **brand labels** — no invite links, no handles.+- The outro says *"the link is in the description below"* — no hard-coded URL in+ the video.+- Other URLs found are npm/eslint sponsor links in `video/package-lock.json` —+ boilerplate, non-sensitive.++---++## D — Scope++### 12. One file or a whole directory? Everything in scope.++A **whole directory: `video/`**. But the part that actually reaches the public+(the rendered YouTube film + thumbnail) is a small subset:++**In the finished film (real public surface):**+`shot-github.png` (CreatorIntro), `shot-apikeys.png` (SetupKeys),+`shot-wake-crop.png` (SetupWake), `app-home.png` (RealApp), the VO audio+(`video/public/vo/*.mp3`), and the thumbnail.++**Tracked but NOT in the film (lower urgency — withheld from public anyway):**+`shot-outputs.png`, `shot-settings.png`, `shot-wake.png`, the 48 `analysis/*.png`+review frames, the TSX/JSON source, and the older IntroVideo scenes.++**Not in the film and `.gitignore`d:** `pythonw_xpdq2qZtJg.png`,+`video/out/*.mp4`.++### 13. Anything the `pii-scrub.tsv` manifest would mask? (ship-gate result)++**Important nuance:** because `video/**` is on the distribution denylist, the real+ship gate **never exports or scans it** — it is cut at step 1 (tracked-files-only)++ the denylist. So the scanner output for these files is "not shipped", by design.++Applying the `pii-scrub.tsv` rules **manually** to the tracked *text* would mask:+- `Ruben Lütke` → `Personal Jarvis Maintainer`+- `Ruben` → `Alex` (e.g. `video/vo-script.json:15,16,53`)+- `Lütke` → `Maintainer`+- `rubenluetke10-beep` → `octocat`+- `[email protected]` → **block-only** (would block a ship if it appeared+ in a non-exempt shipping file)++**Critical limitation:** the deterministic scrubber is **text-only**. It does **not**+see PII baked into PNG pixels — the real name in `shot-github.png` and the email in+`pythonw_xpdq2qZtJg.png` would **survive** a text scrub untouched. That is precisely+why the maintainer chose to denylist the entire `video/` tree rather than rely on+the scrubber (denylist rationale, distribution-denylist.txt:131–133).++### 14. Specific recent change/commit that triggered this concern?++The **upcoming public YouTube upload** of the onboarding film. The 4K master and+thumbnail were rendered 2026-06-27 (`video/out/onboarding-4k.mp4`,+`personal-jarvis-onboarding-thumbnail*.png`), and the wake-word debug audio shows+Ruben actively rehearsing the voiceover ("In this short onboarding video I'll show+you…"). The concern is therefore not about the git repo (protected) but about+**what a YouTube viewer can see/hear** in the published film and thumbnail.++---++## Recommendation (what to actually do before publishing)++1. **Re-shoot or redact the GitHub screenshot.** `shot-github.png` is the only+ genuine accidental leak in the published film: it shows the real surname and+ GitHub login, and it is stale (the public history was anonymized afterwards, so+ it shows data that no longer exists live). Either recapture it from the+ anonymized repo, blur the commit-author line + contributor sidebar, or+ consciously accept the surname being public.+2. **Remove the stray ShareX capture.** `video/pythonw_xpdq2qZtJg.png` embeds the+ private email; delete it and repoint ShareX out of the repo (a known issue —+ stray `pythonw_*.png` are ShareX captures, not a Jarvis artifact).+3. **Everything else is fine to ship as-is.** First name "Ruben" / "Hey Ruben",+ the masked-key API screenshot, the clean `app-home.png`, and the thumbnail+ carry no secrets and reflect the maintainer's intended public identity.+4. **Git side needs no action** — `video/**` is denylisted + partly gitignored and+ cannot reach the public repo.diff --git a/jarvis/brain/manager.py b/jarvis/brain/manager.pyindex b67287fe79..cd3d9b6a78 100644--- a/jarvis/brain/manager.py+++ b/jarvis/brain/manager.py@@ -689,6 +689,22 @@ _SPAWN_TOOL_NAMES: frozenset[str] = frozenset({"spawn_worker", "multi_spawn"})# works) and ``open_app`` (lighter; naming an app already reads as action-intent)._INHERITABLE_ACTION_TOOL_NAMES: frozenset[str] = _SPAWN_TOOL_NAMES | {"computer_use"}+# Deterministic write/record tools that create user-visible state (a contact, a+# profile field, a wiki note, a calendar event, a phone call). On a turn with NO+# action signal of its own these must NOT sit in the LLM surface, or the model+# can pick one on a plain conversational question (deep-dive 2026-06-30: a+# "does my budget fit?" turn had google_calendar/contact-upsert/wiki-ingest/+# update-profile ungated). Hidden by the signalless guard, with a hard exemption+# for any tool the deterministic layer ALREADY mandated this turn (a real "merk+# dir, dass…" keeps wiki-ingest via resolve_save_mandate; a calendar READ keeps+# google_calendar via the evidence gate) so the say-do write feature and calendar+# reads never regress. The background wiki (VoiceFactBridge) is untouched — it is+# not a model-callable tool (AP-9).+_DETERMINISTIC_WRITE_TOOL_NAMES: frozenset[str] = frozenset({+ "contact-upsert", "update-profile", "wiki-ingest", "google_calendar",+ "call-contact",+})+# Interrogative opener (DE / EN / ES) — the leading question word of a plain# "what/which/who/how/…"-style factual question. Anchored at the start after an# optional wake/greeting/politeness run so "Jarvis, welche Firmen …" still@@ -1150,17 +1166,76 @@ _EVIDENCE_UNFULFILLED_PHRASES: dict[str, str] = {}-def _evidence_unfulfilled_answer(*, lang: str) -> str:+# Spoken domain labels for the honest "couldn't reach X" fallback. Mirrors the+# capability vocabulary already used by evidence_gate's refusal tables, so a+# mandated-but-unrun READ names the real domain ("…deine Cloud-Abrechnung…")+# instead of the generic "the tool" — which also seeds the conversation history+# so a follow-up "welches Werkzeug?" is answerable. Localized for every+# supported language; an unknown domain falls back to the generic phrase.+_EVIDENCE_DOMAIN_LABELS: dict[str, dict[str, str]] = {+ "de": {+ "calendar": "deinen Kalender", # i18n-allow: German TTS+ "email": "dein Postfach", # i18n-allow: German TTS+ "tasks": "deine Aufgaben", # i18n-allow: German TTS+ "repos": "deine Repositories", # i18n-allow: German TTS+ "deployments": "deine Deployments", # i18n-allow: German TTS+ "cloud": "deine Cloud-Abrechnung", # i18n-allow: German TTS+ "activity": "deinen Aktivitätsverlauf", # i18n-allow: German TTS+ },+ "en": {+ "calendar": "your calendar",+ "email": "your inbox",+ "tasks": "your tasks",+ "repos": "your repositories",+ "deployments": "your deployments",+ "cloud": "your cloud billing",+ "activity": "your activity history",+ },+ "es": {+ "calendar": "tu calendario",+ "email": "tu bandeja de entrada",+ "tasks": "tus tareas",+ "repos": "tus repositorios",+ "deployments": "tus despliegues",+ "cloud": "tu facturación en la nube",+ "activity": "tu historial de actividad",+ },+}++# Domain-aware variant of the unfulfilled phrase — same honesty contract (never+# claims a "block"/invents a reason), just names the capability via {label}.+_EVIDENCE_UNFULFILLED_DOMAIN_PHRASES: dict[str, str] = {+ "de": (+ "Ich konnte {label} gerade nicht abrufen — der Zugriff ist nicht " # i18n-allow: German TTS+ "durchgelaufen. Sag noch mal Bescheid, dann versuche ich es erneut." # i18n-allow: German TTS+ ),+ "en": (+ "I couldn't pull {label} just now — the access didn't go through. "+ "Say the word and I'll try again."+ ),+ "es": (+ "No pude obtener {label} ahora mismo — el acceso no se completó. "+ "Avísame y lo intento de nuevo."+ ),+}+++def _evidence_unfulfilled_answer(*, lang: str, domain: str = "") -> str:"""Honest spoken fallback for a mandated-tool turn whose tool never ran.Static, no LLM (AP-11). Never claims the tool "blocked" or invents a reason.- Localized for every supported language (de/en/es); an unrecognised code- degrades to the default locale so the spoken turn never crashes (Runtime+ When ``domain`` is a known external-data domain the phrase NAMES the+ capability ("…deine Cloud-Abrechnung…"); otherwise it degrades to the generic+ wording. Localized for every supported language (de/en/es); an unrecognised+ code degrades to the default locale so the spoken turn never crashes (RuntimeOutput Language doctrine)."""- return _EVIDENCE_UNFULFILLED_PHRASES.get(- lang, _EVIDENCE_UNFULFILLED_PHRASES[DEFAULT_LOCALE]- )+ if lang not in _EVIDENCE_UNFULFILLED_PHRASES:+ lang = DEFAULT_LOCALE+ label = _EVIDENCE_DOMAIN_LABELS.get(lang, {}).get(domain, "")+ if label:+ return _EVIDENCE_UNFULFILLED_DOMAIN_PHRASES[lang].format(label=label)+ return _EVIDENCE_UNFULFILLED_PHRASES[lang]# Honest spoken fallback for a mandated WRITE (e.g. contact-upsert) that never@@ -1220,6 +1295,7 @@ def _unfulfilled_replacement(suppressed: bool,is_write: bool,lang: str,+ domain: str = "",) -> "str | None":"""Decide whether a mandated-tool turn's answer must be replaced for honesty.@@ -1239,7 +1315,7 @@ def _unfulfilled_replacement(if "?" in (response_text or ""):return None # honest clarifying question — keep itreturn _action_unfulfilled_answer(required_tool, lang=lang)- return _evidence_unfulfilled_answer(lang=lang)+ return _evidence_unfulfilled_answer(lang=lang, domain=domain)def _render_recovered_tool_output(output: Any) -> str:@@ -3540,6 +3616,10 @@ class BrainManager:# contact-upsert) rather than a read lookup — switches the honest backstop# to write wording and lets a clarifying question stand. Reset per turn._evidence_required_is_write: bool = False+ # The external-data domain (calendar/email/cloud/…) a READ mandate targets,+ # so an unmet mandate's spoken fallback can NAME the capability instead of+ # the generic "the tool" (B3, 2026-06-30). Reset per turn.+ _evidence_required_domain: str = ""# Per-turn self-control directive (general settings/config control). Reset# at the start of every generate() turn; appended to the system prompt._self_control_directive: str = ""@@ -3956,10 +4036,17 @@ class BrainManager:or self._get_force_spawn_pattern().search(t)):return tools+ # Hide computer_use/spawn AND the deterministic write/record tools so+ # the model cannot pick one on a no-action conversational turn — but+ # NEVER strip a tool the deterministic layer already mandated this+ # turn (a say-do write via resolve_save_mandate, or a calendar/email+ # READ via the evidence gate), or those features regress (AD-CLI8).+ hidden = _INHERITABLE_ACTION_TOOL_NAMES | _DETERMINISTIC_WRITE_TOOL_NAMES+ mandated = getattr(self, "_evidence_required_tool", "") or ""return {n: toolfor n, tool in tools.items()- if n not in _INHERITABLE_ACTION_TOOL_NAMES+ if n not in hidden or n == mandated}except Exception: # noqa: BLE001 — gate must never blind the brainlog.debug("signalless-turn action-hide gate failed", exc_info=True)@@ -5910,6 +5997,7 @@ class BrainManager:self._evidence_directive = ""self._evidence_required_tool = ""self._evidence_required_is_write = False+ self._evidence_required_domain = ""# General self-control directive — reset here, set below once the# smalltalk classification for this turn is known.self._self_control_directive = ""@@ -6068,7 +6156,23 @@ class BrainManager:trace_id=turn_trace_id,)return verdict.refusal_text- if verdict.kind == "require_tool":+ if verdict.kind == "require_tool" and (+ _conversational_turn_suppresses_read_mandate(user_text)+ ):+ # Opinion/advice/conversational turn: never FORCE a read tool — and so+ # never void the answer — just because a domain keyword appeared. Live+ # 2026-06-30 (Bora-Bora): "...bei meinem Budget bei 25.000 Euro ...+ # passt es?" matched the cloud domain, the gate forced cli_gcloud, and+ # the backstop then deleted the model's good travel answer. The tool+ # stays in the surface, so the model keeps discretion to call it; it is+ # just never forced. A bare data lookup ("Was sind meine Abrechnungen?")+ # carries no opinion opener and stays gated (no confab regression).+ log.info(+ "Evidence gate stood down (conversational): domain=%s tool=%s "+ "— answering inline, not forcing the tool.",+ verdict.domain, verdict.tool_name,+ )+ elif verdict.kind == "require_tool":log.info("Evidence gate: domain=%s requires tool %s this turn",verdict.domain, verdict.tool_name,@@ -6101,6 +6205,9 @@ class BrainManager:if not injected:self._evidence_directive = verdict.directiveself._evidence_required_tool = verdict.tool_name+ # Persist the domain so the honest "couldn't reach X" fallback can+ # NAME the capability (B3) instead of the generic "the tool".+ self._evidence_required_domain = verdict.domain# Say-do honesty guard for WRITES. The read evidence gate above never# fires on a "save this" turn (it is not a lookup), so a confirmed offer@@ -6724,6 +6831,7 @@ class BrainManager:lang=resolve_output_language(self._reply_language, "unknown", user_text, default="de"),+ domain=self._evidence_required_domain,)if _replacement is not None:log.warning(