GeezerVison is showing github.com — Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page · Issue #1204 · developing-today/code
Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204DescriptionPart of epic #1184 (PM stack coherence review, 2026-10-26).
Quota/SaaS data is regex-scraped Markdown prose, with fail-soft shells hiding breakage. Evidence: quota-extract.ts and saas-extract.ts match targeted patterns over quota-view.md and the provider-quota registry, and a pool whose pattern stops matching renders with its identity and a 'no current read' note. There is no extractor-health signal, so a renamed heading silently zeroes a metric and looks like 'nothing used'.
Acceptance:
- Deliberately breaking a fixture pattern produces a visible extraction-gap flag, not a shell card.
- /api/quota.json exposes per-extractor match/miss diagnostics per pool/service.
- Existing extractor tests gain a missed-pattern case per pool.
Acceptance criteria
- Deliberately breaking a fixture pattern produces a visible extraction-gap flag, not a fail-soft shell card.
- /api/quota.json exposes per-extractor match/miss diagnostics per pool/service.
- Existing extractor tests gain a missed-pattern case for each pool.
Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 28, 2026 Intake review — fleet monitor
Liveness: Verified still live at intake (2026-10-28): issue is open and unheld, and a merged-PR search for #1204 returned only unrelated text matches (no PR title or fix reference resolves this item). Part of epic #1184 (PM stack coherence review, 2026-10-26); sibling batch #1210–#1222 was enriched in the previous monitor run.
Notes: Pairs with #1205 (writer health): extractor health is the read-side twin. A missed pattern currently looks identical to 'nothing used', which is the dangerous failure mode for quota decisions.
Risks: Scope creep across the pm-stack pages is the main risk for this batch; the acceptance criteria above (converted from the issue's original Acceptance list) bound the work. CI on the aggregator's render/derive tests is the verification surface.
Suggested approach: Take the acceptance criteria in order; keep the JSON twins in lockstep with the HTML pages, per the batch convention.
Labels normalised this pass: source/human (coherence-review filer), effort/m, meta/enriched; existing kind/priority/status/app labels kept. dezren39 commented on Nov 12, 2026 🤖 Agent note · blocked / escalated
- Agent: queue worker (repo-worker-code), lane
code-i (OpenChamber scheduled lane)
- Session / ID: task 13367 (queue repo-health-code-pilot)
- Found via: OpenChamber scheduled lane claim
- Task: Shepherd PR feat(aggregator): report quota extractor health (#1204) #3957 for issue Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204 / batch Unowned PR batch from branch disposition (2026-11-07) #7297.
- Fresh state: PR feat(aggregator): report quota extractor health (#1204) #3957 is OPEN, non-draft, head
71480e97b8fe20e8fc8d69569f52959606b2eecf, authored by and assigned to dezren39; the PR currently has only parked lifecycle labels. Linked issue Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204 is OPEN. Parent Unowned PR batch from branch disposition (2026-11-07) #7297 is OPEN and marked user/escalated, status/blocked, queue/blocked.
- Decision: The scheduled-lane runbook says never touch a Drew-owned PR. I made no PR comments, labels, edits, merge, or close, and opened no competing PR. This lane blocks pending Drew’s disposition or explicit release/authorization.
- Links: PR feat(aggregator): report quota extractor health (#1204) #3957 · issue Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204 · batch issue Unowned PR batch from branch disposition (2026-11-07) #7297
developing-today commented on Nov 12, 2026 agent-note:v1
state: picked_up
task: 13996
lane: code-d
worker: repo-worker-code
Picked up task 13996 (small_fix, salvage PR #3957 for issue #1204) by lane code-d.
Fresh revalidation (2026-11-12) — the packet premise is stale in two ways:
- The "owner decision needed / dezren39-authored PR must not be touched" blocker rests on the authorship interpretation Drew reversed on 2026-11-11 (dezren39 is the fleet working identity; a PR is held only by held / user/owned / do-not-merge / do-not-auto-edit labels or Drew's own hold comment — none present on issue Usage extraction: report extractor health (patterns matched/missed per pool/service) on the quota page #1204 or PR feat(aggregator): report quota extractor health (#1204) #3957). The dropped-thread catcher already validated this on 2026-11-10 (comment 6756594935). I have removed the stale status/blocked + queue/blocked + user/escalated labels and synced to queue/claimed + status/in-progress.
- The rebase this task asked for has already been done: task 13367 (lane any-d, 2026-11-12) rebased PR feat(aggregator): report quota extractor health (#1204) #3957 onto current main with conflicts resolved by intent and parked it for CI. PR feat(aggregator): report quota extractor health (#1204) #3957 is now mergeable at head 71480e9, 8 files, +244/-13, all in pm-stack/aggregator.
So the remaining work for task 13996 is verification and landing, not a second salvage branch: confirm the rebased diff carries the extractor-health feature and missed-pattern tests, run the aggregator tests at the PR head, disposition any Codex findings, and merge PR #3957 under the standing criteria — or park with the concrete CI state if it is genuinely pending. developing-today commented on Nov 12, 2026 agent-note:v1
state: done
task: 13996
lane: code-d
worker: repo-worker-code
Task 13996 complete — outcome: fixed_merged. PR #3957 is MERGED (merge commit a46828b, 2026-11-12T22:04:33Z); closing issue #1204.
How the acceptance was met:
- Owner decision (recorded here per the packet): rebase PR feat(aggregator): report quota extractor health (#1204) #3957 in place. The alternative (a fresh superseding branch) became unnecessary when task 13367 (lane any-d) completed that rebase onto current main on 2026-11-12, and the old "dezren39-authored PR needs an owner decision" blocker was already invalidated by Drew's 2026-11-11 ruling and the 2026-11-10 dropped-thread validation (comment 6756594935). No competing PR was opened; PR feat(aggregator): report quota extractor health (#1204) #3957 is the canonical vehicle, so no duplicate-close was needed.
- The merged diff (8 files, +244/-13, pm-stack/aggregator) adds extractionHealth reporting to /api/quota.json and the quota page gap flag, with missed-pattern coverage: "instrumented SaaS extractors report null when their patterns match no values", "extractor-null keeps parsed service evidence while marking the gap", "quota and service cards show extraction gaps without changing their state", "service extraction health reports missing sections and intentional uninstrumented services".
- Verification at head 71480e9 (lane code-d, laptop): bun test test/quota.test.ts test/usage.test.ts test/quota-contract.test.ts — pass (quota-contract needs PM_AGG_FRESHNESS_PORT pointed elsewhere on the laptop because the live aggregator already holds 127.0.0.1:4871; with that, 10/10). test/actions.test.ts — 29/29 pass.
- Codex gate: all four P2 findings on PR feat(aggregator): report quota extractor health (#1204) #3957 are dispositioned — the three saas-extract findings were fixed in the rebase (replies on their threads), and the actions.ts strict-date finding was fixed by head commit 71480e9 restoring parseIsoDate + the aggregator(actions): validateNewAction accepts impossible calendar dates — a snooze until 2026-02-30 is stored verbatim and Date.parse reads it as Mar 2, so the card stays snoozed ~2 extra days #3393 test (reply 4556937836).
Labels synced to terminal on the issue and the PR. dezren39 commented on Nov 13, 2026 Unblocked 2026-11-13 under Drew's order "fix all fixable and reblocked" (set decisions-2026-11-13-blocked-review): queue task(s) 13367 released to the queue. The block rested on the premise that dezren39-authored work is Drew-owned — revoked by Drew's 2026-11-11 authorship ruling (dezren39 is the fleet's working identity; its issues/PRs are fleet work product, not a hold). Verified live at release: issue open, no Drew-hold labels (user/owned, held, do-not-auto-edit).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|