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): hosted five-leg freshness comparison engine (#15001) by developing-today-fleet[bot] · Pull Request #15130 · developing-today/code

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 25, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Refs #15001

Slice 1 of #15001 — the monitoring half of the #14964 backup-plane design (design doc: doc/2026-11-25_design_backup-plane-hosted-recovery/main.md, merged via PR #15005).

What lands

  • infra/github-backup/bin/hosted_freshness.py — a hosted comparison engine for all five legs: source GitHub refs, plain mirror refs, R2 bundles, live rehost advertisements, D1 export metadata. The reference point is the source repos' own GitHub refs; laptop-local mirror state is never consulted (the deliberate difference from the laptop-era freshness_probe.py, which judges copies against the local mirror's HEAD and therefore cannot notice the laptop dying).
  • Each leg carries an explicit per-leg SLO (SLO_HOURS). Every leg is classified per repo as fresh / stale / missing / partial / failed — a copy that exists but is behind is stale, no copy at all is missing, a check that could not run is failed and never read as fresh — with observed heads/timestamps and the run identity as evidence in a machine-readable JSON report (exit 0 only when every leg is fresh).
  • Collectors sit behind an injectable fetcher seam; git legs use gh api and the rehost Worker's smart-HTTP advertisement, R2 uses the same rclone surface and bundle-name parsing as the existing probe, D1 reuses fleet-queue-backup's D1Client with environment-only credentials.
  • .github/workflows/github-backup-hosted-freshness.yml — workflow_dispatch only; runs the probe on a hosted runner and publishes the report as an artifact. No cron schedule yet, deliberately: the schedule and its doc/fleet-schedule-registry.md entry land with the alerting slice — a scheduled probe with no alerting behind it would be a new silent failure domain, and the design forbids live schedule changes before implementation. Legs whose secrets are not yet provisioned report failed with the reason in the report.
  • infra/github-backup/tests/test_hosted_freshness.py — hermetic classification-matrix tests (fake fetchers; no network). The file is picked up automatically by the existing github-backup-tests workflow glob.

Verification (remote, fleet-command run 45625961462 on this head)

  • test_hosted_freshness.py: Ran 20 tests, OK (HOSTED_FRESHNESS_EXIT=0; named tests incl. all-fresh verdict, rollup matrix, source-failure isolation read from the log).
  • test_freshness_probe.py: PROBE_EXIT=0. test_freshness_readout.py: READOUT_EXIT=0.

What remains on #15001 after this slice

  • Alert wiring: deduplicated/updateable GitHub alert issues driven by this report, resolving on successful re-verification.
  • The external missed-run watchdog (failure domain outside GitHub Actions) and its tested missed-run signal.
  • The cron schedule + registry entry, with the alerting slice.
  • Credential provisioning for the hosted workflow (CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID / R2 keys) so all five legs read live data on dispatch.

Left unmerged for Felix's review.

{
  "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-25T13:45:26Z",
    "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": "8826be7a94faf495a143e45eab53db6f11c96eab"
    },
    "auth_subject": "felix",
    "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
felix
feat(github-backup): hosted five-leg freshness comparison engine (#15001
56f3039
)

Slice 1 of #15001 (monitoring half of the #14964 backup-plane design):
hosted_freshness.py compares source GitHub refs, plain mirror refs,
R2 bundles, live rehost advertisements, and D1 export metadata
against explicit per-leg SLOs, classifying every leg per repo as
fresh/stale/missing/partial/failed with observed heads/timestamps
and run identity in a machine-readable report. The reference point
is the source repos' own GitHub refs — laptop-local mirror state is
never consulted, unlike the laptop-era freshness_probe.py it sits
beside. Collectors are injectable; the classification matrix is
hermetically tested (tests/test_hosted_freshness.py).

A workflow_dispatch-only workflow makes the probe runnable hosted
and publishes the report as an artifact. No cron schedule yet: the
schedule and its fleet-schedule-registry entry land with the
alerting slice, per the design's no-live-schedule-before-alerting
rule. Alert dedup/update and the external missed-run watchdog
remain follow-up slices on #15001.

Refs #15001
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: c14945e0-7885-4034-81da-4423306b9a3d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

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

@developing-today-fleet developing-today-fleet Bot mentioned this pull request Nov 25, 2026
feature: independently monitor backup freshness and missed hosted runs #15001
Closed
@developing-today-fleet
developing-today-fleet Bot merged commit 9b4ce54 into main Nov 25, 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 felix/15001-hosted-freshness branch November 25, 2026 13:46
This was referenced Nov 25, 2026
feat(github-backup): deduplicated GitHub alerts for the hosted freshness report (#15001 slice 2) #15159
Merged
feat(github-backup): missed-run watchdog for the hosted freshness probe (#15001 slice 3) #15410
Merged
design: de-single-point the backup plane's laptop leg (mirrors, R2 bundles, rehost publisher, freshness probe, queue export) #14964
Closed
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.

0 participants

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.