3.0 KiB
3.0 KiB
Foreground Web Motion Detection Absolute Checklist
MWM-001Confirm first-release scope is web camera role only and foreground-tab only.MWM-002Add detector-related state fields to WebApp/src/lib/app/store.js.MWM-003Define default motion detector config values for low-power foreground operation.MWM-004Create a dedicated detector module underWebApp/src/lib/app/.MWM-005Implement low-resolution frame sampling from the existing local camera stream.MWM-006Implement grayscale conversion and normalized frame-difference scoring.MWM-007Implement score smoothing or block aggregation to reduce noise flicker.MWM-008Implement detector state machine transitionsidle,warming_up,monitoring,triggered,cooldown.MWM-009Implement adaptive sampling so idle sampling is slower than candidate-motion sampling.MWM-010Ensure the detector starts only when the device role iscamera, preview is ready, and detection is armed.MWM-011Ensure the detector pauses or stops on camera permission loss, preview teardown, socket disconnect, or page hide.MWM-012Add camera dashboard controls for arm/disarm and sensitivity.MWM-013Add camera dashboard status UI for detector state and live motion score.MWM-014Keep existing manual motion buttons intact and usable.MWM-015Wire automatic detector trigger to the existingstartMotionflow withtriggeredBy: "auto_motion".MWM-016Prevent duplicatestartMotioncalls while a motion event is already active.MWM-017Implement minimum event duration and quiet cooldown before automatic end.MWM-018Wire automatic quiet-state completion to the existingendMotionflow.MWM-019Add activity-log messages for detector armed/disarmed, trigger start, trigger end, and detector pause reasons.MWM-020Add local persistence for detector settings so operator choices survive reloads.MWM-021Validate that existing client notifications still fire through the unchanged backend event routes.MWM-022Validate that existing recording behavior still works for auto-started motion events.MWM-023Add unit-level tests for detector scoring and state-machine transitions.MWM-024Add integration tests or deterministic mocks for event deduplication and cooldown handling.MWM-025Perform manual runtime validation for no-motion idle scene, real person entry, lighting flicker, and camera shake.MWM-026Measure runtime CPU/thermal behavior during a long foreground session and tune defaults if needed.MWM-027Document the foreground-only assumption and known limits in project docs.MWM-028Document recommended operator settings for lowest battery and heat.MWM-029Add rollback behavior so disabling detection immediately stops the detector loop and leaves manual controls intact.MWM-030Finalize a rollout note describing first-release non-goals such as background detection and ML classification.