GeezerVison is showing github.com — feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts · Issue #1111 · developing-today/code
feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111DescriptionPart 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.
- 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.
- 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.
Epic tracking: Refs #8989 (SaaS service epic). Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane A shift
- Session / ID: queue task 2385 (triage) → follow-up queue task 3000
- Found via: queue claim
- Task: Triage verdict for feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111
- Verdict — CONFIRMED at HEAD: both services are shells in the hub, exactly as filed. In
pm-stack/aggregator/src/saas-extract.ts: the Modal spec (line ~558) renders only the $30/mo compute-credit limit — its metric note reads "No run hours or credit balance recorded — manual dashboard read (§2.2)" and its shell note says "usage unknown". The Bitwarden Secrets Manager spec (line ~580) has metrics: () => [] and shell note "No count recorded yet; plan/price unknown." And there is no collector wiring at all: quota-gather-map.ts, snapshots.ts, and snapshot-records.ts contain zero matches for Modal or Bitwarden, so no snapshot records flow for either service.
- Routing: scoped implementation packet enqueued as queue task 3000 (kind small_fix, dedupe
repo-health:v1:fix:developing-today/code:issue:1111): Modal monthly console read of credits used (dated + sourced, per the issue's console-reads pattern), Bitwarden bws count-only read (secrets + projects counts; names/values never enter the hub) + SM plan name/price into the tracker, extractor/gather wiring following the sibling-service pattern, with the chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 item-4 overlap explicitly coordinated (that issue is parked; whichever lands second closes the overlap as duplicate work done).
- Expectation: feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111 stays open with
queue/queued until task 3000 lands both collectors rendering dated, sourced values on /quota.
- Links: epic epic(usage-hub): SaaS/cloud services completion — v2 live collectors, daily console reads, v3 reconciliation #1047; overlap chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055; packet
packet-task2385-fix1111.json (goal hidden_files)
dezren39 commented on Nov 22, 2026
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. dezren39 commented on Nov 22, 2026
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. dezren39 commented on Nov 24, 2026
Second-pass verdict (openchamber lane oc-code-03, queue task 21734, 2026-11-24)
Fresh state: #1111 OPEN, work/assigned, effort/m. The 2026-11-22 lane U close-out above records the extractor half landed (PR #2987), with one routed datum left. That remainder already carries its own route. No new packet is routed from this pass. developing-today-fleet commented on Nov 25, 2026 🤖 Agent note · picked up
- Agent: Felix lane (worker felix)
- Task: Land the next slice of feat(usage-hub): v2 collectors — Modal credits (monthly read) + Bitwarden SM counts #1111 — verify the v2 collector state on current main and implement whichever collector (Modal monthly credits read / Bitwarden SM count-only) is still missing end to end, with fixture/mock tests, verified remotely.
- Expectation: PR against main with
Refs #1111, left unmerged for Felix's review; progress note here on landing.
developing-today-fleet commented on Nov 25, 2026 🤖 Agent note · progress — Bitwarden collector landed, PR open
- Agent: Felix lane (worker felix)
- Landed: the Bitwarden Secrets Manager collector — the repeatable tool behind the count-only reads. PR: feat(usage-hub): Bitwarden SM count-only collector (#1111) #14751 (branch
felix/1111-usage-hub-v2 @ e92b539), left unmerged for review.
src/bitwarden-counts.ts: counts bws secret list / bws project list by array length only — names/keys/values are never parsed, logged, or stored — and records the dated read into the tracker's Bitwarden section in the phrasing the merged bitwardenMetrics extractor parses, so it flows to /quota and the snapshot records.
scripts/collect-bitwarden-counts.ts: strict-argv operator CLI (Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 contract), --print dry-run prints the derived snapshot records; the bws token stays in the caller env, by name only.
test/bitwarden-counts.test.ts: 9 fixture/mock tests incl. the full round trip (read → extraction → snapshot records) and a sentinel no-leak test. No live credential calls.
- Verification: fleet-command run 45526491835,
bun test test/bitwarden-counts.test.ts test/usage.test.ts — Execute step completed success; the run then sat in the known Post Execute hang, so the full log excerpt follows here when it settles. (The direct fleet queue dispatch route returned a 403 from the fleet-forks integration, so the fleet-command workflow route was used.)
- Which collector remains: the Modal monthly console read — by the issue's own design it is a manual dashboard read (no verified API meter), and its extractor half already landed in PR feat(usage-hub): modal used-credits + bitwarden bws count extractors (#1111) #2987; the dated Nov read ($1.21 / $30, 2026-11-16) is on record. Also still outstanding per the thread: the Bitwarden SM plan name/price tracker datum (the chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 item-4 overlap, routed as a fleet read) — the collector does not touch plan/billing, as
bws has no billing surface.
developing-today-fleet commented on Nov 25, 2026 🤖 Agent note · verification log (follow-up to the progress note above)
- Agent: Felix lane (worker felix)
- fleet-command run 45526491835 has now completed; the full log confirms the named tests ran:
- All 9 new
bitwarden count-only collector tests (pass) by name — length-only counting; malformed/non-array output fails closed echoing nothing; runner drives secret list + project list; failing runner = collector error; singular/plural phrasing; impossible date rejected; apply-read → extract → snapshot round trip; sentinel no-leak; fail-closed tracker update.
- Totals across both files (
test/bitwarden-counts.test.ts + test/usage.test.ts): 73 pass / 0 fail — Ran 73 tests across 2 files.
- PR feat(usage-hub): Bitwarden SM count-only collector (#1111) #14751 stands unmerged for review with this verification behind it.
developing-today-fleet commented on Nov 26, 2026 🤖 Triage refresh — task 24964 (oc-code-03), 2026-11-26
The v2 collectors are delivered: PR #2987 (Modal used-credit + Bitwarden count extraction) and PR #14751 (repeatable count-only Bitwarden collector) are both MERGED; #14751 merged 2026-11-25. Existing evidence records dated Modal and Bitwarden readings, /quota extraction, and snapshot-record verification. No collector implementation packet is needed.
Keep #1111 open only for the Bitwarden Secrets Manager plan name/price datum shared with #1055 item 4. bws has no billing surface; the existing #1055 hands item requires a dated billing-page read from an approved signed-in browser route. Task 3000 was cancelled with that exact resume condition. Do not infer the plan or duplicate the access task. Once sourced, update the tracker and resolve the overlapping check in #1055; otherwise this issue remains a tracker, not a blocked code change. developing-today commented on Nov 27, 2026 Related to #8989 (SaaS service epic): this remains the only open item listed by that epic, via its documented external-parent exception. The collector implementation is merged; the outstanding Bitwarden Secrets Manager plan name/price remains shared with #1055. No plan detail is inferred. developing-today commented on Nov 27, 2026 Refs #8989 — SaaS service epic: this remains the only open item listed by that epic, via its documented external-parent exception. Collector implementation is merged; the outstanding Bitwarden Secrets Manager plan name/price remains shared with #1055. No plan detail is inferred. dezren39 commented on Nov 27, 2026 agent-note:v1
- task: 25470
- lane: 1837-C
- state: parked (implementation landed; one browser-route datum remains)
Fresh verification 2026-11-26 (lane 1837-C, queue task 25470):
- Collector implementation is complete and merged — verified this run via gh:
- This concurs with the 2026-11-26 triage refresh (task 24964): dated Modal and Bitwarden readings, /quota extraction, and snapshot-record verification are already recorded in this thread. No collector implementation packet is needed.
- Sole remainder: the Bitwarden Secrets Manager plan name/price datum for the tracker, shared with chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 item 4 (chore(usage-hub): close master-tracker open checks (ChatGPT tier, Go exact %, Claude reset, Wispr, Bitwarden, Muse plan) #1055 verified OPEN this run). Per the 2026-11-22 decision recorded on this issue, that datum is a fleet read sourced through the fleet's own signed-in route to the laptop browser — it is not a Drew ask, and no plan detail is inferred here.
- This lane (sandbox subagent, no live-browser access) cannot perform that signed-in console read, so it does not claim the datum.
Disposition: parking queue task 25470. Ready condition (not a person): the Bitwarden SM plan name/price is read via the fleet signed-in laptop-browser route and recorded on this issue and on #1055 — then this issue can close, as both collectors and their dated readings are already landed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|