refactor: remove kataka aliases, injectable registry, wire bridge-run-store#402
refactor: remove kataka aliases, injectable registry, wire bridge-run-store#402
Conversation
…-store (#395) Three cleanup fixes for the CooldownSession decomposition: 1. Remove deprecated kataka fields (katakaConfidenceCalculator, katakaDir) from CooldownBeltDeps and CooldownSessionDeps — no public API consumers. 2. Add injectable agentRegistry to CooldownBeltDeps so computeAgentConfidence no longer constructs KataAgentRegistry (infra) inside a features-layer class. 3. Wire BridgeRunSyncer to bridge-run-store adapter — replaces raw readFileSync and JSON.parse with Zod-validated readBridgeRunMeta and listBridgeRunsForCycle. Eliminates ~26 lines of duplicate fs code. Closes #395. 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)
📝 WalkthroughWalkthroughFormalizes bridge-run metadata writing by introducing a deterministic "base" JSON structure with required fields. Switches BridgeRunSyncer from raw filesystem operations to persistence-layer helpers ( Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 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
Wave 3B cleanup fixes for the CooldownSession decomposition (#375):
katakaConfidenceCalculatorandkatakaDirfromCooldownBeltDepsandCooldownSessionDeps— no public API consumers existagentRegistrytoCooldownBeltDeps— eliminates concrete infra dependency (new KataAgentRegistry) inside a features-layer classBridgeRunSyncertobridge-run-storeadapter — replaces rawreadFileSync+JSON.parsewith Zod-validatedreadBridgeRunMeta()andlistBridgeRunsForCycle(), eliminating ~26 lines of duplicate fs codeCloses #395
Impact
Test plan
npm run verifypasses (lint + typecheck + unit + integration + e2e + build)npm run test:acceptancepasses (112 scenarios)Summary by CodeRabbit
Bug Fixes
Refactor