Skip to content

feat(assistant): record cost and outcome of discovery runs and Matter activations #6309

Closed

Description

@liugddx

Problem

The assistant's discovery Session and its Matters have no cost visibility. The decision on #6247 (item 4) is to add observability first and keep hard Matter round or time limits removed, because earlier limits left useful work unfinished.

Proposal

Record and expose, per day and per run:

  • model calls
  • input, cache and output tokens
  • run duration
  • activations per Matter
  • whether each run reported anything (DiscoveryReport or equivalent)

Scope is observability only. No limits, budgets or behaviour change. User-configured budgets remain a separate policy discussion.

Why

Without these numbers we cannot evaluate whether discovery is worth its cost, or measure the two failure modes named in #6247 item 6: repeated notifications and loss of initiative.

Acceptance

Refs #6247, #5691.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions