Repository navigation
fix(marketcast): MktSnapshotSource select spec no longer shadows select() (#906) - #924
Merged
Merged
Conversation
…select() (#906) The DEC-CA-0075 select spec was stored as self.select, hiding the select(block) method, so every snapshot_for() raised "'dict' object is not callable": every MarketCast leg requeued at the pre-rent embargo scan and validator MarketCast scoring could not read its snapshot. Store it as select_spec. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SG5aamoFze4bkhr1suMufY
…ches load_snapshot (#906) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SG5aamoFze4bkhr1suMufY
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
The regression tests for MktSnapshotSource's select() now live in the W-CMP2 accept dir so this is one combined feature PR. Each new test fails on BASE with an assertion: the #906 TypeError is reported as an AssertionError, and load_snapshot's keywords are pinned to exactly the pre-#906 call (the snapshot and every signed MarketCast row built on it are unchanged). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj
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.
Fixes #906 (launch blocker).
MktSnapshotSource.__init__stored the DEC-CA-0075 series filter asself.select, hiding theselect(block)method, so everysnapshot_for()raised'dict' object is not callable. Every MarketCast leg requeued at the pre-rent embargo scan, and main-validator MarketCast scoring couldn't read its snapshot.Renamed to
select_spec(2 lines). Verified live on testnet with an equivalent out-of-tree hotfix: a MarketCast leg trained, was scored and judged (receipt 4787293979445716588).One combined PR (tests + code; replaces the split #925). Tests:
tests/accept/w_cmp2/test_w_cmp2_snapshot_source_select.py— 4 new tests, all fail on BASE with an AssertionError (the #906 TypeError is reported as an assertion), all pass on HEAD.check-pr: MODE combined.Signed bytes / scores:
load_snapshotgets exactly the pre-#906 keywords (pinned in the test), so the snapshot and every signed MarketCast row built on it are byte-identical to what the old code would have produced had it not crashed. The old code crashed on everysnapshot_for(), so there is no path where it produced rows that now differ. Receipt / satellite replay / MarketCast audit + validator unit tests: 112 passed, 7 skipped locally.Exposure:
MktSnapshotSourceis used only by the trainer (lane_c_driverembargo scan) and the MAIN validator's_mkt_publish_round(gated by_mkt_is_main). Satellites, external validators andcascade/auditnever construct it (the audit callsload_snapshotdirectly; externals verify the signed report). Main-validator + trainer only, no external update needed.🤖 Generated with Claude Code
https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj