Route Tasks By Policy
Do this
- •Read
routing.jsonfrom the repository root. - •Classify the task by matching
keywords(case-insensitive) for each route. - •If no match, select
default_modeland settask_typetounknown_default. - •Log the decision to
routing_ledger.mdbefore executing the task. - •Execute the task with the chosen model(s) and synthesize results if multiple models are used.
Helper script:
scripts/route_task.py --prompt "<task>" [--log]
Log format
Use a single-line entry:
[timestamp] | TASK: <task_type> | MODEL: <model> | REASON: <reason>
Rules
- •Explain why the model was chosen by citing the route reason.
- •Do not override
routing.jsonunless the user explicitly instructs it. - •Log before execution.
- •Do not edit
routing.jsonorrouting_ledger.mdunless asked.