Skip to content

feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111

Open

Description

@dezren39

Part of epic #1047. Design: hub-v2-v3-design-2026-10-26.md §2 (in the usage-billing-hub goal files). These are the two §2.2 services from the original hub design that got no issue in the first filing pass.

  1. Modal — Starter plan, $30/mo compute credits (Drew confirmed 2026-10-22), % used UNKNOWN. No verified API meter: add Modal to the console-reads pattern at MONTHLY grain (dashboard read of credits used) until a meter route verifies; card shows measured-at + source.
  2. Bitwarden Secrets Manager — plan UNKNOWN in the tracker. bws CLI count-only read (secrets + projects count; names/values never enter the hub), weekly cadence. Also record the actual SM plan name/price into the tracker (overlaps chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 item 4 — coordinate, close whichever lands second as duplicate work done).
    Acceptance: both services render dated, sourced values on /quota; snapshot records flow.

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  5. 92 remaining items

  6. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 16, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — escalated (queue task 18078, openchamber scheduled lane code-g)\n\nFresh check: #1111 remains OPEN and user/escalated, queue/blocked. Scope requires a monthly Modal console read and weekly Bitwarden SM count-only read, plus recording plan details; the issue also flags coordination with #1055. These require owner-provided account access and a decision/coordination on plan data. I did not attempt account access or alter the issue. Queue task blocked pending Drew's disposition/access.

  8. removed their assignment
    on Nov 20, 2026
  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: picked_up
    task: 3000
    issue: #1111
    lane: oc-code-07
    worker: repo-worker-code
    origin: openchamber-scheduled-lane
    stage: claimed -> verified_blocker

    Fresh GitHub verification (2026-11-22): #1111 is OPEN with status/blocked and user/escalated; PR #2987 is MERGED at bf3e5edafcc623186f6deb298bc806ee45a897c6. The merged PR already supplies Modal used-credits and count-only Bitwarden extraction. Related #1055 remains OPEN/parked. The only recorded remainder is the actual Bitwarden Secrets Manager plan name/price; bws has no billing surface and the prior verified browser attempt reached only the login page. This scheduled session has no authenticated Bitwarden billing route or sourced plan detail. No account data was inferred and no tracker/code changes are needed absent that evidence.

    Resume condition: provide a dated sourced plan name/price or connect an approved signed-in route to the Bitwarden billing page; then record that exact detail in the tracker, verify the existing collector/card path, and resolve #1055 item 4. Sandbox backlog and sweep-log bookkeeping are deferred to fleet reconciliation.

  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    {"kind":"pickup","task_id":18078,"worker":"repo-worker-code","lane":"openchamber-scheduled-lane (code-h)","stage":"claimed","note":"Fresh triage of #1111; validating current implementation and existing remainder before routing. No secret names/values or credentials are being read."}

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    Triage verdict (2026-11-22): implementation is landed; issue remains open for tracker/snapshot close-out.

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Decided: The escalation is discharged. The v2 collectors stand as landed (PR #2987, merged): Modal used-credits and count-only Bitwarden extraction are implemented. The one remaining datum — the Bitwarden Secrets Manager plan name/price for the tracker (overlapping #1055 item 4) — is a fleet read, sourced through the fleet's own signed-in route to the laptop browser, and recorded here and on #1055 when read; it is not a Drew ask.
    Why: Drew's standing access rule (2026-11-03): before asking Drew for any login or access, inventory what is in hand — the laptop's signed-in browser over the fleet channel is in that inventory, and sign-ins he has already established are fleet access, not a new gate. A plan name/price is a factual read, not a decision; the 2026-11-22 note's "no authenticated route" described that one session's seat, not the fleet's routes. Counts-only handling for Bitwarden data stands (names/values never enter the hub).
    Undo: If the laptop-browser read genuinely fails, the failure and its exact error get recorded here and the datum re-parks as a named hands item — not as a general escalation.
    By: archer (lane S, #12234 owner-parks sweep, under FDR-0013)

    user/escalated, status/blocked and queue/blocked are removed; queue task 3000 returns to eligible for the close-out read and the final snapshot/render verification.

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Lane U (queue task 3000) picking this up: premise verification first — PR #2987's extractors vs. what the tracker/snapshot flow still needs — then only the genuine remainder. No secret names or values will be read or recorded; Bitwarden work is count-only.

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Lane U close-out (queue task 3000): premise resolved, remainder landed, one routed datum left.

    Premise resolution. The task-2385 triage verdict ("both services are shells, no wiring") was accurate for its HEAD. PR #2987 (merged 2026-10-31, bf3e5eda) then landed the extractor half: modalMetrics + bitwardenMetrics and both service specs in pm-stack/aggregator/src/saas-extract.ts, tests in test/usage.test.ts, and snapshot flow via the generic recordsFromSaasServices path (scripts/append-usage-snapshots.ts, scripts/collect-fleet-feed.ts). So the #12234 sweep's "collectors landed via PR #2987" is correct — what #2987 explicitly left open was the tracker-side dated reads. No code changes were needed from this lane and no duplicate PR was opened.

    What this lane landed (tracker: stewardship quota-view.md):

    • Bitwarden, fresh count-only read 2026-11-22 via bws: 212 secrets, 1 project (prior read 121/1 on 2026-10-31). Recorded in the Bitwarden section and the summary row. Counts only — no secret names or values were read or recorded.
    • Modal, November read recorded: $1.21 credits used, Nov 1–30 cycle, from the two concurring 2026-11-16 console reads already on this thread (identical values, two independent lanes); the tracker still carried only the October read. Section, summary row and Last-checked updated.

    Verification (laptop, main's own code against the updated tracker): extractSaasServices → modal measuredAt 2026-11-16, compute-credits used 1.21 / limit 30 USD; bitwarden measuredAt 2026-11-22, secrets-count 212, projects-count 1. recordsFromSaasServices emits all three snapshot records. bun test test/usage.test.ts test/quota-gather-map.test.ts test/gather-quota.test.ts → 147 pass / 0 fail.

    Remaining — one datum, already routed: the Bitwarden Secrets Manager plan name/price. bws has no billing surface; per the 2026-11-22 decision record on this issue it is a fleet read via the signed-in laptop browser route, shared with #1055 item 4 (close whichever lands second) — not a Drew ask. This issue stays open on that datum alone; both services now render dated, sourced values on /quota and snapshot records flow, per the acceptance.

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

    effort/mMedium: expected under 1 day of workepic/saas-serviceEpic: epic/saas-service (fleet reprioritization 2026-11-12)meta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudsource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions