feat: whole-codebase and corpus model routing policy v0.1#12
feat: whole-codebase and corpus model routing policy v0.1#12hummbl-dev wants to merge 2 commits into
Conversation
Closes #8 - docs/routing-policy-v0.1.md: machine-readable routing policy for whole-repository understanding and massive-source intelligence workloads with 13 workload classes, 18 route dimensions, 9 route dispositions, 12 hard gates, soft ranking by cost/latency/reliability/evidence-recency, required policy behaviors, initial candidate lanes, example route card, workload schema, and route decision schema - 8 fixtures: valid-minimal-route, invalid-missing-hard-gate, stale-evidence, privacy-conflict, missing-model-version, missing-budget-metadata, cheaper-route-rejected, preview-model-risk Refs hummbl-dev/hummbl-dev#155, hummbl-dev/autoresearch-pipeline#30, hummbl-dev/hummbl-bibliography#78, hummbl-dev/hummbl-dev#153
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (39)
✨ Finishing Touches🧪 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 |
Peer Review — independent non-author reviewThis PR introduces a comprehensive model routing policy v0.1 with 39 files: a routing-policy spec, JSON schema for evaluation receipts, three Python validation/extraction tools (stdlib-only, no external dependencies), 8 valid/invalid fixtures, a benchmark dataset with cross-artifact validation, and 4 test modules. The code quality is generally high with thoughtful design choices (deterministic JSON serialization, hand-rolled JSON Schema subset validator, explicit unavailable-telemetry modeling, cross-artifact hash reconciliation). Verdict: NEEDS_DISCUSSIONNo blocking security issues found. The findings below are robustness, test-coverage, and operational gaps that should be discussed before merge, particularly the lack of CI for Python tests and unhandled exceptions in two of the three CLI tools. FindingsHIGH1. No CI workflow runs the Python tests 2. Unhandled exceptions in benchmark validator and extract tool CLIs
Recommend wrapping both MEDIUM3. Missing test coverage for several semantic validation checks
These are cross-field constraints the schema can't express, so they're only enforced in Python. Each should have at least one negative test. 4. Division-by-zero risk in benchmark validator derived-economics computation round(ultra["cost"] / single["cost"], 2)
round(ultra["output_tokens"] / single["output_tokens"], 2)
round((ultra["latency"] - single["latency"]) / single["latency"] * 100, 1)If any denominator is 0.0, this raises LOW5. 6. Regex-based HTML parsing assumes single-line JSON objects 7. Internal Slack URLs preserved in manifest 8. No INFO9. Fixture tests check fragment presence, not exact error sets 10. Hand-rolled JSON Schema validator supports a limited keyword subset 11. 12. What's done well
CI Status
No GitHub Actions workflows exist in the repository. The Python test suite is not executed in CI. |
|
Initial review pass — pinned head Evidence:
Findings:
Next review focus: Check routing defaults, fallback/fail-closed behavior, schema compatibility, and negative-path tests before treating the policy as executable. Gate: HOLD. This is an evidence-backed triage comment, not final merge approval; promotion still requires content validation against this exact head and the repository's review rules. |
Summary
docs/routing-policy-v0.1.md: Machine-readable routing policy for whole-codebase and corpus workloadsCloses #8
Refs hummbl-dev/hummbl-dev#155, hummbl-dev/autoresearch-pipeline#30, hummbl-dev/hummbl-bibliography#78, hummbl-dev/hummbl-dev#153
Required artifacts
1. Routing-policy specification
2. Machine-readable workload schema
3. Model/scaffold capability registry
4. Benchmark-result import schema
5. Route decision schema and receipt
6. Hard-gate and soft-ranking logic
7. Fixtures
8. Example route cards
9. Migration path
Required policy behaviors
Validation
Rollback
Revert the commit. No runtime impact.
Review
Requesting independent review. The originating agent must not self-approve or merge.