Repository navigation
Conversation
cross-report-comparability.md only covered Legacy against TFF (two quantities carry), and a consumer generalised that to Disaggregated. New section 3 records the opposite case, measured on all 28 registry markets with a Disaggregated series, futures-only, 2006-06-13 to 2026-11-17: producer + swap (swap spread on both sides) equals Legacy commercial, managed money + other reportable equals Legacy non-commercial, including spreading (derived as the closure residual, since the store's Legacy table has no spreading column), 100% of weeks on 27 markets. RB fails 11 weeks of 2006 because get_cot stitches the predecessor 111652 on overlap weeks; against RB_111659 alone it holds. Trader counts do not add; on the combined basis the identities close to 2 contracts (option-delta rounding). Renumbers sections 3-6 to 4-7 and narrows the "anything above the reportable line" rule accordingly. Reproducer: scripts/disagg_legacy_split.py (--combined for the other basis). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
Why
docs/design/cross-report-comparability.mdcovered Legacy against TFF only (just open interest and non-reportable carry). A consumer (npf, 2026-11-25) generalised that to Disaggregated, which is wrong: on the same basis Disaggregated is an exact re-partition of the Legacy buckets.What
New §3 Disaggregated against Legacy: an exact split, to the contract (old §3-§6 become §4-§7, internal references updated):
Prod_Merc + Swap + Swap spread = Legacy Comm(long and short),M_Money + Other_Rept = Legacy NonComm(long, short and spreading), OI and non-reportable identical.get_cot's Legacy stitch keeps the predecessor111652(larger OI on overlap weeks) while Disaggregated has RBOB alone. AgainstRB_111659alone every identity holds on all 11.hist_codesscale).No other cotdata doc or
cotdata.citsays detailed groups never sum to Legacy (ADR-0002's Supplemental-vs-Swap-Dealer point is a different pair and still holds).Reproducer
Reads only, through
get_cotandstore.read_cot_legacy. The store is not touched.ruff check src tests scriptsis clean.🤖 Generated with Claude Code