Repository navigation
Model policy: t3_thread_roles reports an orchestrator that names no effort (#876) - #1299
Conversation
…ffort (#876) An orchestrator runs with a model and an effort written in its own thread settings, never the provider default (owner decision on #876). A thread always names its model, so each orchestrator row that holds its role now has modelProblem: a text when the thread's model has an effort control in this machine's catalog and the thread names no effort, else null. The check is orchestratorEffort.ts, read as the model policy reads a pick; it holds with the policy off too and refuses nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: code · reviewer: Claude Opus 5.5 (lens sub-agent) · read at: f8e44fe blocker: none Checked, no finding:
State question:
🤖 Generated with Claude Code |
Part of #876: the last open point, "an orchestrator's own model and effort are always set explicitly".
The question (owner decision of 11-29): an orchestrator thread runs with a model and an effort written in its own thread settings, never the provider default; done when the start path (or the daily check) reports an orchestrator thread whose model or effort is unset, and the docs say so.
What this does
ModelSelection.modelis required in the thread shell), so only the effort can be left to the provider.apps/server/src/fork/orchestratorEffort.ts:orchestratorEffortProblem(providers, selection)gives a text when the model has an effort control in this machine's catalog and the selection names no effort, read as the model policy reads a pick (pickOfSelection,modelPolicyPickEfforts). A model's ultracode default does not count as a named effort. A model with no effort control, or an instance this machine does not list, is not reported (nothing to name, or T3 cannot tell).t3_thread_roles(the report the assistant reads): each orchestrator row that holds its role getsmodelProblem(that text, elsenull); the assistant's row and a row with aproblemalways havenull. The result's note tells the reader to ask the person to pick an effort in that thread's model picker. It holds with the policyofftoo, and refuses nothing.ProviderRegistry(the catalog); the waits toolkit tests and the fork budget test provide a mock. The tool's description is unchanged, so the fork context budget is unchanged.docs/fork/model-policy.md, themodelProblemfield indocs/fork/assistant.md, and one sentence in the model policy change file.Left: the decision's "start path (or the daily check)". This PR reports it through the role tool the assistant reads on demand; the composer already warns for a turn with no effort while the policy is on. A report at an orchestrator's turn start or in a daily check (if the owner wants one beyond this) is not built here. If this report is enough, #876's checklist can be ticked and the issue closed.
Tests (failing first on main):
orchestratorEffort.test.ts(new) andthreadRolesTool.test.ts(rows and the call) failed before the change (3 failed, plus the missing module) and pass after. Run locally: those two,waits.test.ts,playtest.test.ts,taskList.test.ts,ForkAgentContextBudget.test.ts: 6 files, 50 tests pass. Server typecheck clean. Fork checks (schema, upstream files, seams) pass locally.🤖 Generated with Claude Code