Skip to content

registry: stitch RB's unleaded gasoline predecessor; pin HE unstitched - #127

Merged
mspinola merged 1 commit into
mainfrom
claude/stitch-rb
Oct 22, 2026
Merged

mspinola merged 1 commit into
mainfrom
claude/stitch-rb

Conversation

@mspinola

Copy link
Copy Markdown
Owner

Summary

  • RB adds 111652 (NY Harbor unleaded gasoline, 1986 to 2006-12-05) at scale 1. Unleaded to RBOB is a product change on the same 42,000 gal contract and the same hedger base: a 43-week migration through 2006 in which combined open interest holds between 127k and 172k and reportable traders move from one code to the other. The larger-OI rule from get_cot: overlap weeks keep the larger scaled open interest #122 switches on 2006-08-29. RB now starts 1986 (was 2006-02).
  • HE stays unstitched by decision: the 1996 live-to-lean hogs change alters the carcass basis, so a position means something different on each side. A registry test pins it.

Verification

Producer run for both codes into a scratch store: RB 1986-01-15 to 2026-10-13, 1,937 weeks, no duplicate dates, one code label. Open interest is continuous at the switch (69,327 then 68,285). The reportable trader count drops at the switch (123 to 71) because traders were split across the two codes mid-migration; it recovers to 97 within four weeks. Anything reading Traders_Tot_All across 2006 should expect that dip.

Test plan

  • test_rb_stitched_he_deliberately_not
  • Full suite passes (239); ruff check src tests scripts clean

Deployment

Windows box pulls, next --cot run writes one new file, then clear and rebuild the cotmetrics cache for RB.

🤖 Generated with Claude Code

RB adds 111652 (NY Harbor unleaded, to 2006-12-05) at scale 1. Unleaded
to RBOB is a product change on the same 42,000 gal contract and hedger
base: a 43-week migration through 2006 in which combined open interest
holds between 127k and 172k and traders move across. The larger-OI rule
switches on 2006-08-29. RB now starts 1986.

HE's 1996 live-to-lean switch is deliberately left unstitched (the
carcass basis changes what a position means); a registry test pins it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mspinola
mspinola merged commit 65fdb00 into main Oct 22, 2026
5 checks passed
@mspinola
mspinola deleted the claude/stitch-rb branch October 22, 2026 10:23
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