GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(meta-exporter): re-home exporter + helium-cdp wedge readiness probe (#5487) by dezren39 · Pull Request #6333 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 5, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes #5487 (queue task 10564).

What

  • Re-homes the meta exporter into the repo at pm-stack/meta-exporter/ — meta-quota-export.mjs copied verbatim from the deployed ~/atlas/meta-quota-export/meta-quota-export.mjs (473 lines, the meta-quota-export: every run fails when no dev.meta.ai tab is open in the laptop browser #5121 tab-owning version) as the base, plus the test file, systemd service/timer units, install-laptop.sh, and README from the out-of-repo source copy. The deployed copy has been refreshed from this repo copy (backup kept alongside).
  • Readiness probe (probeCdpReadiness): before exporting, create a throwaway target, navigate it to a data: URL, and evaluate 1 — every step timeout-raced. CDP answering /json/list is no longer treated as proof a page can load.
  • Bounded recovery: on a wedge, one systemctl --user restart helium-cdp.service, at most once per 15 min (persisted in <out-dir>/.helium-restart.json), recorded as recovery in the export document; then re-probe.
  • Distinct page-not-ready status (exit 8) naming the browser when the renderer is wedged — including the created-tab load timeout, which previously reported no-console-page and blamed the tab. session-expired (exit 3) handling is unchanged and stays distinct.

Tests

  • node --test pm-stack/meta-exporter/meta-quota-export.test.mjs on the laptop: 10/10 pass, including a new fixture-CDP regression test (answers /json/new, websocket never replies to navigate/evaluate → probe reports wedged; healthy fixture → probe passes), the restart-cooldown bound, and the recovery-record document shape.
  • Live verification: the deployed copy ran against the live helium-cdp instance with a scratch out-dir — probe passed and the export completed with status: ok.

🤖 Queue worker (repo-worker-code), lane code-t, task 10564.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
repo-worker-code
feat(meta-exporter): re-home exporter + helium-cdp wedge readiness pr…
adbd6ef
…obe (#5487)
@dezren39
dezren39 requested a review from a team as a code owner November 5, 2026 17:30
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8ee36f8e-eaef-46bf-aee8-40989777f642
Commits

Reviewing files that changed from the base of the PR and between c0b4ac6 and 1fcac56.

Files selected for processing: 7

  • doc/fleet-schedule-registry.md
  • pm-stack/meta-exporter/README.md
  • pm-stack/meta-exporter/install-laptop.sh
  • pm-stack/meta-exporter/meta-quota-export.mjs
  • pm-stack/meta-exporter/meta-quota-export.service
  • pm-stack/meta-exporter/meta-quota-export.test.mjs
  • pm-stack/meta-exporter/meta-quota-export.timer
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T18:02:53.652794Z 1fcac56 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 5, 2026
helium-cdp can wedge with CDP answering but every page load hanging; nothing detects or repairs it #5487
Closed
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 5, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: adbd6efdd6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.mjs
Comment on lines +491 to +492
if (recovery.result === "restarted") {
const secondProbe = await probe(cdpBase);

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Refresh the target list after restarting the browser

When a dev.meta.ai tab exists before recovery, targets contains its pre-restart debugger URL. After a successful restart and second readiness probe, the code still selects that old target and passes its obsolete URL to connectWs, causing the recovered tick to fail instead of exporting quotas. Re-fetch /json/list after successful recovery before selecting or creating the console page.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@developing-today developing-today Bot Nov 5, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1fcac56 (task 10564, lane code-y): run() now re-fetches /json/list after a successful bounded restart and second readiness probe, before selecting or creating the console page; a failed re-fetch fails as cdp-unavailable with the recovery record attached.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.mjs Outdated
Comment on lines +419 to +422
try {
await doRestart();
} catch (e) {
return { action: "restart", unit: HELIUM_UNIT, at, result: "restart-failed", detail: e.message };

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Persist the cooldown before attempting the restart

If the restart rejects or times out, this return bypasses the cooldown-state write, so subsequent exporter invocations can immediately attempt another restart. This is reachable through the existing Meta session keeper, which invokes the exporter again when its latest document is unsuccessful, independently of the exporter timer. Persist the attempt timestamp before calling doRestart() so failed attempts also obey the promised once-per-15-minute bound.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@developing-today developing-today Bot Nov 5, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1fcac56 (task 10564, lane code-y): attemptBoundedRestart now persists the attempt timestamp to .helium-restart.json BEFORE calling the restart, so failed/timed-out attempts obey the 15-minute bound. New regression test 'attemptBoundedRestart: a failed restart still persists the cooldown bound' passes (suite 11/11 on the laptop).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.timer
Description=Run the Meta quota exporter every 15 minutes — code#1301 Phase 1

[Timer]
OnCalendar=*:0/15

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Register the Meta exporter timer in the fleet inventory

This change adds the repository-owned 15-minute timer and an installer that enables it, but a search of doc/fleet-schedule-registry.md finds no meta-quota-export.timer entry in the laptop systemd inventory. Root AGENTS.md requires schedule changes to update that registry in the same pass; without the entry, this recurring exporter remains invisible to the fleet placement audit. Add its Surface 2b record alongside the timer.

AGENTS.md reference: AGENTS.md:L53-L58

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@developing-today developing-today Bot Nov 5, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1fcac56 (task 10564, lane code-y): doc/fleet-schedule-registry.md Surface 2b now carries a meta-quota-export.timer row with the effective spec verified live on the laptop (systemctl --user show: OnCalendar=--* *:00/15:00, activating meta-quota-export.service).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.mjs Outdated
if (!frame?.webSocketDebuggerUrl) return null;
const client = await connectWs(frame.webSocketDebuggerUrl);
try {
const text = await evaluate(client, "document.body ? document.body.innerText : ''");

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound the optional billing-frame read

When the optional billing iframe accepts CDP but never answers Runtime.evaluate, this await never settles, and the catch cannot handle an unresolved promise. The quota and credit payloads have already been successfully parsed before run() calls this helper, but the best-effort PAYG read then prevents any output document from being written before the service's 120-second timeout kills the process. Timeout the iframe read and return null so an unavailable optional balance cannot discard otherwise valid quota measurements.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@developing-today developing-today Bot Nov 5, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1fcac56 (task 10564, lane code-y): the billing-frame read in fetchPaygBalance is now raced with withTimeout(..., 10000); a frame that never answers Runtime.evaluate resolves null, which parsePaygBalance maps to an absent (null) PAYG balance, so the export document is still written.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
developing-today[bot]
fix(meta-exporter): disposition PR #6333 Codex findings — refresh tar…
1fcac56
…gets after restart, persist restart cooldown before attempt, bound billing-frame read, register meta-quota-export.timer in fleet schedule registry (#5487)
@developing-today
developing-today Bot merged commit b4cf60a into main Nov 5, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@developing-today
developing-today Bot deleted the queue/10564-5487-helium-wedge-probe branch November 5, 2026 18:01
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 5, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1fcac56075

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.mjs
return { ok: false, detail: `probe: ${e.message}` };
} finally {
try { client?.close(); } catch { /* best effort */ }
if (target?.id) await close(cdpBase, target.id);

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bound the readiness probe's target cleanup

When CDP accepts target creation but leaves /json/close/<id> unanswered, this cleanup blocks indefinitely because closeTarget() calls fetch() without a timeout. Even if Page.navigate has already timed out, the probe cannot return its failure result, so run() never reaches the bounded restart or writes a failure document. The checked meta-quota-export.service instead kills the invocation after 120 seconds, leaving the previous measurement in place. Bound the cleanup request independently so it cannot prevent the readiness probe from completing.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/meta-exporter/meta-quota-export.mjs
Comment on lines +293 to +295
const frame = targets.find(
(t) => t.type === "iframe" && typeof t.url === "string" && t.url.includes("billing.dev.meta.ai"),
);

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 5, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Associate the PAYG iframe with the selected team

When Helium has console and billing tabs for different Meta teams, this browser-wide lookup can select a billing iframe belonging to a different team than the quota page. run() derives the quota team's ID from the selected page's team_id, but passes only cdpBase to this helper, so a successful document can combine one team's quota and free credits with another team's PAYG balance. The consumer in pm-stack/aggregator/src/quota-gather-map.ts then displays that balance as an ok window. Associate the billing frame with the selected page/team, or report null when that association cannot be established.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Nov 5, 2026
meta-exporter: re-homed meta-quota-export (#6333) restored the pre-#2083 raw-path entry-point check — symlinked invocation silently no-ops with exit 0 (regression of #2350) #6343
Closed
ci(pm-stack/meta-exporter): meta-quota-export.test.mjs (11 tests, added in #6333) run by no workflow — and its documented node --test directory invocation fails on Node 24 #6344
Closed
fix(meta-exporter): #6343 realpathSync entry-point guard + symlink regression tests #6346
Merged
meta-exporter: the #6333 re-home regressed three closed fail-closed fixes — decimal-only parsing (#2789), timestamp range checks (#2460), and integer minor units (#2510) are all gone #6894
Closed
meta-exporter: parseSubscriptionQuota's num() reinterprets empty, hex and scientific strings as real measurements — a drifted '' used value exports as a measured 0% window #2789
Closed
meta-exporter: subscription-quota timestamps are never range-checked — an ms-scale resets_at exports a year-58790 reset as a successful reading, and an out-of-Date-range value throws a bare RangeError misclassified as fetch-failed #2460
Closed
meta-exporter: parseBillingBanner accepts fractional minor units — 1050.5 exports as $10.505 of free credits instead of failing closed on shape drift #2510
Closed
@dezren39
dezren39 restored the queue/10564-5487-helium-wedge-probe branch November 8, 2026 04:07
@dezren39
dezren39 deleted the queue/10564-5487-helium-wedge-probe branch November 8, 2026 13:27
This was referenced Nov 9, 2026
meta-exporter: restore the #2789 plain-decimal gate lost in the #6333 re-home (#3005 grammar drift) #7880
Closed
fix(aggregator): clinepass percent gate takes plain decimals only; state the #3005 measurement grammar (#3006) #7881
Merged
Phase 3 (audit) of #3005 — closing inventory audit for the measurement grammar + contract statement #3006
Closed
Design: a measurement is a plain decimal — one number grammar for every measurement string #3005
Closed
This was referenced Nov 9, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097
Closed
fix(meta-exporter): restore fail-closed fixes regressed by #6333 re-home (#6894) #8698
Merged
dezren39 added a commit that referenced this pull request Nov 11, 2026
@dezren39
Merge pull request #8698 from developing-today/queue/11292-6894-meta-…
07c2b18
…exporter-restore

fix(meta-exporter): restore fail-closed fixes regressed by #6333 re-home (#6894)
@dezren39 dezren39 mentioned this pull request Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@developing-today developing-today[bot] developing-today[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

helium-cdp can wedge with CDP answering but every page load hanging; nothing detects or repairs it

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.