Repository navigation
refactor: retire SessionRegistry/Envelope for formal realtime connection authority - #31
Merged
Merged
Conversation
Add architecture glossary (Backend/Hub/Cloud/durable/ingest/projection/ fanout), document structured-mention and transactional bot-delivery invariants, and strip Phase/Task planning residue from product comments.
Make delivery targets membership-validated structured mentions only (body never invents targets). Co-commit bot_message_deliveries with the user/bot message TX via agent_inbox planning and enqueue_in_tx; wake the worker only after commit.
Clients send structured mentions and fuse local intent durability. Desktop collaboration "sent" is driven only by Hub ChatSendAck; local daemon is a post-Ack projection. Host BotInboxDelivery uses a durable SQLite ledger for restart-safe inject. Rename Desktop hub-* modules to cloud-* for client-path naming.
Remove leftover C5.3 plan label from an approval-decision docstring.
Strip remaining Phase/Task/ADR plan labels and superpowers path citations from product comments, keeping only current invariants.
…uthority Retire SessionRegistry/Envelope dual paths on formal /ws/client and /ws/host. Connections, same-device supersede, auth revoke, presence, and host unlink now live on RealtimeConnectionRegistry. UI/social/approval live fanout uses StreamEvent; host commands are durable-outbox only. Delete protocol Envelope, backend session/envelope modules, dead SocialService façade, and agent-runtime Ingestor. WS platform schema documents ClientFrame/ServerFrame.
Rename client Hub* helpers to Cloud*, remove phase/ticket/spec § comments from production sources, and expand xtask lint-naming to block planning markers from re-entering the tree.
Delete completed plan/spec/review work products under docs/superpowers and update long-lived architecture docs for RealtimeConnectionRegistry and ClientFrame/ServerFrame as the current WS contract.
Fix formatting drift that failed the mobile job after planning-marker comment edits.
Apply cargo fmt --all for check-rust, and regenerate flutter_rust_bridge bindings so mobile FRB drift matches cleaned Rust API comments.
Satisfy check-rust -D warnings: remove orphan doc comments above router and drop an unneeded return at end of agent-match helper.
cloud-realtime and im-cloud-bridge grew past hard caps when Hub* identifiers became longer Cloud* names. Update temporary allowlist caps so check:all matches CI; keep split plan notes in the script.
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
RealtimeConnectionRegistrythe sole formal/ws/client·/ws/hostconnection authority (same-device supersede, auth revoke, presence/push grace, host unlink, shutdown).SessionHandle/LegacySessionFrameoutbox (frames were dropped), Envelope UI/social fanout, and live host-command Forward.session/,envelope/, deadSocialServicefaçade,minos-protocol::Envelope+ golden fixtures, agent-runtimeIngestor.StreamEvent; host commands stay durable-outbox only (HostCommandIssued→ ACK/result).xtask lint-namingto block markers; purge temporarydocs/superpowersplans/specs/reviews; update long-lived architecture docs and WS platform schemas (ClientFrame/ServerFrame).Commits (this PR’s new work)
refactor(backend): RealtimeConnectionRegistry as sole WS connection authoritychore: strip planning markers and Hub-to-Cloud namingdocs: purge temporary superpowers artifacts; document formal realtime(Branch also carries earlier IM reliability / naming hygiene commits already on this line.)
Test plan
cargo check -p minos-backend -p minos-protocol -p minos-agent-runtime -p minos-daemoncargo test -p minos-backend --libcargo test -p minos-backend --test e2e --test ws_gateway --test v1_social --test v1_hosts_linkcargo run -p xtask -- gen-backend-platform-contract --checkcheck-rust/ PR checksNotes
store::social(IM persistence) andhttp/v1/social.rs(active agent dispatch / completion orchestration; name is broad, split later by conversations/agents).