Repository navigation
Split BusReader and HistoricalBusReader out of MessageBus for read-only CLI verbs - #5285
Merged
Merged
Conversation
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
Core cold-start Cut 10a: decouples read-only bus operations from
MessageBus/OwnerPublishersocli_verbs/threads.py,cli_verbs/inbox.py, andcli_verbs/history.pystop importing the publication, coordination, and maintenance-barrier stacks.Changes
src/agent_comms/messaging/published_bus.py: factored read-only catalog reads (_channels,require_channel,channel_in,channel_declarations) intoBusCatalog(BusResources);PublishedBus[Writes](BusCatalog)inherits it with zero duplication.src/agent_comms/messaging/bus_reader.py: moved read-only bus access (BusReader(BusCatalog, BusReadSource),UnreadCut,_CachedPendingProjection) out ofmessage_bus.py.src/agent_comms/messaging/historical_views.py: addedHistoricalBusReader(BusReader)carryingHistoryArchive.src/agent_comms/messaging/message_bus.py:MessageBus[Writes: Publisher](PublishedBus[Writes], HistoricalBusReader)inherits all read/history methods cleanly via C3 MRO and keeps only publication/coordination/owner-message methods.src/agent_comms/cli_verbs/{threads,inbox,history}.py: switched read-onlyexecute()paths fromMessageBus(..., OwnerPublisher)toBusReader/HistoricalBusReader.tests/test_revision_owner_annotations.py: mirrored theGoals/GoalSnapshotReaderassertion (issubclass(MessageBus, bus_source)+bus_source in BusReader.__bases__).Verification
cli_verbs.threads:684 -> 654mods (-30),909.5 -> 853.0 ms(-56.6 ms),message_bus&publisherTrue -> Falsecli_verbs.inbox:677 -> 642mods (-35),873.4 -> 812.6 ms(-60.8 ms),message_bus&publisherTrue -> Falsecli_verbs.history:685 -> 680mods (-5),message_bus&publisherTrue -> False87/87passed acrosstest_revision_owner_annotations,test_historical_views,test_read_ledger,test_message_notifications,test_command_families952/952modules imported (0errors),REL_IMPORTS=0,0new NRA non-dead findings.