feat(os): model & effort routing policy as data + ADR-0017 (M16 16.1)#257
Merged
Conversation
Closes #252. New eighth OS spec orchestrator/os/routing/: work signals (tracker labels + sets-pattern/decision-heavy flags) escalate monotonically from a cheapest floor to a capability tier (fast/standard/frontier-reasoning) and an OS-neutral effort (low-max). Model names live only in the dated catalog (tiers-not-names); the tier call ships as a #224 worked-example decision surface registered under the examples gate. Advisory-first per RFC-0001: the human keeps final model authority. - os/routing/_schema.md + routing.yaml (auto-discovered by os-spec-completeness; os/** gate-coverage already applies) - eados_lint EXAMPLE_FILES += routing.yaml - ADR-0017 + index row; os/README spec table; AGENTS.md spec list; CHANGELOG [Unreleased] Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
danielPoloWork
added a commit
that referenced
this pull request
Jul 9, 2026
…rd (#260) The owner enriched the M15 backfill table (Title/Model/Effort columns, ultracode spelled as the Claude Code alias of max); on top: status -> in progress, a delivery record (16.1 #257 / 16.2 #258 merged, 16.3 #259 open, 16.4 queued on M15 #239), and the backfill marked APPLIED 2026-07-09 (owner-approved; Routing: lines written to #234-#250). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #252 (M16 16.1). Plan:
.issues/M16-model-effort-routing-milestone.md(#256). ADR: ADR-0017.What
The eighth OS spec,
orchestrator/os/routing/— "which model, how much effort?" aspolicy-as-data instead of a manual per-issue judgment.
routing.yaml+_schema.md— work signals (tracker labels + the assertedsets-pattern/decision-heavyflags) resolve by monotonic escalation: start at thecheapest floor (
fast/low), every matched rule raises to at least itsmin_tier/min_effort, final = max. Rules never lower — the same only-add-never-relaxprinciple as domain overlays; deterministic and order-independent.
fast/standard/frontier-reasoning; names liveonly in the dated
catalog:(today, Claude Code: Sonnet 5 / Opus 4.8 / Fable 5) withper-host
effort_aliases("ultracode" →max). Model churn = a catalog edit + refreshedas_of:, never a policy/code change. Precedent: risk-weights-as-data (feat(risk): risk-model weights as per-domain data in risk.yaml (M6 6.2 / F3) #79), ADR-0009.maintainer-reviewed M15 assessment), registered in
eados_lintEXAMPLE_FILES— the only codetouch (one tuple entry).
(RFC-0001); auto-application only for delegated subagent work (lands with 16.4/[16.4] Auto-apply routing where the host allows: delegated subagent work carries model + effort #255).
os/README.mdspec table,AGENTS.md§4 spec list, ADR index, CHANGELOG[Unreleased].One deliberate deviation from the issue letter
#252 sketched a separate
models.yaml; the catalog is instead a top-levelcatalog:key ofrouting.yaml, becauseos-spec-completenessschema-validates only the<spec>.yamlinstance — a sibling file would get parse-checking but no schema keys. Folding it keeps the
whole policy under the strongest existing gate. Same data, better perimeter.
Verification
eados_lint.pyself-lint: OK (os-spec-completeness auto-discovered the new spec;os/**gate-coverage pattern already applies — no registry change needed).
run_all.py), incl.test_examplesover the new block.yamlmini.load_yamlvs PyYAMLsafe_loadonrouting.yaml→structurally identical (incl. quoted
as_ofstaying a string in both)._schema.mdinvariants; loud enforcement lands with the 16.2 evaluator ([16.2]tools/route_advice.py— pure evaluator: issue signals → recommended tier + effort + rationale #253) per the ADR.🤖 Generated with Claude Code