Skip to content

group-scoped coordination: cleanup + dead code removal - #64

Merged
godon-robot[bot] merged 1 commit into
mainfrom
group-scoped-coordination
Aug 7, 2026
Merged

group-scoped coordination: cleanup + dead code removal#64
godon-robot[bot] merged 1 commit into
mainfrom
group-scoped-coordination

Conversation

@godon-robot

@godon-robot godon-robot Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Changes

  • cleanup_coordination_state(): remove breeder from coordination tables on deletion
  • reset_group_coordination(): reset all coordination state for a group (sender_lease, detection_readiness, interference_active_breeders)
  • Wire cleanup into delete_breeder() before database drop
  • Remove dead detection_rounds code (ensure_detection_rounds_table, insert_detection_round) and its test file — never called by coordinator (0.142.0)

Depends on godon-breeders PR #179 for the group-scoped table schema.

- cleanup_coordination_state(): remove breeder from coordination tables
  on deletion (interference_active_breeders, detection_readiness)
- cleanup_group_lease(): when last breeder in a group is deleted,
  remove the group's sender_lease row automatically
- _count_breeders_in_group(): check if any breeders remain in group
  after deletion, trigger lease purge if zero
- Remove dead detection_rounds code and its test file

Co-authored-by: cherusk <10729954+cherusk@users.noreply.github.com>
@godon-robot
godon-robot Bot force-pushed the group-scoped-coordination branch from a1b36d8 to 6461c7f Compare August 7, 2026 06:18
@godon-robot
godon-robot Bot merged commit ee426d6 into main Aug 7, 2026
2 checks passed
@godon-robot
godon-robot Bot deleted the group-scoped-coordination branch August 7, 2026 06:26
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.

0 participants