[task] Explain usage and cost by feature

Open
#433 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@Williamzhibo is already working on this.

Since Nov 28, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Read docs/OBSERVABILITY-IMPLEMENTATION.md, specifically implementation ticket 18, together with #342, then AGENTS.md and the service contribution guides to see where the cost view belongs. Check the state of the blocking issues #425, #427 and #429 first, since nothing can start until they land. Done means a priced fixture with retries, late usage and one unreported call reconciles known cost by feature and period, with coverage, unattributed spend, invoice variance and cost per confirmed completion shown from the same cohort, the rate blank at zero completions, and invoice detail gated on billing access.

Written by the indexing model from the issue text.

Description

area/deployment area/observability area/service area/tooling type/feature
Blocked by

#425, #432

What

Measure model and speech usage per provider attempt and reconcile feature costs to Railway spend and invoices.

Why

Billing reviewers need to explain spend changes, including retries, shared charges and unreported usage.

Area

deployment, observability, service, tooling

Done looks like
  • LLM chat, embeddings and meeting speech emit one usage observation per provider attempt. Attribute retries to the original feature and handle cancellation, late data and unknown units.
  • Join units to effective-dated prices and show known usage, coverage and unattributed spend. Restrict invoice details to billing reviewers.
  • A priced fixture with retries, late usage and one unreported call reconciles known cost by feature and period. The view shows coverage, shared/unattributed spend, invoice variance and cost per confirmed completion from the same cohort. With zero completions the rate is blank. Invoice detail enforces billing access.
Design notes

Part of #415. Metering can begin against #416. The final view uses dashboard infrastructure from #425 and completion counts from #432. Earlier provider-attempt contract: #429. Design proposal: #342 / PR #398.

Dominant language
Python
Stars
0
Forks
2
Avg merge
3d 3h
Merged PRs (30d)
31

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UTMIST/Misty

All issues in UTMIST/Misty

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.