Skip to content

Add property tests for step advance conditions (#639)#855

Open
ianthetechie wants to merge 3 commits intomainfrom
claude/review-1.0-milestone-3naUv
Open

Add property tests for step advance conditions (#639)#855
ianthetechie wants to merge 3 commits intomainfrom
claude/review-1.0-milestone-3naUv

Conversation

@ianthetechie
Copy link
Copy Markdown
Contributor

Add 8 new property-based tests encoding key invariants of the step
advance system: accuracy gating for distance conditions, off-route
gating, OR/AND composite behavior with trivially true/false conditions,
multi-update stateful condition stability, and snapped exit condition
zero-movement safety. Replaces TODO comments with concrete tests.

https://claude.ai/code/session_01Bh2XrcnBbVRBKKTRVwCz1N

claude added 2 commits March 28, 2026 06:31
Add 8 new property-based tests encoding key invariants of the step
advance system: accuracy gating for distance conditions, off-route
gating, OR/AND composite behavior with trivially true/false conditions,
multi-update stateful condition stability, and snapped exit condition
zero-movement safety. Replaces TODO comments with concrete tests.

https://claude.ai/code/session_01Bh2XrcnBbVRBKKTRVwCz1N
fn distance_to_end_never_advances_with_bad_accuracy(
c1 in arb_coord(),
c2 in arb_coord(),
accuracy in 11.0f64..10000.0f64,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably drop the upper bound here.

c1 in arb_coord(),
c2 in arb_coord(),
user_coord in arb_coord(),
accuracy in 11.0f64..10000.0f64,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as prev comment; upper bound not helpful.

Generate accuracy as threshold + arbitrary positive excess instead of
a bounded range, per reviewer feedback.

https://claude.ai/code/session_01Bh2XrcnBbVRBKKTRVwCz1N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants