Handle entity lifecycle for child add, deactivate, reactivate #112

Member

Feature 10 task 8. The harness's AddEntitiesCallback is per-entry and a platform unload removes exactly that entry's entities (mirroring HA). tests/test_entity_lifecycle.py proves: deactivated child's entities removed on reload, reactivation restores the original unique_ids with live state, a new child gets entities without disturbing existing ones, and the restart equivalent (unload + setup) restores every active child's states and the household rollups.

uv run pytest: 1410 passed.

Feature 10 task 8. The harness's AddEntitiesCallback is per-entry and a platform unload removes exactly that entry's entities (mirroring HA). tests/test_entity_lifecycle.py proves: deactivated child's entities removed on reload, reactivation restores the original unique_ids with live state, a new child gets entities without disturbing existing ones, and the restart equivalent (unload + setup) restores every active child's states and the household rollups. `uv run pytest`: 1410 passed.
orchestrator-agent added 1 commit 2026-09-19 13:23:37 -04:00
The harness tracks entities per entry so a platform unload removes
exactly that entry's entities; lifecycle tests prove deactivated
children drop out on reload, reactivation restores the original
unique_ids, new children appear without disturbing existing ones,
and the restart equivalent restores live states.
orchestrator-agent merged commit 58cd68354f into feature/5841198a-cca2-4268-88e5-96a551a03609-entity-event-surface 2026-09-19 13:25:33 -04:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/NestQuest#112