No description
Find a file
jedarden 43ca7fc49a feat: implement internal typed event bus with pub-sub
Implemented EventBus in mothership/internal/events/bus.go with:

- BusEventType enum with 18 event types (MotionDetected, ZoneTransition,
  FallDetected, NodeConnected, etc.)
- Typed EventPayload structs for all event types implementing
  EventType() and GetTimestamp() methods
- EventBus.Publish(payload) - non-blocking fan-out to all subscribers
- EventBus.Subscribe(eventType) - returns buffered channel for events
- EventBus.Unsubscribe() - removes subscriber
- EventBus.PublishBlocking() - blocking publish with context support
- Multiple subscribers per event type with non-blocking delivery
- Thread-safe with sync.RWMutex

Acceptance criteria met:
- Publish completes within 10ms (TestEventBusPublishWithin10ms)
- Multiple subscribers receive same event (TestEventBusMultipleSubscribers)
- All 18 event types have corresponding payload structs (TestAllPayloadTypes)
- 17 tests covering subscribe, publish, unsubscribe, concurrent access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 14:05:32 -04:00
.beads wip: various improvements 2026-04-09 13:52:10 -04:00
.github/workflows feat: wire anomaly detection & security mode API endpoints 2026-04-07 15:09:34 -04:00
.marathon ci: set VERSION to 0.1.0 for image build 2026-04-06 08:53:25 -04:00
dashboard wip: various improvements 2026-04-09 13:52:10 -04:00
docs init: spaxel project — docs, plan, and marathon infrastructure 2026-03-26 06:43:25 -04:00
firmware feat: implement firmware LED blink handler for identify command 2026-04-09 07:01:42 -04:00
mothership feat: implement internal typed event bus with pub-sub 2026-04-09 14:05:32 -04:00
tests/e2e feat: complete anomaly detection & security mode dashboard UI 2026-04-07 15:50:25 -04:00
.dockerignore feat(deploy): Docker packaging with multi-stage build and compose orchestration 2026-03-26 07:46:15 -04:00
.gitignore feat(deploy): Docker packaging with multi-stage build and compose orchestration 2026-03-26 07:46:15 -04:00
.needle-predispatch-sha wip: various improvements 2026-04-09 13:52:10 -04:00
.needle.yaml feat: trigger CI build and verify deployment 2026-04-06 09:54:08 -04:00
docker-compose.yml feat(deploy): Docker packaging with multi-stage build and compose orchestration 2026-03-26 07:46:15 -04:00
Dockerfile feat: implement comprehensive /healthz endpoint 2026-04-07 11:09:36 -04:00
PROGRESS.md docs: document Phase 7 completion - presence prediction implementation 2026-04-09 10:17:32 -04:00
VERSION ci: auto-bump version to 0.1.114 2026-04-09 18:02:09 +00:00