tsb-perf-evolve: add Series.sortValues validity-oracle tests#187
Merged
Conversation
Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/86f2e7e1-7b2a-4501-86ca-c97d0483b5c0 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Close gaps for end-to-end AlphaEvolve loop on Series.sortValues
tsb-perf-evolve: add Series.sortValues validity-oracle tests
Apr 23, 2026
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.
The
tsb-perf-evolveAlphaEvolve program runsbun test tests/core/series.sortValues.test.tsas the correctness gate for every candidate, but that file did not exist — every candidate would fail validity on the first command.Changes
tests/core/series.sortValues.test.ts— 29 tests pinning the observable behaviour ofSeries.sortValues(anchored tosrc/core/series.ts:714and pandasSeries.sort_valueswhere the spec is ambiguous):(ascending, naPosition)combinations, asserting both values and originating-row indices.namepreserved across every option combination.const r: Series<T> = s.sortValues()assertion so a signature change failstsc --noEmit.fast-checkproperties: length, permutation, monotonicity, idempotence-up-to-ties, label/value pairing, and stability (equal values keep input order).Out of scope
Gaps #2–#5 in the issue (
metric_directionfrontmatter,releaseassets.githubusercontent.comfirewall allowlist, loud-fail pandas install, scheduler starvation) live under.autoloop/programs/**and.github/workflows/autoloop.md, whichAGENTS.mdforbids this agent from modifying. They need a separate PR from autoloop maintainers before the program can be enabled end-to-end.