You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/09/23 10:31:35 UTC

(maka) branch feat/runtime-host-rust updated: feat(insights): provide Session Inspector through public client slots

This is an automated email from the ASF dual-hosted git repository.

M4n5ter pushed a commit to branch feat/runtime-host-rust
in repository https://gitbox.apache.org/repos/asf/maka.git


The following commit(s) were added to refs/heads/feat/runtime-host-rust by this push:
     new d460786fb2 feat(insights): provide Session Inspector through public client slots
d460786fb2 is described below

commit d460786fb2799e1569aeb069b3e3f67902b52ff0
Author: Wang <m4...@gmail.com>
AuthorDate: Wed Sep 23 18:31:20 2026 +0800

    feat(insights): provide Session Inspector through public client slots
    
    Generated-by: Codex
---
 .../session-inspector-panel-model.test.ts          | 110 ------
 .../session-inspector-usage-stats.test.ts          | 346 -----------------
 .../src/main/__tests__/use-session-trace.test.ts   | 125 -------
 .../__tests__/workbar-services-adapter.test.ts     |   5 -
 apps/desktop/src/main/runtime-host-boot.ts         |   5 -
 .../src/main/runtime-host-usage-ipc-main.ts        |  36 --
 apps/desktop/src/preload/bridge-contract.d.ts      |   8 -
 apps/desktop/src/preload/preload.ts                |  35 --
 apps/desktop/src/renderer/app-shell.tsx            |   2 +
 .../contracts/session-inspector/service.ts         |   7 -
 .../session-inspector-overview-model.ts            | 189 ----------
 .../session-inspector/session-inspector-panel.tsx  | 409 +--------------------
 .../session-inspector/use-session-trace.ts         |  62 +---
 .../src/renderer/features/client-plugins/index.tsx |   2 +-
 .../workbar/controller/use-workbar-controller.ts   |   2 +
 .../desktop/src/renderer/features/workbar/ports.ts |   2 +-
 .../src/renderer/features/workbar/testing.ts       |   8 -
 .../renderer/features/workbar/ui/workbar-host.tsx  |   2 +
 .../features/workbar/ui/workbar-surface.tsx        |   5 +
 .../platform/desktop/create-workbar-services.ts    |   2 -
 .../src/renderer/styles/workbar/inspector.css      | 163 --------
 apps/desktop/stories/session-workbar.stories.tsx   |  72 ----
 apps/desktop/stories/workhub.stories.tsx           |   7 -
 crates/event-log/src/usage/summary.rs              |   5 +
 crates/event-log/tests/tool_usage.rs               |   1 +
 crates/event-log/tests/usage_summary.rs            |   1 +
 crates/insights/README.md                          |   4 +-
 crates/insights/README.zh-CN.md                    |   4 +-
 crates/insights/src/client.tsx                     |   4 +
 crates/insights/src/client/inspector.tsx           | 129 +++++++
 crates/insights/src/client/model.ts                |   4 +-
 crates/insights/src/client/totals.tsx              |  21 +-
 crates/insights/src/plugin/remote.rs               |   7 +-
 crates/insights/tests/client.test.mjs              | 199 ++++++++++
 .../tests/integration/insights_plugin.rs           |  40 +-
 crates/runtime/src/accounting/summary.rs           |   4 +
 docs/rust-parity.md                                |   4 +-
 docs/rust-parity.zh-CN.md                          |   4 +-
 packages/plugin-sdk/README.md                      |   4 +
 packages/plugin-sdk/README.zh-CN.md                |   4 +
 packages/plugin-sdk/src/client.ts                  |   4 +
 packages/plugin-sdk/src/usage.ts                   |   4 +
 42 files changed, 464 insertions(+), 1587 deletions(-)

diff --git a/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts b/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts
index 1b39a27bc0..1a9402ce3f 100644
--- a/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts
+++ b/apps/desktop/src/main/__tests__/session-inspector-panel-model.test.ts
@@ -29,118 +29,8 @@ import {
 import {
   deriveInspectorPanelModel,
   deriveInspectorOverviewModel,
-  estimatedSessionCost,
-  hasUnavailableSessionUsage,
 } from '../../renderer/features/workbar/testing.js';
 
-test('does not render legacy zero cost as a known free Session', () => {
-  const summary = {
-    range: { from: 0, to: 1 },
-    totalRequests: 1,
-    totalCostUsd: 0,
-    totalTokens: {
-      input: 1,
-      output: 1,
-      cacheMiss: 1,
-      cacheRead: 0,
-      cacheWrite: 0,
-      reasoning: 0,
-      total: 2,
-    },
-    cacheHitRequests: 0,
-    cacheCreateRequests: 0,
-    errorRequests: 0,
-    totalDurationMs: 0,
-    provenance: {
-      coverage: {
-        attempts: 0,
-        pricedAttempts: 0,
-        unpricedAttempts: 0,
-        usageReportedAttempts: 0,
-        usagePartialAttempts: 0,
-        usageMissingAttempts: 0,
-      },
-      legacyRecords: 1,
-      unreadableRecords: 0,
-      pendingRepairs: 0,
-    },
-  };
-  assert.equal(estimatedSessionCost(summary), undefined);
-  assert.equal(estimatedSessionCost({ ...summary, totalCostUsd: 0.01 }), 0.01);
-});
-
-test('reports incomplete provenance as unavailable regardless of recorded request count', () => {
-  const summary = {
-    range: { from: 0, to: 1 },
-    totalRequests: 0,
-    totalCostUsd: 0,
-    totalTokens: {
-      input: 0,
-      output: 0,
-      cacheMiss: 0,
-      cacheRead: 0,
-      cacheWrite: 0,
-      reasoning: 0,
-      total: 0,
-    },
-    cacheHitRequests: 0,
-    cacheCreateRequests: 0,
-    errorRequests: 0,
-    totalDurationMs: 0,
-    provenance: {
-      coverage: {
-        attempts: 0,
-        pricedAttempts: 0,
-        unpricedAttempts: 0,
-        usageReportedAttempts: 0,
-        usagePartialAttempts: 0,
-        usageMissingAttempts: 0,
-      },
-      legacyRecords: 0,
-      unreadableRecords: 1,
-      pendingRepairs: 0,
-    },
-  };
-
-  assert.equal(hasUnavailableSessionUsage(summary), true);
-  assert.equal(hasUnavailableSessionUsage({ ...summary, totalRequests: 1 }), true);
-});
-
-test('does not estimate a cache-hit ratio from partial usage', () => {
-  const overview = deriveInspectorOverviewModel(undefined, {
-    range: { from: 0, to: 1 },
-    totalRequests: 1,
-    totalCostUsd: 0,
-    totalTokens: {
-      input: 10,
-      output: 0,
-      cacheMiss: 0,
-      cacheRead: 10,
-      cacheWrite: 0,
-      reasoning: 0,
-      total: 10,
-    },
-    cacheHitRequests: 1,
-    cacheCreateRequests: 0,
-    errorRequests: 0,
-    totalDurationMs: 0,
-    provenance: {
-      coverage: {
-        attempts: 1,
-        pricedAttempts: 1,
-        unpricedAttempts: 0,
-        usageReportedAttempts: 0,
-        usagePartialAttempts: 1,
-        usageMissingAttempts: 0,
-      },
-      legacyRecords: 0,
-      unreadableRecords: 0,
-      pendingRepairs: 0,
-    },
-  });
-
-  assert.equal(overview.cacheHitRate, undefined);
-});
 test('derives per-turn cost only from priced model-call step totals', () => {
   const cases: readonly {
     name: string;
diff --git a/apps/desktop/src/main/__tests__/session-inspector-usage-stats.test.ts b/apps/desktop/src/main/__tests__/session-inspector-usage-stats.test.ts
deleted file mode 100644
index bfb0811487..0000000000
--- a/apps/desktop/src/main/__tests__/session-inspector-usage-stats.test.ts
+++ /dev/null
@@ -1,346 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import assert from 'node:assert/strict';
-import { test } from 'node:test';
-import {
-  deriveInspectorOverviewModel,
-  RING_ACTIVE_MIN_SWEEP,
-  RING_MIN_SWEEP,
-  usageRingArcs,
-} from '../../renderer/features/workbar/testing.js';
-import type { UsageSummaryV2 } from '@maka/core/usage-stats/types';
-
-function usageSummary(overrides: Partial<UsageSummaryV2> = {}): UsageSummaryV2 {
-  return {
-    range: { from: 0, to: 1 },
-    totalRequests: 3,
-    totalCostUsd: 0.02,
-    totalTokens: {
-      input: 4_000_000,
-      output: 60_300,
-      cacheMiss: 100_000,
-      cacheRead: 3_900_000,
-      cacheWrite: 0,
-      reasoning: 12_000,
-      total: 4_060_300,
-    },
-    cacheHitRequests: 2,
-    cacheCreateRequests: 0,
-    errorRequests: 0,
-    totalDurationMs: 0,
-    ...overrides,
-  };
-}
-
-test('splits the session metered tokens the way a bill reads', () => {
-  const { tokenUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalDurationMs: 1_885_000 }),
-  );
-
-  assert.ok(tokenUsage);
-  assert.deepEqual(
-    tokenUsage.segments.map((segment) => [segment.kind, segment.tokens]),
-    [
-      ['cacheRead', 3_900_000],
-      ['cacheMiss', 100_000],
-      ['output', 60_300],
-    ],
-  );
-  // The readout is the sum of the drawn rows, so the legend and its total
-  // cannot disagree even when the ledger's own parts drifted.
-  assert.equal(
-    tokenUsage.total,
-    tokenUsage.segments.reduce((carry, segment) => carry + segment.tokens, 0),
-  );
-});
-
-test('derives uncached input as the prompt residual when a provider reports only its cache', () => {
-  // A cache-reading-only provider leaves the ledger's cacheMiss at zero; the
-  // row must still carry what the session paid as uncached input.
-  const { tokenUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({
-      totalTokens: {
-        input: 260_500,
-        output: 60_300,
-        cacheMiss: 0,
-        cacheRead: 200_000,
-        cacheWrite: 0,
-        reasoning: 0,
-        total: 320_800,
-      },
-    }),
-  );
-
-  assert.deepEqual(
-    tokenUsage?.segments.map((segment) => [segment.kind, segment.tokens]),
-    [
-      ['cacheRead', 200_000],
-      ['cacheMiss', 60_500],
-      ['output', 60_300],
-    ],
-  );
-});
-
-test('keeps the ledger cacheMiss as a floor for records that reported no prompt total', () => {
-  const { tokenUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({
-      totalTokens: {
-        input: 0,
-        output: 100,
-        cacheMiss: 500,
-        cacheRead: 0,
-        cacheWrite: 0,
-        reasoning: 0,
-        total: 100,
-      },
-    }),
-  );
-
-  assert.deepEqual(
-    tokenUsage?.segments.map((segment) => [segment.kind, segment.tokens]),
-    [
-      ['cacheMiss', 500],
-      ['output', 100],
-    ],
-  );
-});
-
-test('a session with nothing metered has no token split to show', () => {
-  const { tokenUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({
-      totalTokens: {
-        input: 0,
-        output: 0,
-        cacheMiss: 0,
-        cacheRead: 0,
-        cacheWrite: 0,
-        reasoning: 0,
-        total: 0,
-      },
-    }),
-  );
-  assert.equal(tokenUsage, undefined);
-  assert.equal(deriveInspectorOverviewModel(undefined, undefined).tokenUsage, undefined);
-});
-
-test('shows the token split even when usage coverage is partial, since the rows are what ran', () => {
-  // The cache-hit RATE goes unavailable under partial usage — a rate over a
-  // part is a lie. The split stays: its rows state what was recorded, which
-  // only undercounts, never fabricates.
-  const { tokenUsage, cacheHitRate } = deriveInspectorOverviewModel(undefined, {
-    ...usageSummary(),
-    provenance: {
-      coverage: {
-        attempts: 3,
-        pricedAttempts: 3,
-        unpricedAttempts: 0,
-        usageReportedAttempts: 2,
-        usagePartialAttempts: 1,
-        usageMissingAttempts: 0,
-      },
-      legacyRecords: 0,
-      unreadableRecords: 0,
-      pendingRepairs: 0,
-    },
-  });
-  assert.ok(tokenUsage);
-  assert.equal(cacheHitRate, undefined);
-});
-
-test('splits recorded time between model calls and tool executions', () => {
-  const { durationUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalDurationMs: 1_873_000, toolUsage: { requests: 78, durationMs: 78_000 } }),
-  );
-
-  assert.deepEqual(
-    durationUsage?.segments.map((segment) => [segment.kind, segment.count, segment.durationMs]),
-    [
-      ['model', 3, 1_873_000],
-      ['tool', 78, 78_000],
-    ],
-  );
-  assert.equal(durationUsage?.totalDurationMs, 1_873_000 + 78_000);
-});
-
-test('keeps a cache-read share the provider reported without a prompt total', () => {
-  // Core leaves the ledger's cacheRead unclamped when no prompt total was
-  // reported, so cacheRead > input is a normal aggregate there — clamping it
-  // to input would erase exactly the sessions the split exists to describe.
-  const { tokenUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({
-      totalTokens: {
-        input: 0,
-        output: 100,
-        cacheMiss: 60_000,
-        cacheRead: 200_000,
-        cacheWrite: 0,
-        reasoning: 0,
-        total: 260_100,
-      },
-    }),
-  );
-
-  assert.deepEqual(
-    tokenUsage?.segments.map((segment) => [segment.kind, segment.tokens]),
-    [
-      ['cacheRead', 200_000],
-      ['cacheMiss', 60_000],
-      ['output', 100],
-    ],
-  );
-  assert.equal(tokenUsage?.total, 260_100);
-});
-
-test('a host that measured zero model time keeps its row and its call count', () => {
-  // Presence follows the reported field, not a zero-derived default: zero is
-  // a measurement, and the row carries the count the model totals show too.
-  const { durationUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalDurationMs: 0 }),
-  );
-  assert.deepEqual(
-    durationUsage?.segments.map((segment) => [segment.kind, segment.count, segment.durationMs]),
-    [['model', 3, 0]],
-  );
-});
-
-test('a row with neither a clock nor a count is dropped', () => {
-  const { durationUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalRequests: 0, totalDurationMs: 0 }),
-  );
-  assert.equal(durationUsage, undefined);
-});
-
-test('a tool row without a recorded duration still reports its count', () => {
-  const { durationUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalRequests: 0, totalDurationMs: 0, toolUsage: { requests: 4, durationMs: 0 } }),
-  );
-
-  assert.deepEqual(
-    durationUsage?.segments.map((segment) => [segment.kind, segment.count, segment.durationMs]),
-    [['tool', 4, 0]],
-  );
-  assert.equal(durationUsage?.totalDurationMs, 0);
-});
-
-test('model time without tool usage reads as a single-segment split', () => {
-  const { durationUsage } = deriveInspectorOverviewModel(
-    undefined,
-    usageSummary({ totalRequests: 5, totalDurationMs: 2_500 }),
-  );
-
-  assert.deepEqual(
-    durationUsage?.segments.map((segment) => [segment.kind, segment.count, segment.durationMs]),
-    [['model', 5, 2_500]],
-  );
-});
-
-test('ring arcs keep reading order and clamp the last segment to the full turn', () => {
-  const arcs = usageRingArcs(
-    [
-      { kind: 'cacheRead' as const, amount: 1 },
-      { kind: 'cacheMiss' as const, amount: 1 },
-      { kind: 'output' as const, amount: 1 },
-    ],
-    3,
-  );
-  assert.deepEqual(
-    arcs.map((arc) => arc.kind),
-    ['cacheRead', 'cacheMiss', 'output'],
-  );
-  assert.equal(arcs[0]?.start, 0);
-  // The last arc is clamped to the full turn rather than accumulated, so a
-  // rounded share can never leave an unexplained sliver at the seam.
-  assert.equal(arcs.at(-1)?.end, 1);
-  for (const arc of arcs) {
-    assert.ok(arc.end > arc.start);
-    assert.match(arc.d, /^M [\d. ]+ A/);
-    assert.match(arc.d, / Z$/);
-  }
-});
-
-test('a segment owning the whole ring walks two half-turns instead of one arc', () => {
-  const arcs = usageRingArcs([{ kind: 'model' as const, amount: 2_500 }], 2_500);
-  assert.equal(arcs.length, 1);
-  assert.equal(arcs[0]?.start, 0);
-  assert.equal(arcs[0]?.end, 1);
-  // One arc cannot sweep 360°; two half arcs render the full donut.
-  assert.equal(arcs[0]?.d.match(/ A /g)?.length, 4);
-});
-
-test('a ring with nothing measured draws no arcs and leaves the muted track', () => {
-  assert.equal(usageRingArcs([{ kind: 'tool' as const, amount: 0 }], 0).length, 0);
-  assert.equal(usageRingArcs([], 100).length, 0);
-});
-
-test('a nonzero sliver keeps a visible sweep even when its share rounds to zero', () => {
-  const arcs = usageRingArcs(
-    [
-      { kind: 'model' as const, amount: 77_000 },
-      { kind: 'tool' as const, amount: 35 },
-    ],
-    77_035,
-  );
-  const tool = arcs[1];
-  // The end-of-turn clamp re-derives the last sweep from the running cursor,
-  // so compare with the usual floating-point courtesy.
-  assert.ok(tool.end - tool.start >= RING_MIN_SWEEP - 1e-9);
-  assert.equal(tool.end, 1);
-});
-
-test('hovering a tiny segment expands it on the ring so the highlight lands somewhere', () => {
-  const arcs = usageRingArcs(
-    [
-      { kind: 'model' as const, amount: 77_000 },
-      { kind: 'tool' as const, amount: 35 },
-    ],
-    77_035,
-    'tool',
-  );
-  const tool = arcs[1];
-  // The end-of-turn clamp re-derives the last sweep from the running cursor,
-  // so compare with the usual floating-point courtesy.
-  assert.ok(tool.end - tool.start >= RING_ACTIVE_MIN_SWEEP - 1e-9);
-  // The cost of the focus floor comes out of the dominant share, and the
-  // seam still closes on the full turn.
-  assert.ok(arcs[0].end <= 1 - RING_ACTIVE_MIN_SWEEP + 1e-9);
-  assert.equal(tool.end, 1);
-});
-
-test('hovering the dominant segment leaves the layout untouched', () => {
-  const arcs = usageRingArcs(
-    [
-      { kind: 'model' as const, amount: 77_000 },
-      { kind: 'tool' as const, amount: 35 },
-    ],
-    77_035,
-    'model',
-  );
-  assert.ok(arcs[0].end >= 1 - RING_MIN_SWEEP);
-  assert.equal(arcs[1].end, 1);
-});
diff --git a/apps/desktop/src/main/__tests__/use-session-trace.test.ts b/apps/desktop/src/main/__tests__/use-session-trace.test.ts
index 3693058f2e..5bdf077c86 100644
--- a/apps/desktop/src/main/__tests__/use-session-trace.test.ts
+++ b/apps/desktop/src/main/__tests__/use-session-trace.test.ts
@@ -32,7 +32,6 @@ import {
   createFakeWorkbarServices,
   useSessionTrace,
   type SessionTracePage,
-  type SessionUsageSummary,
   type WorkbarServices,
 } from '../../renderer/features/workbar/testing.js';
 
@@ -58,55 +57,14 @@ function trace(sessionId: string): SessionTrace {
   };
 }
 
-function usageSummary(
-  totalRequests = 0,
-  totalCostUsd = 0,
-): SessionUsageSummary {
-  return {
-    range: { from: 0, to: 1 },
-    totalRequests,
-    totalCostUsd,
-    totalTokens: {
-      input: totalRequests,
-      output: 0,
-      cacheMiss: totalRequests,
-      cacheRead: 0,
-      cacheWrite: 0,
-      reasoning: 0,
-      total: totalRequests,
-    },
-    cacheHitRequests: 0,
-    cacheCreateRequests: 0,
-    errorRequests: 0,
-    totalDurationMs: 0,
-    provenance: {
-      coverage: {
-        attempts: totalRequests,
-        pricedAttempts: totalRequests,
-        unpricedAttempts: 0,
-        usageReportedAttempts: totalRequests,
-        usagePartialAttempts: 0,
-        usageMissingAttempts: 0,
-      },
-      legacyRecords: 0,
-      unreadableRecords: 0,
-      pendingRepairs: 0,
-    },
-  };
-}
-
 interface TraceHarness {
   services: WorkbarServices;
   reads: string[];
   traceRequests: Array<{ sessionId: string; cursor?: string }>;
   contextReads: string[];
-  summaryReads: string[];
   emit: (event: SessionEvent) => void;
-  emitUsageChange: () => void;
   subscriptions: number;
   unsubscribes: number;
-  usageSubscriptions: number;
-  usageUnsubscribes: number;
 }
 
 function createTraceHarness(
@@ -116,30 +74,19 @@ function createTraceHarness(
       sessionId: string,
       cursor?: string,
     ) => Promise<Result<SessionTracePage>>;
-    summary?: (
-      sessionId: string,
-      readIndex: number,
-    ) => Promise<Result<SessionUsageSummary>>;
   } = {},
 ): TraceHarness {
   const handlers = new Set<(event: SessionEvent) => void>();
-  const usageChangeHandlers = new Set<() => void>();
   const harness: TraceHarness = {
     services: undefined as never,
     reads: [],
     traceRequests: [],
     contextReads: [],
-    summaryReads: [],
     emit: (event) => {
       for (const handler of [...handlers]) handler(event);
     },
-    emitUsageChange: () => {
-      for (const handler of [...usageChangeHandlers]) handler();
-    },
     subscriptions: 0,
     unsubscribes: 0,
-    usageSubscriptions: 0,
-    usageUnsubscribes: 0,
   };
   const services = createFakeWorkbarServices({
     inspector: {
@@ -158,11 +105,6 @@ function createTraceHarness(
           },
         };
       },
-      summary: async (sessionId: string) => {
-        harness.summaryReads.push(sessionId);
-        if (options.summary) return options.summary(sessionId, harness.summaryReads.length);
-        return { ok: true as const, data: usageSummary() };
-      },
       // The hook reads the context snapshot on the same signal (#2323). It
       // is counted separately: the assertions below are about how often the
       // TRACE is re-read, and an enrichment read must not move them.
@@ -187,14 +129,6 @@ function createTraceHarness(
           handlers.delete(handler);
         };
       },
-      subscribeUsageChanges: (_sessionId: string, handler: () => void) => {
-        harness.usageSubscriptions += 1;
-        usageChangeHandlers.add(handler);
-        return () => {
-          harness.usageUnsubscribes += 1;
-          usageChangeHandlers.delete(handler);
-        };
-      },
     },
   });
   harness.services = services;
@@ -264,21 +198,18 @@ describe('useSessionTrace', () => {
       root.render(createElement(Probe, { services: harness.services, sessionId: 'session-1', active: false }));
     });
     assert.equal(harness.subscriptions, 0, 'a hidden panel subscribes to nothing');
-    assert.equal(harness.usageSubscriptions, 0, 'a hidden panel subscribes to no usage');
     assert.deepEqual(harness.reads, [], 'and reads nothing');
 
     await act(async () => {
       root.render(createElement(Probe, { services: harness.services, sessionId: 'session-1', active: true }));
     });
     assert.equal(harness.subscriptions, 1);
-    assert.equal(harness.usageSubscriptions, 1);
     assert.deepEqual(harness.reads, ['session-1']);
 
     await act(async () => {
       root.render(createElement(Probe, { services: harness.services, sessionId: 'session-1', active: false }));
     });
     assert.equal(harness.unsubscribes, 1, 'hiding releases the subscription');
-    assert.equal(harness.usageUnsubscribes, 1, 'hiding releases the usage subscription');
   });
 
   it('re-reads once for a burst of ledger-changing events', async () => {
@@ -299,34 +230,6 @@ describe('useSessionTrace', () => {
     assert.equal(harness.reads.length, 2, 'a closing burst is one re-read, not three');
   });
 
-  it('refreshes Session usage only from the Usage authority signal', async () => {
-    const { root } = installReactRenderer();
-    const harness = createTraceHarness();
-    await act(async () => {
-      root.render(
-        createElement(Probe, {
-          services: harness.services,
-          sessionId: 'session-1',
-          active: true,
-        }),
-      );
-    });
-    assert.equal(harness.summaryReads.length, 1);
-
-    await act(async () => harness.emit(event('tool_result')));
-    await flushRefresh();
-    assert.equal(harness.reads.length, 2);
-    assert.equal(harness.summaryReads.length, 1);
-
-    await act(async () => harness.emit(event('token_usage')));
-    await flushRefresh();
-    assert.equal(harness.summaryReads.length, 1, 'Session events do not own Usage freshness');
-
-    await act(async () => harness.emitUsageChange());
-    await flushRefresh();
-    assert.equal(harness.summaryReads.length, 2);
-  });
-
   it('does not re-read for streaming deltas', async () => {
     const { root } = installReactRenderer();
     const harness = createTraceHarness();
@@ -640,33 +543,5 @@ describe('useSessionTrace', () => {
     );
   });
 
-  it('stops presenting an old Session summary when its refresh fails', async () => {
-    const { root } = installReactRenderer();
-    const harness = createTraceHarness({
-      summary: async (_sessionId, readIndex) =>
-        readIndex === 1
-          ? { ok: true, data: usageSummary(1, 1) }
-          : { ok: false, error: { code: 'FAILED', message: 'failed' } },
-    });
-    let snapshot: ReturnType<typeof useSessionTrace> | undefined;
-    await act(async () => {
-      root.render(
-        createElement(Probe, {
-          services: harness.services,
-          sessionId: 'session-1',
-          active: true,
-          onHookSnapshot: (value) => {
-            snapshot = value;
-          },
-        }),
-      );
-    });
-    assert.equal(snapshot?.summary?.totalCostUsd, 1);
-
-    await act(async () => harness.emitUsageChange());
-    await flushRefresh();
 
-    assert.equal(snapshot?.summary, undefined);
-    assert.equal(snapshot?.summaryError, true);
-  });
 });
diff --git a/apps/desktop/src/main/__tests__/workbar-services-adapter.test.ts b/apps/desktop/src/main/__tests__/workbar-services-adapter.test.ts
index 1da3ed2ff4..50df333d94 100644
--- a/apps/desktop/src/main/__tests__/workbar-services-adapter.test.ts
+++ b/apps/desktop/src/main/__tests__/workbar-services-adapter.test.ts
@@ -37,7 +37,6 @@ function createBridgeRecorder(): {
     'browser.setActiveSession',
     'browser.setViewport',
     'browser.onState',
-    'inspector.subscribeUsageChanges',
   ]);
   // Adapters that reshape a bridge answer need one to reshape.
   const answers = new Map<string, unknown>([
@@ -216,10 +215,8 @@ describe('createDesktopWorkbarServices', () => {
     await services.artifacts.saveAs('s', 'a');
 
     await services.inspector.trace('s', 'cursor-1');
-    await services.inspector.summary('s');
     await services.inspector.context('s');
     services.inspector.subscribeSessionEvents('s', eventHandler)();
-    services.inspector.subscribeUsageChanges('s', eventHandler)();
 
     await services.attachments.pickFiles();
     await services.attachments.previewApproval('approval');
@@ -297,10 +294,8 @@ describe('createDesktopWorkbarServices', () => {
         'app.openArtifactPath',
         'app.saveArtifactAs',
         'inspector.trace',
-        'inspector.summary',
         'inspector.context',
         'sessions.subscribeEvents',
-        'inspector.subscribeUsageChanges',
         'attachments.pickFiles',
         'attachments.previewApproval',
         'sessions.list',
diff --git a/apps/desktop/src/main/runtime-host-boot.ts b/apps/desktop/src/main/runtime-host-boot.ts
index 464fc3ace0..2dac7d5c6f 100644
--- a/apps/desktop/src/main/runtime-host-boot.ts
+++ b/apps/desktop/src/main/runtime-host-boot.ts
@@ -219,7 +219,6 @@ import {
   createRuntimeHostSettingsModule,
   registerRuntimeHostSettingsIpc,
 } from "./runtime-host-settings-ipc-main.js";
-import { registerRuntimeHostUsageIpc } from "./runtime-host-usage-ipc-main.js";
 import { registerRuntimeHostWorkspaceIpc } from "./runtime-host-workspace-ipc-main.js";
 
 import {
@@ -1662,10 +1661,6 @@ function registerHostClientIpc(
     ipcMain: scopedIpc,
   });
   registerRuntimeHostSearchIpc({ ipcMain: scopedIpc, client });
-  registerRuntimeHostUsageIpc({
-    ipcMain: scopedIpc,
-    client,
-  });
   registerRuntimeHostWorkspaceIpc({
     ipcMain: scopedIpc,
     client,
diff --git a/apps/desktop/src/main/runtime-host-usage-ipc-main.ts b/apps/desktop/src/main/runtime-host-usage-ipc-main.ts
deleted file mode 100644
index b4e50b10fd..0000000000
--- a/apps/desktop/src/main/runtime-host-usage-ipc-main.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import type { UsageQuery } from "@maka/core/usage-stats/types";
-import { handleReconnectableRead, type ReconnectableReadIpcMain, tryReconnectableReadResult } from "./ipc-reconnect-policy.js";
-import type { DesktopRuntimeHostClient } from "./runtime-host-client.js";
-
-/** Session Inspector's read; settings pages use the public plugin Usage API. */
-export function registerRuntimeHostUsageIpc(deps: {
-  readonly ipcMain: ReconnectableReadIpcMain;
-  readonly client: DesktopRuntimeHostClient;
-}): void {
-  handleReconnectableRead(deps.ipcMain, "usage:summary", (_event, query: UsageQuery) =>
-    tryReconnectableReadResult(async () => {
-      const { toolName: _toolName, ...llmQuery } = query;
-      const result = await deps.client.queryUsage({ kind: "summary", query: llmQuery });
-      if (result.kind !== "summary") throw new Error("Runtime Host returned an invalid Usage projection");
-      return { ...result.summary, provenance: result.provenance };
-    }, "USAGE_SUMMARY_FAILED"));
-}
diff --git a/apps/desktop/src/preload/bridge-contract.d.ts b/apps/desktop/src/preload/bridge-contract.d.ts
index b1a0c8e8b8..023276ed0f 100644
--- a/apps/desktop/src/preload/bridge-contract.d.ts
+++ b/apps/desktop/src/preload/bridge-contract.d.ts
@@ -141,8 +141,6 @@ import type {
   RendererRuntimeHostQueryOperation,
 } from './runtime-host-renderer-operations.js';
 import type { SessionTrace } from '@maka/core/session-trace';
-import type { UsageSummaryV2 } from '@maka/core/usage-stats/types';
-import type { UsageProvenance } from '@maka/core/usage-ledger-merge';
 import type { ContextDiagnosticsResult } from '@maka/runtime-host/protocol';
 import type { TestProxyInput } from '@maka/core/settings/network-settings';
 import type { ExternalSessionImportIpcResult } from './external-session-import-result.js';
@@ -754,9 +752,6 @@ export interface DesktopSessionTracePage {
   readonly nextCursor: string | null;
 }
 
-export interface DesktopSessionUsageSummary extends UsageSummaryV2 {
-  readonly provenance: UsageProvenance;
-}
 
 export interface DesktopHostHandoffPayload {
   readonly view: HostHandoffView;
@@ -1713,9 +1708,6 @@ export interface MakaBridge {
   inspector: {
     /** Read-only per-session causal trace (#1625). */
     trace(sessionId: string, cursor?: string): Promise<Result<DesktopSessionTracePage>>;
-    /** Complete Session-scoped LLM usage estimate, independent of loaded trace pages. */
-    summary(sessionId: string): Promise<Result<DesktopSessionUsageSummary>>;
-    subscribeUsageChanges(sessionId: string, handler: () => void): () => void;
     /** What the session's context is made of right now (#2323). */
     context(sessionId: string): Promise<Result<ContextDiagnosticsResult>>;
   };
diff --git a/apps/desktop/src/preload/preload.ts b/apps/desktop/src/preload/preload.ts
index 67d48a88dc..8dff6f4143 100644
--- a/apps/desktop/src/preload/preload.ts
+++ b/apps/desktop/src/preload/preload.ts
@@ -79,7 +79,6 @@ import type {
   DesktopProjectSnapshot,
   DesktopAppInfo,
   DesktopSessionTracePage,
-  DesktopSessionUsageSummary,
   AppIconImportResult,
   AppIconRemoveResult,
   AppIconSelectResult,
@@ -1173,17 +1172,6 @@ async function loadSessionTracePage(
   return { trace, nextCursor: page.nextCursor };
 }
 
-async function loadSessionUsageSummary(
-  sessionId: string,
-): Promise<Result<DesktopSessionUsageSummary>> {
-  const session = await runtimeHostSessionRef(sessionId);
-  return invokeWhenReady(
-    'usage:summary',
-    session.scope,
-    { range: 'all', sessionId: session.sessionId },
-  ) as Promise<Result<DesktopSessionUsageSummary>>;
-}
-
 async function updateDailyReviewConfig(
   patch: Partial<DailyReviewConfig>,
   target?: DesktopRuntimeHostRef,
@@ -3384,29 +3372,6 @@ const makaBridge = {
     trace(sessionId: string, cursor?: string): Promise<Result<DesktopSessionTracePage>> {
       return bridgeResult(() => loadSessionTracePage(sessionId, cursor), 'INSPECTOR_TRACE_FAILED');
     },
-    summary(sessionId: string): Promise<Result<DesktopSessionUsageSummary>> {
-      return loadSessionUsageSummary(sessionId);
-    },
-    subscribeUsageChanges(sessionId: string, handler: () => void): () => void {
-      let disposed = false;
-      let unsubscribe = () => {};
-      void runtimeHostSessionRef(sessionId)
-        .then(({ scope, sessionId: rawSessionId }) => {
-          if (disposed) return;
-          unsubscribe = subscribeRuntimeHostEvent(
-            'usage:changed',
-            scope,
-            (event: { sessionId: string }) => {
-              if (event.sessionId === rawSessionId) handler();
-            },
-          );
-        })
-        .catch(() => undefined);
-      return () => {
-        disposed = true;
-        unsubscribe();
-      };
-    },
     /**
      * What the session's context is made of right now (#2323).
      *
diff --git a/apps/desktop/src/renderer/app-shell.tsx b/apps/desktop/src/renderer/app-shell.tsx
index 362a905153..430cc5e2f8 100644
--- a/apps/desktop/src/renderer/app-shell.tsx
+++ b/apps/desktop/src/renderer/app-shell.tsx
@@ -1253,6 +1253,8 @@ function AppShellContent({
     available: sessionsSelected && (workHubActive || Boolean(activeHostSession)),
     layoutSessionId: activeId,
     activeSession: activeHostSession,
+    inspectorHost: workHubActive ? workHubSession.host : activeCatalogSession
+      ? { profileId: activeCatalogSession.profileId, hostId: activeCatalogSession.runtimeHostId } : undefined,
     projectId: currentProjectId,
     projectAliases: currentProject?.aliases ?? [],
     authoritativeSessionIds: authoritativeSessionIds ?? undefined,
diff --git a/apps/desktop/src/renderer/application/contracts/session-inspector/service.ts b/apps/desktop/src/renderer/application/contracts/session-inspector/service.ts
index 1b28bd7952..ced563dc61 100644
--- a/apps/desktop/src/renderer/application/contracts/session-inspector/service.ts
+++ b/apps/desktop/src/renderer/application/contracts/session-inspector/service.ts
@@ -21,28 +21,21 @@ import type { SessionEvent } from '@maka/core/events';
 import type { SessionTrace } from '@maka/core/session-trace';
 import type { Result } from '@maka/core/result';
 import type { ContextDiagnosticsResult } from '@maka/runtime-host/protocol';
-import type { MergedUsageSummary } from '@maka/core/usage-ledger-merge';
 
 export interface SessionTracePage {
   readonly trace: SessionTrace;
   readonly nextCursor: string | null;
 }
 
-export type SessionUsageSummary = MergedUsageSummary;
 
 export interface SessionInspectorService {
   trace(
     sessionId: string,
     cursor?: string,
   ): Promise<Result<SessionTracePage>>;
-  summary(sessionId: string): Promise<Result<SessionUsageSummary>>;
   context(sessionId: string): Promise<Result<ContextDiagnosticsResult>>;
   subscribeSessionEvents(
     sessionId: string,
     handler: (event: SessionEvent) => void,
   ): () => void;
-  subscribeUsageChanges(
-    sessionId: string,
-    handler: () => void,
-  ): () => void;
 }
diff --git a/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-overview-model.ts b/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-overview-model.ts
index b4af6d30cd..e7cf8c6c22 100644
--- a/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-overview-model.ts
+++ b/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-overview-model.ts
@@ -21,10 +21,7 @@ import type {
   ContextDiagnosticsResult,
   ContextDiagnosticsSegment,
 } from '@maka/runtime-host/protocol';
-import type { UsageSummaryV2 } from '@maka/core/usage-stats/types';
-import type { UsageProvenance } from '@maka/core/usage-ledger-merge';
 
-type SessionUsageSummary = UsageSummaryV2 & { readonly provenance?: UsageProvenance };
 
 /**
  * Overview view model for the Inspector panel's summary sections.
@@ -130,205 +127,19 @@ export interface InspectorOverviewModel {
    * `unrecorded` instead of vanishing.
    */
   composition?: InspectorCompositionState;
-  /**
-   * cacheRead / input over the attempts that reported input, session-wide.
-   * Absent when no input was metered at all — a rate over nothing is not
-   * zero, it is unknown.
-   *
-   * The only token figure the panel keeps. The raw totals it used to carry
-   * were priced by `totals.costUsd`, sized by the context bar and audited in
-   * the run ledger; three statements of the same tokens is two too many.
-   */
-  cacheHitRate?: number;
-  /**
-   * The session's metered tokens split the way a bill reads: served from the
-   * provider's cache, paid as uncached input, paid as output. Absent when
-   * nothing was metered — a breakdown of zero tokens is not zeros, it is
-   * nothing to break down.
-   */
-  tokenUsage?: InspectorTokenUsage;
-  /**
-   * Where the session's recorded time went, model calls against tool
-   * executions. Absent when the query could not answer either ledger — a
-   * connection-scoped query omits the tool side, and a session with no
-   * recorded time has no split to draw.
-   */
-  durationUsage?: InspectorDurationUsage;
-}
-
-export type InspectorTokenUsageKind = 'cacheRead' | 'cacheMiss' | 'output';
-
-export interface InspectorTokenUsageSegment {
-  kind: InspectorTokenUsageKind;
-  tokens: number;
-}
-
-export interface InspectorTokenUsage {
-  /** cacheRead + uncached input + output — the metered, billable tokens. */
-  total: number;
-  /**
-   * In reading order with empty rows dropped, so the bands and their legend
-   * cannot disagree about what is drawn.
-   */
-  segments: readonly InspectorTokenUsageSegment[];
-}
-
-export type InspectorDurationUsageKind = 'model' | 'tool';
-
-export interface InspectorDurationUsageSegment {
-  kind: InspectorDurationUsageKind;
-  count: number;
-  durationMs: number;
-}
-
-export interface InspectorDurationUsage {
-  /**
-   * model + tool recorded time. A sum of per-call durations, not wall-clock:
-   * parallel settlements and nested calls overlap, so this can exceed the
-   * session's elapsed time.
-   */
-  totalDurationMs: number;
-  segments: readonly InspectorDurationUsageSegment[];
-}
-
-export function estimatedSessionCost(
-  summary: (UsageSummaryV2 & { readonly provenance: UsageProvenance }) | undefined,
-): number | undefined {
-  if (!summary) return undefined;
-  if (summary.provenance.coverage.pricedAttempts > 0) return summary.totalCostUsd;
-  // Legacy records never stored a cost basis. A non-zero amount is still a
-  // useful estimate, but zero cannot distinguish a genuinely free call from
-  // one whose price was never resolved.
-  return summary.provenance.legacyRecords > 0 && summary.totalCostUsd > 0
-    ? summary.totalCostUsd
-    : undefined;
 }
 
-export function hasUnavailableSessionUsage(
-  summary: UsageSummaryV2 & { readonly provenance: UsageProvenance },
-): boolean {
-  return summary.provenance.unreadableRecords > 0 || summary.provenance.pendingRepairs > 0;
-}
-
-/**
- * The overview reads two owners, and keeps them apart.
- *
- * The trace answers what happened. The Session-scoped usage summary answers
- * what all recorded calls cost, independently of which trace pages are loaded.
- * The context snapshot answers what the context holds right now — its own Host
- * operation, the one `/context` prints (#1580, #2323). None is derived from
- * another, so one unavailable source cannot falsify the others.
- */
 export function deriveInspectorOverviewModel(
   diagnostics?: ContextDiagnosticsResult,
-  usage?: SessionUsageSummary,
 ): InspectorOverviewModel {
-  // Both halves of the context block come from the SAME snapshot. They used to
-  // be picked separately — the bar from the latest trace attempt that carried a
-  // window, the breakdown from the latest diagnostics — so a newest call
-  // without a window put one request's fullness above another request's
-  // contents. One source cannot disagree with itself (#2323).
   const composition = compositionState(diagnostics);
   const context = contextBudget(diagnostics);
-  const cacheHitRate = usageCacheHitRate(usage);
-  const tokenUsage = usageTokenSplit(usage);
-  const durationUsage = usageDurationSplit(usage);
   return {
     ...(context ? { context } : {}),
     ...(composition ? { composition } : {}),
-    ...(cacheHitRate !== undefined ? { cacheHitRate } : {}),
-    ...(tokenUsage ? { tokenUsage } : {}),
-    ...(durationUsage ? { durationUsage } : {}),
   };
 }
 
-function usageCacheHitRate(usage: SessionUsageSummary | undefined): number | undefined {
-  if (!usage || usage.totalTokens.input === 0) return undefined;
-  if (
-    usage.provenance &&
-    (usage.provenance.coverage.usagePartialAttempts > 0 ||
-      usage.provenance.coverage.usageMissingAttempts > 0)
-  ) {
-    return undefined;
-  }
-  return usage.totalTokens.cacheRead / usage.totalTokens.input;
-}
-
-/**
- * The bill-shaped split of the session's metered tokens.
- *
- * `cacheMiss` is computed as the residual `input − cacheRead` rather than read
- * from the ledger: several providers report the cached share only, and a
- * ledger zero there would understate the uncached input the session paid for.
- * The ledger's own `cacheMiss` is kept as a floor for records that reported
- * the miss but no prompt total. `cacheRead` is taken as reported — providers
- * that itemize the cached share without a prompt total leave it larger than
- * `input`, and clamping it here would erase exactly the sessions the split
- * exists to describe. Output is the metered figure as billed — providers that
- * itemize reasoning include it in it, which is what the panel's row label says.
- */
-function usageTokenSplit(usage: SessionUsageSummary | undefined): InspectorTokenUsage | undefined {
-  if (!usage) return undefined;
-  const { input, output, cacheRead, cacheMiss } = usage.totalTokens;
-  if (input + output <= 0) return undefined;
-  const uncachedInput = Math.max(input - cacheRead, cacheMiss, 0);
-  const segments = [
-    { kind: 'cacheRead' as const, tokens: cacheRead },
-    { kind: 'cacheMiss' as const, tokens: uncachedInput },
-    { kind: 'output' as const, tokens: output },
-  ].filter((segment) => segment.tokens > 0);
-  // The readout is the sum of what is drawn, so the rows and their total
-  // cannot disagree even when a provider's report made the ledger's own
-  // `total` drift from its parts.
-  return {
-    total: segments.reduce((carry, segment) => carry + segment.tokens, 0),
-    segments,
-  };
-}
-
-/**
- * Model-call time against tool-execution time, both session-wide from their
- * own ledgers. Presence follows the reported fields, not a zero default: a
- * host that measured zero model time keeps its row — the call count is real —
- * and `toolUsage` is simply absent when the query could not be scoped. A row
- * with neither a clock nor a count is dropped; a split nobody measured is not
- * a split worth drawing.
- */
-function usageDurationSplit(
-  usage: SessionUsageSummary | undefined,
-): InspectorDurationUsage | undefined {
-  if (!usage) return undefined;
-  const segments = (
-    [
-      {
-        kind: 'model' as const,
-        count: usage.totalRequests,
-        durationMs: usage.totalDurationMs,
-      },
-      ...(usage.toolUsage
-        ? [
-            {
-              kind: 'tool' as const,
-              count: usage.toolUsage.requests,
-              durationMs: usage.toolUsage.durationMs,
-            },
-          ]
-        : []),
-    ] satisfies InspectorDurationUsageSegment[]
-  ).filter((segment) => segment.durationMs > 0 || segment.count > 0);
-  if (segments.length === 0) return undefined;
-  return {
-    totalDurationMs: segments.reduce((carry, segment) => carry + segment.durationMs, 0),
-    segments,
-  };
-}
-
-/**
- * The budget question a reader actually asks — "how full is the context right
- * now" — answered by the snapshot's own metered prompt against the window that
- * same call ran under. Absent when the provider reported no prompt, or no
- * window to measure it against: a bar with no denominator is not a bar.
- */
 function contextBudget(
   diagnostics: ContextDiagnosticsResult | undefined,
 ): InspectorContextBudget | undefined {
diff --git a/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-panel.tsx b/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-panel.tsx
index dd6f2824b1..c3eabef2c8 100644
--- a/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-panel.tsx
+++ b/apps/desktop/src/renderer/application/contracts/session-inspector/session-inspector-panel.tsx
@@ -18,7 +18,7 @@
  */
 
 import type { SessionInspectorService } from './service.js';
-import { type ReactNode, useMemo, useState } from 'react';
+import { type ReactNode, useMemo } from 'react';
 import { Banner } from '@astryxdesign/core/Banner';
 import { Button } from '@astryxdesign/core/Button';
 import { EmptyState } from '@astryxdesign/core/EmptyState';
@@ -36,10 +36,6 @@ import {
 } from './copy.js';
 import {
   deriveInspectorOverviewModel,
-  estimatedSessionCost,
-  hasUnavailableSessionUsage,
-  type InspectorDurationUsageKind,
-  type InspectorTokenUsageKind,
 } from './session-inspector-overview-model.js';
 import {
   deriveInspectorPanelModel,
@@ -63,7 +59,7 @@ import { useSessionTrace } from './use-session-trace.js';
  * like every other empty surface (EmptyState) rather than like a stray
  * paragraph.
  */
-export function SessionInspectorPanel(props: { sessionId: string; active: boolean; inspector: SessionInspectorService; copy: InspectorCopy }) {
+export function SessionInspectorPanel(props: { sessionId: string; active: boolean; inspector: SessionInspectorService; copy: InspectorCopy; extensions?: ReactNode }) {
   const locale = useUiLocale();
   const { copy } = props;
   const toast = useToast();
@@ -73,8 +69,8 @@ export function SessionInspectorPanel(props: { sessionId: string; active: boolea
   }, props.inspector);
   const model = useMemo(() => deriveInspectorPanelModel(snapshot.trace), [snapshot.trace]);
   const overview = useMemo(
-    () => deriveInspectorOverviewModel(snapshot.context, snapshot.summary),
-    [snapshot.context, snapshot.summary],
+    () => deriveInspectorOverviewModel(snapshot.context),
+    [snapshot.context],
   );
 
   async function copyPricingKey(key: string) {
@@ -93,7 +89,7 @@ export function SessionInspectorPanel(props: { sessionId: string; active: boolea
       className="maka-inspector-panel"
       data-maka-contract="session-inspector"
       aria-label={copy.ariaLabel}
-      aria-busy={snapshot.loading || snapshot.summaryLoading || undefined}
+      aria-busy={snapshot.loading || undefined}
     >
       {/* 24px between blocks against 8px inside one: proximity is the only
           grouping tool a panel without boxes has, and it used to spend the
@@ -133,35 +129,9 @@ export function SessionInspectorPanel(props: { sessionId: string; active: boolea
           </Text>
         )}
 
-        {/* Usage and context answer to different owners, so a successful
-            snapshot beside an empty or failed trace remains visible (#2323).
-
-            Render only while there is no summary yet, same as the trace line above:
-            a live session re-reads its summary on every usage update, so gating on
-            the loading flag alone would blink this line in and out. */}
-        {snapshot.summaryLoading && !snapshot.summary && (
-          <Text type="supporting" color="secondary">
-            {copy.loadingSummary}
-          </Text>
-        )}
-        {snapshot.summaryError && !snapshot.summary && (
-          <Text type="supporting" color="secondary">
-            {copy.summaryUnavailable}
-          </Text>
-        )}
-        {snapshot.summary && hasUnavailableSessionUsage(snapshot.summary) && (
-          <Text type="supporting" color="secondary">
-            {copy.summaryUnavailable}
-          </Text>
-        )}
-        {(snapshot.summary || overview.context || overview.composition) && (
-          <InspectorOverview
-            copy={copy}
-            locale={locale}
-            summary={snapshot.summary}
-            overview={overview}
-            showTotals={Boolean(snapshot.summary && snapshot.summary.totalRequests > 0)}
-          />
+        {props.extensions}
+        {(overview.context || overview.composition) && (
+          <InspectorOverview copy={copy} locale={locale} overview={overview} />
         )}
 
         {(!model.empty || snapshot.nextCursor) && (
@@ -231,378 +201,29 @@ export function SessionInspectorPanel(props: { sessionId: string; active: boolea
     </Section>
   );
 }
-
-/**
- * The glance layer: two figures, then the window.
- *
- * What survived a pass over "who reads this number, and to decide what":
- *
- * - Cost and cache hit rate are the Session-wide figures a reader opens the tab
- *   for, and as figures rather than table rows they also give the column
- *   something to fill. They open the panel with nothing over them: a heading
- *   above a 20px figure is a caption ranking below what it captions, and a
- *   StatCell's own label already does that job at the right size.
- * - The context bar stays, because it is the only thing here that answers a
- *   question about NOW rather than about the past.
- *
- * What went, and why nothing was lost:
- *
- * - The model name. It is not a measurement, it is the session's setup — the
- *   composer names the model you are about to use, and the timeline below
- *   names the model each call actually used, per call. A single title picking
- *   the most recent one repeated that and, in a session that switched models,
- *   was less true than the rows it sat over.
- * - Token totals and the reasoning split. Cost already prices the tokens, the
- *   bar already sizes the prompt, and the hit rate already reports the cache;
- *   `248,800 / 740` mostly restated how many turns there were. The exact
- *   counts live in the run ledger, which is where an audit belongs.
- * - The retry and compaction counts. Both are EVENTS, and the timeline below
- *   lists them — a retry as `×2` on the step that retried, a compaction as
- *   its own step. Counting them again up here was summarising a list that is
- *   already on screen.
- * - Model call count and last-activity. The count had no decision attached,
- *   and the timestamp is already on the session in the sidebar.
- */
 function InspectorOverview(props: {
   copy: InspectorCopy;
   locale: UiLocale;
-  summary: ReturnType<typeof useSessionTrace>['summary'];
   overview: ReturnType<typeof deriveInspectorOverviewModel>;
-  /** Session-usage figures; absent when no recorded request can support them. */
-  showTotals: boolean;
 }) {
   const { copy, overview } = props;
   const formatNumber = numberFormatter(props.locale);
   const formatCompactNumber = compactNumberFormatter(props.locale);
-  const context = overview.context;
-  // Local bindings so the JSX guards narrow into the map callbacks below.
-  const tokenUsage = overview.tokenUsage;
-  const durationUsage = overview.durationUsage;
-  // The token ring's center names whichever share dominates the bill.
-  const dominantToken = tokenUsage?.segments.reduce((left, right) =>
-    right.tokens > left.tokens ? right : left,
-  );
-
-  return (
-    <VStack gap={6} data-maka-contract="session-inspector-overview">
-      {/* The two session-wide ledgers open the panel — they are what a reader
-          scanning "what did this session cost so far" wants first, ahead of
-          the cost figures they extend and the context bar, which is the one
-          block here that answers about NOW rather than about the session so
-          far. */}
-      {tokenUsage && dominantToken && (
-        <InspectorUsageRingSection
-          contract="session-inspector-token-usage"
-          title={copy.tokenUsage.title}
-          arcs={tokenUsage.segments.map((segment) => ({
-            kind: segment.kind,
-            amount: segment.tokens,
-          }))}
-          total={tokenUsage.total}
-          centerValue={formatPercent(dominantToken.tokens / tokenUsage.total)}
-          centerLabel={copy.tokenUsage.segment[dominantToken.kind]}
-          rows={tokenUsage.segments.map((segment) => ({
-            kind: segment.kind,
-            label: copy.tokenUsage.segment[segment.kind],
-            swatch: `token-${segment.kind}`,
-            value: `${formatCompactNumber(segment.tokens)} · ${formatPercent(
-              segment.tokens / tokenUsage.total,
-            )}`,
-          }))}
-        />
-      )}
-
-      {durationUsage && (
-        <InspectorUsageRingSection
-          contract="session-inspector-duration-usage"
-          title={copy.durationUsage.title}
-          arcs={durationUsage.segments.map((segment) => ({
-            kind: segment.kind,
-            amount: segment.durationMs,
-          }))}
-          total={durationUsage.totalDurationMs}
-          centerValue={formatDuration(durationUsage.totalDurationMs)}
-          centerLabel={copy.durationUsage.center}
-          rows={durationUsage.segments.map((segment) => ({
-            kind: segment.kind,
-            label: copy.durationUsage.segment[segment.kind](segment.count),
-            swatch: `duration-${segment.kind}`,
-            value: `${formatDuration(segment.durationMs)} · ${formatPercent(
-              durationUsage.totalDurationMs > 0
-                ? segment.durationMs / durationUsage.totalDurationMs
-                : 0,
-            )}`,
-          }))}
-        />
-      )}
-
-      {props.showTotals && (
-        <VStack gap={2} data-maka-contract="session-inspector-stats">
-          <InspectorOverviewStat
-            label={copy.totals.cost}
-            value={formatCost(estimatedSessionCost(props.summary), copy.costUnavailable)}
-          />
-          {overview.cacheHitRate !== undefined && (
-            <InspectorOverviewStat
-              label={copy.overview.cacheHit}
-              value={formatPercent(overview.cacheHitRate)}
-            />
-          )}
-          <Text type="supporting" color="secondary">
-            {copy.costEstimateHelp}
-          </Text>
-        </VStack>
-      )}
-
-      {context && (
-        <InspectorContextSection
-          copy={copy}
-          context={context}
-          formatCompactNumber={formatCompactNumber}
-          formatNumber={formatNumber}
-        />
-      )}
-
-      {overview.composition && (
-        <InspectorCompositionSection
-          copy={copy}
-          state={overview.composition}
-          formatNumber={formatNumber}
-        />
-      )}
-    </VStack>
-  );
-}
-
-/**
- * One overview total on the same title/readout rhythm as the sections below.
- * These figures answer parallel questions, so changing typography between the
- * first and second block would imply a hierarchy the data does not have.
- */
-function InspectorOverviewStat(props: { label: string; value: ReactNode }) {
-  return (
-    <div className="maka-inspector-section-head">
-      <Heading level={3} className="maka-inspector-section-title">
-        {props.label}
-      </Heading>
-      <span className="maka-inspector-section-readout">{props.value}</span>
-    </div>
-  );
+  return <VStack gap={6} data-maka-contract="session-inspector-overview">
+    {overview.context && <InspectorContextSection copy={copy} context={overview.context}
+      formatCompactNumber={formatCompactNumber} formatNumber={formatNumber} />}
+    {overview.composition && <InspectorCompositionSection copy={copy} state={overview.composition}
+      formatNumber={formatNumber} />}
+  </VStack>;
 }
 
-/**
- * One session-wide ledger drawn as a donut: title, ring, legend. The token
- * and time sections are the same layout with different copy and formatters,
- * so the layout exists once and the callers pass figures and labels.
- *
- * Ring and legend link in both directions: hovering either holds that
- * segment and dims the rest, on both sides at once. The svg is `aria-hidden`
- * and the legend is the accessible copy of it, so the hover linking is
- * decoration over facts the legend already states; the center figure is real
- * text, so nothing a pointer reveals is pointer-only.
- */
-function InspectorUsageRingSection<
-  K extends InspectorTokenUsageKind | InspectorDurationUsageKind,
->(props: {
-  contract: string;
-  title: string;
-  arcs: readonly { kind: K; amount: number }[];
-  total: number;
-  centerValue: ReactNode;
-  centerLabel: ReactNode;
-  rows: readonly { kind: K; label: ReactNode; swatch: string; value: ReactNode }[];
-}) {
-  const [active, setActive] = useState<K | null>(null);
-  return (
-    <VStack gap={2} data-maka-contract={props.contract}>
-      <div className="maka-inspector-section-head">
-        <Heading level={3} className="maka-inspector-section-title">
-          {props.title}
-        </Heading>
-      </div>
-
-      <div className="maka-inspector-usage-ring-row">
-        <div className="maka-inspector-usage-ring">
-          <UsageRing arcs={props.arcs} total={props.total} active={active} onActive={setActive} />
-          <span className="maka-inspector-usage-ring-center">
-            <span className="maka-inspector-usage-ring-value">{props.centerValue}</span>
-            <span className="maka-inspector-usage-ring-label">{props.centerLabel}</span>
-          </span>
-        </div>
-        <dl className="maka-inspector-grid maka-inspector-usage-legend">
-          {props.rows.map((row) => (
-            <FactRow
-              key={row.kind}
-              label={row.label}
-              swatch={
-                <span
-                  className="maka-inspector-usage-swatch"
-                  data-usage={row.swatch}
-                  aria-hidden="true"
-                />
-              }
-              value={row.value}
-              active={active === row.kind}
-              dimmed={active !== null && active !== row.kind}
-              onHover={(hovered) => setActive(hovered ? row.kind : null)}
-            />
-          ))}
-        </dl>
-      </div>
-    </VStack>
-  );
-}
-
-/**
- * The donut itself: one muted track underneath, one arc per segment over it.
- *
- * Hover state lives in the section (arcs and legend rows both need it), so
- * this is a controlled leaf — `active` names the held segment, and every
- * other arc drops back rather than competing for the eye. The svg is
- * `aria-hidden`: the legend beside it is the accessible copy of the ring.
- */
-const RING_OUTER = 50;
-const RING_INNER = 32;
-const RING_TRACK_RADIUS = (RING_OUTER + RING_INNER) / 2;
-
-function UsageRing<
-  K extends InspectorTokenUsageKind | InspectorDurationUsageKind,
->(props: {
-  arcs: readonly { kind: K; amount: number }[];
-  total: number;
-  active: K | null;
-  onActive: (kind: K | null) => void;
-}) {
-  const arcs = usageRingArcs(props.arcs, props.total, props.active);
-  return (
-    <svg className="maka-inspector-usage-ring-svg" viewBox="0 0 100 100" aria-hidden="true">
-      <circle
-        className="maka-inspector-usage-ring-track"
-        cx={50}
-        cy={50}
-        r={RING_TRACK_RADIUS}
-      />
-      {arcs.map((arc) => (
-        <path
-          key={arc.kind}
-          className="maka-inspector-usage-ring-path"
-          data-usage={arc.kind}
-          d={arc.d}
-          data-dimmed={props.active !== null && props.active !== arc.kind ? 'true' : undefined}
-          onMouseEnter={() => props.onActive(arc.kind)}
-          onMouseLeave={() => props.onActive(null)}
-        />
-      ))}
-    </svg>
-  );
-}
-
-/**
- * The smallest slice a segment draws: a hairline. A share that rounds to zero
- * — 35ms of tool time against 77s of model calls — would otherwise sweep
- * less than a degree and vanish, and a legend row pointing at nothing on the
- * ring reads as a bug. The hovered segment draws a thin line instead — a step
- * above the hairline, still nowhere near a real share — so the highlight has
- * somewhere to land; that is focus feedback, not a re-measurement, and the
- * legend beside it keeps the true figures.
- */
-export const RING_MIN_SWEEP = 0.5 / 360;
-export const RING_ACTIVE_MIN_SWEEP = 3 / 360;
-
-/**
- * One arc per segment, in reading order. Any share under its floor is widened
- * to it, taking the difference from the shares still above theirs in
- * proportion; the last segment's end is clamped to the full turn, so neither
- * the floors nor rounding can leave an unexplained sliver at the seam. A ring
- * with nothing to measure draws no arcs at all and leaves the muted track
- * visible.
- */
-export function usageRingArcs<K extends InspectorTokenUsageKind | InspectorDurationUsageKind>(
-  items: readonly { kind: K; amount: number }[],
-  total: number,
-  active?: K | null,
-): readonly { kind: K; start: number; end: number; d: string }[] {
-  const drawn = items.filter((item) => item.amount > 0);
-  if (drawn.length === 0 || total <= 0) return [];
-  const values = drawn.map((item) => item.amount / total);
-  const mins = drawn.map((item) =>
-    item.kind === active ? RING_ACTIVE_MIN_SWEEP : RING_MIN_SWEEP,
-  );
-  for (let round = 0; round < 2; round += 1) {
-    let deficit = 0;
-    let donorBudget = 0;
-    for (let i = 0; i < values.length; i += 1) {
-      if (values[i] < mins[i]) deficit += mins[i] - values[i];
-      else donorBudget += values[i] - mins[i];
-    }
-    if (deficit === 0 || donorBudget <= 0) break;
-    for (let i = 0; i < values.length; i += 1) {
-      if (values[i] < mins[i]) values[i] = mins[i];
-      else values[i] = mins[i] + (values[i] - mins[i]) * (1 - deficit / donorBudget);
-    }
-  }
-  let cursor = 0;
-  return drawn.map((item, index) => {
-    const start = cursor;
-    const end = index === drawn.length - 1 ? 1 : Math.min(1, cursor + values[index]);
-    cursor = end;
-    return { kind: item.kind, start, end, d: ringSectorPath(start, end) };
-  });
-}
-
-/** A point on the ring, as SVG coordinates. Fraction 0 sits at 12 o'clock. */
-function ringPoint(radius: number, fraction: number): string {  const angle = fraction * 2 * Math.PI;
-  const x = 50 + radius * Math.sin(angle);
-  const y = 50 - radius * Math.cos(angle);
-  return `${x.toFixed(3)} ${y.toFixed(3)}`;
-}
-
-/**
- * A donut sector between two fractions of one turn. A single arc cannot
- * sweep a full circle, so a segment owning everything walks two half-turns
- * instead — same fill, hairline seam at 12 o'clock where the reading starts.
- */
-function ringSectorPath(from: number, to: number): string {
-  const turns: readonly (readonly [number, number])[] =
-    to - from >= 0.999_99 ? [[from, from + 0.5], [from + 0.5, to]] : [[from, to]];
-  let d = '';
-  for (const [start, end] of turns) {
-    const largeArc = end - start > 0.5 ? 1 : 0;
-    d += `M ${ringPoint(RING_OUTER, start)} A ${RING_OUTER} ${RING_OUTER} 0 ${largeArc} 1 ${ringPoint(RING_OUTER, end)} `;
-    d += `L ${ringPoint(RING_INNER, end)} A ${RING_INNER} ${RING_INNER} 0 ${largeArc} 0 ${ringPoint(RING_INNER, start)} Z `;
-  }
-  return d.trim();
-}
-
-/**
- * One legend row: band, figure.
- *
- * The share column is gone — the bar IS the share, and the section readout
- * already states the one share that is not obvious by eye. Two right-aligned
- * number columns per row was what made this read as a spreadsheet; what is
- * left is name-left / number-right, the same skeleton as a step row, so the
- * whole panel scans on one rhythm.
- *
- * `active`/`dimmed`/`onHover` are the ring-linking hooks: hovering a row
- * lights its arc and vice versa. They are opt-in, so the context and
- * composition legends stay non-interactive.
- */
 function FactRow(props: {
   label: ReactNode;
   value: ReactNode;
   swatch?: ReactNode;
-  active?: boolean;
-  dimmed?: boolean;
-  onHover?: (hovered: boolean) => void;
 }) {
   return (
-    <div
-      className="maka-inspector-grid-row"
-      data-active={props.active || undefined}
-      data-dimmed={props.dimmed || undefined}
-      onMouseEnter={props.onHover ? () => props.onHover?.(true) : undefined}
-      onMouseLeave={props.onHover ? () => props.onHover?.(false) : undefined}
-    >
+    <div className="maka-inspector-grid-row">
       <dt>
         {props.swatch}
         {props.label}
diff --git a/apps/desktop/src/renderer/application/contracts/session-inspector/use-session-trace.ts b/apps/desktop/src/renderer/application/contracts/session-inspector/use-session-trace.ts
index f2867db46a..f1b2522ecb 100644
--- a/apps/desktop/src/renderer/application/contracts/session-inspector/use-session-trace.ts
+++ b/apps/desktop/src/renderer/application/contracts/session-inspector/use-session-trace.ts
@@ -28,10 +28,8 @@ import type { ContextDiagnosticsResult } from '@maka/runtime-host/protocol';
 import type {
   SessionInspectorService,
   SessionTracePage,
-  SessionUsageSummary,
 } from './service.js';
 import {
-  createRefreshCoalescer,
   createTraceRefreshCoalescer,
   TRACE_REFRESH_DEBOUNCE_MS,
 } from '@maka/ui/context-usage';
@@ -46,10 +44,7 @@ interface SessionTraceState {
    * answer it must not blank the causal record beside it.
    */
   context?: ContextDiagnosticsResult;
-  summary?: SessionUsageSummary;
   loading: boolean;
-  summaryLoading?: boolean;
-  summaryError?: boolean;
   loadingEarlier?: boolean;
   error?: string;
 }
@@ -89,7 +84,6 @@ export function useSessionTrace(
   hideEarlier: () => void;
 } {
   const traceRevisionRef = useRef(0);
-  const summaryRevisionRef = useRef(0);
   const contextRevisionRef = useRef(0);
   const desiredPageCountRef = useRef<{ sessionId: string; count: number } | undefined>(undefined);
   const traceWindowRef = useRef<
@@ -209,44 +203,6 @@ export function useSessionTrace(
     [copy.loadFailed, copy.locale, inspector],
   );
 
-  const readSummary = useCallback((targetSessionId: string) => {
-      const summaryRevision = ++summaryRevisionRef.current;
-      setState((current) =>
-        current.sessionId === targetSessionId
-          ? { ...current, summaryLoading: true, summaryError: undefined }
-          : { sessionId: targetSessionId, loading: false, summaryLoading: true },
-      );
-      void inspector.summary(targetSessionId).then(
-        (result) => {
-          if (summaryRevision !== summaryRevisionRef.current) return;
-          setState((current) =>
-            current.sessionId === targetSessionId
-              ? {
-                  ...current,
-                  ...(result.ok
-                    ? { summary: result.data, summaryError: undefined }
-                    : { summary: undefined, summaryError: true }),
-                  summaryLoading: false,
-                }
-              : current,
-          );
-        },
-        () => {
-          if (summaryRevision !== summaryRevisionRef.current) return;
-          setState((current) =>
-            current.sessionId === targetSessionId
-              ? {
-                  ...current,
-                  summary: undefined,
-                  summaryLoading: false,
-                  summaryError: true,
-                }
-              : current,
-          );
-        },
-      );
-    }, [inspector]);
-
   const readContext = useCallback((targetSessionId: string) => {
       const contextRevision = ++contextRevisionRef.current;
       // Enrichment, and read as such: the context snapshot has its own owner
@@ -272,15 +228,13 @@ export function useSessionTrace(
   const load = useCallback(
     (targetSessionId: string) => {
       readTraceWindow(targetSessionId);
-      readSummary(targetSessionId);
       readContext(targetSessionId);
     },
-    [readContext, readSummary, readTraceWindow],
+    [readContext, readTraceWindow],
   );
 
   useEffect(() => {
     traceRevisionRef.current += 1;
-    summaryRevisionRef.current += 1;
     contextRevisionRef.current += 1;
     if (!sessionId || !active) {
       if (!sessionId) {
@@ -302,29 +256,17 @@ export function useSessionTrace(
       schedule: (callback, delayMs) => setTimeout(callback, delayMs),
       cancel: (handle) => clearTimeout(handle as ReturnType<typeof setTimeout>),
     });
-    const summaryCoalescer = createRefreshCoalescer({
-      refresh: () => readSummary(sessionId),
-      delayMs: TRACE_REFRESH_DEBOUNCE_MS,
-      schedule: (callback, delayMs) => setTimeout(callback, delayMs),
-      cancel: (handle) => clearTimeout(handle as ReturnType<typeof setTimeout>),
-    });
     const unsubscribe = inspector.subscribeSessionEvents(sessionId, (event) => {
       traceCoalescer.observe(event);
     });
-    const unsubscribeUsage = inspector.subscribeUsageChanges(sessionId, () =>
-      summaryCoalescer.request(),
-    );
     load(sessionId);
     return () => {
       traceRevisionRef.current += 1;
-      summaryRevisionRef.current += 1;
       contextRevisionRef.current += 1;
       traceCoalescer.cancel();
-      summaryCoalescer.cancel();
       unsubscribe();
-      unsubscribeUsage();
     };
-  }, [active, inspector, load, readContext, readSummary, readTraceWindow, sessionId]);
+  }, [active, inspector, load, readContext, readTraceWindow, sessionId]);
 
   const retry = useCallback(() => {
     if (sessionId) load(sessionId);
diff --git a/apps/desktop/src/renderer/features/client-plugins/index.tsx b/apps/desktop/src/renderer/features/client-plugins/index.tsx
index a12bf1df4c..5ebcaae838 100644
--- a/apps/desktop/src/renderer/features/client-plugins/index.tsx
+++ b/apps/desktop/src/renderer/features/client-plugins/index.tsx
@@ -73,7 +73,7 @@ export function ClientPluginSlot<K extends keyof ClientSdk.ClientSlots>(props: {
   </>;
 }
 
-export function ClientPluginSessionSlot<K extends 'session.composer.before' | 'session.header.actions' | 'turn.footer'>(props: {
+export function ClientPluginSessionSlot<K extends 'session.composer.before' | 'session.header.actions' | 'session.inspector.overview' | 'turn.footer'>(props: {
   readonly host: ClientHostRef;
   readonly name: K;
   readonly className?: string;
diff --git a/apps/desktop/src/renderer/features/workbar/controller/use-workbar-controller.ts b/apps/desktop/src/renderer/features/workbar/controller/use-workbar-controller.ts
index a1055a05e0..e41f565a78 100644
--- a/apps/desktop/src/renderer/features/workbar/controller/use-workbar-controller.ts
+++ b/apps/desktop/src/renderer/features/workbar/controller/use-workbar-controller.ts
@@ -106,6 +106,7 @@ export interface UseWorkbarControllerInput {
   layoutSessionId: string | undefined;
   /** Independent persistent renderers must not overwrite each other’s panel topology. */
   activeSession: SideChatSession | undefined;
+  inspectorHost?: { profileId: string; hostId: string };
   projectId: string | null | undefined;
   projectAliases: readonly string[];
   authoritativeSessionIds: ReadonlySet<string> | undefined;
@@ -974,6 +975,7 @@ export function useWorkbarController(
       },
       onActivityStateChange: sideConversations.setActive,
       sourceSession: input.activeSession,
+      inspectorHost: input.inspectorHost,
       modelChoices: input.modelChoices,
       onStartWorkBoardTask: startWorkBoardTask,
       resolveWorkBoardStartTask: input.resolveWorkBoardTarget,
diff --git a/apps/desktop/src/renderer/features/workbar/ports.ts b/apps/desktop/src/renderer/features/workbar/ports.ts
index d9c4ccfe88..14bb54bca4 100644
--- a/apps/desktop/src/renderer/features/workbar/ports.ts
+++ b/apps/desktop/src/renderer/features/workbar/ports.ts
@@ -18,7 +18,7 @@
  */
 
 import type { SessionInspectorService } from '../../application/contracts/session-inspector/service.js';
-export type { SessionInspectorService, SessionTracePage, SessionUsageSummary } from '../../application/contracts/session-inspector/service.js';
+export type { SessionInspectorService, SessionTracePage } from '../../application/contracts/session-inspector/service.js';
 
 import type {
   MessageQueuePlacement,
diff --git a/apps/desktop/src/renderer/features/workbar/testing.ts b/apps/desktop/src/renderer/features/workbar/testing.ts
index 4bd11e3cfc..b07d6aadcb 100644
--- a/apps/desktop/src/renderer/features/workbar/testing.ts
+++ b/apps/desktop/src/renderer/features/workbar/testing.ts
@@ -23,7 +23,6 @@ export { WorkbarServicesProvider } from './services-context.js';
 export type {
   WorkbarServices,
   SessionTracePage,
-  SessionUsageSummary,
   WorkbarIngestInput,
 } from './ports.js';
 
@@ -36,9 +35,6 @@ export * from '../../application/contracts/session-inspector/session-inspector-p
 export {
   compactNumberFormatter,
   InspectorCompositionSection,
-  RING_ACTIVE_MIN_SWEEP,
-  RING_MIN_SWEEP,
-  usageRingArcs,
 } from '../../application/contracts/session-inspector/session-inspector-panel.js';
 export * from '../../application/contracts/session-inspector/session-inspector-overview-model.js';
 export * from './tools/side-chat/quote-companion-panel-state.js';
@@ -114,14 +110,10 @@ export function createFakeWorkbarServices(
       trace: async () => {
         throw new Error('Fake inspector.trace is not configured');
       },
-      summary: async () => {
-        throw new Error('Fake inspector.summary is not configured');
-      },
       context: async () => {
         throw new Error('Fake inspector.context is not configured');
       },
       subscribeSessionEvents: noopSubscription,
-      subscribeUsageChanges: noopSubscription,
     },
     attachments: {
       readBytes: async () => ({ ok: false, reason: 'not_found' }),
diff --git a/apps/desktop/src/renderer/features/workbar/ui/workbar-host.tsx b/apps/desktop/src/renderer/features/workbar/ui/workbar-host.tsx
index 4dc8573ea2..94ef527217 100644
--- a/apps/desktop/src/renderer/features/workbar/ui/workbar-host.tsx
+++ b/apps/desktop/src/renderer/features/workbar/ui/workbar-host.tsx
@@ -111,6 +111,7 @@ export interface WorkbarHostModel {
   onActivityStateChange?: (panelId: string, active: boolean) => void;
   activeSideChatPanelIds?: ReadonlySet<string>;
   sourceSession?: SideChatSession;
+  inspectorHost?: { profileId: string; hostId: string };
   modelChoices?: readonly ChatModelChoice[];
   onStartWorkBoardTask?: (item: WorkBoardItem) => void;
   resolveWorkBoardStartTask?: (item: WorkBoardItem) => { ok: boolean; message?: string };
@@ -192,6 +193,7 @@ export function WorkbarHost({ model: props }: { model: WorkbarHostModel }) {
               onActivityStateChange={props.onActivityStateChange}
               activeSideChatPanelIds={props.activeSideChatPanelIds}
               sourceSession={props.sourceSession}
+              inspectorHost={props.inspectorHost}
               modelChoices={props.modelChoices}
               onStartWorkBoardTask={props.onStartWorkBoardTask}
               resolveWorkBoardStartTask={props.resolveWorkBoardStartTask}
diff --git a/apps/desktop/src/renderer/features/workbar/ui/workbar-surface.tsx b/apps/desktop/src/renderer/features/workbar/ui/workbar-surface.tsx
index aac0ac579d..7dc9e3c0bf 100644
--- a/apps/desktop/src/renderer/features/workbar/ui/workbar-surface.tsx
+++ b/apps/desktop/src/renderer/features/workbar/ui/workbar-surface.tsx
@@ -18,6 +18,7 @@
  */
 
 import { useWorkbarServices } from '../services-context.js';
+import { ClientPluginSessionSlot } from '../../client-plugins/index.js';
 import { lazy, Suspense, useState, useEffect, useRef, type ReactNode } from 'react';
 import { Composer, useUiLocale, type ChatModelChoice } from '@maka/ui';
 import {
@@ -406,6 +407,7 @@ export function WorkbarSurface(props: {
   onActivityStateChange?: (panelId: string, active: boolean) => void;
   activeSideChatPanelIds?: ReadonlySet<string>;
   sourceSession?: SideChatSession;
+  inspectorHost?: { profileId: string; hostId: string };
   modelChoices?: readonly ChatModelChoice[];
   onStartWorkBoardTask?: (item: WorkBoardItem) => void;
   resolveWorkBoardStartTask?: (item: WorkBoardItem) => { ok: boolean; message?: string };
@@ -554,6 +556,9 @@ export function WorkbarSurface(props: {
             <Suspense fallback={<WorkbarPanelLoading label={copy.inspector} />}>
               <SessionInspectorPanel
                 inspector={inspector}
+                extensions={!props.hidden && active && props.inspectorHost ? <ClientPluginSessionSlot
+                  host={props.inspectorHost}
+                  name="session.inspector.overview" input={{ sessionId: props.sessionId!, locale }} /> : null}
                 copy={getDesktopConversationCopy(locale).inspector}
                 key={props.sessionId}
                 sessionId={props.sessionId!}
diff --git a/apps/desktop/src/renderer/platform/desktop/create-workbar-services.ts b/apps/desktop/src/renderer/platform/desktop/create-workbar-services.ts
index fc66c0fda2..fa943f0f59 100644
--- a/apps/desktop/src/renderer/platform/desktop/create-workbar-services.ts
+++ b/apps/desktop/src/renderer/platform/desktop/create-workbar-services.ts
@@ -63,10 +63,8 @@ function isDesktopTerminal(update: ShellRunUpdate): boolean {
 export function createDesktopInspectorService(bridge: Pick<MakaBridge, 'inspector' | 'sessions'>) {
   return {
     trace: (sessionId: string, cursor?: string) => bridge.inspector.trace(sessionId, cursor),
-    summary: (sessionId: string) => bridge.inspector.summary(sessionId),
     context: (sessionId: string) => bridge.inspector.context(sessionId),
     subscribeSessionEvents: (sessionId: string, handler: Parameters<MakaBridge['sessions']['subscribeEvents']>[1]) => bridge.sessions.subscribeEvents(sessionId, handler),
-    subscribeUsageChanges: (sessionId: string, handler: () => void) => bridge.inspector.subscribeUsageChanges(sessionId, handler),
   };
 }
 
diff --git a/apps/desktop/src/renderer/styles/workbar/inspector.css b/apps/desktop/src/renderer/styles/workbar/inspector.css
index 782d42ab0d..3cd6c13b73 100644
--- a/apps/desktop/src/renderer/styles/workbar/inspector.css
+++ b/apps/desktop/src/renderer/styles/workbar/inspector.css
@@ -352,169 +352,6 @@
   background: light-dark(oklch(0.66 0.15 75), oklch(0.78 0.13 75));
 }
 
-/* The session-wide token and time rings. The palette is defined once on the
-   panel so the legend swatches and each ring's inline conic-gradient read the
-   same five values, and a hue keeps one meaning inside the panel: green is
-   cache, violet is uncached input, blue is output — the duration ring reuses
-   blue/green for model/tool, matching the token ring's output/cache pairing
-   rather than inventing two more hues. */
-.maka-inspector-panel {
-  --_usage-cache-read: light-dark(oklch(0.61 0.14 165), oklch(0.75 0.12 165));
-  --_usage-cache-miss: light-dark(oklch(0.62 0.16 315), oklch(0.74 0.13 315));
-  --_usage-output: light-dark(oklch(0.62 0.18 255), oklch(0.72 0.15 255));
-  --_usage-model: light-dark(oklch(0.62 0.18 255), oklch(0.72 0.15 255));
-  --_usage-tool: light-dark(oklch(0.61 0.14 165), oklch(0.75 0.12 165));
-}
-
-/* Ring left, legend right. The ring is an SVG — one muted track under one
-   path per segment — because hover linking needs each segment to be its own
-   element; a conic-gradient disc is one box and cannot be pointed at. Fill
-   colours come from the panel palette above, so no hue is duplicated here. */
-.maka-inspector-usage-ring-row {
-  display: flex;
-  align-items: center;
-  gap: var(--space-4);
-}
-
-.maka-inspector-usage-ring {
-  position: relative;
-  width: 7rem;
-  height: 7rem;
-  flex: 0 0 auto;
-}
-
-.maka-inspector-usage-ring-svg {
-  position: absolute;
-  inset: 0;
-  width: 100%;
-  height: 100%;
-  display: block;
-}
-
-.maka-inspector-usage-ring-track {
-  fill: none;
-  stroke: var(--muted);
-  /* outer radius minus inner: the band the arcs paint into. */
-  stroke-width: 18;
-}
-
-.maka-inspector-usage-ring-path {
-  transition: opacity 120ms ease;
-}
-
-.maka-inspector-usage-ring-path[data-dimmed='true'] {
-  opacity: 0.3;
-}
-
-.maka-inspector-usage-ring-center {
-  /* Confined well inside the hole the mask cuts (64% of the ring), so the
-     label wraps as a clear of the band instead of touching it. */
-  position: absolute;
-  inset: 24%;
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  justify-content: center;
-  gap: var(--space-1);
-  text-align: center;
-  text-wrap: balance;
-  /* The figure sits in the donut's hole; it must not swallow the hovers
-     meant for the arcs around it. */
-  pointer-events: none;
-}
-
-.maka-inspector-usage-ring-value {
-  font: var(--maka-text-body);
-  color: var(--foreground);
-  font-variant-numeric: tabular-nums;
-}
-
-.maka-inspector-usage-ring-label {
-  font: var(--maka-text-supporting);
-  color: var(--muted-foreground);
-}
-
-.maka-inspector-usage-legend {
-  flex: 1 1 auto;
-  min-width: 0;
-}
-
-/* The two-way linking, legend side: the row the pointer (or an arc) holds
-   gains weight, everything else drops back. Colour ranks carry it — the same
-   three inks the panel already uses, no new tiers. */
-.maka-inspector-usage-legend .maka-inspector-usage-swatch {
-  transition: opacity 120ms ease;
-}
-
-.maka-inspector-usage-legend .maka-inspector-grid-row[data-active] dt,
-.maka-inspector-usage-legend .maka-inspector-grid-row[data-active] dd {
-  color: var(--foreground);
-  font-weight: 600;
-}
-
-.maka-inspector-usage-legend .maka-inspector-grid-row[data-dimmed='true'] dt,
-.maka-inspector-usage-legend .maka-inspector-grid-row[data-dimmed='true'] dd,
-.maka-inspector-usage-legend .maka-inspector-grid-row[data-dimmed='true'] .maka-inspector-usage-swatch {
-  color: var(--muted-foreground);
-  opacity: 0.4;
-}
-
-/* Below this width the legend rows would starve beside the ring, so the ring
-   moves above them instead. */
-@container maka-inspector (max-width: 26rem) {
-  .maka-inspector-usage-ring-row {
-    flex-direction: column;
-    align-items: flex-start;
-  }
-}
-
-.maka-inspector-usage-swatch {
-  width: var(--space-1-5);
-  height: var(--space-1-5);
-  border-radius: var(--radius-pill);
-  flex: 0 0 auto;
-}
-
-.maka-inspector-usage-swatch[data-usage='token-cacheRead'] {
-  background: var(--_usage-cache-read);
-}
-
-.maka-inspector-usage-swatch[data-usage='token-cacheMiss'] {
-  background: var(--_usage-cache-miss);
-}
-
-.maka-inspector-usage-swatch[data-usage='token-output'] {
-  background: var(--_usage-output);
-}
-
-.maka-inspector-usage-swatch[data-usage='duration-model'] {
-  background: var(--_usage-model);
-}
-
-.maka-inspector-usage-swatch[data-usage='duration-tool'] {
-  background: var(--_usage-tool);
-}
-
-/* Arcs key on the bare kind — kinds are unique across both rings. */
-.maka-inspector-usage-ring-path[data-usage='cacheRead'] {
-  fill: var(--_usage-cache-read);
-}
-
-.maka-inspector-usage-ring-path[data-usage='cacheMiss'] {
-  fill: var(--_usage-cache-miss);
-}
-
-.maka-inspector-usage-ring-path[data-usage='output'] {
-  fill: var(--_usage-output);
-}
-
-.maka-inspector-usage-ring-path[data-usage='model'] {
-  fill: var(--_usage-model);
-}
-
-.maka-inspector-usage-ring-path[data-usage='tool'] {
-  fill: var(--_usage-tool);
-}
 
 /* The context window drawn as bands. Colour is the join between the track and
    its legend, so both read it from the same `data-segment` rules below and a
diff --git a/apps/desktop/stories/session-workbar.stories.tsx b/apps/desktop/stories/session-workbar.stories.tsx
index d741e81b80..9af9632343 100644
--- a/apps/desktop/stories/session-workbar.stories.tsx
+++ b/apps/desktop/stories/session-workbar.stories.tsx
@@ -40,7 +40,6 @@ import {
   type QuoteCompanionPanelState,
   type SessionWorkbarTab,
   type SessionWorkbarTabKind,
-  type SessionUsageSummary,
   type WorkbarServices,
 } from '../src/renderer/features/workbar/testing';
 
@@ -686,69 +685,6 @@ const olderTrace: SessionTrace = {
   ],
 };
 
-const emptyUsageSummary: SessionUsageSummary = {
-  range: { from: NOW, to: NOW },
-  totalRequests: 0,
-  totalCostUsd: 0,
-  totalDurationMs: 0,
-  totalTokens: {
-    input: 0,
-    output: 0,
-    cacheMiss: 0,
-    cacheRead: 0,
-    cacheWrite: 0,
-    reasoning: 0,
-    total: 0,
-  },
-  cacheHitRequests: 0,
-  cacheCreateRequests: 0,
-  errorRequests: 0,
-  provenance: {
-    coverage: {
-      attempts: 0,
-      pricedAttempts: 0,
-      unpricedAttempts: 0,
-      usageReportedAttempts: 0,
-      usagePartialAttempts: 0,
-      usageMissingAttempts: 0,
-    },
-    legacyRecords: 0,
-    unreadableRecords: 0,
-    pendingRepairs: 0,
-  },
-};
-
-const populatedUsageSummary: SessionUsageSummary = {
-  range: { from: NOW, to: NOW + 43_600 },
-  totalRequests: 3,
-  totalCostUsd: 0.0243,
-  totalDurationMs: 38_400,
-  totalTokens: {
-    input: 81_300,
-    output: 740,
-    cacheMiss: 7_200,
-    cacheRead: 74_100,
-    cacheWrite: 0,
-    reasoning: 120,
-    total: 82_040,
-  },
-  cacheHitRequests: 2,
-  cacheCreateRequests: 0,
-  errorRequests: 1,
-  provenance: {
-    coverage: {
-      attempts: 3,
-      pricedAttempts: 2,
-      unpricedAttempts: 1,
-      usageReportedAttempts: 2,
-      usagePartialAttempts: 0,
-      usageMissingAttempts: 1,
-    },
-    legacyRecords: 0,
-    unreadableRecords: 1,
-    pendingRepairs: 0,
-  },
-};
 
 // ---- services ------------------------------------------------------------
 
@@ -811,14 +747,6 @@ function bridge(options: {
                     nextCursor: options.traceNextCursor ?? null,
                   },
             },
-      summary: async () => ({
-        ok: true,
-        data:
-          options.trace && options.trace.turns.length > 0
-            ? populatedUsageSummary
-            : emptyUsageSummary,
-      }),
-      subscribeUsageChanges: unsubscribe,
       context: async () => ({
         ok: true,
         data: options.context ?? { status: 'unavailable', reason: 'no_completed_request' },
diff --git a/apps/desktop/stories/workhub.stories.tsx b/apps/desktop/stories/workhub.stories.tsx
index 588535cf43..7e901f2977 100644
--- a/apps/desktop/stories/workhub.stories.tsx
+++ b/apps/desktop/stories/workhub.stories.tsx
@@ -93,14 +93,7 @@ function makeServices(failFirst: boolean, withHistory: boolean | 'usage', colore
     inspector: {
       context: async () => ({ ok: true, data: { status: 'available', completedAt: 1, modelId: session.model, providerId: 'openai', inputTokens: 1000, contextWindow: 100_000 } }),
       trace: async () => ({ ok: true, data: { trace: { schemaVersion: 1, sessionId, turns: [], coverage: { modelCalls: 'none', turnsMissingModelCalls: [], unreadableRecords: 0, oversizedRuns: 0, turnsWithFewerModelCallsThanSteps: [] } }, nextCursor: null } }),
-      summary: async () => ({ ok: true, data: {
-        range: { from: 1, to: 2 }, totalRequests: 1, totalCostUsd: 0.002, totalDurationMs: 3400,
-        totalTokens: { input: 1000, output: 120, cacheMiss: 400, cacheRead: 600, cacheWrite: 0, reasoning: 40, total: 1120 },
-        cacheHitRequests: 1, cacheCreateRequests: 0, errorRequests: 0,
-        provenance: { coverage: { attempts: 1, pricedAttempts: 1, unpricedAttempts: 0, usageReportedAttempts: 1, usagePartialAttempts: 0, usageMissingAttempts: 0 }, legacyRecords: 0, unreadableRecords: 0, pendingRepairs: 0 },
-      } }),
       subscribeSessionEvents: () => () => {},
-      subscribeUsageChanges: () => () => {},
     },
     retractQueueEntry: async () => {}, promoteQueueEntry: async () => {},
     updateQueueEntry: async () => {}, reorderQueueEntries: async () => {},
diff --git a/crates/event-log/src/usage/summary.rs b/crates/event-log/src/usage/summary.rs
index 93e2c63444..b713fc44d7 100644
--- a/crates/event-log/src/usage/summary.rs
+++ b/crates/event-log/src/usage/summary.rs
@@ -165,6 +165,7 @@ const MODELS: &str = "COUNT(*) AS calls,
     COALESCE(SUM(outcome = 'error'), 0) AS error,
     COALESCE(SUM(outcome = 'aborted'), 0) AS aborted,
     COALESCE(SUM(outcome = 'unknown'), 0) AS unknown,
+    TOTAL(CASE WHEN outcome != 'unknown' THEN MAX(completed_at - started_at, 0.0) END) AS duration,
     TOTAL(json_extract(usage, '$.input_tokens')) AS input,
     COUNT(*) - COUNT(json_extract(usage, '$.input_tokens')) AS input_missing,
     TOTAL(json_extract(usage, '$.output_tokens')) AS output,
@@ -185,6 +186,8 @@ const TOOLS: &str = "COUNT(*) AS calls,
     COALESCE(SUM(json_extract(result, '$.outcome') = 'error'), 0) AS error,
     COALESCE(SUM(json_extract(result, '$.outcome') = 'unknown'), 0) AS unknown,
     COALESCE(SUM(json_extract(result, '$.kind') = 'rejected'), 0) AS rejected,
+    TOTAL(CASE WHEN json_extract(result, '$.outcome') IN ('success', 'error')
+        THEN MAX(completed_at - json_extract(result, '$.startedAt'), 0.0) END) AS duration,
     AVG(CASE WHEN json_extract(result, '$.outcome') IN ('success', 'error')
         THEN MAX(completed_at - json_extract(result, '$.startedAt'), 0.0) END) AS latency
     FROM tool_usage";
@@ -196,6 +199,7 @@ fn read_models(row: &SqliteRow) -> Result<ModelTotals, StoreError> {
         error: count(row, "error")?,
         aborted: count(row, "aborted")?,
         unknown: count(row, "unknown")?,
+        duration_ms: finite(row.try_get("duration")?)?,
         input: tokens(row, "input", "input_missing")?,
         output: tokens(row, "output", "output_missing")?,
         cache_read: tokens(row, "cache_read", "cache_read_missing")?,
@@ -215,6 +219,7 @@ fn read_tools(row: &SqliteRow) -> Result<ToolTotals, StoreError> {
         error: count(row, "error")?,
         unknown: count(row, "unknown")?,
         rejected: count(row, "rejected")?,
+        duration_ms: finite(row.try_get("duration")?)?,
         mean_latency_ms: row
             .try_get::<Option<f64>, _>("latency")?
             .map(finite)
diff --git a/crates/event-log/tests/tool_usage.rs b/crates/event-log/tests/tool_usage.rs
index b7591eacf0..73193a5cfd 100644
--- a/crates/event-log/tests/tool_usage.rs
+++ b/crates/event-log/tests/tool_usage.rs
@@ -179,6 +179,7 @@ async fn tool_accounting_preserves_dispatch_truth_and_snapshot_without_private_b
         Some(3.875),
         "refusals and unknown effects do not invent execution latency"
     );
+    assert_eq!(totals.duration_ms, 7.75);
     let find = |id: &str| {
         page.attempts
             .iter()
diff --git a/crates/event-log/tests/usage_summary.rs b/crates/event-log/tests/usage_summary.rs
index 16896eba33..85a3449796 100644
--- a/crates/event-log/tests/usage_summary.rs
+++ b/crates/event-log/tests/usage_summary.rs
@@ -97,6 +97,7 @@ async fn summary_keeps_missing_and_free_distinct_and_reuses_the_activity_fence()
     let models = &current.summary.models;
     assert_eq!(current.summary.pending.models, 0);
     assert_eq!(models.calls, 4);
+    assert_eq!(models.duration_ms, 1.0, "four 250-microsecond calls");
     assert_eq!(models.success, 4);
     assert_eq!(
         models.input,
diff --git a/crates/insights/README.md b/crates/insights/README.md
index 0235fb5ce8..b991443bae 100644
--- a/crates/insights/README.md
+++ b/crates/insights/README.md
@@ -28,4 +28,6 @@ Usage and pricing settings implemented as a public plugin API consumer.
 - Rate edits use catalog revisions and affect future admissions only. Conflicts require a fresh read.
 - Preferences use plugin-scoped storage CAS. Retirement withdraws the UI and Remote registrations, not accepted Host work or accounting.
 
-The native plugin needs no V8. Its Client uses the public `settings.page` slot; package identity is not an authorization shortcut.
+The native plugin needs no V8. Its Client uses public `settings.page` and `session.inspector.overview` slots; package identity is not an authorization shortcut. Inspector reads stay bound to the viewed Session and refresh on accounting events, not streaming text.
+
+Run Client lifecycle acceptance with `node --test crates/insights/tests/client.test.mjs` from the repository root.
diff --git a/crates/insights/README.zh-CN.md b/crates/insights/README.zh-CN.md
index 213055222b..0070f74b79 100644
--- a/crates/insights/README.zh-CN.md
+++ b/crates/insights/README.zh-CN.md
@@ -28,4 +28,6 @@
 - 报价修改按目录 revision 提交,仅影响此后准入的调用;冲突后必须重新读取。
 - 偏好使用插件作用域存储 CAS。停用撤下 UI 和 Remote 注册,不撤销 Host 已接受的工作或计量事实。
 
-原生插件不需要 V8。客户端使用公共 `settings.page` 插槽,包身份不构成授权捷径。
+原生插件不需要 V8。客户端使用公共 `settings.page` 与 `session.inspector.overview` 插槽,包身份不构成授权捷径。Inspector 读取限定于当前会话,随计量事件刷新,不随流式文本刷新。
+
+在仓库根目录运行 `node --test crates/insights/tests/client.test.mjs` 验证客户端生命周期。
diff --git a/crates/insights/src/client.tsx b/crates/insights/src/client.tsx
index 9512b70816..b30b8a3291 100644
--- a/crates/insights/src/client.tsx
+++ b/crates/insights/src/client.tsx
@@ -31,6 +31,7 @@ import { useReport } from './client/report.js';
 import { ActivityTable } from './client/activity.js';
 import { Totals } from './client/totals.js';
 import { Pricing } from './client/pricing.js';
+import { Inspector } from './client/inspector.js';
 import { style } from './client/style.js';
 
 function Insights({
@@ -291,6 +292,9 @@ function Insights({
 const plugin: ClientPlugin = {
   activate(context) {
     context.style(style);
+    context.slots.register('session.inspector.overview', 'usage', (props) => (
+      <Inspector {...props} context={context} />
+    ));
     context.slots.register(
       'settings.page',
       'usage',
diff --git a/crates/insights/src/client/inspector.tsx b/crates/insights/src/client/inspector.tsx
new file mode 100644
index 0000000000..488e0cad97
--- /dev/null
+++ b/crates/insights/src/client/inspector.tsx
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { useEffect, useMemo, useState } from 'react';
+import type { ClientContext, ClientSlots } from '@maka-agent/plugin-sdk/client';
+import type { UsageSummary } from '@maka-agent/plugin-sdk/host';
+import { api as connect } from './model.js';
+import { Totals } from './totals.js';
+
+const relevant = new Set([
+  'tool_start',
+  'tool_result',
+  'token_usage',
+  'provider_retry',
+  'error',
+  'complete',
+  'abort',
+]);
+
+export function Inspector({
+  context,
+  sessionId,
+  locale,
+}: ClientSlots['session.inspector.overview'] & {
+  context: ClientContext;
+}) {
+  const api = useMemo(() => connect(context, sessionId), [context, sessionId]);
+  const [summary, setSummary] = useState<UsageSummary>();
+  const [error, setError] = useState('');
+  const [busy, setBusy] = useState(false);
+  const [reload, setReload] = useState(0);
+  const zh = locale !== 'en';
+  useEffect(() => {
+    let live = true;
+    let reading = false;
+    let queued = false;
+    let timer: ReturnType<typeof setTimeout> | undefined;
+    setSummary(undefined);
+    setError('');
+    async function refresh() {
+      if (!live || context.signal.aborted) return;
+      if (reading) {
+        queued = true;
+        return;
+      }
+      reading = true;
+      setBusy(true);
+      try {
+        const page = await api.activity({ kind: 'start', filter: { from: 0, to: Date.now() } });
+        if (!live || context.signal.aborted) return;
+        const next = await api.summary(page.cursor);
+        if (live && !context.signal.aborted) {
+          setSummary(next);
+          setError('');
+        }
+      } catch (reason) {
+        if (live && !context.signal.aborted) setError(String(reason));
+      } finally {
+        reading = false;
+        if (live && !context.signal.aborted) {
+          setBusy(false);
+          if (queued) schedule();
+        }
+      }
+    }
+    function schedule() {
+      queued = true;
+      if (!live || reading || timer !== undefined) return;
+      timer = setTimeout(() => {
+        timer = undefined;
+        queued = false;
+        void refresh();
+      }, 400);
+    }
+    const unsubscribe = context.events.subscribe(
+      { kind: 'session.event', sessionId },
+      (event) => {
+        if (event.kind === 'session.event' && relevant.has(event.event.type)) schedule();
+      },
+      (reason) => {
+        if (live) setError(String(reason));
+      },
+    );
+    void refresh();
+    return () => {
+      live = false;
+      clearTimeout(timer);
+      unsubscribe();
+    };
+  }, [api, context, sessionId, reload]);
+  return (
+    <section data-maka-insights aria-label={zh ? '会话用量' : 'Session usage'}>
+      <header>
+        <h2>{zh ? '会话用量' : 'Session usage'}</h2>
+        <button type="button" disabled={busy} onClick={() => setReload((value) => value + 1)}>
+          {zh ? '刷新' : 'Refresh'}
+        </button>
+      </header>
+      {error && (
+        <p role="alert">
+          {summary
+            ? zh
+              ? '刷新失败;以下是上次成功读取的快照。'
+              : 'Refresh failed; showing the last successful snapshot.'
+            : ''}
+          {error}
+        </p>
+      )}
+      {busy && !summary && <p role="status">{zh ? '正在读取用量…' : 'Loading usage…'}</p>}
+      {summary && <Totals summary={summary} tab="overview" zh={zh} />}
+    </section>
+  );
+}
diff --git a/crates/insights/src/client/model.ts b/crates/insights/src/client/model.ts
index 6522aae19a..c7fabc5544 100644
--- a/crates/insights/src/client/model.ts
+++ b/crates/insights/src/client/model.ts
@@ -55,9 +55,9 @@ export class RefreshRequired extends Error {
   }
 }
 
-export function api(context: ClientContext) {
+export function api(context: ClientContext, sessionId?: string) {
   // One JSON boundary, bound to this Client's exact Rust backend generation.
-  const invoke = context.remote.method<Json, Json>('request') as unknown as (
+  const invoke = context.remote.method<Json, Json>('request', sessionId) as unknown as (
     input: Request,
   ) => Promise<Response>;
   async function ask<K extends Response['kind']>(request: Request, expected: K) {
diff --git a/crates/insights/src/client/totals.tsx b/crates/insights/src/client/totals.tsx
index 5403e9554c..08d75c3996 100644
--- a/crates/insights/src/client/totals.tsx
+++ b/crates/insights/src/client/totals.tsx
@@ -52,6 +52,13 @@ function Cost({ value, zh }: { value: UsageSummary['models']['cost']; zh: boolea
 
 export function Totals({ summary, tab, zh }: { summary: UsageSummary; tab: Tab; zh: boolean }) {
   const model = summary.models;
+  const cacheRatio =
+    model.input.missing === 0 &&
+    model.cacheRead.missing === 0 &&
+    model.input.known > 0 &&
+    model.cacheRead.known <= model.input.known
+      ? model.cacheRead.known / model.input.known
+      : undefined;
   if (tab === 'overview')
     return (
       <>
@@ -88,6 +95,16 @@ export function Totals({ summary, tab, zh }: { summary: UsageSummary; tab: Tab;
           {[model.success, model.error, model.aborted, model.unknown].map(number).join(' / ')}
         </p>
         <dl className="insights-facts">
+          <dt>{zh ? '缓存命中率' : 'Cache hit rate'}</dt>
+          <dd>{cacheRatio === undefined ? '?' : number(cacheRatio * 100) + '%'}</dd>
+          <dt>{zh ? '模型累计耗时' : 'Cumulative model time'}</dt>
+          <dd>
+            {number(model.durationMs)} ms{model.unknown ? ' + ?' : ''}
+          </dd>
+          <dt>{zh ? '工具累计耗时' : 'Cumulative tool time'}</dt>
+          <dd>
+            {number(summary.tools.durationMs)} ms{summary.tools.unknown ? ' + ?' : ''}
+          </dd>
           <dt>{zh ? '缓存读取' : 'Cache read'}</dt>
           <dd>
             <Tokens value={model.cacheRead} zh={zh} />
@@ -111,8 +128,8 @@ export function Totals({ summary, tab, zh }: { summary: UsageSummary; tab: Tab;
         </dl>
         <p className="insights-note">
           {zh
-            ? '“+ ?” 表示部分调用缺少计数或报价,不等于零。已完成统计按结算时间;待结算数按准入时间。修改报价不会改变历史费用。'
-            : '“+ ?” means some counters or valuations are missing, not zero. Completed totals use settlement time; pending counts use admission time. Rate edits do not change historical costs.'}
+            ? '“+ ?” 表示部分数据未知,不等于零。累计耗时可能因并行调用而重叠,不是会话经过时间。已完成统计按结算时间,待结算数按准入时间。修改报价不改变历史费用。'
+            : '“+ ?” means some data is unknown, not zero. Cumulative durations may overlap; they are not elapsed session time. Completed totals use settlement time; pending counts use admission time. Rate edits do not change historical costs.'}
         </p>
       </>
     );
diff --git a/crates/insights/src/plugin/remote.rs b/crates/insights/src/plugin/remote.rs
index 816b17f529..080196370a 100644
--- a/crates/insights/src/plugin/remote.rs
+++ b/crates/insights/src/plugin/remote.rs
@@ -196,7 +196,12 @@ where
                 _ => "Read usage accounting",
             }
             .into(),
-            target: Target::Profile,
+            target: match (&caller.session_id, capability) {
+                (Some(session_id), Capability::ReadUsage) => Target::Session {
+                    session_id: session_id.clone(),
+                },
+                _ => Target::Profile,
+            },
             capabilities: [capability].into(),
         })
         .await?;
diff --git a/crates/insights/tests/client.test.mjs b/crates/insights/tests/client.test.mjs
new file mode 100644
index 0000000000..804565163d
--- /dev/null
+++ b/crates/insights/tests/client.test.mjs
@@ -0,0 +1,199 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import assert from 'node:assert/strict';
+import { createRequire } from 'node:module';
+import { fileURLToPath } from 'node:url';
+import test from 'node:test';
+import { build } from 'esbuild';
+import { act, createElement as h } from 'react';
+import { createRoot } from 'react-dom/client';
+import { parseHTML } from 'linkedom';
+
+test('Inspector binds raw Sessions, coalesces facts and drops retired reads', {
+  timeout: 10_000,
+}, async () => {
+  const output = await build({
+    entryPoints: [fileURLToPath(new URL('../src/client/inspector.tsx', import.meta.url))],
+    bundle: true,
+    write: false,
+    platform: 'node',
+    format: 'cjs',
+    packages: 'external',
+    jsx: 'automatic',
+  });
+  const compiled = { exports: {} };
+  new Function('require', 'module', 'exports', output.outputFiles[0].text)(
+    createRequire(import.meta.url),
+    compiled,
+    compiled.exports,
+  );
+  const { Inspector } = compiled.exports;
+  const { document, window } = parseHTML('<html><body><main></main></body></html>');
+  const previous = {
+    document: globalThis.document,
+    window: globalThis.window,
+    act: globalThis.IS_REACT_ACT_ENVIRONMENT,
+  };
+  globalThis.document = document;
+  globalThis.window = window;
+  globalThis.IS_REACT_ACT_ENVIRONMENT = true;
+  const root = createRoot(document.querySelector('main'));
+  const reads = [];
+  const listeners = new Map();
+  let releaseFirst;
+  const first = new Promise((resolve) => {
+    releaseFirst = resolve;
+  });
+  const counter = { known: 0, missing: 0 };
+  const totals = (calls) => ({
+    models: {
+      calls,
+      success: calls,
+      error: 0,
+      aborted: 0,
+      unknown: 0,
+      durationMs: 12.5,
+      input: counter,
+      output: counter,
+      cacheRead: counter,
+      cacheWrite: counter,
+      reasoning: counter,
+      cost: { knownUsd: 0, unvalued: 0, unpriced: 0 },
+    },
+    tools: {
+      calls: 0,
+      success: 0,
+      error: 0,
+      unknown: 0,
+      rejected: 0,
+      durationMs: 0,
+      meanLatencyMs: null,
+    },
+    pending: { models: 0, tools: 0 },
+    byModel: [],
+    byProvider: [],
+    byTool: [],
+  });
+  const context = {
+    signal: new AbortController().signal,
+    remote: {
+      method(name, session) {
+        assert.equal(name, 'request');
+        assert.ok(session === 'first' || session === 'second');
+        return async (input) => {
+          reads.push({ session, input });
+          if (input.kind === 'activity')
+            return {
+              kind: 'activity',
+              page: { cursor: session, nextCursor: null, total: 0, attempts: [] },
+            };
+          assert.equal(input.kind, 'summary');
+          assert.equal(input.cursor, session, 'summary cannot acquire a second independent fence');
+          if (session === 'first') return first;
+          return { kind: 'summary', summary: totals(7) };
+        };
+      },
+    },
+    events: {
+      subscribe(request, listener) {
+        assert.equal(request.kind, 'session.event');
+        listeners.set(request.sessionId, listener);
+        listener({
+          kind: 'session.event',
+          sessionId: request.sessionId,
+          event: { type: 'complete' },
+        });
+        return () => {
+          listeners.delete(request.sessionId);
+        };
+      },
+    },
+  };
+  async function until(predicate) {
+    const deadline = Date.now() + 2500;
+    while (!predicate()) {
+      assert.ok(Date.now() < deadline, 'Inspector did not settle');
+      await act(async () => {
+        await new Promise((resolve) => setTimeout(resolve, 10));
+      });
+    }
+  }
+  const render = (sessionId) => root.render(h(Inspector, { context, sessionId, locale: 'en' }));
+  try {
+    await act(async () => {
+      render('first');
+    });
+    await until(() =>
+      reads.some((read) => read.session === 'first' && read.input.kind === 'summary'),
+    );
+    await act(async () => {
+      await new Promise((resolve) => setTimeout(resolve, 450));
+    });
+    assert.equal(reads.length, 2, 'a replayed seed cannot overlap the initial slow read');
+    await act(async () => {
+      render('second');
+    });
+    await until(() => document.body.textContent.includes('Cumulative model time'));
+    assert.equal(listeners.has('first'), false);
+    assert.equal(document.querySelector('.insights-cards strong').textContent, '7');
+    await act(async () => {
+      releaseFirst({ kind: 'summary', summary: totals(999) });
+    });
+    assert.equal(
+      document.querySelector('.insights-cards strong').textContent,
+      '7',
+      'old Session read cannot land',
+    );
+    await act(async () => {
+      await new Promise((resolve) => setTimeout(resolve, 450));
+    });
+    const emit = (type) =>
+      listeners.get('second')({ kind: 'session.event', sessionId: 'second', event: { type } });
+    const before = reads.length;
+    await act(async () => {
+      for (let i = 0; i < 30; i++) emit('text_delta');
+    });
+    await act(async () => {
+      await new Promise((resolve) => setTimeout(resolve, 450));
+    });
+    assert.equal(reads.length, before, 'streaming text is not an accounting invalidation');
+    await act(async () => {
+      emit('tool_result');
+      emit('token_usage');
+      emit('complete');
+    });
+    await until(() => reads.length === before + 2);
+    assert.equal(reads.at(-1).input.kind, 'summary');
+    await act(async () => {
+      emit('complete');
+      root.unmount();
+    });
+    assert.equal(listeners.size, 0);
+    await new Promise((resolve) => setTimeout(resolve, 450));
+    assert.equal(reads.length, before + 2, 'retirement cancels queued reads');
+  } finally {
+    await act(async () => {
+      root.unmount();
+    });
+    globalThis.document = previous.document;
+    globalThis.window = previous.window;
+    globalThis.IS_REACT_ACT_ENVIRONMENT = previous.act;
+  }
+});
diff --git a/crates/runtime-host/tests/integration/insights_plugin.rs b/crates/runtime-host/tests/integration/insights_plugin.rs
index 4be2f6f0e2..6ab6e96c05 100644
--- a/crates/runtime-host/tests/integration/insights_plugin.rs
+++ b/crates/runtime-host/tests/integration/insights_plugin.rs
@@ -19,7 +19,7 @@
 
 use super::{
     javascript_plugins::ready,
-    support::{client_probe::ClientFixture, peer::Peer},
+    support::{client_probe::ClientFixture, message_recovery::configure, peer::Peer},
 };
 use maka_plugins::{client::Bundle, kernel::Definition};
 use maka_runtime_host::{
@@ -41,6 +41,7 @@ async fn renamed_insights_uses_public_remote_capabilities_and_preserves_state_ac
 
 async fn scenario() {
     let fixture = ClientFixture::new("maka-insights-");
+    let model = configure(&fixture, "http://127.0.0.1:9/v1").await;
     let preferences = json!({"range":"30d","tab":"activity","selection":{"search":"🦀"}});
     let mut old_cursor = Value::Null;
     for reopened in [false, true] {
@@ -68,6 +69,12 @@ async fn scenario() {
         );
         let mut peer = Peer::new(host, "insights-client").await;
         ready(&mut peer).await;
+        if !reopened {
+            success(peer.rpc("session.create", json!({"sessionId":"inspector-session",
+                "workspace":{"kind":"host_path","path":fixture.workspace}, "sandboxMode":"danger-full-access",
+                "modelTarget":{"kind":"explicit","connectionId":model.connection_id,
+                    "connectionSlug":model.connection_slug,"model":model.model}})).await);
+        }
         let mut call = bind(&mut peer).await;
         let snapshot = invoke(&mut peer, &call, json!({"kind":"preferences"})).await;
         if reopened {
@@ -144,6 +151,32 @@ async fn scenario() {
         )
         .await;
         assert_eq!(summary["summary"]["models"]["calls"], 0);
+        let session_call = bind_session(&mut peer, Some("inspector-session")).await;
+        let session_page = invoke(&mut peer, &session_call, json!({"kind":"activity",
+            "operationId":uuid::Uuid::new_v4(), "read":{"kind":"start","filter":{"from":0,"to":2000000000000_f64}}})).await;
+        let scoped = invoke(
+            &mut peer,
+            &session_call,
+            json!({"kind":"summary",
+            "operationId":uuid::Uuid::new_v4(),"cursor":session_page["page"]["cursor"]}),
+        )
+        .await;
+        assert_eq!(scoped["summary"]["models"]["calls"], 0);
+        let mut crossing = session_call.clone();
+        crossing["input"] =
+            json!({"kind":"summary","operationId":uuid::Uuid::new_v4(),"cursor":old_cursor});
+        assert_eq!(
+            peer.rpc("plugin.remote", crossing).await["ok"],
+            false,
+            "Session-bound caller cannot read a profile summary cursor"
+        );
+        success(
+            peer.rpc(
+                "plugin.remote",
+                json!({"kind":"close_document","document":session_call["document"]}),
+            )
+            .await,
+        );
         if !reopened {
             success(
                 peer.rpc(
@@ -240,6 +273,9 @@ fn setup() -> Setup {
     }
 }
 async fn bind(peer: &mut Peer) -> Value {
+    bind_session(peer, None).await
+}
+async fn bind_session(peer: &mut Peer, session: Option<&str>) -> Value {
     let clients = success(
         peer.rpc("plugin.client.query", json!({"kind":"snapshot"}))
             .await,
@@ -250,7 +286,7 @@ async fn bind(peer: &mut Peer) -> Value {
         .iter()
         .find(|entry| entry["extensionId"] == ID)
         .unwrap();
-    let binding = json!({"method":"request","sessionId":null,"client":{
+    let binding = json!({"method":"request","sessionId":session,"client":{
         "entryId":entry["entryId"],"extensionId":entry["extensionId"],"activation":entry["activation"],
         "contentDigest":entry["contentDigest"],"clientDigest":entry["clientDigest"]}});
     let target = success(
diff --git a/crates/runtime/src/accounting/summary.rs b/crates/runtime/src/accounting/summary.rs
index aff2540258..ee587751f3 100644
--- a/crates/runtime/src/accounting/summary.rs
+++ b/crates/runtime/src/accounting/summary.rs
@@ -44,6 +44,8 @@ pub struct ModelTotals {
     pub error: u64,
     pub aborted: u64,
     pub unknown: u64,
+    /// Sum of observed durations; unknown outcomes are excluded. Not wall-clock time.
+    pub duration_ms: f64,
     pub input: Tokens,
     pub output: Tokens,
     pub cache_read: Tokens,
@@ -61,6 +63,8 @@ pub struct ToolTotals {
     pub error: u64,
     pub unknown: u64,
     pub rejected: u64,
+    /// Known success/error durations; refusals and unknown effects contribute no time.
+    pub duration_ms: f64,
     /// Only known success/error settlements contribute to observed execution latency.
     pub mean_latency_ms: Option<f64>,
 }
diff --git a/docs/rust-parity.md b/docs/rust-parity.md
index 406c9412e9..9817e26f62 100644
--- a/docs/rust-parity.md
+++ b/docs/rust-parity.md
@@ -89,7 +89,7 @@ implementations; wire adapters may retain existing client vocabulary.
 | Goal | Query/arm/control, continuation, termination, budget and recovery semantics. | **Plugin + Host.** Goal policy owns subsequent submissions; Host enforces admitted hard limits and records usage. Retiring the plugin must close future submission admission. |
 | Daily review / recap | Daily-review query/mutate, scheduled review and `session.recap.generate`. | **Plugin + Host.** Summarization/selection/output in plugins; reuse Scheduler and authorized history/model services. Host retains any canonical Session metadata commit. |
 | External agents | Setup start/query/cancel; execution adapters, configuration, auth, conversation identity, adapter-specific attachments/interactions/resume/fork. | **Plugin + Host.** Implement concrete CLI/ACP adapters as Executor plugins over owned processes/HTTP. Generic Executor support is not a shipped adapter. Host owns authorization, cancellation and canonical external-event recording. |
-| Usage / Pricing | Physical Agent and auxiliary SDK accounting, frozen valuation, public Rust/JS scoped mixed model/tool activity paging, and shared native/plugin pricing query/CAS edits are implemented. Consistent summaries include complete bounded breakdowns and missing-data coverage; The Insights plugin provides settings reports, filtering, pagination, persisted views and rate editing; Session Inspector summary binding remains. | **Plugin + Host.** Reports and rebuildable projections [...]
+| Usage / Pricing | Physical Agent and auxiliary SDK accounting, frozen valuation, public Rust/JS scoped mixed model/tool activity paging, and shared native/plugin pricing query/CAS edits are implemented. Consistent summaries include complete bounded breakdowns and missing-data coverage; The Insights plugin provides settings reports, filtering, pagination, persisted views and rate editing; Session Inspector uses the public Session-bound Client slot. | **Plugin + Host.** Reports and rebui [...]
 | Background health | BackgroundTaskHealth process and endpoint checks. | **Plugin + Host.** Health interpretation and Tool in a plugin; Host exposes authorized resource observations and bounded probes. A stored PID is not resource ownership. |
 | Session lineage | Public Rust/JS history copying and source reads, native branch/revision create/abandon, independent inherited pruning, Desktop canonical-input editing and complete durable drafts are implemented. Regeneration is removed; edits use revision and resend. | **Host.** One transactional lineage and workspace authority; plugins request changes through commands, not private lineage storage. |
 | Session lifecycle | Native and public plugin removal/preview/receipt APIs, atomic family retirement and queued cancellation, restart cleanup and shared-worktree ownership are implemented. Unreferenced canonical-material reclamation and shared Session queries remain. | **Host.** Preserve referenced history and accepted receipts; unknown process cleanup must not delete its workspace. Shared queries require real collaboration authorization. |
@@ -112,7 +112,7 @@ Original TS plugins are not source-compatible with the new SDK.
 | Skills: tool publication | Skill/SkillSearch are ordinary Contributions, without a package-name privilege. Per-step bindings capture handlers and supporting context together, after tool ceilings; physical retries retain the same snapshot. |
 | WorkHub: precise execution commands | Typed commands carry stable operation IDs, exact targets and expected revisions. Correction freezes plugin intent before exact Host control/submission and atomically commits its business receipt; accepted work settles independently of plugin availability. Queue editing preserves the original submission proof. Plugins receive neither SQL transaction callbacks nor unrestricted execution handles. |
 | WorkHub / Graph / Plan: selectable behavior | Open `BehaviorId` selects a typed Contribution; Graph/Swarm register independently. Host acceptance covers a non-builtin business. Preserve Session defaults and durable per-Turn choices; a requested unavailable behavior fails explicitly. Behavior preparation and input preparation are separate contracts, not one hook bus. |
-| Skills / Web / Recall / Insights: authorized services | Public history provides fixed-fence text paging and archived Session metadata to Rust and JS. Admitted Agent calls may read the trusted profile; Remote/background callers retain scoped history authorization. Public Usage reads expose scoped model/tool attempts and refusals without conversation bodies. Fixed-fence summaries and bounded breakdowns are available; Insights consumes them through public Remote and Client APIs; Session I [...]
+| Skills / Web / Recall / Insights: authorized services | Public history provides fixed-fence text paging and archived Session metadata to Rust and JS. Admitted Agent calls may read the trusted profile; Remote/background callers retain scoped history authorization. Public Usage reads expose scoped model/tool attempts and refusals without conversation bodies. Fixed-fence summaries and bounded breakdowns are available; Insights consumes them through public Remote and Client APIs; Session I [...]
 | Skills / WorkHub / default behavior: business UI and prompt context | Published Clients own the actual Skills picker/management and WorkHub surface through Slots and Remote. Native adapters validate the originating Host and document; connection replacement revokes old Remote leases without replay. Prompt Contributions own business instructions. Inactive features remain visibly unavailable without blocking ordinary chat. |
 | Other TS extension services | New SDK lacks equivalent public registrations/services for LSP routing, commands, Skills/Goals queries, shell environment contributions, Settings definitions, authorization flows and LLM adapter registration; questions/forms and source-input/attachment-copy contracts are public; permission approvals remain Host-owned. Implement domain registries as plugin services where possible, retaining Host authority for sensitive actions. `llm.generate` is not adapter [...]
 
diff --git a/docs/rust-parity.zh-CN.md b/docs/rust-parity.zh-CN.md
index ad16c93d2a..bd753ebba6 100644
--- a/docs/rust-parity.zh-CN.md
+++ b/docs/rust-parity.zh-CN.md
@@ -79,7 +79,7 @@ runtime 契约不能反向依赖插件实现,协议适配层可以保留现有
 | Goal | 查询、arm、控制、续跑、终止、预算与恢复语义。 | **插件 + Host。** Goal 决定后续提交;Host 执行已准入的硬限制并记录用量。插件退休后不能继续提交。 |
 | Daily review/recap | daily-review 查询/修改、定时复盘、`session.recap.generate`。 | **插件 + Host。** 选择、总结及输出由插件负责,复用 Scheduler 和授权历史/模型服务;规范 Session 元数据的提交仍归 Host。 |
 | 外部 agent | setup start/query/cancel;具体执行适配、配置、鉴权、对话身份,以及附件/交互/resume/fork。 | **插件 + Host。** CLI/ACP 适配作为 Executor 插件,使用受管理进程/HTTP。已有 Executor 框架不等于已有具体 adapter。Host 负责授权、取消和外部事件落盘。 |
-| Usage/Pricing | 已实现 Agent 与辅助 SDK 的物理计量、冻结估价、公共 Rust/JS 作用域模型/工具混合活动分页,以及原生/插件共享的报价查询与 CAS 修改。一致快照汇总包含有界完整分组与缺失数据覆盖率;Insights 插件已提供设置报表、筛选、分页、视图持久化和报价编辑;Session Inspector 汇总接缝仍待接入。 | **插件 + Host。** 报表和可重建投影可归 Insights 领域;Host 不依赖插件存活来记录用量,并提供一致快照。缺失用量不能视为零。 |
+| Usage/Pricing | 已实现 Agent 与辅助 SDK 的物理计量、冻结估价、公共 Rust/JS 作用域模型/工具混合活动分页,以及原生/插件共享的报价查询与 CAS 修改。一致快照汇总包含有界完整分组与缺失数据覆盖率;Insights 插件已提供设置报表、筛选、分页、视图持久化和报价编辑;Session Inspector 已使用公共 Session 作用域 Client 插槽。 | **插件 + Host。** 报表和可重建投影可归 Insights 领域;Host 不依赖插件存活来记录用量,并提供一致快照。缺失用量不能视为零。 |
 | 后台健康 | BackgroundTaskHealth 的进程和端点检查。 | **插件 + Host。** 插件解释健康状态并提供工具;Host 提供授权资源观察和有界探测。保存 PID 不等于拥有进程。 |
 | Session 谱系 | 已实现公共 Rust/JS 历史复制和原始输入读取、原生分支/修订创建与放弃、继承历史独立裁剪、Desktop 规范输入编辑及完整持久草稿。已移除 regenerate,修改请求使用编辑重发。 | **Host。** 谱系及工作区只有一个事务权威;插件请求命令,不在私有存储中重做谱系。 |
 | Session 生命周期 | 已实现原生与公共插件删除/预览/回执接口、原子家族退休及队列取消、重启清理和共享 worktree 所有权。无引用规范材料回收及 shared 查询仍待完成。 | **Host。** 保留被引用历史及已接受回执;进程清理不确定时不得删除工作目录。shared 查询需要真实协作授权。 |
@@ -101,7 +101,7 @@ runtime 契约不能反向依赖插件实现,协议适配层可以保留现有
 | Skills:工具发布 | Skill/SkillSearch 是普通 Contribution,不享有包名特权。每步绑定在工具上限内共同捕获 handler 和支持上下文,物理重试保持原快照。 |
 | WorkHub:精确执行命令 | 类型化命令携带稳定操作 ID、精确目标及预期 revision。纠正先冻结插件意图,再精确控制/提交 Host 工作,最后原子记录业务回执;已接受工作不依赖插件可用性继续结算。队列编辑保留原提交凭证。插件不获得 SQL 事务回调或无限制执行句柄。 |
 | WorkHub/Graph/Plan:可选择的 behavior | 已用开放的 `BehaviorId` 选择类型化 Contribution,Graph/Swarm 独立注册;非内置业务已通过 Host 验收。保留 Session 默认值和持久单 Turn 选择;请求的 behavior 不可用时明确失败。behavior 准备与输入准备是独立契约,不合并为 hook 总线。 |
-| Skills/Web/Recall/Insights:授权服务 | Rust/JS 公共历史 API 提供固定水位文本分页及归档 Session 元数据。已准入 Agent 可读受信任 profile,Remote/后台调用保留相应范围的历史授权。公共 Usage 读取提供作用域内的模型/工具物理调用和派发前拒绝,不暴露对话正文;固定快照汇总与有界分组已提供;Insights 已通过公共 Remote/Client API 消费这些能力;Session Inspector 汇总接缝仍待接入。领域目录/修改接口可作为类型化插件 Service,不必成为内核方法。 |
+| Skills/Web/Recall/Insights:授权服务 | Rust/JS 公共历史 API 提供固定水位文本分页及归档 Session 元数据。已准入 Agent 可读受信任 profile,Remote/后台调用保留相应范围的历史授权。公共 Usage 读取提供作用域内的模型/工具物理调用和派发前拒绝,不暴露对话正文;固定快照汇总与有界分组已提供;Insights 已通过公共 Remote/Client API 消费这些能力;Session Inspector 已使用公共 Session 作用域 Client 插槽。领域目录/修改接口可作为类型化插件 Service,不必成为内核方法。 |
 | Skills/WorkHub/默认行为:业务 UI 与 Prompt 上下文 | 发布的 Client 通过 Slot 和 Remote 拥有真实 Skills 选择器/管理页及 WorkHub 界面。原生适配验证原 Host 与 document;连接换代撤销旧 Remote 租约,不重放调用。Prompt Contribution 拥有业务指令。功能停用明确显示不可用,不阻塞普通聊天。 |
 | 其余 TS 扩展服务 | 新 SDK 尚缺等价的公开 LSP 路由、Commands、Skills/Goals 查询、shell 环境变量 Contribution、Settings 定义、授权流程及 LLM adapter 注册;问题/表单、源输入与附件复制已有公共契约;权限审批仍归 Host。能由插件服务实现的领域注册放在插件侧,敏感行为权威仍归 Host。`llm.generate` 不等于 adapter 注册。 |
 
diff --git a/packages/plugin-sdk/README.md b/packages/plugin-sdk/README.md
index acbcc8d52c..df1f734f8b 100644
--- a/packages/plugin-sdk/README.md
+++ b/packages/plugin-sdk/README.md
@@ -145,6 +145,8 @@ Native endpoints accepting caller-supplied Host paths declare `Endpoint::requiri
 
 ## Usage
 
+`session.inspector.overview` receives the viewed Host's canonical `sessionId` and `locale`. It augments the overview without replacing native trace/context controls. Bind Remote reads to that Session; slot props alone grant no execution permission.
+
 `call.usage.activity({ kind: 'start', filter: { from, to, sessionId?, activity? } })` reads physical model and tool attempts, including failed retries, auxiliary calls and pre-dispatch refusals. Agent calls see their Session; independent calls need `read_usage` authorization for a profile or Session. Responses contain no conversation bodies. Missing usage, price and outcome remain distinct unknowns.
 
 Activity entries are tagged `model` or `tool`. Optional `activity` filters select `kind`, `status` and a literal ASCII-case-insensitive `search` (at most 1 KiB UTF-8, no control characters). Refusals have no execution duration; unknown tool effects are not cancellations.
@@ -155,6 +157,8 @@ Each page contains at most 100 attempts / 48 KiB. `{ kind: 'continue', cursor }`
 
 `call.usage.summary(cursor)` uses the same range, Session and fence, ignoring activity-only filters. Token and cost subtotals include missing-call coverage; unpriced calls differ from priced calls with incomplete usage. Provider/model/tool breakdowns are complete or fail explicitly (128 groups each, 48 KiB overall). Pending counts use admission time within the range and are excluded from completed totals. Nonfinite or inexact integer aggregates fail rather than becoming zero.
 
+Summary `durationMs` totals observed model/tool execution time, excluding unknown outcomes and pre-dispatch refusals. Overlapping calls are cumulative, not Session wall-clock time.
+
 ## Pricing
 
 `ctx.pricing.query({ kind: 'start' })` reads the public rate catalog during activation. Continue with the returned revision and `nextOffset`; `revision_changed` requires a new scan. `call.pricing.update({ expectedRevision, mutation })` requires explicit profile `manage_pricing` consent. Edits share the native CAS and configuration notices, affect future admissions only, and finish after admission even if the caller stops waiting. A lost reply can yield `revision_conflict` on retry; query [...]
diff --git a/packages/plugin-sdk/README.zh-CN.md b/packages/plugin-sdk/README.zh-CN.md
index c418cc8d13..f6335f2bc2 100644
--- a/packages/plugin-sdk/README.zh-CN.md
+++ b/packages/plugin-sdk/README.zh-CN.md
@@ -149,6 +149,8 @@ Remote 回调可以抛出携带 `RemoteFailure.code` 的 `Error`。`outcome_unkn
 
 ## 用量
 
+`session.inspector.overview` 接收当前 Host 的规范 `sessionId` 与 `locale`,补充概览而不替换原生轨迹/上下文控件。Remote 读取应绑定此 Session;插槽参数本身不授予执行权限。
+
 `call.usage.activity({ kind: 'start', filter: { from, to, sessionId?, activity? } })` 读取模型和工具的物理调用,包含失败重试、辅助调用及派发前拒绝。Agent 只读当前 Session;独立调用需要 profile 或 Session 范围的 `read_usage` 授权。结果不包含对话正文,缺失用量、报价和结果分别保持未知。
 
 活动通过 `model`/`tool` 标签区分。可选 `activity` 按 `kind`、`status` 和字面文本 `search` 筛选;搜索仅忽略 ASCII 大小写,最多 1 KiB UTF-8,不接受控制字符。派发前拒绝没有执行耗时;副作用未知不等于取消。
@@ -159,6 +161,8 @@ Remote 回调可以抛出携带 `RemoteFailure.code` 的 `Error`。`outcome_unkn
 
 `call.usage.summary(cursor)` 复用相同的范围、Session 和快照,忽略活动列表筛选。Token 和费用小计保留缺失调用数;未报价与已报价但用量不完整分别统计。提供商/模型/工具分组必须完整,否则明确报错(各最多 128 组,整体 48 KiB)。待结算数按范围内的准入时间统计,不计入已完成总额。非有限值或无法精确表示的整数会报错,不变成零。
 
+汇总中的 `durationMs` 累加已观测的模型/工具执行耗时,不计未知结果与派发前拒绝。并发调用会累加,不代表会话墙钟时间。
+
 ## 报价
 
 `ctx.pricing.query({ kind: 'start' })` 在激活期间即可读取公共报价。使用返回的 revision 与 `nextOffset` 继续分页,遇到 `revision_changed` 则重新读取。`call.pricing.update({ expectedRevision, mutation })` 需要 profile 范围的 `manage_pricing` 明确授权。修改复用原生 CAS 与配置通知,只影响后续准入;已接受的修改不会因调用者停止等待而中断。丢回复后重试可能返回 `revision_conflict`,应先查询再决定下一次修改。
diff --git a/packages/plugin-sdk/src/client.ts b/packages/plugin-sdk/src/client.ts
index 1ed90b7151..6498fc16bc 100644
--- a/packages/plugin-sdk/src/client.ts
+++ b/packages/plugin-sdk/src/client.ts
@@ -84,6 +84,10 @@ export interface ClientSlots {
     readonly sessionId: string;
     readonly locale: 'en' | 'zh-CN' | 'zh-TW';
   };
+  'session.inspector.overview': {
+    readonly sessionId: string;
+    readonly locale: 'en' | 'zh-CN' | 'zh-TW';
+  };
   'turn.footer': {
     readonly sessionId: string;
     readonly turnId: string;
diff --git a/packages/plugin-sdk/src/usage.ts b/packages/plugin-sdk/src/usage.ts
index e8b0e32ef1..b324ae4e52 100644
--- a/packages/plugin-sdk/src/usage.ts
+++ b/packages/plugin-sdk/src/usage.ts
@@ -136,6 +136,8 @@ export interface UsageSummary {
     error: number;
     aborted: number;
     unknown: number;
+    /** Sum of observed durations, excluding unknown outcomes; not wall-clock time. */
+    durationMs: number;
     input: UsageTokens;
     output: UsageTokens;
     cacheRead: UsageTokens;
@@ -149,6 +151,8 @@ export interface UsageSummary {
     error: number;
     unknown: number;
     rejected: number;
+    /** Known success/error durations only; not wall-clock time. */
+    durationMs: number;
     /** Only known success/error settlements contribute to latency. */
     meanLatencyMs: number | null;
   };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org