Score and reshape the plan only on the project's rung or above

This commit is contained in:
2026-10-15 15:43:01 +02:00
parent 38da72ee27
commit b0daa3ed25
9 changed files with 15 additions and 30 deletions
+2 -2
View File
@@ -28,9 +28,9 @@ def off_the_projects_rung(route: Route, anchor: Rung | None) -> str:
"""Which subagents to launch on the project's rung, anchor, while the worker runs off it; empty while it runs on it."""
if anchor is None or route.rung == anchor:
return ""
# Below the project's rung, the reviewers stay on it to hold quality; above it, the seats score every chunk on one rung, and the security pass spends no more than the project chose.
# Below the project's rung, the reviewers and the plan's scorer stay on it to hold quality; above it, the seats score every chunk on one rung, and the security pass spends no more than the project chose.
below = highest(route.rung, anchor) == anchor
launched = "each reviewer, each comprehension seat and the security pass's subagent" if below else "each comprehension seat and the security pass's subagent"
launched = "each reviewer, each comprehension seat, the security pass's subagent and each subagent that files or scores todo.md items" if below else "each comprehension seat and the security pass's subagent"
return f" Your rung is {'below' if below else 'above'} the project's, {anchor}: launch {launched} with the Agent tool set to {anchor.agent_args()}. Run a full scan only from such a subagent, since the scan's agents run on the model that starts them."