Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test(security): guard coarser fixed-minute request.security cadence on the 1m-magnifier path#76

Merged
luisleo526 merged 1 commit into
mainfrom
test/magnifier-coarser-security-cadence-guard
Jul 7, 2026
Merged

test(security): guard coarser fixed-minute request.security cadence on the 1m-magnifier path#76
luisleo526 merged 1 commit into
mainfrom
test/magnifier-coarser-security-cadence-guard

Conversation

@luisleo526

Copy link
Copy Markdown
Collaborator

Adds an always-green cadence guard: on the 1m-magnifier path (input_tf=1 / script_tf=15, bar_magnifier on), a coarser fixed-minute request.security("60"/"240") must latch its published value only on its own boundary (once per 4 / 16 script bars) and hold within — not track the 15m close every bar.

Confirms KI-33 is refuted: the aggregator is built against the real input tf ("1", ratio 60) and feed_ratio_mode is wall-clock-bucket-gated, so it cannot complete early. No engine source change — this documents and locks correct existing behavior. ctest 79/79.

🤖 Generated with Claude Code

…n the 1m-magnifier path

Adds an always-green cadence assertion: on the 1m-magnifier path (input_tf=1 /
script_tf=15, bar_magnifier on), a coarser fixed-minute request.security("60"/"240")
must advance ONLY on its own boundary — the "60" value updates once per 4 script
bars, "240" once per 16 — and hold constant within, rather than tracking the 15m
close every bar. Feeds a synthetic gap-free 1m feed with distinct closes and checks
the LATCHED published value (dispatched on is_complete), not the aggregator's
in-progress current() partial.

Pins that init_security_eval_states_for_run builds TimeframeAggregator against the
real input tf ("1", ratio 60), not a magnifier-divided tf, and that feed_ratio_mode
is wall-clock-bucket-gated so feeding it 15x per script bar cannot complete it early.
No engine source change — this documents and locks correct existing behavior.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@luisleo526 luisleo526 merged commit 6be3999 into main Jul 7, 2026
@luisleo526 luisleo526 deleted the test/magnifier-coarser-security-cadence-guard branch July 7, 2026 17:56
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