Repository navigation
fix(admin): audit and repair historical channel discovery - #10040
Draft
bradseiler wants to merge 1 commit into
Draft
bradseiler wants to merge 1 commit into
bradseiler wants to merge 1 commit into
Conversation
Co-authored-by: Harrington <91868d0cc0b8144564e350ce0a9e46447f654ad3fe93b23e39fe71314c911781> Signed-off-by: Brad Seiler <seiler@squareup.com>
bradseiler
force-pushed
the
harrington/historical-channel-discovery
branch
from
December 1, 2026 21:35
7f9c393 to
07bf586
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add explicit, bounded operator modes for historical relay-signed channel discovery:
buzz-admin reconcile-channels --checkreports missing metadata, admins and members for an expected relay identity without writing.--repair-missingcreates only missing coordinates from canonical state, rechecking behind the existing publisher locks. Healthy coordinates and intentional membership removals are preserved.Related issue
Related discovery work: #9805.
Testing
Agent runs on the revised patch tree:
--all-targets -- -D warnings), formatting, discovery-convention guard, shell syntax and file-size checks passed.Full repository
just ci, fulljust test, full fallback unit suite and native-client UX were not run. No production writes/deployments or production-scale performance measurement.Rollout and operator verification
The new modes require a newly built admin binary, or an updated relay image where operators execute buzz-admin inside that container. There is no automatic repair feature flag.
--check --relay-pubkey <verified advertised relay key>across the configured community, following every cursor. Retain reports; exit 6 identifies incomplete pages, while other nonzero exits mean inventory failure.--repair-missing --channel <id>for approved affected channels. Expectmissing_after: [].Repairs are ordinary signed discovery events, committed per coordinate and safe to retry. Reverting the tool does not undo repaired events. An explicitly overridden wrong identity is not repaired by rollback and requires separate investigation/cleanup.
Review and human gate
Independent review cleared the patch. Required GitHub CI and explicit human confirmation remain pending. Human steps are in
docs/operator-channel-discovery.md: use a disposable loopback relay/database and run the opt-in synthetic journey. It deliberately deletes discovery records for a fresh synthetic DM; expect its PASS result for historical recovery, bidirectional messages and healthy reopen/repair no writes.Boundaries
Stored-authorship consistency is not independent proof of relay ownership. Presence checks do not certify tag freshness, signatures or signing-key rotation. Repair never restores absent or removed membership rows. Scheduling, alert routing and production execution remain explicit operator responsibilities.