Skip to content

Repository files navigation

Model Routing as Code

model-routing-as-code explores how to represent model/provider/local/cloud selection rules, correctness gates, cost routing, fallback policy, and eval thresholds as version-controlled, reviewable, testable, auditable, and agent-operable source material.

Working Definition

Model Routing-as-Code means treating model/provider/local/cloud selection rules, correctness gates, cost routing, fallback policy, and eval thresholds as canonical operational state expressed through files, schemas, examples, tests, and reviewable change history.

Goals

  • Define the domain clearly.
  • Collect prior art and examples.
  • Provide reusable schemas and templates.
  • Support human review and agent execution.
  • Preserve auditability, provenance, and governance boundaries.

Non-Goals

  • This repo is not a universal standard.
  • This repo is not legal, security, compliance, or operational advice.
  • This repo does not canonize HUMMBL/BaseN/Ownward concepts unless explicitly marked and audited.

Packet status

  • seed -> v0.1-draft

v0.1 packet locations

HUMMBL policy packet v0.1 (layered envelope)

Per scope decision #7 (Option B), the policy packet uses a layered runtime-envelope + model-route architecture:

Runtime, privacy, and authority gates resolve before model/provider/cost selection. A cheaper model cannot bypass an unsafe runtime, privacy boundary, authority gate, or required human review.

Governed evaluation packets

These artifacts are evidence and experiment scaffolding, not adopted universal routing policy.

Full receipt conformance requires the deterministic validator. Draft 2020-12 schema validation covers the portable structural contract; the validator also enforces cross-field route, lane, telemetry, timestamp, and observation semantics.

Status

Public seed repository. Initial executable packet in progress as seed -> v0.1-draft.

HUMMBL Ecosystem

This repo is part of the HUMMBL AI governance architecture.

Repo Purpose
hummbl-governance Governance runtime — kill switch, circuit breaker, cost governor, 34 primitives
mcp-server MCP server for Base120 mental models — 120 reasoning operators for Claude/Cursor
base120 120 mental models for structured reasoning — stdlib-only Python library
crab CRAB protocol — Check, Reason, Act, Bus for multi-agent turn execution
docs Canonical public documentation — Mintlify-powered
hummbl-toolkit HUMMBL utility toolkit

Learn more at hummbl.io.


Author

Reuben Bowlby — Founder, HUMMBL

About

Define model/provider/local/cloud selection rules, correctness gates, cost routing, fallback policy, and eval thresholds.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages