Skip to content

fix(schema): reject available_at earlier than generated_at - #50

Merged
Pigbibi merged 1 commit into
mainfrom
fix/audit-20260907-002-available-at
Sep 6, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
fix/audit-20260907-002-available-at

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • QSL-20260907-002: schema requires available_at >= generated_at (aware UTC) when present.
  • Overlay signal_available_at clamps with max(generated_at, available_at) so backdating cannot rewrite earlier NAV.

Test plan

  • python3 -m pytest -q -p no:cacheprovider tests/test_overlay_backtest.py tests/test_signal_validation.py
  • CI green

Made with Cursor

Keep delayed-release semantics while preventing backdated available_at
from rewriting earlier overlay replay NAV; clamp with max() as defense.
@Pigbibi
Pigbibi merged commit a2ccb12 into main Sep 6, 2026
1 check passed
@Pigbibi
Pigbibi deleted the fix/audit-20260907-002-available-at branch September 6, 2026 21:19
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.

1 participant