Skip to content

fix: harden analysis geometry diagnostics - #10

Merged
Gilbert243 merged 1 commit into
mainfrom
fix/post-1.1.1-validation-hardening
Aug 19, 2026
Merged

fix: harden analysis geometry diagnostics#10
Gilbert243 merged 1 commit into
mainfrom
fix/post-1.1.1-validation-hardening

Conversation

@Gilbert243

Copy link
Copy Markdown
Owner

Summary

Hardens the numerical analysis geometry layer after the AgencityLab 1.1.1 validation campaign.

What changes

  • makes curvature diagnostics robust to numerically unresolved velocity near slow/turning points;
  • preserves exact zero curvature for sampled trajectories that are collinear to machine resolution;
  • keeps curvature undefined (NaN) when the discrete velocity is not numerically resolved;
  • makes leading/trailing invalid valid_mask samples equivalent to slicing the contiguous valid interval;
  • preserves NaN for discontinuous masks where phase unwrapping across omitted samples is ambiguous;
  • adds regression tests for scale/rotation robustness, turning points, constant trajectories, circle curvature, sinusoidal motion on a complex line, explicit speed tolerance, and valid-mask semantics.

Scientific scope

This change is diagnostic/numerical only. It does not modify the canonical Agencity equations, CRM, M, O, D, S, J, Theta, beta, P_c, or b.

Local validation

  • targeted tests: 27 passed
  • full suite: 635 passed
  • Ruff: passed
  • mypy: passed (227 source files)
  • package build: succeeded

@Gilbert243
Gilbert243 merged commit 1d8229c into main Aug 19, 2026
19 checks passed
@Gilbert243
Gilbert243 deleted the fix/post-1.1.1-validation-hardening branch August 19, 2026 14:05
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