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 — queue-transport-alert: Cloudflare Worker outage alert, deployed from the flake by dezren39 · Pull Request #12009 · developing-today/code

Conversation

@dezren39

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

Uh oh!

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

Copy link
Copy Markdown
Member

Refs #6369

Before: when the repo-queue broker went unreachable (laptop off, or tailscaled stopped as on 2026-11-18), every lane quietly exited at its health gate and nothing alerted. The local probe from #12006 can't see the laptop itself being off, and nothing was running it.

After: a Cloudflare Worker, queue-transport-alert, probes https://queue-broker.security.cab/healthz through Cloudflare Access every 10 minutes. Two failed probes in a row file one Queue transport incident: issue here (or comment on an open one); the first healthy probe after that comments once and closes the issue if the Worker filed it. It is built and deployed from the flake: nix run .#queue-transport-alert-deploy.

The decision logic is a port of scripts/fleet/queue-transport-alert/check_transport.py with the same contract and incident title, so the two dedupe onto one issue.

How

  • pkgs/queue-transport-alert/worker/: plain ESM Worker (no npm deps), state in one SQLite-backed Durable Object, GET /status for a read-only look. 15 node:test contract tests mirror the Python suite, and they run in the package's checkPhase.
  • package.nix → .#queueTransportAlert; deploy.nix → .#queueTransportAlertDeploy / app queue-transport-alert-deploy, following cf-container-hello: stage the package, wrangler deploy, then wrangler secret bulk on stdin with ACCESS_CLIENT_ID, ACCESS_CLIENT_SECRET and GITHUB_TOKEN read from Bitwarden by name. No secret touches disk or logs.
  • Registered in the deploy registry (services.nix, class cloudflare) and the deploy-list check.

Generated by Claude Code


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
@claude
queue-transport-alert: Cloudflare Worker alert, deployed from the flake
0037785
Probes the broker's public route (queue-broker.security.cab/healthz
through Cloudflare Access) every 10 minutes from a Worker cron, so a
broker outage is seen even when the laptop or its Tailscale is down.
Two failed probes file one GitHub incident (or comment on an open
one); recovery comments once and closes a Worker-filed incident. Same
contract and incident title as check_transport.py.

Packaged as .#queueTransportAlert with tests in checkPhase; deployed
by .#queue-transport-alert-deploy, which runs wrangler deploy from the
package and sets the Worker's secrets from Bitwarden by name. Added to
the deploy registry as queue-transport-alert.

Refs #6369

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dezren39
dezren39 requested a review from a team as a code owner November 19, 2026 03:39
@chatgpt-codex-connector

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

Uh oh!

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T03:43:41.584505Z 0037785 PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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.

@dezren39
dezren39 merged commit 7db1ab4 into main Nov 19, 2026
1 check failed

Uh oh!

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

@dezren39
dezren39 deleted the claude/queue-transport-alert-worker branch November 19, 2026 03:41
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 19, 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: 003778558d

ℹ️ 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 pkgs/queue-transport-alert/worker/wrangler.jsonc
"main": "src/index.js",
"compatibility_date": "2026-10-25",
"observability": { "enabled": true },
"triggers": { "crons": ["*/10 * * * *"] },

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 19, 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 Worker cron in the fleet schedule registry

Deploying this Worker creates a ten-minute cron schedule, but the commit does not update doc/fleet-schedule-registry.md; searching that registry for the Worker name, transport alert, and #6369 finds no entry. Add this Cloudflare schedule to the registry in the same change so the monitor is visible to fleet placement and schedule reviews, as required by AGENTS.md.

AGENTS.md reference: AGENTS.md:L59-L64

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pkgs/queue-transport-alert/worker/src/github.js
Comment on lines +37 to +38
const issue = await call("POST", `/repos/${repo}/issues`, { title, body, labels: INCIDENT_LABELS });
return issue.number;

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 19, 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 Record the deliberate queue exception for outage incidents

When an outage files a new incident, this path returns without enqueueing a triage packet or recording why the issue is deliberately unqueued; neither runPass nor incidentBody supplies either action. These incidents consequently remain outside worker dispatch until reconciliation or manual intervention. Since the broker may be unavailable precisely when the issue is filed, explicitly document that queue exception in the filing text, as permitted by AGENTS.md, rather than making alerting depend on successful enqueueing.

AGENTS.md reference: AGENTS.md:L68-L74

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pkgs/queue-transport-alert/worker/deploy.sh
Comment on lines +7 to +11
if [ -z "${BWS_ACCESS_TOKEN:-}" ]; then
# shellcheck source=/dev/null
source "${repo_root}/lib/bitwarden-env.sh" >/dev/null
fi
CLOUDFLARE_ACCOUNT_ID=$(sops decrypt --extract '["cloudflare_account_id"]' "${repo_root}/secrets/sops/common/cloudflare.yaml")

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 19, 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 Validate deploy arguments before loading credentials

Invoking this entrypoint with an unknown flag or stray positional loads the Bitwarden environment and decrypts Cloudflare configuration before deploy.mjs validates arguments. The sourced helper can execute bw login or bw unlock, and a credential or dependency failure can prevent the required usage error from being emitted at all. Validate the complete argument list at the outer deploy entrypoint before Git or credential-loading subprocesses, rather than relying solely on the downstream JavaScript parser; AGENTS.md explicitly requires this ordering for operator scripts.

AGENTS.md reference: AGENTS.md:L47-L51

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 19, 2026
queue-transport-alert: comment on recovery, never close the incident #12010
Merged
queue-transport-alert: register the cron, check deploy args first #12013
Merged
fleet(queue): alert when the repo-queue broker transport is down — lanes currently starve silently at the Step 0 gate #6369
Closed
@developing-today-fleet developing-today-fleet Bot added the audit:complete PR fully implemented spawning issue label Nov 27, 2026
This was referenced Nov 27, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Platform: retire the queue-transport-alert Worker after the PM console fold (#13503 slice 2) #16242
Closed
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

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.

Uh oh!

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

2 participants

@dezren39 @claude
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.