Skip to content

github-backup: mirror contract remainder (#3238, #3270, #3240, #3283) - #7723

Merged
dezren39 merged 1 commit into
mainfrom
queue/12622-3282-mirror-contract
Nov 8, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/12622-3282-mirror-contract

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3238, closes #3270, closes #3240, closes #3283 — the four open children of design #3282 ("a mirror is what it can prove"), driven by queue task 12622. The other phase children (#3233, #3250, #3219, #3257, #3229) are already closed, so this PR completes the design's acceptance: no surface of the system can report coverage, success, or health the underlying mirrors, records, or inventory do not support.

#3238 — validity is resolvability (design rule 1–2)

#3270 — a missing mirror reaches the alarm (design rule 5)

#3240 — state written atomically, loaded tolerantly, only through ghb_common (design rule 6)

  • New helpers in ghb_common: atomic_write_text (temp file in the same directory + fsync + os.replace + last-good copy), save_json, load_json_tolerant (torn file → last-good copy, else empty, always with a loud named problem), and state_lock (shared flock).
  • load_plan / load_state route through the tolerant loader — a torn plan.json/state.json no longer wedges fetch, drainer, clone pass, manifest, or reconcile at startup.
  • All generated-state writers migrated: fetch + drain state.json saves, reconcile plan.json, manifest MANIFEST.json, FAMILIES.md, and the dated reconcile report. Both state.json writers hold state_lock across their whole load→modify→save cycle, closing the lost-update window.

#3283 — closing audit

Tests

🤖 Queue worker lane code-g, task 12622.


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

@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 14:12
@coderabbitai

coderabbitai Bot commented Nov 8, 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: 490508f8-48c1-4ae0-8b7a-8a21ebca83a4

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment