Add sports category scopes and automatic research protocols - #20
Merged
Merged
Conversation
…h/run-research.ts
…rket/market-data.ts
…eral-decision-system.ts
…h/market-scope.ts
…rket/classification.ts
…t-classification.test.ts
…t-scope-runner.test.ts
gilbertsahumada
changed the base branch from
codex/nfl-live-validation
to
main
September 18, 2026 18:07
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.
Agents can now choose Sports and one or more sports instead of being globally limited to NFL. A scoped soccer award can be researched without a kickoff timestamp; matches still require a verified start 15 minutes to seven days ahead. Scope and timing are checked before model selection, for manual markets and again before a trade proposal is finalized.
Implementation
allis bounded to that version. Reject empty/duplicate/unknown selections and ambiguous legacy mixtures.not_applicableoutside their declared protocol coverage, with no tools/cache access or credential requirements. Plugin permissions remain independent./market-categories, Studio preset catalog, CLI support and explicit lab migration. Alpha is now American football (config 7), beta soccer (config 4), schedules disabled. Existing JSONB only: no DDL or historical rewrite.Validation
--dry-run; no remote deployment. Workspace build was rerun successfully after stopping Studio, which correctly prevents overwriting a live dev output directory.deepseek-v4.1-flash, and no model-output failures/retries:399a9b31-16bd-4f31-9f94-a6ea70541340: discovered NFL Lions/Bills O/U 55.5, 139.750s, model ABSTAIN → final ABSTAIN; retained Over forecast 47.5% (44–52%). The selected market was a total, so general routing was correct. NFL winner v4 routing was validated with controlled fixtures, not a third paid run.1f428ef7-46c3-469e-bd5c-8ce632845e07: Vinicius Ballon d'Or, 163.517s, model TRADE → final ABSTAIN due to high uncertainty, missing information and insufficient conservative margin. Retained Yes forecast 0.5% (0.2–1.2%). Actual award tags and future close validated without kickoff.apps/agent-service/MARKET-CATEGORIES.md.Scope and delivery
Stacked on open #19 (
codex/nfl-live-validation). 32 commits, one file per commit. No frontend, new provider, paper coverage expansion, merge, real trading or remote deployment. Local Studio has been restored. These runs validate functionality, not forecast calibration or profitability.