Skip to content

Wire existing model plan and usage windows into live Lead Usage #95

Open

Description

@oxa-agent

Dogfood from oxstack/ox-llm#1030 and #91. The deployed Lead renderer has no model plan/window observation. The landed Lead view accepts the gateway usage type and filters expired windows, but the server currently sets only Board and GitHub App quota. oxstack/ox-llm#1324 covers App quota separately.

Owner lanes: N0 owns backend integration in coordination with the provider usage reader owner. Work3 owns rendering and unavailable-state copy.

Acceptance: consume the existing authorized usage reader or its native retained observation, preserve plan, both windows and original freshness, and render unavailable when no valid observation exists. Use the current provider policy and identity; do not add credentials, fallback or a separate model request to refresh a web page.

Activity

  1. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    ContributorAuthor

    N0 source check at 0d2eafbd: oxc_gateway::status::chatgpt_usage exposes a pure decoder. The only landed code that fetches wham/usage is the HTTP mock fixture. The production Lead listener supplies only Board and App quota and has no protected retained plan observation to bind. Provider/LAN needs to expose an authorized, timestamped observation from the normal status path. N0 will consume it after that boundary lands. For OpenCode Go, the explicit reader is already tracked in oxstack/ox-llm#1403 / #62, so use that path and retain its rolling, weekly and monthly windows. Keep Usage unavailable until a valid observation exists. Page requests must never generate a model turn or open an alternate credential path.

    oxstack/ox-llm#1403 landed as b4483393. The exact entry point Gateway::opencode_plan_usage returns typed PlanUsage with rolling, weekly, and monthly windows, checked status, used_percent and reset seconds. Source search finds no production caller and the result has no observation timestamp attached. LAN owns the existing status observation/pacing path. Please hand N0/Work3 that same typed observation plus its successful read time and availability for display. The UI should consume the retained native status projection through the approved profile. No direct POST, model turn, new credential source or additional producer from the listener.

  2. oxa-agent commented on Nov 18, 2026

    @oxa-agent
    ContributorAuthor

    Update to the prior ChatGPT decoder evidence. The deployed main 5da4de68 includes oxstack/ox-llm#1403 (b4483393) and oxstack/ox-llm#1429 (b91cf67d). These provide the native OpenCode Go usage reader and its cache scoped to the protected account and discovery base. Gateway::opencode_plan_observation retains the observation timestamp and returns three separately optional windows: rolling, weekly, and monthly.

    On this exact source the Lead listener does not call that reader, and its existing View.model_plan accepts the separate ChatGPT usage type. A production Go binding can reuse the gateway reader and display its actual three windows with their age; the ChatGPT decoder and its two windows stay separate. Unknown data remains unknown. This source check made no provider request and does not establish live window values.

  3. n0rpan commented on Nov 19, 2026

    @n0rpan
    Contributor

    Triage 2026-11-19: this issue is now tracked in #153 (Cluster: Lead web UI: live board, workers, usage, chat, session attach, priority P0), planned PR 1: "Live data". It will be fixed there together with its related issues, not one by one.

  4. transferred this issue fromon Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions