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(agentic-ide): resolve the six confirmed review findings on titles and status
rubenluetke10-beepea76fd4cfa81
diff --git a/jarvis/agentic_ide/activity.py b/jarvis/agentic_ide/activity.pyindex 01b9164af2..d1deb5a6d5 100644--- a/jarvis/agentic_ide/activity.py+++ b/jarvis/agentic_ide/activity.py@@ -452,15 +452,22 @@ class Reading(NamedTuple):NO_READING = Reading("", 0.0)-def stamp(term: Any, activity: Activity, *, now: float) -> None:+def stamp(term: Any, activity: Activity, *, now: float, since: float | None = None) -> None:"""Publish what this sweep observed, for readers that cannot observe.Only the transition is timed: re-stamping the same word every two secondsmust not keep resetting "since", or a pane that has been waiting for twentyminutes would always look like it just stopped.++ ``since`` lets the caller backdate a transition to when the state actually+ began. The confirm gate stamps "working" only once movement has outlasted+ ``WORK_CONFIRM_S`` — the honest start of that episode is when the movement+ began, not the moment the gate was satisfied, and without this every+ confirmed episode reported "For 0s" about work already seconds old. Clamped+ to ``now``: a stamp may be late, never early."""if getattr(term, "activity", "") != activity:- term.activity_since = now+ term.activity_since = now if since is None else min(float(since), now)term.activity = activityterm.activity_at = nowdiff --git a/jarvis/agentic_ide/notifications.py b/jarvis/agentic_ide/notifications.pyindex 0bd9071eaf..2beb7439ff 100644--- a/jarvis/agentic_ide/notifications.py+++ b/jarvis/agentic_ide/notifications.py@@ -124,6 +124,15 @@ SETTLE_S = 5.0#: so this is about how quickly the bell should react, not about cost.SWEEP_INTERVAL_S = 2.0+#: Movement resuming within this long of the badge last wearing "working"+#: needs no fresh ``WORK_CONFIRM_S`` confirmation. A coding TUI pauses between+#: tool steps — a slow shell command, a long model wait — and demanding a new+#: five-second confirmation after every such gap turned one continuous job into+#: repeated false "waiting" dips. Sized to cover an inter-step gap generously+#: while staying far below the minutes a finished pane typically sits before+#: the user prints something into it (the case the confirm gate exists for).+WORK_RESUME_GRACE_S = 15.0+#: How many entries are kept. A heavy day across six workspaces produces a few#: dozen; past this the oldest fall off the back, which is the right end to lose#: — the panes they point at are the ones most likely to be gone.@@ -354,6 +363,10 @@ class _PaneWatch:#: calls a pane working for the whole ``STILL_S`` tail of any lone#: printout, slash-command output included.moving_since: float | None = None+ #: When the badge last actually wore "working". Movement that resumes+ #: within ``WORK_RESUME_GRACE_S`` of this is a job continuing after a+ #: tool-step pause and skips re-confirmation.+ stamped_working_at: float = 0.0def _detail(term: Any) -> str:@@ -492,7 +505,12 @@ class ActivityWatcher:# Through the same movement-confirmation gate as every later sweep:# a restored pane replaying its transcript is fresh output too, and# first sight is not a reason to trust a burst more.- stamp(term, self._confirmed(term, watch, activity, now), now=now)+ stamp(+ term,+ self._confirmed(term, watch, activity, now),+ now=now,+ since=watch.moving_since,+ )self._checkpoint_resume_state(term, activity, watch, now)return None@@ -520,7 +538,13 @@ class ActivityWatcher:term.idle_seen = Trueif activity != watch.activity:- if watch.activity == "working":+ # `worked` — the half of "completed" that says the screen moved and+ # then stopped — demands a CONFIRMED episode, judged the same way+ # the badge judges it. Raw "working" covers the STILL_S tail of any+ # lone printout, and counting that as work is how one /recap into a+ # long-finished pane still rang a "finished" bell after the badge+ # had already learned better.+ if watch.activity == "working" and self._episode_confirmed(term, watch):watch.worked = Truewatch.activity = activitywatch.since = now@@ -537,11 +561,20 @@ class ActivityWatcher:# agent that is sitting at its prompt is exactly the slot machine the# maintainer reported (2026-08-07, right after /recap printed). Real# work repaints continuously and sustains the episode past- # WORK_CONFIRM_S; a burst's tail cannot. The bell below keeps the raw- # reading: its transitions are already debounced by SETTLE_S, and the- # user's own Send is carried through the confirm window by the submit- # grace in `observed`.- stamp(term, self._confirmed(term, watch, activity, now), now=now)+ # WORK_CONFIRM_S; a burst's tail cannot. The bell shares the same+ # judgement through `worked` above, and the user's own Send is carried+ # through the confirm window by the submit grace in `observed`.+ #+ # ``since`` is the moment the movement episode actually began, so the+ # handover at the confirm boundary does not restart the badge's clock —+ # "working for 6s" must not read "for 0s" merely because the first 5+ # were spent confirming.+ stamp(+ term,+ self._confirmed(term, watch, activity, now),+ now=now,+ since=watch.moving_since,+ )self._checkpoint_resume_state(term, activity, watch, now)if watch.announced:@@ -587,11 +620,16 @@ class ActivityWatcher:(repainting at least twice a second, measured) confirms within a fewsweeps.- Movement whose episode BEGAN in the wake of a confirmed submission- needs no waiting: output that soon after a Send is the agent starting,- not the user printing something into the pane — and it is what hands- the badge over seamlessly from the submit grace (which covers the- still seconds before the first paint) to the observed movement.+ Two kinds of movement need no waiting. An episode that BEGAN in the+ wake of a confirmed submission: output that soon after a Send is the+ agent starting, not the user printing something into the pane — the+ seamless handover from the submit grace. And an episode that RESUMES+ shortly after a confirmed one (:data:`WORK_RESUME_GRACE_S`): a coding+ TUI pauses between tool steps, and demanding a fresh five-second+ confirmation after every such gap turned one long job into repeated+ false "waiting" dips. The gate exists for the pane that has been SITTING+ at its prompt when a burst arrives, and such a pane has not worn+ "working" for a long time."""if activity != "working":watch.moving_since = None@@ -599,11 +637,34 @@ class ActivityWatcher:if watch.moving_since is None:watch.moving_since = nowif in_submit_wake(term, watch.moving_since):+ watch.stamped_working_at = nowreturn activity- if now - watch.moving_since < WORK_CONFIRM_S:+ if (+ now - watch.moving_since < WORK_CONFIRM_S+ and now - watch.stamped_working_at > WORK_RESUME_GRACE_S+ ):return "waiting"+ watch.stamped_working_at = nowreturn activity+ @staticmethod+ def _episode_confirmed(term: Any, watch: _PaneWatch) -> bool:+ """Did the movement episode that just ended count as real work?++ The same standard the badge applies, asked retrospectively at the+ moment raw ``working`` flips away. Judged by how long the screen kept+ CHANGING (``changed_at - moving_since``), never by the clock at flip+ time: raw ``working`` survives the whole ``STILL_S`` tail after the+ last change, and ``STILL_S`` plus a sweep can reach ``WORK_CONFIRM_S``+ — a lone burst must not confirm itself through its own tail.+ """+ began = watch.moving_since+ if began is None:+ return False+ if in_submit_wake(term, began):+ return True+ return watch.changed_at - began >= WORK_CONFIRM_S+def _checkpoint_resume_state(self, term: Any, activity: Activity, watch: _PaneWatch, now: float) -> None:@@ -873,6 +934,7 @@ __all__ = ["MAX_ENTRIES","SETTLE_S","SWEEP_INTERVAL_S",+ "WORK_RESUME_GRACE_S","ActivityWatcher","Kind","Notification",diff --git a/jarvis/agentic_ide/recap.py b/jarvis/agentic_ide/recap.pyindex 9bea390396..25f2c89f23 100644--- a/jarvis/agentic_ide/recap.py+++ b/jarvis/agentic_ide/recap.py@@ -275,7 +275,7 @@ def _activity(tail: Sequence[str]) -> str:return ""-def _typed_request(rows: Sequence[str]) -> str:+def _typed_request(term: Any, rows: Sequence[str]) -> str:"""The first thing the user typed INTO this pane, read off its transcript.A pane driven by hand has no ``last_prompt``, yet its purpose was stated in@@ -284,16 +284,32 @@ def _typed_request(rows: Sequence[str]) -> str:screen that is safe to put in a header, because it is the same thing``last_prompt`` would have held had the instruction come through Jarvis.- Two impostors share the marker and are excluded: the LIVE input box, by+ Three impostors share the marker and are excluded: the LIVE input box, byposition (it sits in the bottom rows, and what is there is being typed- right now), and the box's placeholder suggestion ('Try "fix lint errors"'),- by its wording.+ right now); the box's placeholder suggestion ('Try "fix lint errors"'), by+ its wording; and anything the AGENT prints with the same prefix — a+ markdown blockquote, a diff line — by position again: the echo precedes the+ agent's first response by construction, so the search ends at the first row+ of agent prose. The CLI's own banner is allowed to precede the echo, and is+ recognized the one way that needs no per-CLI list: it names the CLI."""+ names = tuple(+ value+ for value in (+ str(getattr(term, "display_name", "") or "").lower(),+ str(getattr(term, "agent", "") or "").lower(),+ )+ if value+ )source = [str(row) for row in list(rows)[:-_TYPED_SKIP_TAIL]][:_TYPED_SEARCH_LINES]for raw in source:text = raw.strip()marker = next((mark for mark in _INPUT_MARKERS if text.startswith(mark)), None)if marker is None:+ if _informative(text) and not any(name in text.lower() for name in names):+ # The agent's prose has started; any later marker row is the+ # agent QUOTING something, not the echo of what the user typed.+ return ""continuecontent = text[len(marker) :].strip()lowered = content.lower()@@ -430,8 +446,11 @@ def summarize(term: Any, *, lines: Sequence[str] | None = None) -> Recap:# ran, safe to cite; a TUI's screen is the TUI's own interface, and citing# it is how headers came to read "Churned for 1m 53s" — the spinner.coding_tui = _typed_into(term)- # The user's first typed request, for a pane nobody briefed through Jarvis.- typed = "" if task else _typed_request(rows)+ # The user's first typed request, for a CODING pane nobody briefed through+ # Jarvis. Never computed for a shell: a shell prompt echoes every command+ # behind the same marker, and titling a shell by its first command would+ # pin it forever to "git status" — its newest row is its honest headline.+ typed = "" if (task or not coding_tui) else _typed_request(term, rows)# One sentence about the instruction, computed once: every branch below# opens with it, and a plain terminal answers it differently.asked = (diff --git a/jarvis/agentic_ide/recap_engine.py b/jarvis/agentic_ide/recap_engine.pyindex e55268bb01..b13675b7e7 100644--- a/jarvis/agentic_ide/recap_engine.py+++ b/jarvis/agentic_ide/recap_engine.py@@ -318,12 +318,17 @@ class _PaneState:headline: str = ""detail: str = ""generated_at: float = 0.0- #: Readable row count / prompts sent / status at the last summary. The- #: comparison against these decides whether anything worth re-reading has- #: happened.+ #: Readable row count / prompts sent / status / last manual submit at the+ #: last summary. The comparison against these decides whether anything+ #: worth re-reading has happened.lines_at: int = 0prompts_at: int = 0status_at: str = ""+ #: ``Terminal.last_submit_at`` as of the last summary. ``prompts_sent``+ #: only counts instructions JARVIS sent; a person typing a brand-new task+ #: into the pane and pressing Enter stamps only this — and a hand-typed+ #: instruction must reopen a settled title exactly like a sent one.+ submit_at: float = 0.0inflight: bool = Falsefailures: int = 0quiet_until: float = 0.0@@ -405,9 +410,10 @@ def _material_change(term: Any, entry: _PaneState, line_count: int) -> bool:changes what a pane has achieved, never what it is for, and the header is anavigation label. After a summary written from a substantial transcript(:data:`STABLE_AFTER_LINES`), only the events that can change the pane's- purpose reopen it — a new instruction, or a status change (the final- summary of a pane that just exited). The manual Refresh button bypasses- this whole gate, as it always has.+ purpose reopen it — a new instruction (sent by Jarvis OR typed into the+ pane by hand), or a status change (the final summary of a pane that just+ exited). The manual Refresh button bypasses this whole gate, as it always+ has."""if entry.generated_at <= 0.0:return True@@ -415,6 +421,8 @@ def _material_change(term: Any, entry: _PaneState, line_count: int) -> bool:return Trueif int(getattr(term, "prompts_sent", 0) or 0) != entry.prompts_at:return True+ if float(getattr(term, "last_submit_at", 0.0) or 0.0) > entry.submit_at:+ return Trueif entry.lines_at >= STABLE_AFTER_LINES:return Falsereturn line_count - entry.lines_at >= MIN_NEW_LINES@@ -551,6 +559,7 @@ async def _run(term: Any, key: str, rows: list[str], folder: str) -> None:lines_at = len(rows)prompts_at = int(getattr(term, "prompts_sent", 0) or 0)status_at = str(getattr(term, "status", "") or "")+ submit_at = float(getattr(term, "last_submit_at", 0.0) or 0.0)try:summary = await asyncio.wait_for(summarize_with_model(term, rows, folder=folder), timeout=CALL_TIMEOUT_S@@ -588,7 +597,14 @@ async def _run(term: Any, key: str, rows: list[str], folder: str) -> None:# not a race to be won by whichever finished last.if entry.pinned_headline:return- _store(entry, summary, lines_at=lines_at, prompts_at=prompts_at, status_at=status_at)+ _store(+ entry,+ summary,+ lines_at=lines_at,+ prompts_at=prompts_at,+ status_at=status_at,+ submit_at=submit_at,+ )def _store(@@ -598,6 +614,7 @@ def _store(lines_at: int,prompts_at: int,status_at: str,+ submit_at: float = 0.0,) -> None:"""Keep a fresh summary as this pane's recap and clear the back-off."""entry.headline = summary.headline@@ -607,6 +624,7 @@ def _store(entry.lines_at = lines_atentry.prompts_at = prompts_atentry.status_at = status_at+ entry.submit_at = submit_atentry.failures = 0entry.quiet_until = 0.0entry.note = ""@@ -1013,6 +1031,7 @@ async def summarize_now(term: Any, *, lines: Sequence[str], folder: str = "") ->lines_at=len(rows),prompts_at=int(getattr(term, "prompts_sent", 0) or 0),status_at=str(getattr(term, "status", "") or ""),+ submit_at=float(getattr(term, "last_submit_at", 0.0) or 0.0),)return summarydiff --git a/tests/unit/agentic_ide/test_pane_notifications.py b/tests/unit/agentic_ide/test_pane_notifications.pyindex 70b052c706..5221275c08 100644--- a/tests/unit/agentic_ide/test_pane_notifications.py+++ b/tests/unit/agentic_ide/test_pane_notifications.py@@ -645,6 +645,97 @@ async def test_a_repaint_gap_does_not_file_a_notification(assert watcher.poll(registry, now=100.0 + notifications.SETTLE_S + 5) == []+async def test_a_lone_printout_into_an_instructed_pane_files_no_finished_bell(+ registry: Registry, tmp_path: Path+) -> None:+ """The other half of the /recap fix. The badge learned to sit still for a+ single burst, but the bell still rang "finished" for a pane whose agent did+ nothing: the raw reading flipped waiting->working->waiting and `worked`+ latched on the way down. One burst is not a confirmed episode of work — for+ either of them."""+ watcher = notifications.watcher()+ _session, term = await _pane(registry, tmp_path)+ # Instructed long ago — far outside the submit wake — and long finished.+ term.last_submit_at = 500.0+ term.submit_generation = term.process_generation+ _quiet_since(term, 999.0)+ _draw(term, IDLE_SCREEN)+ watcher.poll(registry, now=1000.0)+ watcher.poll(registry, now=1002.0)++ # One printout: /recap output, a menu, anything changing the picture once.+ term.transcript.clear()+ _draw(term, "\r\nRecap: three files changed, tests green\r\n")+ term.last_output_at = 1004.0+ watcher.poll(registry, now=1004.0)+ assert term.activity == "waiting", "the badge half of the fix still holds"++ # The burst's tail dies, the pane settles, the settle window passes.+ watcher.poll(registry, now=1004.0 + STILL_S + 1)+ filed = watcher.poll(registry, now=1004.0 + STILL_S + notifications.SETTLE_S + 2)++ assert filed == []+++async def test_a_confirmed_episode_is_stamped_from_when_movement_began(+ registry: Registry, tmp_path: Path+) -> None:+ """The badge's "For Ns" must count the episode, not the gate. Confirmation+ spends the first WORK_CONFIRM_S of every non-wake episode; stamping the+ hand-over as a fresh transition told the user work "just started" about a+ pane that had visibly been repainting for six seconds."""+ watcher = notifications.watcher()+ _session, term = await _pane(registry, tmp_path)+ term.last_submit_at = 500.0+ term.submit_generation = term.process_generation+ _quiet_since(term, 999.0)+ _draw(term, IDLE_SCREEN)+ watcher.poll(registry, now=996.0)++ for step, at in enumerate((1000.0, 1002.0, 1004.0, 1006.0)):+ term.transcript.clear()+ _draw(term, f"\r\n· working, frame {step}\r\n")+ term.last_output_at = at+ watcher.poll(registry, now=at)++ assert term.activity == "working"+ assert term.activity_since == 1000.0, "the episode began with the movement, not the gate"+++async def test_a_tool_step_gap_does_not_demand_reconfirmation(+ registry: Registry, tmp_path: Path+) -> None:+ """A coding TUI pauses between tool steps. Movement resuming right after a+ confirmed episode is the same job continuing — demanding a fresh+ WORK_CONFIRM_S turned one long job into repeated false "waiting" dips."""+ watcher = notifications.watcher()+ _session, term = await _pane(registry, tmp_path)+ term.last_submit_at = 500.0+ term.submit_generation = term.process_generation+ _quiet_since(term, 999.0)+ _draw(term, IDLE_SCREEN)+ watcher.poll(registry, now=996.0)++ for step, at in enumerate((1000.0, 1002.0, 1004.0, 1006.0, 1008.0)):+ term.transcript.clear()+ _draw(term, f"\r\n· working, frame {step}\r\n")+ term.last_output_at = at+ watcher.poll(registry, now=at)+ assert term.activity == "working", "sustained movement confirms"++ # A quiet tool step: the screen stands still past its freshness tail.+ watcher.poll(registry, now=1008.0 + STILL_S + 1)+ assert term.activity == "waiting"++ # Work resumes. The badge must follow on the SAME sweep, not five later.+ term.transcript.clear()+ _draw(term, "\r\n· working again after the tool call\r\n")+ term.last_output_at = 1015.0+ watcher.poll(registry, now=1015.0)++ assert term.activity == "working", "a resuming job needs no re-confirmation"++async def test_a_question_is_reported_even_though_it_never_worked(registry: Registry, tmp_path: Path) -> None:diff --git a/tests/unit/agentic_ide/test_recap.py b/tests/unit/agentic_ide/test_recap.pyindex 3676d1dafa..8a8239157d 100644--- a/tests/unit/agentic_ide/test_recap.py+++ b/tests/unit/agentic_ide/test_recap.py@@ -204,6 +204,44 @@ def test_the_first_typed_request_titles_a_hand_driven_pane() -> None:assert summarize(term).headline == "make the workspace setup one clear screen"+def test_a_shells_first_command_echo_never_pins_its_headline() -> None:+ """A shell prompt echoes EVERY command behind the marker. Titling a shell+ by its first echo would pin it to 'git status' forever; its newest row is+ its honest headline."""+ term = _pane(status="live", agent="shell", display_name="Terminal")+ term.transcript.feed("❯ git status\r\n")+ for step in range(10):+ term.transcript.feed(f"Build log row {step}\r\n")+ term.transcript.feed("Build finished OK in 3.2s\r\n")++ assert summarize(term).headline == "Build finished OK in 3.2s"+++def test_a_blockquote_the_agent_prints_is_not_the_users_request() -> None:+ """'>' also opens a markdown blockquote. Once the agent's prose has begun,+ a marker row is the agent QUOTING something — arbitrary quoted content must+ not be presented as the session's purpose."""+ term = _pane(status="live")+ term.transcript.feed("Reading the bug report:\r\n")+ term.transcript.feed("> the login page crashes on submit\r\n")+ for step in range(8):+ term.transcript.feed(f"Analysing crash path {step}\r\n")++ assert summarize(term).headline.startswith("Claude Code — running")+++def test_the_clis_own_banner_may_precede_the_typed_request() -> None:+ """The one thing legitimately printed before the first echo is the CLI+ introducing itself — recognized because it names the CLI."""+ term = _pane(status="live")+ term.transcript.feed("✻ Welcome to Claude Code!\r\n")+ term.transcript.feed("> make the setup wizard one screen\r\n")+ for step in range(8):+ term.transcript.feed(f"Working on step {step}\r\n")++ assert summarize(term).headline == "make the setup wizard one screen"++def test_the_input_boxes_placeholder_suggestion_is_not_a_request() -> None:"""'Try "fix lint errors"' is the CLI talking, not the user."""term = _pane(status="live")diff --git a/tests/unit/agentic_ide/test_recap_engine.py b/tests/unit/agentic_ide/test_recap_engine.pyindex 98f550f531..1c2e61184e 100644--- a/tests/unit/agentic_ide/test_recap_engine.py+++ b/tests/unit/agentic_ide/test_recap_engine.py@@ -169,6 +169,24 @@ def test_an_early_thin_summary_may_still_improve_with_output() -> None:)+def test_a_hand_typed_instruction_reopens_a_settled_title() -> None:+ """prompts_sent only counts what JARVIS sent. A person typing a brand-new+ task into the pane stamps last_submit_at — and repurposing a pane by hand+ must reopen its title exactly like a sent instruction does."""+ term = _pane(lines=0, last_submit_at=200.0)+ state = recap_engine._state(term.key) # noqa: SLF001+ state.generated_at = time.time()+ state.lines_at = recap_engine.STABLE_AFTER_LINES+ state.prompts_at = 0+ state.status_at = "live"+ state.submit_at = 100.0++ assert recap_engine._material_change(term, state, state.lines_at) # noqa: SLF001++ state.submit_at = 200.0+ assert not recap_engine._material_change(term, state, state.lines_at) # noqa: SLF001++def test_a_settled_title_still_reopens_for_a_new_instruction_or_exit() -> None:"""The two events that CAN change what a pane is for."""term = _pane(lines=0, prompts_sent=2)@@ -475,8 +493,8 @@ def test_a_depleted_key_failure_reads_as_a_sentence_not_json() -> None:"""The screenshot case: the card led with a wall of provider JSON."""note = recap_engine.describe_failure(RuntimeError(- "429 Too Many Requests. {'message': '{\\n \"error\": {\\n \"code\": 429,"- "\\n \"message\": \"Your prepayment credits are depleted.\"}}'}"+ '429 Too Many Requests. {\'message\': \'{\\n "error": {\\n "code": 429,'+ '\\n "message": "Your prepayment credits are depleted."}}\'}'))@@ -490,9 +508,7 @@ def test_a_connected_subscription_is_the_last_candidate(monkeypatch) -> None:api = SimpleNamespace(model="depleted-api")subscription = SimpleNamespace(model="coding-cli")monkeypatch.setattr(resolver, "frontier_brain_candidates", lambda cfg: iter([api]))- monkeypatch.setattr(- resolver, "resolve_subscription_brain", lambda cfg, **kwargs: subscription- )+ monkeypatch.setattr(resolver, "resolve_subscription_brain", lambda cfg, **kwargs: subscription)monkeypatch.setattr("jarvis.core.config.load_config", lambda: SimpleNamespace())assert recap_engine._resolve_brains() == [api, subscription] # noqa: SLF001@@ -508,9 +524,7 @@ def test_a_full_api_chain_still_ends_at_the_subscription(monkeypatch) -> None:brains = [SimpleNamespace(model=f"api-{n}") for n in range(recap_engine.MAX_PROVIDER_TRIES)]subscription = SimpleNamespace(model="coding-cli")monkeypatch.setattr(resolver, "frontier_brain_candidates", lambda cfg: iter(brains))- monkeypatch.setattr(- resolver, "resolve_subscription_brain", lambda cfg, **kwargs: subscription- )+ monkeypatch.setattr(resolver, "resolve_subscription_brain", lambda cfg, **kwargs: subscription)monkeypatch.setattr("jarvis.core.config.load_config", lambda: SimpleNamespace())assert recap_engine._resolve_brains() == [*brains, subscription] # noqa: SLF001