Repository navigation
Description
Problem
The laptop's meta-quota-export.service (user unit, ~15-min timer cadence) fails on every run whenever no dev.meta.ai tab happens to be open in the laptop's browser.
Verified 2026-11-03 — every recent run today failed identically, exit status 5:
- 13:19:56 CST — failed
- 13:30:10 CST — failed
- 13:45:06 CST — failed
- 14:00:01 CST — failed
Journal line each time:
meta-quota-export: no-console-page: browser is up but no dev.meta.ai tab is open
meta-quota-export.service: Main process exited, code=exited, status=5
Why
The exporter (~/atlas/meta-quota-export/meta-quota-export.mjs) is a CDP scraper (port 19222) that reads Meta quota data from an already-open dev.meta.ai tab. It never opens the tab itself. On an unattended laptop the export is therefore effectively always down, and the unit pollutes the failed-units baseline continuously, which masks real failures.
The exporter writes only local files (latest.json, history.jsonl). It has no Supabase involvement — that was checked during the 2026-11-03 pm-dispatch investigation (see #5120 for that thread); this failure is unrelated.
Ask
Make the exporter self-sufficient. Two candidate directions:
- Own the tab: create/attach its own dev.meta.ai tab via the CDP targets API at run start and close it afterwards, so the export works unattended.
- Degrade quietly: when no console tab exists, exit successfully with a logged skip reason, so a missing human-kept tab stops reading as a service failure.
Before choosing, check which behavior the quota board's consumers actually need — fresh data on a schedule (favors 1) vs. best-effort data whenever a human happens to be at the machine (favors 2).
Related: exporter originally landed under #1301 Phase 1.
Acceptance criteria
- Reproduction confirmed: a meta-quota-export run with no dev.meta.ai tab open currently fails; after the fix it either succeeds via a supported path or exits with a clear, actionable skip/no-op result instead of a failure
- A scheduled run no longer reports failure solely because no dev.meta.ai tab is open
Activity
dezren39 commentedon Nov 3, 2026
Intake review
Fleet monitor intake pass (2026-11-03T20:55:07Z): verified OPEN, no
held/user/ownedlabels.Related (title-search of merged PRs):
Notes: No merged PR explicitly resolves this issue; it reads as still live. Acceptance criteria appended to the body. Priority: priority/high — a recurring job fails every run under a normal condition. Effort: effort/s.
Risks / suggested approach: Work from the evidence in the body first; reproduce at current main before changing anything, and route the fix through the queue if it grows past the effort class above.
dezren39 commentedon Nov 4, 2026
🤖 Agent note · triage complete
cdp-unavailable(the helium-cdp browser service was down then; it has run since 06:16:45 CST), then 06:30 CST failing exit 5no-console-page— the issue's exact failure; the unit is still failed since 06:30:08 CST. The exporter (~/atlas/meta-quota-export/meta-quota-export.mjs) only reads/json/list(lines 275/306) and throwsno-console-pageat line 314 — it never creates a target. The browser is a dedicated managed service (helium-cdp.service, port 19222), not a human's interactive browser, so owning a tab is feasible. Consumers need fresh data on schedule: this export feeds the provider-quota registry for the Meta pool, the only door sessions may use into the Muse High Usage plan — direction 2 (degrade quietly) would leave that pool permanently unmeasured on an unattended laptop.cdp-unavailablestays a real failure. Issue meta-quota-export: every run fails when no dev.meta.ai tab is open in the laptop browser #5121 stays open for that fix.17 remaining items
dezren39 commentedon Nov 14, 2026
Agent note — fix re-verified working; verification still ends at the dev.meta.ai 401 in the CDP profile (task 9492, lane any-a, 2026-11-14)
Fresh verification this shift, following Drew's 2026-11-12 decisions-page answer on the re-login question ("already handled the new provider ensures constant login", ledger item devmeta-relogin-5121, answered):
Action: task 9492 parked 24h. Resume condition unchanged and now the only remaining step: a valid dev.meta.ai session in the helium CDP profile on 19222 → manual exporter run exits 0 with latest.json status ok → one 15-min timer tick ok → close #5121. The code fix itself needs no further work.
dezren39 commentedon Nov 15, 2026
🤖 Agent note · picked up (resume)
dezren39 commentedon Nov 15, 2026
🤖 Agent note · done — #5121 fixed and verified end-to-end (task 9492, lane any-a, 2026-11-15)
The dev.meta.ai session in the helium CDP profile is valid again — Drew's 2026-11-12 ledger answer (devmeta-relogin-5121: the new provider ensures constant login) now holds live in the profile the exporter uses. The #5121 code fix itself (exporter creates, drives, and closes its own dev.meta.ai tab; cdp-unavailable stays exit 4) was already in place at ~/atlas/meta-quota-export/meta-quota-export.mjs (unversioned home, as flagged at triage) and needed no change this shift.
Fresh evidence this shift:
All acceptance criteria met. Closing #5121; task 9492 completes as fixed (no PR — the change lives in the unversioned laptop home, recorded here and in the earlier notes).