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.

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

Watchers

Forks

Releases

Packages

Contributors

Languages