Skip to content

feat: curves + receiver observations follow the breeder purge cascade - #67

Merged
godon-robot[bot] merged 1 commit into
mainfrom
feat/curves-follow-purge-cascade
Aug 22, 2026
Merged

feat: curves + receiver observations follow the breeder purge cascade#67
godon-robot[bot] merged 1 commit into
mainfrom
feat/curves-follow-purge-cascade

Conversation

@godon-robot

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

Copy link
Copy Markdown
Contributor

Why

The purge cascade is the association owner — it already cleans coordination tables (interference_active_breeders, detection_readiness), the breeder's archive DB, and the group lease. Measurement state belongs in the same cascade:

  1. cleanup_coordination_state also deletes the breeder's receiver_observations and curve_points rows (the observations table previously had NO cleaner at all — rows from purged breeders accumulated forever).
  2. delete_breeder calls causal DELETE /curves/{id} (best-effort, logged, 10s timeout, GODON_CAUSAL_URL overridable) — required because causal holds curves in memory too; rows alone would replay back into the registry on restart.

Replaces the api-layer hook (reverted in godon-images PR revert/api-purge-hook-only — wrong layer). Causal's endpoint (godon-images #281) is unchanged; the controller becomes its caller.

Deploy

Ships via CONTROLLER_VERSION bump in the chart (seeder-managed, like breeders). Part of the same restack as breeder 0.151.0 + causal image.

Co-authored-by: cherusk 10729954+cherusk@users.noreply.github.com

The purge cascade is the association owner. cleanup_coordination_state
now also deletes the breeder's receiver_observations and curve_points
rows, and delete_breeder calls causal DELETE /curves/{id} (best-effort,
logged) to clear its in-memory registry — rows alone would replay back
on restart. Replaces the api-layer hook (reverted in godon-images);
causal's endpoint is unchanged.

Co-authored-by: cherusk <10729954+cherusk@users.noreply.github.com>
@godon-robot
godon-robot Bot merged commit cb350d8 into main Aug 22, 2026
2 checks passed
@godon-robot
godon-robot Bot deleted the feat/curves-follow-purge-cascade branch August 22, 2026 09:51
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