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
feat(society): the card shows only what the system reads, and stops being half empty
rubenluetke10-beepf13c5570aa6d
diff --git a/jarvis/society/scheduler.py b/jarvis/society/scheduler.pyindex 44012970e9..6b2577c866 100644--- a/jarvis/society/scheduler.py+++ b/jarvis/society/scheduler.py@@ -30,7 +30,6 @@ from __future__ import annotationsimport loggingfrom collections.abc import Awaitable, Callable-from datetime import UTC, datetimefrom typing import Any, Finalfrom .events import SCHEDULER_ACTOR as _SCHEDULER@@ -38,7 +37,7 @@ from .events import USER_ACTOR as _USERfrom .events import MsgType, SocietyEnvelope, Tierfrom .failure_reasons import FailureReason, classify_error, retry_actionfrom .roster import AgentRecord, AgentState, Roster-from .store import SocietyStore+from .store import SocietyStore, day_start_mslog = logging.getLogger(__name__)@@ -74,13 +73,6 @@ def validate_result(payload: dict[str, Any]) -> str | None:return None-def _day_start_ms(now_ms: int) -> int:- day = datetime.fromtimestamp(now_ms / 1000, tz=UTC).replace(- hour=0, minute=0, second=0, microsecond=0- )- return int(day.timestamp() * 1000)--class SocietyScheduler:def __init__(self,@@ -235,7 +227,7 @@ class SocietyScheduler:await self._veto(env, FailureReason.BUDGET_EXHAUSTED, str(exc))returnif target.daily_budget_usd > 0:- spent = await self._store.cost_since(target.agent_id, _day_start_ms(env.ts_ms))+ spent = await self._store.cost_since(target.agent_id, day_start_ms(env.ts_ms))if spent >= target.daily_budget_usd:await self._veto(env,diff --git a/jarvis/society/store.py b/jarvis/society/store.pyindex 5b66a27a8e..32137e57f7 100644--- a/jarvis/society/store.py+++ b/jarvis/society/store.py@@ -16,6 +16,7 @@ from __future__ import annotationsimport jsonimport logging+from datetime import UTC, datetimefrom pathlib import Pathfrom typing import Any@@ -24,6 +25,19 @@ import aiosqlitefrom .bus import SocietyBusfrom .events import MsgType, SocietyEnvelope, now_ms++def day_start_ms(at_ms: int) -> int:+ """Midnight UTC of the day ``at_ms`` falls in.++ The one definition of "today" in the society: the scheduler's daily-budget+ gate and the card's spend-today figure both read it, so a card can never+ show an agent under its cap while the gate is refusing its work.+ """+ day = datetime.fromtimestamp(at_ms / 1000, tz=UTC).replace(+ hour=0, minute=0, second=0, microsecond=0+ )+ return int(day.timestamp() * 1000)+log = logging.getLogger(__name__)__all__ = ["SocietyStore", "SCHEMA_VERSION"]@@ -317,7 +331,15 @@ class SocietyStore:return float(row[0]) if row else 0.0async def agent_stats(self, agent_id: str) -> dict[str, Any]:- """Derived lifetime numbers: runs (RESULTs sent), cost, last activity."""+ """Derived numbers: runs (RESULTs sent), lifetime cost, last activity.++ ``spent_today_usd`` rides along because the daily budget is a real+ gate — the scheduler refuses a dispatch once an agent has spent its+ ``daily_budget_usd`` since the start of the UTC day — and a budget+ shown without today's spend beside it looks like a decoration rather+ than the limit it is. Same ``day_start_ms`` both places, so the card+ and the gate can never disagree.+ """cur = await self.conn.execute("SELECT "" SUM(CASE WHEN msg_type = 'RESULT' THEN 1 ELSE 0 END), "@@ -328,9 +350,11 @@ class SocietyStore:row = await cur.fetchone()await cur.close()runs, cost, last = row or (0, 0.0, None)+ today = await self.cost_since(agent_id, day_start_ms(now_ms()))return {"runs": int(runs or 0),"total_cost_usd": float(cost or 0.0),+ "spent_today_usd": today,"last_active_ms": int(last) if last is not None else None,}diff --git a/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx b/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsxindex 6cc8ea7fa6..4d59c49aaf 100644--- a/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx+++ b/jarvis/ui/web/frontend/src/components/society/card/AgentSpecSheet.tsx@@ -1,29 +1,37 @@/*** The model card's spec column — a champion card of the island.*- * It used to be a stack of grey headings and sentences, and the sentence that- * mattered most read "No focus tools" above an empty list: `GRANTED TOOLS`- * only ever filled for an allow-list agent, and almost every agent runs- * `grant_mode = all`. So the card said nothing about the one thing that makes- * a Gmail agent a Gmail agent.+ * It used to be a stack of grey headings whose most important line read "No+ * focus tools" above an empty list: `GRANTED TOOLS` only ever filled for an+ * allow-list agent, and almost every agent runs `grant_mode = all`. So the+ * card said nothing about the one thing that makes a Gmail agent a Gmail+ * agent.** It now leads with HANDS — what this agent reaches for first, as tiles* carrying the services' real marks — and says in one quiet line that* everything else stays in reach, because it does (agent-definition §3.2).- * Below that: the ceiling and the reach as meters, the brain, the standing- * orders, routines, and the lifetime record.*- * The skin is the world's, not the app's (maintainer, 2026-09-03): the card- * wears the island's daylight the way the 3D column beside it does. How that- * works without any component writing a literal colour is explained at the- * top of `agentCard.css`. Jarvis keeps its two special sections — its brain- * is the app's chat brain and its orders are the user's own instructions- * file — and inherits the skin through the same token scope.+ * TWO RULES this file exists to keep (maintainer, 2026-09-03):+ *+ * 1. Nothing on the card is decoration. Every value shown is one a part of+ * the system actually reads: the ceiling decides approvals+ * (`society/approvals.decide`), the daily budget stops a dispatch+ * (`society/scheduler`, which is why today's spend is drawn against it+ * rather than the lifetime total), `max_concurrent_runs` caps runs in+ * flight, focus orders the tool list. The one control that did nothing —+ * "Assign task", disabled since it shipped — is gone rather than greyed.+ * 2. Nothing is empty because nobody asked. Routines, learned skills and the+ * activity log come from routes that existed all along and that no+ * frontend file was calling (`../cardData.ts`).+ *+ * The skin is in `agentCard.css`: the island's shape, the app's colours.+ * Jarvis keeps its two special sections — its brain is the app's chat brain+ * and its orders are the user's own instructions file.** Every string goes through the locale files.*/import { useMemo, useState } from "react";-import { MessageSquare, Pause, Play, Send } from "lucide-react";+import { MessageSquare, Pause, Play } from "lucide-react";import { ProviderLogo } from "@/components/providers/ProviderLogo";import { ScrollArea } from "@/components/ui/scroll-area";@@ -31,10 +39,10 @@ import { useT } from "@/i18n";import { cn } from "@/lib/utils";import { CapabilityChip } from "../CapabilityChip";+import { useAgentActivity, useAgentRoutines, useAgentSkills, type AgentActivity } from "../cardData";import {useSetAgentPaused,useSocietyCapabilities,- useUpdateAgentDescription,type AgentRunState,type Capability,type PermissionCeiling,@@ -57,107 +65,45 @@ const STATE_FILL: Record<AgentRunState, string> = {};const REACH_STEPS = 6;--/**- * The agent's standing instructions, editable in place. The chat is the main- * way rules arrive (the agent proposes, the person confirms), but a person may- * also write them directly; the PATCH keeps the focus and approval rules the- * agent earned.- */-function DescriptionEditor({ agent }: { agent: SocietyAgent }) {- const t = useT();- const update = useUpdateAgentDescription();- const [editing, setEditing] = useState(false);- const [draft, setDraft] = useState(agent.description);- const [saving, setSaving] = useState(false);- const [error, setError] = useState("");- const begin = () => {- setDraft(agent.description);- setError("");- setEditing(true);- };- const save = async () => {- setSaving(true);- setError("");- try {- await update(agent, draft.trim());- setEditing(false);- } catch (err) {- setError(err instanceof Error ? err.message : String(err));- } finally {- setSaving(false);- }- };- return (- <>- <div className="mb-2 flex items-center justify-between gap-2">- <h3 className="ac-head">{t("society.card.description")}</h3>- {editing ? null : (- <button- type="button"- onClick={begin}- className="rounded-full border border-border px-2 py-0.5 text-xs text-muted-foreground hover:bg-secondary hover:text-foreground"- >- {t("society.card.edit")}- </button>- )}- </div>- {editing ? (- <div className="flex flex-col gap-2">- <textarea- value={draft}- onChange={(e) => setDraft(e.target.value)}- rows={Math.min(14, Math.max(4, draft.split("\n").length + 1))}- disabled={saving}- className="w-full resize-y rounded-md border border-border bg-background px-2.5 py-2 text-sm leading-relaxed text-foreground outline-none focus:border-primary"- />- <div className="flex items-center gap-2">- <button- type="button"- disabled={saving}- onClick={() => void save()}- className="rounded-md bg-primary px-2.5 py-1 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50"- >- {saving ? t("society.card.saving") : t("society.card.save")}- </button>- <button- type="button"- disabled={saving}- onClick={() => setEditing(false)}- className="rounded-md border border-border px-2.5 py-1 text-xs font-medium text-foreground hover:bg-muted disabled:opacity-50"- >- {t("society.card.cancel")}- </button>- {error ? <span className="text-xs text-destructive">{error}</span> : null}- </div>- </div>- ) : agent.description ? (- <p className="whitespace-pre-line text-sm leading-relaxed">{agent.description}</p>- ) : (- <p className="text-xs text-muted-foreground">{t("society.card.no_description")}</p>- )}- </>- );-}+/** More rows than this and the log stops being a glance. */+const LOG_ROWS = 6;function formatDate(ms: number | null, fallback: string): string {if (ms === null) return fallback;return new Date(ms).toLocaleDateString(undefined, { day: "2-digit", month: "short", year: "numeric" });}-/** "in 3 h", "in 2 d", "now" — from an ISO time; the schedule text stays beside it. */-export function relativeUntil(iso: string | null, t: (key: string) => string): string | null {- if (!iso) return null;- const ms = Date.parse(iso) - Date.now();- if (Number.isNaN(ms)) return null;- if (ms <= 60_000) return t("society.card.due_now");- const minutes = Math.round(ms / 60_000);+/** "in 3 h", "in 2 d", "now" — from an epoch in ms. */+function untilLabel(ms: number, t: (key: string) => string): string {+ const delta = ms - Date.now();+ if (delta <= 60_000) return t("society.card.due_now");+ const minutes = Math.round(delta / 60_000);if (minutes < 60) return t("society.card.due_in").replace("{0}", `${minutes} min`);const hours = Math.round(minutes / 60);if (hours < 48) return t("society.card.due_in").replace("{0}", `${hours} h`);return t("society.card.due_in").replace("{0}", `${Math.round(hours / 24)} d`);}+export function relativeUntil(iso: string | null, t: (key: string) => string): string | null {+ if (!iso) return null;+ const ms = Date.parse(iso);+ return Number.isNaN(ms) ? null : untilLabel(ms, t);+}++/** "2 min ago", "3 h ago" — the past half of the same ladder. */+function agoLabel(ms: number, t: (key: string) => string): string {+ const delta = Date.now() - ms;+ if (delta < 60_000) return t("society.card.just_now");+ const minutes = Math.round(delta / 60_000);+ const unit =+ minutes < 60+ ? `${minutes} min`+ : minutes < 2880+ ? `${Math.round(minutes / 60)} h`+ : `${Math.round(minutes / 1440)} d`;+ return t("society.card.ago").replace("{0}", unit);+}+export interface AgentSpecSheetProps {agent: SocietyAgent;/**@@ -171,6 +117,9 @@ export interface AgentSpecSheetProps {export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {const t = useT();const capabilities = useSocietyCapabilities();+ const activity = useAgentActivity(agent.agentId);+ const skills = useAgentSkills(agent.agentId);+ const routines = useAgentRoutines(agent.agentId);const setPaused = useSetAgentPaused();const [busy, setBusy] = useState(false);const byId = useMemo(() => {@@ -198,6 +147,19 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {.replace("{1}", String(catalogSize)): t("society.card.reach_all");+ // The budget is a real gate, so it is drawn as one: today's spend against+ // the cap the scheduler refuses at. A cap of 0 means "no cap" there, so it+ // means "no cap" here too rather than a bar that is always full.+ const capped = agent.dailyBudgetUsd > 0;+ const spentToday = agent.stats.spentTodayUsd;+ const spentShare = capped ? Math.min(1, spentToday / agent.dailyBudgetUsd) : 0;+ const exhausted = capped && spentToday >= agent.dailyBudgetUsd;++ const log = (activity.data?.events ?? []).slice(0, LOG_ROWS);+ const activeRuns = activity.data?.activeRuns ?? 0;+ const learned = skills.data ?? [];+ const schedule = routines.data ?? [];+const togglePause = async () => {setBusy(true);try {@@ -212,7 +174,7 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {<header className="ac-band" data-tier={agent.tier}><span className="min-w-0 flex-1"><span className="ac-band-name block truncate">{agent.name}</span>- {/* Jarvis' title IS "Lead", so the tier would read twice. */}+ {/* Jarvis' title IS "Lead", so the tier would otherwise read twice. */}<span className="ac-band-title block truncate">{[t(`society.tier.${agent.tier}`), agent.title].filter((part, i, all) => part && all.indexOf(part) === i)@@ -220,7 +182,11 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {</span></span><span className={cn("ac-dot", STATE_FILL[agent.state])} data-state={agent.state} aria-hidden />- <span className="shrink-0 text-xs text-muted-foreground">{t(`society.state.${agent.state}`)}</span>+ <span className="shrink-0 text-xs text-muted-foreground">+ {activeRuns > 0+ ? t("society.card.active_runs").replace("{0}", String(activeRuns))+ : t(`society.state.${agent.state}`)}+ </span></header><ScrollArea className="min-h-0 flex-1">@@ -263,6 +229,30 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {) : null}</section>+ {learned.length > 0 ? (+ <section>+ <h3 className="ac-head mb-2.5">{t("society.card.learned")}</h3>+ <ul className="flex flex-wrap gap-3">+ {learned.map((skill) => (+ <CapabilityTile+ key={skill.slug}+ id={`skill:${skill.slug}`}+ capability={{+ id: `skill:${skill.slug}`,+ kind: "skill",+ label: skill.name,+ one_liner: skill.whenToUse || skill.description,+ risk_tier: "safe",+ connected: true,+ tool_name: "",+ }}+ palette={agent.palette}+ />+ ))}+ </ul>+ </section>+ ) : null}+<section className="flex flex-col gap-2"><StepMeterlabel={t("society.card.permission")}@@ -276,12 +266,30 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {filled={reachFilled}value={reachValue}/>+ <div className="ac-meter">+ <span className="ac-meter-label">{t("society.card.meter_today")}</span>+ <span+ className="ac-meter-bar"+ data-spent={exhausted ? "1" : "0"}+ role="img"+ aria-label={`${t("society.card.meter_today")}: $${spentToday.toFixed(2)}`}+ >+ <span className="ac-meter-fill" style={{ width: `${Math.round(spentShare * 100)}%` }} />+ </span>+ <span className="ac-meter-value">+ {capped+ ? t("society.card.spent_of")+ .replace("{0}", spentToday.toFixed(2))+ .replace("{1}", agent.dailyBudgetUsd.toFixed(2))+ : t("society.card.no_cap")}+ </span>+ </div></section><section className="grid grid-cols-3 gap-2">- <Plate label={t("society.card.budget")} value={`$${agent.dailyBudgetUsd.toFixed(2)}`} />- <Plate label={t("society.card.focus")} value={String(agent.focus.length)} /><Plate label={t("society.card.place")} value={t(`society.checkpoint.${agent.checkpoint}`)} />+ <Plate label={t("society.card.jobs_at_once")} value={String(agent.maxConcurrentRuns)} />+ <Plate label={t("society.card.created")} value={formatDate(agent.createdMs, "—")} /></section><section>@@ -312,7 +320,14 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {{agent.tier === "lead" ? (<LeadInstructions />) : (- <DescriptionEditor agent={agent} />+ <>+ <h3 className="ac-head mb-2">{t("society.card.description")}</h3>+ {agent.description ? (+ <p className="whitespace-pre-line text-sm leading-relaxed">{agent.description}</p>+ ) : (+ <p className="text-xs text-muted-foreground">{t("society.card.no_description")}</p>+ )}+ </>)}</section>@@ -330,26 +345,36 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {<section><h3 className="ac-head mb-2">{t("society.card.routines")}</h3>- {agent.routines.length === 0 ? (+ {schedule.length === 0 ? (<p className="ac-prose text-xs text-muted-foreground">{t("society.card.no_routines")}</p>) : (<ul className="ac-prose flex flex-col gap-1.5">- {agent.routines.map((routine) => {- const due = relativeUntil(routine.nextFire, t);- return (- <li key={routine.id} className="flex items-baseline justify-between gap-3 text-sm">- <span className="truncate">{routine.label}</span>- <span className="shrink-0 text-xs text-muted-foreground">- {routine.schedule}- {due ? ` · ${due}` : ""}- </span>- </li>- );- })}+ {schedule.map((routine) => (+ <li key={routine.id} className="flex items-baseline justify-between gap-3 text-sm">+ <span className="truncate">{routine.title}</span>+ <span className="shrink-0 text-xs text-muted-foreground">+ {routine.schedule}+ {routine.dueMs ? ` · ${untilLabel(routine.dueMs, t)}` : ""}+ </span>+ </li>+ ))}</ul>)}</section>+ <section>+ <h3 className="ac-head mb-2">{t("society.card.recent")}</h3>+ {log.length === 0 ? (+ <p className="ac-prose text-xs text-muted-foreground">{t("society.card.no_recent")}</p>+ ) : (+ <div className="ac-log">+ {log.map((row) => (+ <LogRow key={row.id} row={row} agentId={agent.agentId} t={t} />+ ))}+ </div>+ )}+ </section>+<section><h3 className="ac-head mb-2">{t("society.card.record")}</h3><div className="grid grid-cols-3 gap-2">@@ -361,6 +386,20 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {/></div></section>++ {agent.workspaceDir || agent.wikiNamespace ? (+ <section>+ <h3 className="ac-head mb-2">{t("society.card.where")}</h3>+ <div className="grid grid-cols-2 gap-2">+ {agent.workspaceDir ? (+ <Plate label={t("society.card.workspace")} value={agent.workspaceDir} mono />+ ) : null}+ {agent.wikiNamespace ? (+ <Plate label={t("society.card.wiki")} value={agent.wikiNamespace} mono />+ ) : null}+ </div>+ </section>+ ) : null}</div></ScrollArea>@@ -368,7 +407,6 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {<buttontype="button"className="ac-btn"- data-accent="1"disabled={!onOpenChat}title={onOpenChat ? undefined : t("society.card.chat_soon")}onClick={onOpenChat}@@ -376,16 +414,7 @@ export function AgentSpecSheet({ agent, onOpenChat }: AgentSpecSheetProps) {<MessageSquare className="h-3.5 w-3.5" aria-hidden />{t("society.card.action_chat")}</button>- <button type="button" className="ac-btn" disabled title={t("society.card.assign_soon")}>- <Send className="h-3.5 w-3.5" aria-hidden />- {t("society.card.action_assign")}- </button>- <button- type="button"- className="ac-btn ml-auto"- disabled={busy}- onClick={() => void togglePause()}- >+ <button type="button" className="ac-btn ml-auto" disabled={busy} onClick={() => void togglePause()}>{paused ? <Play className="h-3.5 w-3.5" aria-hidden /> : <Pause className="h-3.5 w-3.5" aria-hidden />}{paused ? t("society.card.action_resume") : t("society.card.action_pause")}</button>@@ -423,14 +452,43 @@ function StepMeter({);}-function Plate({ label, value, hint }: { label: string; value: string; hint?: string }) {+function Plate({ label, value, mono }: { label: string; value: string; mono?: boolean }) {return (- <div className="ac-plate">+ <div className="ac-plate" title={value}><div className="ac-plate-label truncate">{label}</div>- <div className="ac-plate-value truncate">- {value}- {hint ? <span className="ac-plate-label"> {hint}</span> : null}- </div>+ <div className={cn("ac-plate-value truncate", mono && "ac-prose font-mono text-xs")}>{value}</div>+ </div>+ );+}++/**+ * One line of the agent's own traffic. `events_for_agent` also carries the+ * board's broadcasts, so `cardData` filters those out first — a row here is+ * always something this agent sent or was sent.+ */+function LogRow({+ row,+ agentId,+ t,+}: {+ row: AgentActivity;+ agentId: string;+ t: (key: string) => string;+}) {+ const outgoing = row.fromAgent === agentId;+ const what = outgoing+ ? row.toAgent+ ? t("society.card.log_to").replace("{0}", row.toAgent)+ : t("society.card.log_board")+ : t("society.card.log_from").replace("{0}", row.fromAgent ?? "?");+ return (+ <div className="ac-log-row">+ <span className="ac-log-type">{row.type.toLowerCase()}</span>+ <span className="ac-log-what truncate">+ {what}+ {row.costUsd > 0 ? ` · $${row.costUsd.toFixed(2)}` : ""}+ </span>+ <span className="ac-log-when">{row.tsMs ? agoLabel(row.tsMs, t) : ""}</span></div>);}diff --git a/jarvis/ui/web/frontend/src/components/society/card/agentCard.css b/jarvis/ui/web/frontend/src/components/society/card/agentCard.cssindex 8a71e0c282..2075489891 100644--- a/jarvis/ui/web/frontend/src/components/society/card/agentCard.css+++ b/jarvis/ui/web/frontend/src/components/society/card/agentCard.css@@ -1,73 +1,23 @@/*- * The agent card's own skin — the island's, not the app's.+ * The agent card's furniture — a champion card of the island, in the app's+ * own light.*- * MASTERPLAN §4.3 used to put the model card's spec sheet on the app-chrome- * side of the line. The maintainer moved it (2026-09-03): the card is a- * champion card of the world, so it wears the world's daylight the way the- * viewport beside it does. Same in light and dark mode by design; the rail,- * the header and the options column around it stay app-themed.+ * It first shipped in the island's daylight: parchment ground, ink text, the+ * same in both themes. The maintainer sent it back on 2026-09-03 — a bright+ * panel inside a near-black app reads as a foreign object, not as a card. So+ * the SHAPE stays (nameplate band, 56px hands, notched meters, the island's+ * display face) and the COLOUR goes back to the theme tokens, which is also+ * what makes it right in light mode without a second palette to maintain.*- * HOW, and why this is not "a component writing literal colours":- *- * `.ac-card` REDECLARES the theme tokens for the region it encloses, exactly- * the way `.dark` does in index.css. Everything inside it — Badge, Button,- * ScrollArea, ProviderLogo's masked marks, CapabilityChip, the Lead's own- * sections — then renders in the card's palette without knowing anything- * about it. The literal values are the world palette (world/world.css,- * world/worldPalette.ts), converted to the same `H S% L%` triplets the token- * system uses. `board/ShareCard.tsx` is the existing precedent for a surface- * that deliberately carries its own colours.- *- * The vocabulary, one line each: parchment ground #fffcf5, ink #1f2a3a, gold- * #ffd166, cornsilk highlight #fff8dc, a hard `0 2px 0` ink shadow instead of- * a soft one, 4-6px radii. Nothing here is new — it is what the island's- * nameplates, chips and HUD have carried since M3.+ * The one hue that survives is the island's gold, on the meters: the world's+ * own signal, the same mark the HUD's pressed chips wear. It is declared per+ * theme below rather than as one literal that only works on one ground.+ * Everything else is `hsl(var(--token))`, so this file adds no colour+ * decisions to the system.*/.ac-card {- /* --- the surface ladder, in the world's daylight ---------------------- */- --background: 40 100% 98%; /* #FFFCF5 — parchment, the card's room */- --sidebar: 40 100% 98%;- --card: 40 100% 98%;- --card-foreground: 216 30% 17%;- --popover: 48 100% 93%; /* #FFF8DC — cornsilk, the floating layer */- --popover-foreground: 216 30% 17%;- --secondary: 42 46% 91%; /* the LIFT: hover, tile, selected */- --secondary-foreground: 216 30% 17%;- --muted: 42 46% 91%;- --input: 42 46% 91%;- --surface-raised: 42 40% 86%;- --user-bubble: 42 46% 91%;- --user-bubble-foreground: 216 30% 17%;- --border: 40 28% 84%; /* the hairline, warm rather than grey */- --border-strong: 216 22% 55%;-- /* --- ink, four steps, same jobs --------------------------------------- */- --foreground-strong: 216 32% 13%;- --foreground: 216 30% 17%; /* #1F2A3A — the world's ink */- --foreground-secondary: 216 20% 30%;- --muted-foreground: 217 17% 37%; /* #4A5568 — the HUD's note colour */- --faint-foreground: 216 12% 52%;- --foreground-faint: 216 12% 52%;-- /* --- fill and signal --------------------------------------------------- */- --primary: 216 30% 17%;- --primary-foreground: 40 100% 98%;- --accent: 42 100% 55%; /* gold — the island's own signal */- --accent-foreground: 216 30% 17%;- --accent-rgb: 255 209 102;- --ring: 216 24% 40%;-- /* Status keeps its meanings; these are the light-ground values, because- the card is a light ground in both app themes. */- --success: 142 72% 29%;- --warning: 32 95% 34%;- --destructive: 0 72% 45%;- --destructive-foreground: 0 0% 100%;-- --sheen-rgb: 255 255 255;- --scrim-rgb: 31 42 58;- --radius: 0.5rem;+ --ac-gold: 42 88% 40%; /* the island's gold, darkened for a white ground */display: flex;flex-direction: column;@@ -77,8 +27,11 @@color: hsl(var(--foreground));font-family: "Pixelify Sans", "Inter Variable", "Inter", ui-sans-serif, system-ui, sans-serif;}+.dark .ac-card {+ --ac-gold: 42 100% 70%; /* #FFD166 — as the HUD wears it on the island */+}-/* Running text stays in the interface family — Pixelify is a display face and+/* Running text stays in the interface family: Pixelify is a display face, anda paragraph of standing instructions set in it is a wall of pixels. Thecard's own furniture (headings, nameplate, meters, plates) keeps it. */.ac-prose {@@ -92,19 +45,19 @@align-items: center;gap: 10px;padding: 12px 16px 13px;- background: hsl(var(--popover));- border-bottom: 2px solid hsl(var(--foreground) / 0.16);- box-shadow: 0 2px 0 hsl(var(--foreground) / 0.06);+ background: hsl(var(--secondary));+ box-shadow: inset 0 -2px 0 hsl(var(--border));}+/* The lead is the only one the town has; its plate carries the gold. */.ac-band[data-tier="lead"] {- background: linear-gradient(hsl(48 100% 93%), hsl(44 92% 86%));- border-bottom-color: hsl(42 70% 45%);+ box-shadow: inset 0 -2px 0 hsl(var(--ac-gold));}.ac-band-name {font-size: 18px;font-weight: 600;line-height: 1.1;letter-spacing: 0.01em;+ color: hsl(var(--foreground-strong));}.ac-band-title {font-size: 12px;@@ -119,7 +72,6 @@height: 9px;flex: none;border-radius: 2px;- border: 1px solid hsl(var(--foreground) / 0.4);}.ac-dot[data-state="working"] {animation: ac-pulse 1.2s ease-in-out infinite;@@ -168,10 +120,9 @@align-items: center;justify-content: center;overflow: hidden;- border-radius: 6px;- border: 1px solid hsl(var(--foreground) / 0.22);- background: hsl(var(--popover));- box-shadow: 0 2px 0 hsl(var(--foreground) / 0.25);+ border-radius: 8px;+ border: 1px solid hsl(var(--border));+ background: hsl(var(--secondary));}.ac-tile-mark img {width: 34px;@@ -198,10 +149,10 @@position: absolute;right: 3px;bottom: 3px;- width: 10px;- height: 10px;+ width: 9px;+ height: 9px;border-radius: 2px;- border: 1px solid hsl(var(--foreground) / 0.35);+ border: 1px solid hsl(var(--background));}.ac-tile-risk[data-risk="safe"] {background: hsl(var(--success));@@ -229,19 +180,49 @@}.ac-meter-track {display: flex;+ flex: none;gap: 3px;}.ac-meter-seg {width: 16px;height: 10px;border-radius: 2px;- border: 1px solid hsl(var(--foreground) / 0.3);- background: hsl(var(--foreground) / 0.08);+ background: hsl(var(--secondary));+ box-shadow: inset 0 0 0 1px hsl(var(--border));}.ac-meter-seg[data-on="1"] {- background: hsl(var(--accent));+ background: hsl(var(--ac-gold));+ box-shadow: none;+}+/* Spent against a cap: a continuous bar, because money does not come in+ steps. It turns to the fault hue at the line the scheduler refuses at. */+.ac-meter-bar {+ position: relative;+ height: 10px;+ /* The same span as the six notches beside it, so the three meters read as+ one column rather than one bar stretching past the others. */+ width: 111px;+ flex: none;+ overflow: hidden;+ border-radius: 3px;+ background: hsl(var(--secondary));+ box-shadow: inset 0 0 0 1px hsl(var(--border));+}+.ac-meter-fill {+ height: 100%;+ background: hsl(var(--ac-gold));+ transition: width 400ms ease;+}+.ac-meter-bar[data-spent="1"] .ac-meter-fill {+ background: hsl(var(--destructive));+}+@media (prefers-reduced-motion: reduce) {+ .ac-meter-fill {+ transition: none;+ }}.ac-meter-value {+ flex: none;font-weight: 600;}@@ -250,9 +231,9 @@.ac-plate {min-width: 0;padding: 7px 9px 8px;- border-radius: 5px;- border: 1px solid hsl(var(--foreground) / 0.16);- background: hsl(var(--popover) / 0.7);+ border-radius: 6px;+ border: 1px solid hsl(var(--border));+ background: hsl(var(--secondary));}.ac-plate-label {font-size: 11px;@@ -263,6 +244,41 @@font-size: 13px;font-weight: 600;line-height: 1.3;+ color: hsl(var(--foreground));+}++/* --- the activity log --------------------------------------------------- */++.ac-log {+ display: flex;+ flex-direction: column;+}+.ac-log-row {+ display: flex;+ align-items: baseline;+ gap: 8px;+ padding: 4px 0;+ font-size: 12px;+ border-bottom: 1px solid hsl(var(--border));+}+.ac-log-row:last-child {+ border-bottom: 0;+}+.ac-log-type {+ width: 78px;+ flex: none;+ font-weight: 600;+ color: hsl(var(--foreground));+}+.ac-log-what {+ min-width: 0;+ flex: 1;+ color: hsl(var(--muted-foreground));+}+.ac-log-when {+ flex: none;+ color: hsl(var(--muted-foreground));+ font-variant-numeric: tabular-nums;}/* --- the action bar ----------------------------------------------------- */@@ -272,8 +288,8 @@align-items: center;gap: 8px;padding: 10px 14px;- border-top: 2px solid hsl(var(--foreground) / 0.16);- background: hsl(var(--popover) / 0.6);+ border-top: 1px solid hsl(var(--border));+ background: hsl(var(--sidebar));}.ac-btn {display: inline-flex;@@ -284,26 +300,25 @@font-size: 13px;line-height: 1;color: hsl(var(--foreground));- background: hsl(var(--background));- border: 1px solid hsl(var(--foreground) / 0.25);+ background: hsl(var(--secondary));+ border: 1px solid hsl(var(--border));border-radius: 6px;- box-shadow: 0 2px 0 hsl(var(--foreground) / 0.25);cursor: pointer;transition: transform 80ms ease, background-color 120ms ease;}.ac-btn:hover:not(:disabled) {- background: hsl(var(--popover));+ background: hsl(var(--surface-raised));}.ac-btn:active:not(:disabled) {transform: translateY(1px);- box-shadow: 0 1px 0 hsl(var(--foreground) / 0.25);}.ac-btn:disabled {opacity: 0.45;cursor: default;}-.ac-btn[data-accent="1"]:hover:not(:disabled) {- background: hsl(var(--accent));+.ac-btn:focus-visible {+ outline: none;+ box-shadow: 0 0 0 2px hsl(var(--ring));}@media (prefers-reduced-motion: reduce) {.ac-btn {diff --git a/jarvis/ui/web/frontend/src/components/society/cardData.ts b/jarvis/ui/web/frontend/src/components/society/cardData.tsnew file mode 100644index 0000000000..fd7d4dae4c--- /dev/null+++ b/jarvis/ui/web/frontend/src/components/society/cardData.ts@@ -0,0 +1,192 @@+/**+ * The per-agent detail the roster row does not carry.+ *+ * `GET /api/society/agents` answers with the profile and three derived+ * numbers; everything an agent has actually DONE lives behind three further+ * routes that nothing in the frontend was calling. That is why the card's+ * Routines block could only ever read "No routines yet" — not because the+ * agent had none, but because nobody asked.+ *+ * These hooks are deliberately quiet: `retry: false`, no error surfaced, and+ * every one of them returns an empty list when the backend is not there. The+ * card treats them as enrichment and never blocks on them.+ */+import { useQuery } from "@tanstack/react-query";++/** One line of what the agent did or was told, from the society event log. */+export interface AgentActivity {+ id: string;+ /** CLAIM, ASSIGN, RESULT, DIGEST, MESSAGE … — the envelope's own type. */+ type: string;+ fromAgent: string | null;+ toAgent: string | null;+ tsMs: number;+ costUsd: number;+}++/** A skill the agent authored for itself after a finished task. */+export interface LearnedSkill {+ slug: string;+ name: string;+ description: string;+ whenToUse: string;+}++/** A scheduled task tagged for this agent, as the Automations store holds it. */+export interface LiveRoutine {+ id: string;+ title: string;+ state: string;+ /** Readable schedule ("every 24 h", "at 07:00"), built from the raw trigger. */+ schedule: string;+ /** Next fire in epoch ms, or null when the scheduler knows none. */+ dueMs: number | null;+ lastRunMs: number | null;+}++interface EnvelopeRow {+ event_id?: string;+ seq?: number;+ msg_type?: string;+ from_agent?: string | null;+ to_agent?: string | null;+ ts_ms?: number;+ cost_usd?: number;+}++async function getJson<T>(url: string): Promise<T | null> {+ try {+ const res = await fetch(url);+ if (!res.ok) return null;+ return (await res.json()) as T;+ } catch {+ return null; // the card says nothing rather than an error nobody can act on+ }+}++/** Seconds as the coarsest unit that stays a whole number: "6 h", "30 min". */+function humanEvery(seconds: number): string {+ if (seconds % 86_400 === 0) return `${seconds / 86_400} d`;+ if (seconds % 3_600 === 0) return `${seconds / 3_600} h`;+ if (seconds % 60 === 0) return `${seconds / 60} min`;+ return `${Math.round(seconds)} s`;+}++/**+ * The raw trigger object into one readable phrase.+ *+ * The scheduler stores a `TaskSpec` trigger (`jarvis/society/routines.py`),+ * not a sentence, and there is no server-side rendering of it — so the shapes+ * are mapped here, and an unknown kind falls back to its own name rather than+ * to an invented schedule.+ */+export function describeTrigger(trigger: unknown): string {+ if (!trigger || typeof trigger !== "object") return "";+ const t = trigger as Record<string, unknown>;+ const kind = String(t.kind ?? t.type ?? "");+ if (kind === "every" && typeof t.interval_seconds === "number") {+ return `every ${humanEvery(t.interval_seconds)}`;+ }+ if (kind === "at_time" && typeof t.iso_timestamp === "string") {+ const at = new Date(t.iso_timestamp);+ return Number.isNaN(at.getTime())+ ? "at a fixed time"+ : `at ${at.toLocaleString(undefined, { hour: "2-digit", minute: "2-digit" })}`;+ }+ if (kind === "after_delay" && typeof t.delay_seconds === "number") {+ return `once, in ${humanEvery(t.delay_seconds)}`;+ }+ if (kind === "on_event" && typeof t.event_name === "string") return `on ${t.event_name}`;+ return kind;+}++/** Nanoseconds (what the task store stores) to epoch ms, or null. */+function nsToMs(value: unknown): number | null {+ return typeof value === "number" && value > 0 ? Math.round(value / 1e6) : null;+}++/**+ * What the agent has been doing, and how many runs it has in flight.+ *+ * `events_for_agent` deliberately includes broadcasts (`to_agent IS NULL`), so+ * the rows are filtered here to the ones this agent actually sent or received+ * — a card headed "Recent" must not show the whole board's traffic.+ */+export function useAgentActivity(agentId: string | null) {+ return useQuery({+ queryKey: ["society", "agent-activity", agentId],+ enabled: Boolean(agentId),+ staleTime: 10_000,+ refetchInterval: 20_000,+ retry: false,+ queryFn: async (): Promise<{ events: AgentActivity[]; activeRuns: number }> => {+ const body = await getJson<{ recent_events?: EnvelopeRow[]; active_runs?: number }>(+ `/api/society/agents/${encodeURIComponent(agentId ?? "")}`,+ );+ const rows = body?.recent_events ?? [];+ const events = rows+ .filter((r) => r.from_agent === agentId || r.to_agent === agentId)+ .map((r, i) => ({+ id: String(r.event_id ?? r.seq ?? i),+ type: String(r.msg_type ?? ""),+ fromAgent: r.from_agent ?? null,+ toAgent: r.to_agent ?? null,+ tsMs: Number(r.ts_ms ?? 0),+ costUsd: Number(r.cost_usd ?? 0),+ }))+ .reverse(); // newest first+ return { events, activeRuns: Number(body?.active_runs ?? 0) };+ },+ });+}++/** The skills the agent taught itself, newest first is not knowable — as served. */+export function useAgentSkills(agentId: string | null) {+ return useQuery({+ queryKey: ["society", "agent-skills", agentId],+ enabled: Boolean(agentId),+ staleTime: 60_000,+ retry: false,+ queryFn: async (): Promise<LearnedSkill[]> => {+ const body = await getJson<{+ skills?: { slug?: string; name?: string; description?: string; when_to_use?: string }[];+ }>(`/api/society/agents/${encodeURIComponent(agentId ?? "")}/skills`);+ return (body?.skills ?? []).map((s) => ({+ slug: String(s.slug ?? ""),+ name: String(s.name ?? s.slug ?? ""),+ description: String(s.description ?? ""),+ whenToUse: String(s.when_to_use ?? ""),+ }));+ },+ });+}++/** The agent's scheduled tasks, as the Automations store actually holds them. */+export function useAgentRoutines(agentId: string | null) {+ return useQuery({+ queryKey: ["society", "agent-routines", agentId],+ enabled: Boolean(agentId),+ staleTime: 30_000,+ retry: false,+ queryFn: async (): Promise<LiveRoutine[]> => {+ const body = await getJson<{+ routines?: {+ id?: string;+ title?: string;+ state?: string;+ trigger?: unknown;+ due_at_ns?: number;+ last_run_ns?: number;+ }[];+ }>(`/api/society/agents/${encodeURIComponent(agentId ?? "")}/routines`);+ return (body?.routines ?? []).map((r, i) => ({+ id: String(r.id ?? i),+ title: String(r.title ?? ""),+ state: String(r.state ?? ""),+ schedule: describeTrigger(r.trigger),+ dueMs: nsToMs(r.due_at_ns),+ lastRunMs: nsToMs(r.last_run_ns),+ }));+ },+ });+}diff --git a/jarvis/ui/web/frontend/src/components/society/data.ts b/jarvis/ui/web/frontend/src/components/society/data.tsindex d03e54c66e..6f5b02c847 100644--- a/jarvis/ui/web/frontend/src/components/society/data.ts+++ b/jarvis/ui/web/frontend/src/components/society/data.ts@@ -66,6 +66,12 @@ export interface AgentRoutine {export interface AgentStats {runs: number;totalCostUsd: number;+ /**+ * Spent since midnight UTC. The daily budget is a real gate — the scheduler+ * refuses a dispatch once this reaches `dailyBudgetUsd` — so the card shows+ * the two together rather than a cap with nothing beside it.+ */+ spentTodayUsd: number;/** Epoch ms of the last completed run; null for a fresh agent. */lastActiveMs: number | null;}@@ -109,6 +115,12 @@ export interface SocietyAgent {/** The durable lifecycle state behind `state` ("active" | "paused" | "archived"). */lifecycle: "active" | "paused" | "archived";createdMs: number;+ /** How many runs may be in flight under this identity at once (the scheduler enforces it). */+ maxConcurrentRuns: number;+ /** Where its files live, relative to the data dir — its own sandbox. */+ workspaceDir: string;+ /** Where its notes land in the shared wiki. */+ wikiNamespace: string;/** The canonical agent_chat session bound to this agent; null on sample rows. */chatSessionId: string | null;routines: AgentRoutine[];@@ -221,11 +233,15 @@ export function rowToAgent(row: SocietyAgentRow): SocietyAgent {state: runState,lifecycle: row.state,createdMs: row.created_ms,+ maxConcurrentRuns: row.max_concurrent_runs ?? 1,+ workspaceDir: row.workspace_dir ?? "",+ wikiNamespace: row.wiki_namespace ?? "",chatSessionId: row.session_id || null,routines: [],stats: {runs: row.stats?.runs ?? 0,totalCostUsd: row.stats?.total_cost_usd ?? 0,+ spentTodayUsd: row.stats?.spent_today_usd ?? 0,lastActiveMs: row.stats?.last_active_ms ?? null,},};@@ -364,8 +380,9 @@ export function useCreateAgent() {// Network failure: fall through to the sample row.}const taken = new Set((data?.agents ?? []).map((a) => a.agentId));+ const newId = slugifyAgentName(input.name, taken);const agent: SocietyAgent = {- agentId: slugifyAgentName(input.name, taken),+ agentId: newId,name: input.name.trim(),title: input.title.trim(),description: input.description.trim(),@@ -387,9 +404,12 @@ export function useCreateAgent() {state: "idle",lifecycle: "active",createdMs: Date.now(),+ maxConcurrentRuns: 1,+ workspaceDir: `society/${newId}/workspace`,+ wikiNamespace: `society/${newId}/`,chatSessionId: null,routines: [],- stats: { runs: 0, totalCostUsd: 0, lastActiveMs: null },+ stats: { runs: 0, totalCostUsd: 0, spentTodayUsd: 0, lastActiveMs: null },};LOCAL_ROSTER.push(agent);announceSpawn(agent.agentId);diff --git a/jarvis/ui/web/frontend/src/components/society/mockRoster.ts b/jarvis/ui/web/frontend/src/components/society/mockRoster.tsindex f47f6568bf..0f49d32849 100644--- a/jarvis/ui/web/frontend/src/components/society/mockRoster.ts+++ b/jarvis/ui/web/frontend/src/components/society/mockRoster.ts@@ -100,7 +100,10 @@ export const SAMPLE_ROSTER: SocietyAgent[] = [nextFire: "2026-09-02T08:00:00Z",},],- stats: { runs: 42, totalCostUsd: 6.1, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },+ maxConcurrentRuns: 1,+ workspaceDir: "society/jarvis/workspace",+ wikiNamespace: "society/jarvis/",+ stats: { runs: 42, totalCostUsd: 6.1, spentTodayUsd: 0.4, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },},{agentId: "scout",@@ -135,7 +138,10 @@ export const SAMPLE_ROSTER: SocietyAgent[] = [nextFire: "2026-09-02T07:00:00Z",},],- stats: { runs: 128, totalCostUsd: 14.7, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },+ maxConcurrentRuns: 1,+ workspaceDir: "society/scout/workspace",+ wikiNamespace: "society/scout/",+ stats: { runs: 128, totalCostUsd: 14.7, spentTodayUsd: 1.2, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },},{agentId: "archivist",@@ -170,6 +176,9 @@ export const SAMPLE_ROSTER: SocietyAgent[] = [nextFire: "2026-09-01T23:30:00Z",},],- stats: { runs: 311, totalCostUsd: 0.9, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },+ maxConcurrentRuns: 1,+ workspaceDir: "society/archivist/workspace",+ wikiNamespace: "society/archivist/",+ stats: { runs: 311, totalCostUsd: 0.9, spentTodayUsd: 0.05, lastActiveMs: SAMPLE_LAST_ACTIVE_MS },},];diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex c5c8ac298d..4cc3a42e98 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -5100,20 +5100,6 @@"proposal_kind_approval_rule": "Freigaberegeln","proposal_kind_focus": "Werkzeuge, die zuerst genutzt werden","proposal_kind_team": "Teammitglieder",- "proposal_title": "{0} schlägt eine Änderung vor",- "proposal_reason": "Warum",- "proposal_confirm": "Bestätigen",- "proposal_reject": "Ablehnen",- "proposal_pending": "Wartet auf deine Entscheidung",- "proposal_applied": "Übernommen",- "proposal_rejected": "Abgelehnt",- "proposal_failed": "Konnte nicht übernommen werden",- "proposal_kind_rule": "Feste Regel",- "proposal_kind_skill": "Als Skill sichern",- "proposal_kind_routine": "Routine",- "proposal_kind_approval_rule": "Freigaberegeln",- "proposal_kind_focus": "Werkzeuge, die zuerst genutzt werden",- "proposal_kind_team": "Teammitglieder","allow_always": "Immer erlauben"},"world": {@@ -5123,7 +5109,7 @@"hud_active": "{0} aktiv","sample_badge": "Beispieldaten","reduced_motion_note": "Reduzierte Bewegung: Die Insel hält still.",- "controls_hint": "Ziehen zum Verschieben · Scrollen zum Zoomen · Pfeiltasten zum Bewegen · Gebäude anklicken zum Drehen",+ "controls_hint": "Ziehen zum Verschieben · Rechte Maustaste zum Drehen · Scrollen zum Zoomen · Pfeiltasten zum Bewegen · Gebäude anklicken zum Drehen","rotate_hint": "Den Knopf um das Gebäude ziehen, um es zu drehen. Mit Shift rastet es in 15°-Schritten ein.","rotate_reset": "Zurück zur Standard-Ausrichtung","rotate_reset_short": "Zurücksetzen",@@ -5132,6 +5118,10 @@"zoom_label": "Zoom","zoom_in": "Vergrößern","zoom_out": "Verkleinern",+ "compass_label": "Blickrichtung",+ "turn_left": "Ansicht nach links drehen (Q)",+ "turn_right": "Ansicht nach rechts drehen (E)",+ "view_reset": "Zurück zur Standardansicht (R)","webgl_missing_title": "Die Insel braucht WebGL","webgl_missing_body": "Dieses Fenster kann gerade kein 3D zeichnen. Das Register zeigt dieselben Agenten als Tabelle.","open_ledger": "Register öffnen",@@ -5266,15 +5256,30 @@"due_now": "jetzt fällig","due_in": "in {0}","chat_soon": "Der Chat öffnet sich hier, sobald die Sitzung angebunden ist.",- "assign_soon": "Aufträge kommen mit der Scheduler-Anbindung.","action_chat": "Chat",- "action_assign": "Aufgabe geben","action_pause": "Pausieren","action_resume": "Fortsetzen","specs": "Daten","figure": "Figur","chat": "Chat","hands": "Hände",+ "learned": "Gelernt",+ "recent": "Zuletzt",+ "no_recent": "Von diesem Agenten steht noch nichts auf dem Brett.",+ "active_runs": "{0} laufen",+ "meter_today": "Heute",+ "no_cap": "kein Limit",+ "spent_of": "{0} $ von {1} $",+ "jobs_at_once": "Aufträge gleichzeitig",+ "created": "Angelegt",+ "where": "Wo er arbeitet",+ "workspace": "Arbeitsordner",+ "wiki": "Wiki-Notizen",+ "just_now": "gerade eben",+ "ago": "vor {0}",+ "log_to": "an {0}",+ "log_from": "von {0}",+ "log_board": "ans Brett","hands_empty": "Noch nicht spezialisiert — schreib in die Beschreibung, wofür er da ist, dann bekommt er die passenden Hände.","hands_rest": "Alles Übrige, was die Stufen erlauben, bleibt in Reichweite — {0} Werkzeuge.","hands_rest_plain": "Alles Übrige, was die Stufen erlauben, bleibt in Reichweite.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 8e8753b713..ac750a26ec 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -5133,20 +5133,6 @@"proposal_kind_approval_rule": "Approval rules","proposal_kind_focus": "Tools to reach for first","proposal_kind_team": "Teammates",- "proposal_title": "{0} proposes a change",- "proposal_reason": "Why",- "proposal_confirm": "Confirm",- "proposal_reject": "Reject",- "proposal_pending": "Waiting for your decision",- "proposal_applied": "Applied",- "proposal_rejected": "Rejected",- "proposal_failed": "Could not be applied",- "proposal_kind_rule": "Standing rule",- "proposal_kind_skill": "Save as a skill",- "proposal_kind_routine": "Routine",- "proposal_kind_approval_rule": "Approval rules",- "proposal_kind_focus": "Tools to reach for first",- "proposal_kind_team": "Teammates","allow_always": "Always allow"},"world": {@@ -5156,7 +5142,7 @@"hud_active": "{0} active","sample_badge": "Sample data","reduced_motion_note": "Motion reduced: the island holds still.",- "controls_hint": "Drag to pan · Scroll to zoom · Arrow keys to move · Click a building to turn it",+ "controls_hint": "Drag to pan · Right-drag to turn the view · Scroll to zoom · Arrow keys to move · Click a building to turn it","rotate_hint": "Drag the knob around the building to turn it. Shift snaps to 15° steps.","rotate_reset": "Back to the designed heading","rotate_reset_short": "Reset",@@ -5165,6 +5151,10 @@"zoom_label": "Zoom","zoom_in": "Zoom in","zoom_out": "Zoom out",+ "compass_label": "View direction",+ "turn_left": "Turn the view left (Q)",+ "turn_right": "Turn the view right (E)",+ "view_reset": "Back to the designed view (R)","webgl_missing_title": "The island needs WebGL","webgl_missing_body": "This window cannot draw 3D right now. The ledger shows the same agents as a table.","open_ledger": "Open the ledger",@@ -5299,15 +5289,30 @@"due_now": "due now","due_in": "in {0}","chat_soon": "The chat opens here once the session is bound.",- "assign_soon": "Assignments arrive with the scheduler wiring.","action_chat": "Chat",- "action_assign": "Assign task","action_pause": "Pause","action_resume": "Resume","specs": "Specs","figure": "Figure","chat": "Chat","hands": "Hands",+ "learned": "Learned",+ "recent": "Recent",+ "no_recent": "Nothing on the board from this agent yet.",+ "active_runs": "{0} running",+ "meter_today": "Today",+ "no_cap": "no cap",+ "spent_of": "${0} of ${1}",+ "jobs_at_once": "Jobs at once",+ "created": "Created",+ "where": "Where it works",+ "workspace": "Workspace",+ "wiki": "Wiki notes",+ "just_now": "just now",+ "ago": "{0} ago",+ "log_to": "to {0}",+ "log_from": "from {0}",+ "log_board": "to the board","hands_empty": "Not specialised yet — say in its description what it should do, and it is given hands for it.","hands_rest": "Everything else the tiers allow stays in reach — {0} tools.","hands_rest_plain": "Everything else the tiers allow stays in reach.",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex ac34da431e..2f8fd4682e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -5100,20 +5100,6 @@"proposal_kind_approval_rule": "Reglas de aprobación","proposal_kind_focus": "Herramientas a usar primero","proposal_kind_team": "Compañeros de equipo",- "proposal_title": "{0} propone un cambio",- "proposal_reason": "Por qué",- "proposal_confirm": "Confirmar",- "proposal_reject": "Rechazar",- "proposal_pending": "Esperando tu decisión",- "proposal_applied": "Aplicado",- "proposal_rejected": "Rechazado",- "proposal_failed": "No se pudo aplicar",- "proposal_kind_rule": "Regla fija",- "proposal_kind_skill": "Guardar como habilidad",- "proposal_kind_routine": "Rutina",- "proposal_kind_approval_rule": "Reglas de aprobación",- "proposal_kind_focus": "Herramientas a usar primero",- "proposal_kind_team": "Compañeros de equipo","allow_always": "Permitir siempre"},"world": {@@ -5123,7 +5109,7 @@"hud_active": "{0} activos","sample_badge": "Datos de ejemplo","reduced_motion_note": "Movimiento reducido: la isla se queda quieta.",- "controls_hint": "Arrastra para desplazar · Rueda para acercar · Flechas para mover · Clic en un edificio para girarlo",+ "controls_hint": "Arrastra para desplazar · Botón derecho para girar la vista · Rueda para acercar · Flechas para mover · Clic en un edificio para girarlo","rotate_hint": "Arrastra el mando alrededor del edificio para girarlo. Con Mayús se ajusta en pasos de 15°.","rotate_reset": "Volver a la orientación de diseño","rotate_reset_short": "Restablecer",@@ -5132,6 +5118,10 @@"zoom_label": "Zoom","zoom_in": "Acercar","zoom_out": "Alejar",+ "compass_label": "Dirección de la vista",+ "turn_left": "Girar la vista a la izquierda (Q)",+ "turn_right": "Girar la vista a la derecha (E)",+ "view_reset": "Volver a la vista original (R)","webgl_missing_title": "La isla necesita WebGL","webgl_missing_body": "Esta ventana no puede dibujar 3D ahora. El registro muestra los mismos agentes como tabla.","open_ledger": "Abrir el registro",@@ -5266,15 +5256,30 @@"due_now": "vence ahora","due_in": "en {0}","chat_soon": "El chat se abre aquí cuando la sesión esté vinculada.",- "assign_soon": "Las tareas llegan con la conexión del planificador.","action_chat": "Chat",- "action_assign": "Asignar tarea","action_pause": "Pausar","action_resume": "Reanudar","specs": "Ficha","figure": "Figura","chat": "Chat","hands": "Manos",+ "learned": "Aprendido",+ "recent": "Reciente",+ "no_recent": "Este agente aún no ha puesto nada en el tablón.",+ "active_runs": "{0} en marcha",+ "meter_today": "Hoy",+ "no_cap": "sin límite",+ "spent_of": "{0} $ de {1} $",+ "jobs_at_once": "Trabajos a la vez",+ "created": "Creado",+ "where": "Dónde trabaja",+ "workspace": "Carpeta de trabajo",+ "wiki": "Notas del wiki",+ "just_now": "ahora mismo",+ "ago": "hace {0}",+ "log_to": "a {0}",+ "log_from": "de {0}",+ "log_board": "al tablón","hands_empty": "Aún sin especializar: di en su descripción para qué está, y recibirá las manos que le correspondan.","hands_rest": "Todo lo demás que permiten los niveles sigue a su alcance: {0} herramientas.","hands_rest_plain": "Todo lo demás que permiten los niveles sigue a su alcance.",diff --git a/jarvis/ui/web/frontend/src/lib/societyApi.ts b/jarvis/ui/web/frontend/src/lib/societyApi.tsindex b6f905361b..af7dff9919 100644--- a/jarvis/ui/web/frontend/src/lib/societyApi.ts+++ b/jarvis/ui/web/frontend/src/lib/societyApi.ts@@ -163,7 +163,13 @@ export interface SocietyAgentRow {session_id: string;created_ms: number;updated_ms: number;- stats: { runs: number; total_cost_usd: number; last_active_ms: number | null };+ stats: {+ runs: number;+ total_cost_usd: number;+ /** Since midnight UTC — the window the scheduler's daily-budget gate uses. */+ spent_today_usd?: number;+ last_active_ms: number | null;+ };run_state?: RunState;}