refactor(backend): reduce numbers pipeline to stats->features->gen and decouple gen from MetaSelection - #74
Merged
Conversation
…d decouple gen from MetaSelection
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.
Summary
Reduces the
/numbersgeneration pipeline from the 8-stage canonical chain tostats -> features -> gen. The meta stages (ml/dl/bt/rank/select) are removed from the numbers path.genis decoupled fromMetaSelection: when no active selection exists it uses a deterministic seed derived from the active probability snapshot checksum + lottery id (noGEN_NO_SELECTION).This is part 1 of 2 stacked PRs (split to stay under the 400-line review budget). Part 2 (
feat/numbers-pipeline-gen-only-tests) updates the backend + frontend suites to the 3-stage contract.Scope
pipeline_service.py: STAGE_ORDER = (stats, features, gen); removed meta stages, gated-stage logic, and adapter classes.gen_service.py:_resolve_selectionfallback for missing MetaSelection.api/v1/pipeline.py: docstring updated.Notes
On this branch alone the legacy 8-stage tests still assert the old chain; they are updated in part 2. Backend+frontend suites are green once both parts land.