Skip to content

test(rl): prove substrate composes e2e — matrix → multi-dim + corpus → dataset#152

Merged
drewstone merged 1 commit into
mainfrom
test/substrate-compose-e2e
May 31, 2026
Merged

test(rl): prove substrate composes e2e — matrix → multi-dim + corpus → dataset#152
drewstone merged 1 commit into
mainfrom
test/substrate-compose-e2e

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

#90 (cost seam) + #149 (corpus store) + #150 (multi-dim raw + corpusText) each shipped + unit-tested in isolation. This proves they compose into the 'every graded run → free multi-dimensional dataset exhaust' capability the loop depends on: runProfileMatrix (cost/token dispatch + corpusText) → records carry cost/tokens/tokens_per_dollar + trajectory text + integrity 'real' → appendToCorpus (2 runs accumulate, the flywheel) → buildDatasetFromCorpus → SFT bundle with the captured prompt/completion + deterministic datasheet. Closes the integration verification gap; regressions in any link now fail loudly. 1 test, green; lint 0, tsc clean.

…m + corpus → dataset

Three primitives shipped separately (#90 cost seam, #149 corpus store, #150
multi-dim raw + corpusText); each was unit-tested in isolation, but nothing
proved they COMPOSE into the "every graded run becomes free, multi-dimensional
dataset exhaust" capability the self-improvement loop rests on.

This integration test runs the real chain on main: runProfileMatrix (with a
cost/token-reporting dispatch + corpusText) → asserts every record carries the
cost/tokens/tokens_per_dollar dims AND the trajectory text AND integrity verdict
'real' → appendToCorpus (two separate runs accumulate to 6 records, the
flywheel) → buildDatasetFromCorpus → asserts the SFT bundle's rows carry the
captured prompt/completion and the datasheet declares deterministic reward.

A regression in any link (cost capture, trajectory stamping, corpus append, or
harvest) now fails loudly here instead of silently degrading the loop's data.
Copy link
Copy Markdown
Contributor

@tangletools tangletools left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tangletools: end-to-end composition test — proves matrix multi-dim + cost + corpusText → appendToCorpus → buildDatasetFromCorpus compose into the datasets-for-free capability; integrity 'real', flywheel accumulation, trajectory text in the SFT rows all asserted. Closes the integration gap. Approved.

@drewstone drewstone merged commit d330f73 into main May 31, 2026
1 check passed
tangletools pushed a commit that referenced this pull request May 31, 2026
…en datasets-for-free (#153)

Ships #149 (durable RL corpus store), #150 (multi-dimensional RunRecord.raw +
corpusText trajectory hook), #151 (zero lint debt), #152 (e2e composition test).
npm-only bump (Python RPC client stays pinned at 0.59.1, consistent with the
0.61→0.70 release line); published via pnpm publish.
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.

2 participants