Skip to content

fix(marketcast): MktSnapshotSource select spec no longer shadows select() (#906) - #924

Merged
tensorlink-dev merged 3 commits into
mainfrom
fix/mkt-snapshot-select-906
Nov 25, 2026
Merged

tensorlink-dev merged 3 commits into
mainfrom
fix/mkt-snapshot-select-906

Conversation

@tensorlink-dev

@tensorlink-dev tensorlink-dev commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #906 (launch blocker). MktSnapshotSource.__init__ stored the DEC-CA-0075 series filter 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 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_snapshot gets 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 every snapshot_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: MktSnapshotSource is used only by the trainer (lane_c_driver embargo scan) and the MAIN validator's _mkt_publish_round (gated by _mkt_is_main). Satellites, external validators and cascade/audit never construct it (the audit calls load_snapshot directly; externals verify the signed report). Main-validator + trainer only, no external update needed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj

tensorlink-dev and others added 2 commits November 25, 2026 01:30
…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
@tensorlink-dev tensorlink-dev added laned:W-CMP2 plan rev6.25 W-CMP2: multi-instance lane C runner testnet Found in a testnet rollout run labels Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cascade Ignored Ignored Preview Nov 25, 2026 2:00am UTC

Request Review

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
@tensorlink-dev
tensorlink-dev added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 1e76fa4 Nov 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

laned:W-CMP2 plan rev6.25 W-CMP2: multi-instance lane C runner testnet Found in a testnet rollout run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MarketCast: MktSnapshotSource.select attribute shadows select() — every lane C leg fails 'dict' object is not callable (blocks launch)

1 participant