Keep the shipped routing ladder beside the module that reads it, so a copy of bin/ carries it

This commit is contained in:
2026-11-15 18:59:23 +01:00
parent 0a20b6d4f6
commit c5acadf8d3
10 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ from project_config.settings import Unnamed
# The file's name in both places. Three readers, seated as the human who writes an override in a hurry, picked a bare list of objects over a list of strings, a list of pairs and a list under a key. Two of them picked one name for both files: an override is then a copy of the shipped file with rungs cut.
NAME = "routing-ladder.json"
# The ladder this setup ships, at the root of the checkout the running tool is in.
SHIPPED = pathlib.Path(__file__).resolve().parents[2] / NAME
# The ladder this setup ships, beside this module, so a copy of bin/ carries it: the tests of a reload and mutate-changes each run the tools from such a copy.
SHIPPED = pathlib.Path(__file__).resolve().with_name(NAME)
# A model as Rung.family reads it: the Agent tool's family name follows the first hyphen.
MODEL = re.compile(r"[^\s-]+(-[^\s-]+)+")
SHAPE = f'a JSON list of rungs, least competent first, each as {{"model": "claude-opus-5-5", "effort": "medium"}}, with an effort of {", ".join(EFFORTS[:-1])} or {EFFORTS[-1]}'
+9
View File
@@ -0,0 +1,9 @@
[
{"model": "claude-sonnet-5-5", "effort": "high"},
{"model": "claude-opus-5-5", "effort": "medium"},
{"model": "claude-fable-5-2", "effort": "low"},
{"model": "claude-fable-5-2", "effort": "medium"},
{"model": "claude-opus-5-5", "effort": "xhigh"},
{"model": "claude-fable-5-2", "effort": "high"},
{"model": "claude-fable-5-2", "effort": "max"}
]