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
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.
)
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
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:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|