Repository navigation
feat: edge margin for entry and submersion, from the first armed footage - #34
Merged
Merged
Conversation
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #33, tested against the first armed footage recorded live from the SimpliSafe camera (both clips cover on, kept local). These commits were pushed to
feat/entry-ruleafter #33 had already merged, so they never reachedmain; this PR carries them over.Where a person stands, not the middle of their box
in_wateris judged at the foot point (bottom centre of the box). From the elevated camera, the box centre of someone standing on the coping projects over the water: the day walk-around raised 2 false entries that way.Edge margin + person-at-edge warning
TrackedPerson.water_depth: the foot point's signed distance from the pool outline, in the person's own box heights (geometry.depth_inside).RulesSettings.edge_margin = 0.2: entry and submersion both need depth past it. Measured: walking the coping reached at most +0.093; the one real swimmer never went below +0.53.PERSON_AT_EDGEevent (warn tier, armed only, once per track) for feet within the margin on either side.Footage and labels
backyard_simplisafe_2026_11for the current mount (the camera moved again).armed-cover-on-night.mp4(60 s, IR) andarmed-cover-on-day-walk.mp4(240 s, Sean walks the deck and stands at every edge) labeled armed.Docs: decision log entries, PLAN, a CLAUDE.md rule (rules judge position by
water_depthagainstedge_margin), the fall-in shot plan (cover-on falls with a dummy only), and the SimpliSafe token-expiry note left over from #32.Results
drowning-test.mp4, armedTest plan
ruff check,ruff format --checkpytest(all extras); geometry, tracker, rules and HUD tests written first and seen failingpytest -m regression: all 9 event verdicts pass. 3 known tracker failures:adult-exitsheadcount, phantom tracks on both armed clips