Skip to content

Commit cacb0a1

Browse files
test(pstack): speed follows delegate inheritance, not the role target
After main's provider-availability resolver merged in, two tests still assumed pstack targets carry a speed. A target now sets effort only, so a child on the parent's own model inherits the parent's speed and any other child gets the provider default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5efd461 commit cacb0a1

2 files changed

Lines changed: 33 additions & 19 deletions

File tree

‎apps/server/src/mcp/OrchestratorMcpService.test.ts‎

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ describe("OrchestratorMcpService provider resolution", () => {
29682968
);
29692969

29702970
it.effect(
2971-
"pstack Opus and Astra targets dispatch identically under Claude and Codex parents",
2971+
"pstack targets set the same effort under any parent and leave speed to inheritance",
29722972
() =>
29732973
Effect.gen(function* () {
29742974
const claudeId = ProviderInstanceId.make("claudeAgent");
@@ -3099,24 +3099,37 @@ describe("OrchestratorMcpService provider resolution", () => {
30993099
}
31003100
results.push(selections);
31013101
}
3102-
assert.deepEqual(results[0], results[1]);
3103-
assert.deepEqual(results[0], [
3104-
{
3105-
instanceId: claudeId,
3106-
model: "claude-opus-5-5",
3107-
options: [
3108-
{ id: "effort", value: "xhigh" },
3109-
{ id: "fastMode", value: false },
3110-
],
3111-
},
3112-
{
3113-
instanceId: codexInstanceId,
3114-
model: "gpt-6-astra",
3115-
options: [
3116-
{ id: "reasoningEffort", value: "high" },
3117-
{ id: "serviceTier", value: "default" },
3118-
],
3119-
},
3102+
assert.deepEqual(results, [
3103+
[
3104+
{
3105+
instanceId: claudeId,
3106+
model: "claude-opus-5-5",
3107+
options: [
3108+
{ id: "effort", value: "xhigh" },
3109+
{ id: "fastMode", value: true },
3110+
],
3111+
},
3112+
{
3113+
instanceId: codexInstanceId,
3114+
model: "gpt-6-astra",
3115+
options: [{ id: "reasoningEffort", value: "high" }],
3116+
},
3117+
],
3118+
[
3119+
{
3120+
instanceId: claudeId,
3121+
model: "claude-opus-5-5",
3122+
options: [{ id: "effort", value: "xhigh" }],
3123+
},
3124+
{
3125+
instanceId: codexInstanceId,
3126+
model: "gpt-6-astra",
3127+
options: [
3128+
{ id: "reasoningEffort", value: "high" },
3129+
{ id: "serviceTier", value: "priority" },
3130+
],
3131+
},
3132+
],
31203133
]);
31213134
}),
31223135
);

‎apps/server/src/pstack/pstackModels.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ it.effect("leaves speed to the provider unless the models file sets it", () =>
9898
},
9999
]);
100100
const explicit = resolveRoles({
101+
...availability,
101102
file: parseModelsFile(
102103
"architect runners: codex/gpt-6-astra reasoningEffort=high serviceTier=priority",
103104
),

0 commit comments

Comments
 (0)