feat(channels): add audited owner recovery#2948
Draft
Jreevo wants to merge 3 commits into
Draft
Conversation
Co-authored-by: Jreevo <jerry.ytp@gmail.com> Signed-off-by: Jreevo <jerry.ytp@gmail.com>
Co-authored-by: Jreevo <jerry.ytp@gmail.com> Signed-off-by: Jreevo <jerry.ytp@gmail.com>
Co-authored-by: Jreevo <jerry.ytp@gmail.com> Signed-off-by: Jreevo <jerry.ytp@gmail.com>
Author
|
Rolling-deployment remediation is pushed at exact head What changed:
Exact-head validation:
The PR remains draft. Exact-head GitHub CI and Docker runs are currently |
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
This draft implements a reviewable proposal for #2928 without widening ordinary channel-role management:
9038recovery command across the SDK, CLI, relay, Tauri, and Desktopselfarchive consent naming the same existing human member as replacement9005and NIP-09 kind5Maintainer security decision required
This is intentionally a draft proposal, not an assertion that the authorization policy is approved.
Proposed predicate:
all_current_human_owners_self_archived_for_target_v1Every current human owner must already have a durable archive row with:
consent_path = selfactor = ownerreplaced_by = nominated targetAny active human channel admin or owner/admin agent blocks recovery. The signer must independently be the active, known human community owner.
This does not recover a lost or deleted key that never recorded self-consent, so it does not solve the incident that motivated #2928. Maintainers must approve, revise, or reject this predicate and the pre-storage command architecture before the PR can be considered merge-ready.
Data and audit guarantees
member|guest -> owneronlyValidation
Exact head:
c0d444d3a88370f60d5147aaba4f1b893d877accPassed on that exact head:
cargo fmt --all -- --checkand workspace Clippy with warnings deniedjust test-unit: buzz-core, buzz-auth, buzz-db lint/unit, conformance, and push gateway9005and kind5immutability, visibility, and persistenceschema/schema.sqlbootstrap and embedded relay migration bootstrapKnown validation and governance blockers:
just cistops at the unchanged Desktop file-size guard:desktop/src-tauri/src/managed_agents/runtime.rsis reported as 2,220 lines against a 2,216 limit. This branch does not modify that file. All preceding pinned formatting, workspace Clippy, and Biome checks passed; later CI recipes were run individually and passed.api::mesh_demo::tests::demo_join_forwarded_arm_round_trips_echo504 race. That exact test passes in isolation, and the full touched-package suite passes when only that separately validated test is skipped.action_requiredfor the fork head and have not executed. A maintainer must authorize them.The PR remains draft. No merge or deployment is authorized.
Refs #2928.