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(github-backup): missed-run watchdog for the hosted freshness probe (#15001 slice 3) by dezren39 · Pull Request #15410 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 26, 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 #15001 (slice 3 of 3 planned slices; slices 1-2 merged as PRs #15130 and #15159).

What

The probe could alert on stale copies but a probe that silently stops running filed nothing. This slice gives the probe a missed-run watchdog whose evidence lives outside the probe's failure domain:

  • Heartbeat: the probe workflow now publishes its report after every run to R2 (github-backup/hosted-freshness/heartbeat.json in the probe bucket, Cloudflare's domain) and gains its daily cron schedule (17 5 * * *) plus the slice-2 alert application step (hosted_alerts.py --apply).
  • infra/github-backup/bin/hosted_watchdog.py: judges only the R2 heartbeat against the probe's 26h cadence SLO — never the probe workflow's job status, so a dropped schedule, a disabled workflow, or runs dying before the report step are all caught from the same missing evidence. Verdicts: ok / missed (the distinct probe-missed signal) / failed (the watchdog's own read could not run — never read as a miss).
  • Alerting: one deduplicated probe-missed alert under the slice-2 marker scheme (leg probe, repo -): create on first miss, noop on unchanged evidence, update when the last-seen run changes, resolve on a fresh heartbeat.
  • Watchdog schedule: .github/workflows/github-backup-hosted-watchdog.yml, every 6h at :23 UTC; the job fails on any non-ok verdict.
  • Registry: both schedules recorded in doc/fleet-schedule-registry.md (Surface 4) in this same change, per acceptance criterion 4.

Verification (remote dispatch only)

  • Run 45768766750 (fleet-command, trio: watchdog + alerts + freshness suites) on pre-fix head 77fcf96: failure — isolated by reasoning to the new watchdog suite (a last_run_id: body line shadowed the dedup evidence scan); fixed in 72fc638. CI logs were not read (held class); the failure was isolated by the narrow re-run below.
  • Run 45769778021 (fleet-command, python3 infra/github-backup/tests/test_hosted_watchdog.py) on head 72fc638: success — 16 hermetic tests covering ok/missed/failed judgement, create/noop/update/resolve planning, and read-failure behaviour.
  • Sibling suites are untouched by this PR and were green on main.

Recorded residual (design doc, #14964)

The alert itself is a GitHub issue, so a GitHub-wide outage remains a common-mode blind spot for the filing path — the design names this explicitly. What this slice removes is the probe-specific blind spot: the judged evidence (R2 heartbeat) survives GitHub, and the watchdog module is host-portable, so the same check can run from any surface that can read R2. Live-run evidence (first scheduled probe + watchdog cycles) accrues after merge; #15001 stays open for that confirmation.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-26T06:54:28Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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
dezren39 added 2 commits November 26, 2026 06:31
@dezren39
feat(github-backup): missed-run watchdog for the hosted freshness pro…
77fcf96
…be (#15001 slice 3)

The probe's runs now leave evidence outside the probe's own failure
domain: the probe workflow publishes its report as a heartbeat object
in R2 after every run, gains its daily cron schedule, and applies the
slice-2 deduplicated alerts. hosted_watchdog.py judges only that
heartbeat against the probe's 26h cadence SLO — a missing or stale
heartbeat is the distinct probe-missed signal (marker-deduplicated
alert under leg 'probe', resolved by a fresh heartbeat); a heartbeat
read that cannot run is 'failed' and never read as a miss. The
watchdog runs on its own 6-hourly schedule; both schedules are
registered in doc/fleet-schedule-registry.md in this same change.
@dezren39
fix(github-backup): name watchdog alert's last-run line so the dedup …
72fc638
…scan reads the evidence line (#15001 slice 3)

hosted_alerts.RUN_RE takes the first 'run_id: ' match in an alert
body; a '- last_run_id: None' line shadows the recorded evidence
line ('run_id: none') for a never-ran probe, so an unchanged
never-ran miss would re-update instead of noop.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

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 36 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: 4b505130-85f6-4c67-a4ac-a8ad18532fae
Commits

Reviewing files that changed from the base of the PR and between e0d5d02 and 72fc638.

Files selected for processing: 5

  • .github/workflows/github-backup-hosted-freshness.yml
  • .github/workflows/github-backup-hosted-watchdog.yml
  • doc/fleet-schedule-registry.md
  • infra/github-backup/bin/hosted_watchdog.py
  • infra/github-backup/tests/test_hosted_watchdog.py
  • 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 mentioned this pull request Nov 26, 2026
feature: independently monitor backup freshness and missed hosted runs #15001
Closed
@developing-today-fleet
developing-today-fleet Bot merged commit 17d49d4 into main Nov 26, 2026
2 checks passed

Uh oh!

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

@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/15001-missed-run-watchdog branch November 26, 2026 07:23
@dezren39 dezren39 mentioned this pull request Nov 26, 2026
design: de-single-point the backup plane's laptop leg (mirrors, R2 bundles, rehost publisher, freshness probe, queue export) #14964
Closed
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

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.