generated from CubeCraft-Creations/Tracehound
[CUB-229] Design camera auto-discovery and registration flow #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Linear: CUB-229
Linear URL: https://linear.app/cubecraft-creations/issue/CUB-229/design-camera-auto-discovery-and-registration-flow
Description
How does the hub discover new ESP32/camera nodes? ESP32 auto-registers on first MQTT connect using MAC/unique ID. Design: registration message format, hub response protocol, what gets stored in DB.
Imported Linear metadata
Imported Linear comment from CubeCraft Creations at
2026-05-27T01:51:54.054Zon CUB-229:⚠️ CI FAILURE — 3+ days stale
PR: #14
Failing check:
CI/CD / buildAssigned to: Dex
Action: Investigate build failure, push a fix.
Imported Linear comment from CubeCraft Creations at
2026-05-25T13:52:06.254Zon CUB-229:⚠️ CI failure on PR — action required
PR: #14
REPO: remote-rig
FAILING CHECK: CI/CD / build (Failing after 8s)
ASSIGNED TO: Dex
ACTION: Investigate CI failure, push a fix.
Failure has persisted since May 23 (~2 days).
Imported Linear comment from CubeCraft Creations at
2026-05-24T13:51:10.586Zon CUB-229:⚠️ CI failure on PR — action required
PR: #14
REPO: remote-rig
FAILING CHECK: CI/CD / build (Failing after 8s)
ASSIGNED TO: Dex
AGE: ~18 hours (since 2026-05-23)
ACTION: Investigate CI failure, push a fix.
Imported Linear comment from CubeCraft Creations at
2026-05-24T13:51:01.236Zon CUB-229:⚠️ CI failure on PR — action required
PR: #14
REPO: remote-rig
FAILING CHECK: CI/CD / build (Failing after 8s)
ASSIGNED TO: Dex
AGE: ~18 hours (since 2026-05-23)
ACTION: Investigate CI failure, push a fix.
Imported Linear comment from CubeCraft Creations at
2026-05-23T14:07:39.809Zon CUB-229:CUB-229 — Design Complete ✅
PR: #14
Branch:
agent/dex/CUB-229-camera-auto-discoveryCommit:
95c225e—CUB-229: Design camera auto-discovery and registration flowFile:
docs/design/camera-auto-discovery.md(508 lines)Deliverable Summary
Design document covering the full camera auto-discovery and registration flow:
registered/registration_errorcommands published to the existingcommandtopic, with structured error codes (INVALID_MAC,CAPABILITY_REQUIRED,DB_WRITE_FAILED,RATE_LIMITED) and retry hintscamera_idto skip announce on subsequent bootscamerastable (firmware_version,capabilities,device_type,registration_status,last_announce_at,registration_error,mqtt_client_id)Design Principles Honored
MQTT_CONTRACT.mdv1.0.0)camera_registered,camera_reconnected)Imported Linear comment from CubeCraft Creations at
2026-05-23T14:06:36.588Zon CUB-229:Validation: PASS — design document created at docs/design/camera-auto-discovery.md (508 lines, 11 sections covering MQTT announce schema, hub response protocol with error codes, database schema extension, rate limiting, sequence diagram, ESP32 retry logic, and implementation plan)
Imported Linear comment from CubeCraft Creations at
2026-05-23T14:04:51.379Zon CUB-229:Branch: agent/dex/CUB-229-camera-auto-discovery
Imported Linear comment from CubeCraft Creations at
2026-05-23T14:03:23.791Zon CUB-229:📤 Dispatching CUB-229 to Dex.
Imported Linear comment from CubeCraft Creations at
2026-05-23T14:03:16.882Zon CUB-229:🚀 Otto: picked up CUB-229 — routing to specialist.
Imported Linear comment from CubeCraft Creations at
2026-05-22T02:28:31.710Zon CUB-229:@larry: missing @otto: context — cannot break down