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(update): make every silent failure in the updater accountable
Ruben Lütkece13d10a0f43
diff --git a/jarvis/ui/web/update_routes.py b/jarvis/ui/web/update_routes.pyindex 38b44b9a36..f83ad0f7b6 100644--- a/jarvis/ui/web/update_routes.py+++ b/jarvis/ui/web/update_routes.py@@ -106,6 +106,8 @@ def _running_version() -> str:return str(jarvis.__version__)except (ImportError, AttributeError):+ # A source checkout without __version__ is normal; the caller falls+ # back to reading the version files.return "unknown"@@ -123,6 +125,10 @@ def _version_on_disk(root: Path) -> str | None:try:text = (root / rel).read_text(encoding="utf-8")except OSError:+ # Not "file absent" alone — an unreadable version file makes the+ # installed version look older than it is, which shows up as an+ # update that keeps re-offering itself. Worth a line before moving on.+ log.debug("[update] version file %s unreadable; trying the next", rel)continuem = re.search(pattern, text, re.MULTILINE)if m:@@ -142,7 +148,9 @@ def _naive_version_gt(a: str, b: str) -> bool:try:return parts(a) > parts(b)- except Exception: # noqa: BLE001+ except Exception: # noqa: BLE001 - unparseable version is never "newer"+ # Fail closed: an update is offered only when we can actually prove the+ # remote version is higher. Never blind-update on a parse failure.return False@@ -159,6 +167,8 @@ def _is_newer(latest: str, current: str) -> bool:return Version(latest) > Version(current)except ImportError:+ # `packaging` is not in the torch-free base install on every host; the+ # dotted-int compare below covers the SemVer tags releases actually use.return _naive_version_gt(latest, current)except Exception: # noqa: BLE001 - malformed versions are never newerreturn False@@ -173,6 +183,8 @@ def _versions_equal(left: str, right: str) -> bool:return Version(left) == Version(right)except ImportError:+ # Same as _is_newer: no `packaging` on a minimal install, so fall back+ # to an exact match on a strict dotted shape.dotted = re.compile(r"^\d+(?:\.\d+){2,3}$")return bool(dotted.fullmatch(left) and left == right)except Exception: # noqa: BLE001 - malformed versions never compare equal@@ -192,10 +204,13 @@ async def _terminate(proc: asyncio.subprocess.Process) -> None:await asyncio.wait_for(proc.wait(), timeout=0.05)returnexcept (TimeoutError, asyncio.CancelledError):+ # It ignored SIGTERM within the grace period; escalate to kill below.passproc.kill()await proc.wait()except (ProcessLookupError, OSError):+ # The child is already gone — which is exactly what this function is+ # for. Nothing to report.pass@@ -215,12 +230,16 @@ async def _run(cmd: list[str], *, cwd: Path, timeout_s: float) -> tuple[int, strcreationflags=NO_WINDOW_CREATIONFLAGS,)except (FileNotFoundError, OSError, NotImplementedError) as exc:+ # Not swallowed: the reason travels back to the caller in stderr and+ # ends up in the update status the user sees.return -1, "", f"could not run {cmd[0]}: {exc}"try:try:raw_out, raw_err = await asyncio.wait_for(proc.communicate(), timeout=timeout_s)except TimeoutError:+ # Same contract: the timeout is reported through stderr, and the+ # child is reaped first so no zombie survives the request.await _terminate(proc)return -1, "", f"{cmd[0]} timed out after {timeout_s:.0f}s"except asyncio.CancelledError:@@ -254,7 +273,10 @@ def _repo_root() -> Path | None:# .../repo/jarvis/__init__.py -> .../reporeturn Path(jarvis.__file__).resolve().parent.parent- except Exception: # noqa: BLE001 — never fatal+ except Exception: # noqa: BLE001 - an unlocatable checkout is not updatable+ # Returning None makes the managed-install guard fail closed: no root,+ # no update. Silent on purpose — this runs on every status poll, and a+ # namespace package without __file__ is a legitimate deployment shape.return None@@ -360,6 +382,7 @@ def _managed_install_profile(root: Path) -> InstallProfile:try:payload = json.loads((root / _MARKER_NAME).read_text(encoding="utf-8"))except (OSError, UnicodeDecodeError, json.JSONDecodeError, TypeError):+ # A source checkout has no install marker; the defaults below apply.payload = {}if isinstance(payload, dict):profile = payload.get("profile")@@ -401,7 +424,12 @@ def _write_pending_update(try:(root / _UPDATE_RESULT_NAME).unlink(missing_ok=True)except OSError:- pass+ # A result file we failed to clear is read again on the next boot and+ # reports the PREVIOUS run's outcome as if it were this one's.+ log.warning(+ "[update] could not clear %s; a stale result may be reported next boot",+ _UPDATE_RESULT_NAME,+ )def _read_pending_manifest(root: Path) -> dict[str, Any] | None:@@ -413,6 +441,8 @@ def _read_pending_manifest(root: Path) -> dict[str, Any] | None:try:payload = json.loads((root / _PENDING_UPDATE_NAME).read_text(encoding="utf-8"))except (OSError, UnicodeDecodeError, json.JSONDecodeError, TypeError):+ # No pending update is the normal case, and a half-written marker is+ # indistinguishable from it here; either way there is nothing to resume.return Noneif not isinstance(payload, dict) or payload.get("schema") != 1:return None@@ -438,6 +468,8 @@ def _read_update_result(root: Path) -> dict[str, Any] | None:try:payload = json.loads((root / _UPDATE_RESULT_NAME).read_text(encoding="utf-8"))except (OSError, UnicodeDecodeError, json.JSONDecodeError, TypeError):+ # Absent on every boot that did not just apply an update — the common+ # path, not a failure.return Noneif not isinstance(payload, dict) or not isinstance(payload.get("ok"), bool):return Nonediff --git a/scripts/ci/check_silent_exception_handlers.py b/scripts/ci/check_silent_exception_handlers.pyindex 5d80db2e8e..4a11b77eab 100644--- a/scripts/ci/check_silent_exception_handlers.py+++ b/scripts/ci/check_silent_exception_handlers.py@@ -131,13 +131,14 @@ def _justified(lines: list[str], handler: ast.ExceptHandler) -> bool:probe, a best-effort cleanup on teardown. What separates those from the bugclass is that somebody decided it, and said so. A bare ``# noqa: BLE001``is a lint escape, not a decision, so lint codes are stripped before the- prose is measured. The reason may sit on the ``except`` line or on the- first line of its body.+ prose is measured. The reason may sit on the ``except`` line, on any comment+ line between it and the first statement, or trailing that statement — all+ three are normal ways to write it, and a gate accepting only one shape would+ just teach people to move the comment."""- candidates = [handler.lineno]- if handler.body:- candidates.append(handler.body[0].lineno)- for lineno in candidates:+ if not handler.body:+ return False+ for lineno in range(handler.lineno, handler.body[0].lineno + 1):if not 0 < lineno <= len(lines):continuematch = _COMMENT.search(lines[lineno - 1])diff --git a/scripts/ci/silent-handlers-baseline.json b/scripts/ci/silent-handlers-baseline.jsonindex e0fe0be913..47048e2fa1 100644--- a/scripts/ci/silent-handlers-baseline.json+++ b/scripts/ci/silent-handlers-baseline.json@@ -1,16 +1,15 @@{"_comment": "Per-file count of exception handlers that neither log nor re-raise. Generated by scripts/ci/check_silent_exception_handlers.py --update. These numbers may go DOWN freely; an increase is a gate failure.",- "total": 1698,+ "total": 1591,"files": {- "jarvis/__main__.py": 10,- "jarvis/admin/client.py": 1,+ "jarvis/__main__.py": 9,"jarvis/admin/executor.py": 9,"jarvis/admin/helper.py": 3,"jarvis/admin/ipc.py": 4,- "jarvis/admin/launcher.py": 3,- "jarvis/admin/transport.py": 6,+ "jarvis/admin/launcher.py": 2,+ "jarvis/admin/transport.py": 5,"jarvis/admin/unix_socket.py": 4,- "jarvis/agent_accounts.py": 5,+ "jarvis/agent_accounts.py": 4,"jarvis/agent_cli_probe.py": 1,"jarvis/agent_config_parity.py": 10,"jarvis/agentic_ide/agent_sessions.py": 16,@@ -22,20 +21,20 @@"jarvis/agentic_ide/interrupted.py": 1,"jarvis/agentic_ide/native_picker.py": 2,"jarvis/agentic_ide/prompt_composer.py": 2,- "jarvis/agentic_ide/recap_engine.py": 2,+ "jarvis/agentic_ide/recap_engine.py": 1,"jarvis/agentic_ide/recents.py": 5,"jarvis/agentic_ide/resume_store.py": 7,"jarvis/agentic_ide/session.py": 3,"jarvis/agentic_ide/work_split.py": 3,"jarvis/agents/registry.py": 2,- "jarvis/audio/capture.py": 9,+ "jarvis/audio/capture.py": 7,"jarvis/audio/device_probe.py": 2,"jarvis/audio/device_select.py": 1,"jarvis/audio/devices.py": 3,"jarvis/audio/gain.py": 1,"jarvis/audio/level_tap.py": 1,"jarvis/audio/mic_level.py": 1,- "jarvis/audio/player.py": 8,+ "jarvis/audio/player.py": 6,"jarvis/audio/vad.py": 4,"jarvis/autostart/windows.py": 1,"jarvis/awareness/context.py": 1,@@ -45,7 +44,7 @@"jarvis/awareness/prompts.py": 1,"jarvis/awareness/story.py": 3,"jarvis/awareness/watchers/idle.py": 4,- "jarvis/awareness/watchers/window.py": 16,+ "jarvis/awareness/watchers/window.py": 11,"jarvis/board/achievements.py": 1,"jarvis/board/aggregator.py": 7,"jarvis/board/evaluator.py": 3,@@ -55,7 +54,7 @@"jarvis/board/sync.py": 4,"jarvis/brain/ack_brain/generator.py": 1,"jarvis/brain/agent_instructions.py": 3,- "jarvis/brain/app_control.py": 3,+ "jarvis/brain/app_control.py": 2,"jarvis/brain/cache_heartbeat.py": 2,"jarvis/brain/drop_context.py": 1,"jarvis/brain/evidence_gate.py": 1,@@ -64,20 +63,19 @@"jarvis/brain/identity_card.py": 6,"jarvis/brain/launcher.py": 1,"jarvis/brain/local_action_gate.py": 1,- "jarvis/brain/manager.py": 31,+ "jarvis/brain/manager.py": 29,"jarvis/brain/model_catalog.py": 2,"jarvis/brain/persona_loader.py": 3,"jarvis/brain/provider_registry.py": 1,- "jarvis/brain/provider_test.py": 9,+ "jarvis/brain/provider_test.py": 8,"jarvis/brain/streaming.py": 2,"jarvis/brain/structured_output_parser.py": 2,- "jarvis/brain/tool_call_recovery.py": 2,+ "jarvis/brain/tool_call_recovery.py": 1,"jarvis/brain/tool_gateway.py": 1,- "jarvis/brain/tool_use_loop.py": 2,- "jarvis/brain/tools/self_mod_tools.py": 7,- "jarvis/brain/turn_planner.py": 1,+ "jarvis/brain/tool_use_loop.py": 1,+ "jarvis/brain/tools/self_mod_tools.py": 4,"jarvis/brain/vision_context.py": 1,- "jarvis/browser_voice/route.py": 5,+ "jarvis/browser_voice/route.py": 4,"jarvis/browser_voice/session.py": 1,"jarvis/channels/discord.py": 3,"jarvis/channels/manager.py": 2,@@ -104,7 +102,7 @@"jarvis/contacts/store.py": 2,"jarvis/control/cost.py": 3,"jarvis/control/wiring.py": 1,- "jarvis/core/config.py": 22,+ "jarvis/core/config.py": 18,"jarvis/core/config_writer.py": 2,"jarvis/core/control_key.py": 8,"jarvis/core/interactive_terminal.py": 1,@@ -112,7 +110,6 @@"jarvis/core/loop_watchdog.py": 1,"jarvis/core/path_augment.py": 2,"jarvis/core/paths.py": 1,- "jarvis/core/process_tree.py": 1,"jarvis/core/review/checks.py": 1,"jarvis/core/review/spawns.py": 2,"jarvis/core/screenshots.py": 2,@@ -136,7 +133,7 @@"jarvis/dictation/polish_client.py": 2,"jarvis/dictation/segment.py": 2,"jarvis/dictation/stats.py": 8,- "jarvis/docs/loader.py": 5,+ "jarvis/docs/loader.py": 4,"jarvis/docs/registry.py": 3,"jarvis/docs/search.py": 1,"jarvis/friends/status_publisher.py": 1,@@ -144,7 +141,7 @@"jarvis/google_cli/pty_runner.py": 2,"jarvis/google_cli/resolver.py": 1,"jarvis/hardware/detection.py": 8,- "jarvis/harness/base.py": 10,+ "jarvis/harness/base.py": 9,"jarvis/harness/computer_use_context.py": 2,"jarvis/harness/computer_use_planner.py": 3,"jarvis/harness/manager.py": 3,@@ -155,8 +152,6 @@"jarvis/marketplace/auth/oauth_dcr.py": 3,"jarvis/marketplace/auth/oauth_device.py": 1,"jarvis/marketplace/auth/oauth_pkce_loopback.py": 3,- "jarvis/marketplace/catalog_data.py": 1,- "jarvis/marketplace/connect_helpers.py": 1,"jarvis/marketplace/plugin_registry.py": 1,"jarvis/marketplace/refresh_scheduler.py": 1,"jarvis/mcp/bootstrap.py": 3,@@ -164,7 +159,6 @@"jarvis/mcp/server.py": 3,"jarvis/mcp/state.py": 3,"jarvis/memory/bootstrap_runner.py": 1,- "jarvis/memory/core_memory.py": 2,"jarvis/memory/curator/extractor.py": 2,"jarvis/memory/frontmatter.py": 1,"jarvis/memory/people.py": 1,@@ -172,17 +166,17 @@"jarvis/memory/user_profile.py": 1,"jarvis/memory/wiki/atomic_writer.py": 4,"jarvis/memory/wiki/backup.py": 1,- "jarvis/memory/wiki/consolidator.py": 8,+ "jarvis/memory/wiki/consolidator.py": 7,"jarvis/memory/wiki/contact_mirror.py": 1,- "jarvis/memory/wiki/curator.py": 2,+ "jarvis/memory/wiki/curator.py": 1,"jarvis/memory/wiki/curator_llm.py": 6,"jarvis/memory/wiki/extractor.py": 6,- "jarvis/memory/wiki/fts_index.py": 5,+ "jarvis/memory/wiki/fts_index.py": 3,"jarvis/memory/wiki/health.py": 3,"jarvis/memory/wiki/index_builder.py": 1,- "jarvis/memory/wiki/integration.py": 6,+ "jarvis/memory/wiki/integration.py": 5,"jarvis/memory/wiki/journal.py": 2,- "jarvis/memory/wiki/lock.py": 5,+ "jarvis/memory/wiki/lock.py": 2,"jarvis/memory/wiki/prompt.py": 2,"jarvis/memory/wiki/provider_chain.py": 1,"jarvis/memory/wiki/recurate.py": 1,@@ -197,22 +191,20 @@"jarvis/missions/cleanup.py": 2,"jarvis/missions/critic/reflections.py": 1,"jarvis/missions/critic/runner.py": 14,- "jarvis/missions/event_bus.py": 3,"jarvis/missions/event_store.py": 1,"jarvis/missions/init.py": 1,"jarvis/missions/isolation/env.py": 1,- "jarvis/missions/isolation/job_object.py": 1,"jarvis/missions/isolation/worktree.py": 4,"jarvis/missions/kontrollierer/decomposer.py": 1,- "jarvis/missions/kontrollierer/deliverable.py": 2,+ "jarvis/missions/kontrollierer/deliverable.py": 1,"jarvis/missions/kontrollierer/deliverable_paths.py": 1,- "jarvis/missions/kontrollierer/orchestrator.py": 9,+ "jarvis/missions/kontrollierer/orchestrator.py": 7,"jarvis/missions/result_reader.py": 5,"jarvis/missions/safety/destructive_confirm.py": 1,"jarvis/missions/safety/injection_scanner.py": 1,"jarvis/missions/stream_evidence.py": 6,"jarvis/missions/workers/api_agent_tools.py": 10,- "jarvis/missions/workers/claude_direct_worker.py": 3,+ "jarvis/missions/workers/claude_direct_worker.py": 2,"jarvis/missions/workers/codex_direct_worker.py": 5,"jarvis/missions/workers/codex_worker.py": 1,"jarvis/missions/workers/gemini_worker.py": 1,@@ -231,7 +223,7 @@"jarvis/plugins/brain/_anthropic_base.py": 1,"jarvis/plugins/brain/_openai_base.py": 1,"jarvis/plugins/brain/antigravity.py": 2,- "jarvis/plugins/brain/claude_cli.py": 2,+ "jarvis/plugins/brain/claude_cli.py": 1,"jarvis/plugins/brain/codex.py": 4,"jarvis/plugins/brain/gemini.py": 1,"jarvis/plugins/brain/openrouter.py": 1,@@ -239,7 +231,7 @@"jarvis/plugins/harness/mcp_remote.py": 3,"jarvis/plugins/realtime/gemini_live.py": 2,"jarvis/plugins/realtime/openai_realtime.py": 2,- "jarvis/plugins/stt/__init__.py": 4,+ "jarvis/plugins/stt/__init__.py": 3,"jarvis/plugins/stt/errors.py": 2,"jarvis/plugins/stt/groq_api.py": 3,"jarvis/plugins/stt/openai_api.py": 1,@@ -250,7 +242,6 @@"jarvis/plugins/tool/computer_use_tool.py": 1,"jarvis/plugins/tool/dispatch_to_admin.py": 2,"jarvis/plugins/tool/dispatch_to_harness.py": 5,- "jarvis/plugins/tool/dispatch_with_review.py": 1,"jarvis/plugins/tool/drag.py": 5,"jarvis/plugins/tool/drive_rest.py": 1,"jarvis/plugins/tool/gmail_rest.py": 2,@@ -261,7 +252,7 @@"jarvis/plugins/tool/move_mouse.py": 4,"jarvis/plugins/tool/multi_spawn.py": 2,"jarvis/plugins/tool/open_app.py": 2,- "jarvis/plugins/tool/read_visible_ui_state.py": 2,+ "jarvis/plugins/tool/read_visible_ui_state.py": 1,"jarvis/plugins/tool/remember.py": 1,"jarvis/plugins/tool/reset_orb_position.py": 1,"jarvis/plugins/tool/run_shell.py": 4,@@ -269,15 +260,14 @@"jarvis/plugins/tool/screen_snapshot.py": 1,"jarvis/plugins/tool/scroll.py": 5,"jarvis/plugins/tool/search_web.py": 3,- "jarvis/plugins/tool/spawn_worker.py": 1,"jarvis/plugins/tool/start_preview_server.py": 1,"jarvis/plugins/tool/switch_window.py": 2,"jarvis/plugins/tool/type_text.py": 7,"jarvis/plugins/tool/vercel_rest.py": 1,"jarvis/plugins/tool/verify_localhost.py": 2,"jarvis/plugins/tool/verify_via_curl.py": 1,- "jarvis/plugins/tool/wait_for_element.py": 2,- "jarvis/plugins/tool/wait_for_ui_state.py": 2,+ "jarvis/plugins/tool/wait_for_element.py": 1,+ "jarvis/plugins/tool/wait_for_ui_state.py": 1,"jarvis/plugins/tool/whoami.py": 2,"jarvis/plugins/tool/wiki_list.py": 2,"jarvis/plugins/tool/wiki_recall.py": 1,@@ -285,10 +275,10 @@"jarvis/plugins/tts/elevenlabs_tts.py": 1,"jarvis/plugins/tts/gemini_flash_tts.py": 4,"jarvis/realtime/desktop.py": 6,- "jarvis/realtime/session.py": 21,+ "jarvis/realtime/session.py": 18,"jarvis/realtime/tools.py": 2,"jarvis/runs/analyzer.py": 1,- "jarvis/runs/runs_ws.py": 3,+ "jarvis/runs/runs_ws.py": 2,"jarvis/safety/approval.py": 1,"jarvis/safety/risk_tier.py": 1,"jarvis/sessions/store.py": 3,@@ -297,12 +287,10 @@"jarvis/setup/macos_app_bundle.py": 8,"jarvis/setup/macos_launcher_entry.py": 1,"jarvis/setup/mcp_selection.py": 2,- "jarvis/setup/obsidian.py": 4,+ "jarvis/setup/obsidian.py": 2,"jarvis/setup/onboarding_fastpath.py": 1,"jarvis/setup/uninstall.py": 9,- "jarvis/setup/wizard.py": 1,"jarvis/skills/authoring/draft_writer.py": 2,- "jarvis/skills/authoring/service.py": 1,"jarvis/skills/bootstrap.py": 3,"jarvis/skills/cli.py": 2,"jarvis/skills/creator_service.py": 2,@@ -313,14 +301,14 @@"jarvis/skills/match_eval.py": 1,"jarvis/skills/prefs.py": 1,"jarvis/skills/prompt_injection.py": 2,- "jarvis/skills/quality.py": 3,+ "jarvis/skills/quality.py": 2,"jarvis/skills/registry.py": 4,"jarvis/skills/relevance.py": 3,"jarvis/skills/runner.py": 7,"jarvis/skills/trigger_matcher.py": 5,"jarvis/skills/validator.py": 4,"jarvis/speech/diagnose.py": 1,- "jarvis/speech/pipeline.py": 71,+ "jarvis/speech/pipeline.py": 68,"jarvis/speech/rolling_whisper_wake.py": 3,"jarvis/speech/stt_dictionary.py": 3,"jarvis/speech/tts_eval/__main__.py": 1,@@ -330,17 +318,15 @@"jarvis/tasks/runner.py": 5,"jarvis/tasks/scheduler.py": 4,"jarvis/tasks/store.py": 2,- "jarvis/telemetry/latency.py": 1,"jarvis/telemetry/latency_log.py": 1,"jarvis/telephony/security.py": 1,"jarvis/telephony/session.py": 1,"jarvis/telephony/twiml.py": 2,- "jarvis/terminal/pty_manager.py": 3,- "jarvis/terminal/shells.py": 1,+ "jarvis/terminal/pty_manager.py": 2,"jarvis/tools/latency_report.py": 2,"jarvis/trigger/backends/noop.py": 1,- "jarvis/trigger/hotkey.py": 2,- "jarvis/ui/desktop_app.py": 56,+ "jarvis/trigger/hotkey.py": 1,+ "jarvis/ui/desktop_app.py": 52,"jarvis/ui/icon_utils.py": 2,"jarvis/ui/jarvisbar/interaction.py": 3,"jarvis/ui/jarvisbar/overlay.py": 5,@@ -348,16 +334,16 @@"jarvis/ui/jarvisbar/renderer.py": 3,"jarvis/ui/native_drag.py": 3,"jarvis/ui/relauncher.py": 11,- "jarvis/ui/shell/runtime_check.py": 4,+ "jarvis/ui/shell/runtime_check.py": 3,"jarvis/ui/shell/shell.py": 1,- "jarvis/ui/shell/single_instance.py": 10,+ "jarvis/ui/shell/single_instance.py": 9,"jarvis/ui/tray.py": 4,- "jarvis/ui/web/agentic_ide_routes.py": 5,+ "jarvis/ui/web/agentic_ide_routes.py": 4,"jarvis/ui/web/board_routes.py": 2,"jarvis/ui/web/claude_routes.py": 1,"jarvis/ui/web/cli_routes.py": 2,"jarvis/ui/web/diagnostics_routes.py": 1,- "jarvis/ui/web/dictation_routes.py": 2,+ "jarvis/ui/web/dictation_routes.py": 1,"jarvis/ui/web/docs_routes.py": 1,"jarvis/ui/web/fast_bootstrap.py": 7,"jarvis/ui/web/feedback_routes.py": 1,@@ -367,7 +353,7 @@"jarvis/ui/web/missions_pty_routes.py": 4,"jarvis/ui/web/missions_ws_routes.py": 11,"jarvis/ui/web/outputs_routes.py": 7,- "jarvis/ui/web/profile_routes.py": 8,+ "jarvis/ui/web/profile_routes.py": 7,"jarvis/ui/web/provider_routes.py": 9,"jarvis/ui/web/review_routes.py": 4,"jarvis/ui/web/schema.py": 1,@@ -376,17 +362,16 @@"jarvis/ui/web/settings_routes.py": 5,"jarvis/ui/web/setup_report_routes.py": 2,"jarvis/ui/web/setup_routes.py": 1,- "jarvis/ui/web/skills_routes.py": 9,+ "jarvis/ui/web/skills_routes.py": 7,"jarvis/ui/web/socials_routes.py": 1,"jarvis/ui/web/surface_security.py": 19,"jarvis/ui/web/tasks_routes.py": 1,"jarvis/ui/web/telephony_routes.py": 10,- "jarvis/ui/web/ultrawiki_routes.py": 2,- "jarvis/ui/web/update_routes.py": 14,+ "jarvis/ui/web/ultrawiki_routes.py": 1,"jarvis/ui/web/wiki_routes.py": 6,- "jarvis/ui/web/wiki_ws.py": 4,+ "jarvis/ui/web/wiki_ws.py": 3,"jarvis/ui/web/workflows_routes.py": 3,- "jarvis/ui/web/workspace_routes.py": 5,+ "jarvis/ui/web/workspace_routes.py": 4,"jarvis/ultrawiki/adapters/_google.py": 6,"jarvis/ultrawiki/adapters/airtable.py": 1,"jarvis/ultrawiki/adapters/asana.py": 3,@@ -398,7 +383,7 @@"jarvis/ultrawiki/adapters/google_mail.py": 2,"jarvis/ultrawiki/adapters/linear.py": 3,"jarvis/ultrawiki/adapters/notion.py": 3,- "jarvis/ultrawiki/adapters/slack.py": 7,+ "jarvis/ultrawiki/adapters/slack.py": 6,"jarvis/ultrawiki/adapters/telegram.py": 4,"jarvis/ultrawiki/adapters/todoist.py": 3,"jarvis/ultrawiki/connectors/custom_source.py": 8,@@ -418,7 +403,7 @@"jarvis/ultrawiki/progress.py": 1,"jarvis/ultrawiki/rerank.py": 2,"jarvis/ultrawiki/search.py": 3,- "jarvis/ultrawiki/service.py": 7,+ "jarvis/ultrawiki/service.py": 6,"jarvis/ultrawiki/store.py": 5,"jarvis/ultrawiki/supabase_link.py": 1,"jarvis/ultrawiki/throughput.py": 2,@@ -431,7 +416,6 @@"jarvis/vision/set_of_marks.py": 3,"jarvis/vision/uia_tree.py": 5,"jarvis/voice/number_speller.py": 1,- "jarvis/voice/self_mod_flow.py": 1,"jarvis/workflows/runner.py": 4,"jarvis/workflows/scheduler.py": 3,"jarvis/workflows/store.py": 1,diff --git a/tests/unit/core/test_silent_exception_handlers.py b/tests/unit/core/test_silent_exception_handlers.pyindex aa169d8843..1b966bccac 100644--- a/tests/unit/core/test_silent_exception_handlers.py+++ b/tests/unit/core/test_silent_exception_handlers.py@@ -89,6 +89,19 @@ def test_a_bare_lint_escape_is_still_counted(tmp_path):""") == 1+def test_reason_on_its_own_line_counts(tmp_path):+ """The most natural place to write a longer reason is a line of its own."""+ assert _count(tmp_path, """+ def f():+ try:+ g()+ except OSError:+ # The marker file is absent on every source checkout, which is+ # the common path rather than a failure.+ return None+ """) == 0++def test_reason_on_the_first_body_line_counts(tmp_path):assert _count(tmp_path, """def f():