Skip to content

Inherit PublishedSQLiteFile on BusStoreFile so changed/bus.changed is declared - #5294

Merged
trissim merged 1 commit into
mainfrom
fix/bus-store-file-published
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/bus-store-file-published

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes tests/test_bus_files.py::test_every_bus_file_is_a_declared_root_file (where changed/bus.changed was undeclared by RootFile.paths_in(root)):

  • BusStoreFile (src/agent_comms/storage/locked_store.py:1388) previously inherited (BusFile, SQLiteFile) instead of (BusFile, PublishedSQLiteFile) (unlike RegistryFile directly below it at line 1396), leaving the bus's published change marker changed/bus.changed outside RootFile.paths_in(root).
  • Changing BusStoreFile to inherit (BusFile, PublishedSQLiteFile) declares changed/bus.changed at its owner without introducing any restated base on Bus, BusRevisionReader, or BusActivityStore.

Verification

  • pytest -p no:xdist tests/test_bus_files.py: 5 passed (2.66s)
  • Verified Bus.__mro__ and BusStoreFile.__subclasses__() cleanly in Python.

@trissim
trissim merged commit 1efcd44 into main Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant