Skip to content

test(usage-hub): contract tests for /api/quota.json saas/payg schema #1119

Closed

Description

@dezren39

Part of epic #1047. Design: hub-v2-v3-design-2026-10-26.md §6.

Add contract tests pinning the /api/quota.json schema for the hub sections — saas, payg, charges, attention, subscriptions — in the aggregator test suite. Consumers (quota-guidance, the measurement gate, the render layer) depend on these shapes; the v2 collector work (#1048-#1052, Modal/Bitwarden) will change producers, and a silent schema drift would surface as wrong quota guidance, not an error.

Tests: fixture-fed schema assertions per section (required fields, unit enums incl. the CNY case from the DeepSeek issue, null-used semantics: null means unmeasured, never 0), plus a live-feed smoke shape check that can run in CI without secrets.
Acceptance: suite green; a deliberate schema break in a scratch branch fails the new tests.

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    queue/queuedHas a queued task in the Supabase agent queue
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage verdict: CONFIRMED — routed to follow-up task 3015)

  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  5. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  6. 56 remaining items

  7. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  8. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    user/escalatedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  9. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · contract tests written; blocked only on the repo-wide merge-queue freeze (#2403)

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions