Repository navigation
feat(pstack-omp): route each config line to an agent pinned by task.agentModelOverrides - #14
Merged
Merged
Conversation
…er agents A role whose configured model differs from its mapped agent's task.agentModelOverrides entry now runs on pstack-worker or pstack-reader, with the model named in the task call. A role that keeps its agent's model but changes the level sends effort instead. setup-pstack checks task.perCallModel, task.enableEffort and the modelRoles entries these need, and no longer rewrites task.agentModelOverrides for each role.
cwkang1998
force-pushed
the
feat/per-call-model-routing
branch
from
November 15, 2026 17:07
016a64c to
a654019
Compare
cwkang1998
force-pushed
the
feat/per-call-model-routing
branch
from
November 15, 2026 17:14
a654019 to
4c1edd8
Compare
Model routing is now two cases. The mapped agent runs a role when it already runs the role's model, with effort for a level change. Every other role runs on pstack-worker with the model named per call. pstack-reader is removed. pstack-worker takes read-only roles too, and its prompt tells it to change nothing when the role is read-only.
…-worker for overridden agents With no task.agentModelOverrides entry, OMP accepts a per-call model on any agent. The mapped agent now takes the role line's value in model, and the :level suffix sets the effort. pstack-worker takes a role only when its mapped agent has an override with another value. The effort mapping and the task.enableEffort requirement are gone. setup-pstack no longer writes overrides. It adds a modelRoles entry for each model that no role names.
…drop pstack-worker A per-call spawn that OMP refuses or cannot run now stops and reports the missing setting, role, or model. It no longer restarts on the agent's default model. how, why, reflect, swarm and arena no longer fall back to a default model or agent. Arena's cross-judge still moves to the next configured pool entry. pstack-worker is removed. With no overrides it never ran, and an override now fails the spawn instead of moving the role to another agent. The Model routing table lists the modelRoles entry each agent follows when no model is named, as observed on OMP 18.20.2.
…gentModelOverrides Replaces the per-call model routing on this branch. pstack never names a model on a task call again. The Model routing section maps every config line to an agent. Lines reuse task, reviewer, scout and librarian where their models agree. Ten new agents cover hardest tasks, judgment and prose, reflect tooling, swarm workers, three runner seats shared by arena, architect and interrogate, and three judge seats. Before each spawn the session compares the agent's override with the config line and stops when they differ. how, why, reflect, swarm and arena stop instead of falling back to a default model or agent. setup-pstack writes the overrides, and refuses inherit-parent, panels longer than three, disagreeing lines on one agent, fallback chains covering a configured model, and before_subagent_spawn handlers. verify.mjs fails when a config line in the setup-pstack template has no routing row or routes to an agent the package does not ship.
Config-line spawns send no effort, so the override's level holds. poteto-mode's effort rule applies only to roles with no line and drops its inherit-parent and closest-choice fallbacks. Remove leftover model-switching text from orchestrate, architect, poteto-help and setup-pstack. swarm and reflect now spawn on the line's agent instead of the canonical role. verify.mjs checks lines with hyphens, flags routing rows that are not config lines, requires each pstack agent to name only its own role, and keeps edit and write off the judges. Runner prompts no longer mention panels, seats or other models, so an eval candidate is not told it is being compared.
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.
Why
$PSTACK_CONFIGsets a model for each role, but each role ran on its fixed agent at whatever modeltask.agentModelOverridesgave that agent. A line that differed was ignored. For example,hardest tasks: fableran on Opus, and a panel seat for a model that no agent runs had nowhere to go. Every role must run on its configured model or fail.What changed
skills/pstack-omp/SKILL.mdmaps each config line to an agent. Lines reusetask,reviewer,scoutandlibrarianwhere their models agree. Ten new agents cover the rest:pstack-hardest,pstack-judgment,pstack-reflect-tooling,pstack-swarm-worker,pstack-runner-1to3for arena, architect and interrogate, andpstack-judge-1to3.how,why,reflect,swarmandarenastop instead of falling back to a default model or agent.setup-pstackwrites the overrides. It refusesinherit-parent, a panel longer than three, two lines on one agent that disagree, a fallback chain that covers a configured model, and abefore_subagent_spawnhandler.scripts/verify.mjsfails when a config line has no routing row or routes to an agent the package does not ship.Scope
inherit-parentandautoare no longer valid config values.Blast Radius
Every pstack spawn for a config line now depends on that agent's override. A missing or mismatched override stops the spawn, where before the role ran on whatever the agent had. Re-running
/setup-pstackwrites the overrides. This PR conflicts with #15 inskills/arena/SKILL.mdandskills/setup-pstack/SKILL.md.Verification
highheld forpstack-reflect-toolingandpstack-swarm-worker, andpstack-runner-2andpstack-judge-2ran onopenai-codex/gpt-6-astra.npm run verifyandnpm run test:sync(4 of 4) pass.verifyfailed as intended with a renamed agent in the routing table, and with a config line that had no row.