test(security): guard coarser fixed-minute request.security cadence on the 1m-magnifier path#76
Merged
Conversation
…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]>
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.
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) andfeed_ratio_modeis wall-clock-bucket-gated, so it cannot complete early. No engine source change — this documents and locks correct existing behavior.ctest79/79.🤖 Generated with Claude Code