Skip to content

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

style(awareness): keep the ledger import with the other imports

rubenluetke10-beepd313ffc617ff
diff --git a/jarvis/awareness/verdichter.py b/jarvis/awareness/verdichter.py
index e661ec1485..434276c7a6 100644
--- a/jarvis/awareness/verdichter.py
+++ b/jarvis/awareness/verdichter.py
@@ -20,14 +20,6 @@ with an empty summary instead of crashing.
"""
from __future__ import annotations
-from jarvis.costs.ledger import usage_context
-
-
-def _tagged_complete(brain, request): # type: ignore[no-untyped-def]
- """The digest's model calls are ledgered as awareness work."""
- with usage_context("awareness"):
- return brain.complete(request)
-
import asyncio
import logging
import time
@@ -37,12 +29,19 @@ from jarvis.awareness.config import AwarenessVerdichterConfig
from jarvis.awareness.prompts import VERDICHTER_SYSTEM_PROMPT, build_verdichter_prompt
from jarvis.brain.streaming import aggregate
from jarvis.core.protocols import BrainMessage, BrainRequest
+from jarvis.costs.ledger import usage_context
if TYPE_CHECKING:
from jarvis.core.protocols import Brain
logger = logging.getLogger(__name__)
+
+def _tagged_complete(brain, request): # type: ignore[no-untyped-def]
+ """The digest's model calls are ledgered as awareness work."""
+ with usage_context("awareness"):
+ return brain.complete(request)
+
# Plan §6 Hard Negative: max 30 frames+events per call.
# On overflow: keep the NEWEST ones (chronological tail).
MAX_FRAMES_PLUS_EVENTS = 30