refactor: extract shared types and deprecate kataka fields (Wave 3A, #375)#401
refactor: extract shared types and deprecate kataka fields (Wave 3A, #375)#401
Conversation
… fields (Wave 3A, #375) Move BetOutcomeRecord, IncompleteRunInfo, CooldownSessionResult, and CooldownPrepareResult to dedicated cooldown-types.ts. This decouples the 5 extracted services from the orchestrator module. Add @deprecated tags on katakaConfidenceCalculator and katakaDir fields in both CooldownSessionDeps and CooldownBeltDeps. CooldownSession: 744 to 673 lines. Full decomposition: 1,359 to 673 lines (-51%) with 5 extracted services totaling 868 lines of focused, tested code. Quality gates: verify pass, 113 BDD scenarios, dep-cruiser clean, ArchUnit 14 of 15, CRAP clean on cooldown files, mutation 85.03%. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThis PR reorganizes cooldown-related type definitions by extracting Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Final wiring pass for the CooldownSession decomposition (#375):
cooldown-types.ts—BetOutcomeRecord,IncompleteRunInfo,CooldownSessionResult,CooldownPrepareResultmoved out of the orchestrator. 10 import sites updated, re-exports maintain backward compat.@deprecatedtags on kataka legacy fields —katakaConfidenceCalculatorandkatakaDirin bothCooldownSessionDepsandCooldownBeltDeps.BeltComputeResultimport from cooldown-session.ts.Decomposition Summary (all 6 PRs)
CooldownSession: 1,359 → 673 lines (-51%)
Quality Gates
Closes #375
Test plan
npm run verify— full suite passesnpm run test:acceptance— 113 BDD scenariosnpm run test:arch— dep-cruiser cleannpm run test:arch:unit— 14 of 15 ArchUnit rulesnpm run test:crap— cooldown files all cleannpm run test:mutation— 85.03%Summary by CodeRabbit
katakaConfidenceCalculatorandkatakaDir. Migrate toagentConfidenceCalculatorandagentDirrespectively before v1 removal.