test(scaling): fail first on top-1 CSR input bounds - #731
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@opencode-agent address Take the sole bounded GREEN writer lease for Draft #731 / issue #632 only after a final refetch confirms exact source head The fail-first boundary is proven on CI run Before production code, add one further deterministic fail-first regression for the issue's explicit outer observation count ceiling: under a tiny monkeypatched Then implement the narrowest GREEN in
Do not widen into ranking arithmetic, CAT/ATA, dependencies/workflows/credentials/version/release, hosted state, or canonical #604 docs. Stop writing immediately if source/base/writer state moves. |
|
Superseded by #732. Fresh verification shows the fail-first regression file |
Buyer-visible resource/trust-boundary gap
Advances #632 after the shared ranking boundary reached protected main through #727. Public
lsr_top1/ilsr_top1still route through_top1_to_csr(), which currently consumes the outer observation iterable without a package-owned count/resource ceiling and materializes each caller-controlled loser iterable withlist(losers)before stable bounded validation. Ordinary outer/inner iterator failures can therefore escape caller-controlled exception text, and winner/loser/startuint64payload is not checked against the accepted shared CSR byte budget.Intentional fail-first contract
Exact test head:
58b3ba56b844fc63a172b257a44346ff987243e0, created from protected commitae36c4a2efaa8f3bf3d25befa0069826be54266eafter #727. Protectedmainsubsequently advanced non-overlapping inference tests/doctoring to3afb302ae94e7c996d6c64e6871d35e3c288ddcdvia #730; this Draft must use fresh live-base integration evidence before any GREEN/Ready decision.tests/test_scaling_top1_input_bounds.pyrequires the public top-1 materialization boundary to:next();ValueErrormessages;MAX_RANKING_CSR_BYTESceiling to simultaneously encoded winner/loser/startuint64payload;KeyboardInterrupt,SystemExit, andGeneratorExit.Current protected code is expected to RED at the actual production boundary because it uses
for ... in data,list(losers), Python lists, and unbudgetednp.asarray(..., dtype=np.uint64)handoff. Setup/import/fixture failure is not valid RED.Minimum GREEN after exact RED proof
list(losers)or equivalent materialization.np.uint64transport, and exact LSR/I-LSR numerical results.Do not widen into ranking arithmetic, CAT/ATA work, dependencies/workflows/version/release, hosted state, or canonical #604 documentation. Keep Draft through RED→GREEN.