Skip to content

Commit a02404b

Browse files
feat(pstack): let roles hold a pool of models (#27)
* build(pstack): sync from the native T3 Code port Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(pstack): vendor pstack-t3code 0.15.32-t3code.1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(pstack): load native skills without a harness adapter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(pstack): describe the native pack and custom skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(pstack): sync native model pool instructions Vendor pstack-t3code 0.15.32-t3code.2 at 3fb34e1 with shared panel and pool guidance and multi-model setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(pstack): let roles hold a pool of models Keep unavailable fallbacks for panels, filter them out of usable pools, and identify multi-seat role semantics in the runtime block. Preserve explicit inherit entries and report unavailable choices. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(server): stop bundling the removed pstack adapter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent af78cb4 commit a02404b

25 files changed

Lines changed: 130 additions & 65 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,10 @@ it.layer(NodeServices.layer)("PstackPack", (it) => {
279279
records: [],
280280
};
281281
const expansion = (yield* pack.expandComposer(input, { createdBy: "user" })).text;
282-
assert.include(expansion!, "- architect runners: [1] inherit [2] inherit");
282+
assert.include(
283+
expansion!,
284+
"- architect runners (panel, one child per seat): [1] inherit [2] inherit",
285+
);
283286
assert.include(expansion!, "Fallback: architect runners seat 1");
284287
assert.equal(
285288
(yield* pack.expandComposer(
@@ -378,7 +381,7 @@ it.layer(NodeServices.layer)("PstackPack", (it) => {
378381
}).pipe(Effect.provide(fixture.layer));
379382
assert.include(
380383
expansion.text,
381-
'- architect runners: [1] {"providerInstanceId":"claudeAgent_ready"',
384+
'- architect runners (panel, one child per seat): [1] {"providerInstanceId":"claudeAgent_ready"',
382385
);
383386
assert.notInclude(expansion.text, "Fallback: architect runners seat 1");
384387
}),

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

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,57 @@ it.effect("leaves speed to the provider unless the models file sets it", () =>
120120
}),
121121
);
122122

123-
it.effect("disabled providers fall back visibly without shrinking panels", () =>
123+
it.effect.each([
124+
{ label: "arena runners", panel: true },
125+
{ label: "architect runners", panel: true },
126+
{ label: "interrogate reviewers", panel: true },
127+
{ label: "feature, refactoring", panel: false },
128+
{ label: "arena cross-judge pool", panel: false },
129+
{ label: "swarm workers", panel: false },
130+
])("unavailable seats preserve panels but do not pollute pools: $label", ({ label, panel }) =>
124131
Effect.sync(() => {
132+
const roleFile = parseModelsFile(file.replace("architect runners:", `${label}:`));
133+
const roleDefaults = [{ ...defaults[0]!, label }];
125134
const result = resolveRoles({
126135
...availability,
127-
file: parseModelsFile(file),
128-
defaults,
136+
file: roleFile,
137+
defaults: roleDefaults,
129138
providers: providers.map((provider) => ({ ...provider, enabled: false })),
130139
capableInstanceIds,
131140
});
132-
assert.deepEqual(result.roles[0]!.seats, [{ kind: "inherit" }, { kind: "inherit" }]);
133-
assert.equal(
134-
result.diagnostics[0],
135-
"Fallback: architect runners seat 1 claudeAgent/claude-opus-5-5 unavailable (Provider instance is disabled.); runs on the parent model.",
141+
assert.deepEqual(
142+
result.roles[0]!.seats,
143+
panel ? [{ kind: "inherit" }, { kind: "inherit" }] : [{ kind: "inherit" }],
144+
);
145+
assert.equal(result.diagnostics.length, 2);
146+
assert.include(
147+
result.diagnostics[0]!,
148+
`Fallback: ${label} seat 1 claudeAgent/claude-opus-5-5 unavailable (Provider instance is disabled.)`,
149+
);
150+
const partial = resolveRoles({
151+
...availability,
152+
file: roleFile,
153+
defaults: roleDefaults,
154+
providers: providers.map((provider, index) => ({ ...provider, enabled: index !== 0 })),
155+
capableInstanceIds,
156+
});
157+
assert.deepEqual(
158+
partial.roles[0]!.seats.map((seat) => seat.kind),
159+
panel ? ["inherit", "target"] : ["target"],
160+
);
161+
assert.include(partial.diagnostics[0]!, `Fallback: ${label} seat 1`);
162+
const aliases = resolveRoles({
163+
...availability,
164+
file: parseModelsFile(`${label}: auto, inherit-parent, missing/model`),
165+
defaults: roleDefaults,
166+
providers,
167+
capableInstanceIds,
168+
});
169+
assert.deepEqual(
170+
aliases.roles[0]!.seats,
171+
Array.from({ length: panel ? 3 : 2 }, () => ({ kind: "inherit" })),
136172
);
173+
assert.include(aliases.diagnostics[0]!, `Fallback: ${label} seat 3 missing/model`);
137174
}),
138175
);
139176
it.effect("missing models file maps upstream family and effort, ignoring -fast", () =>
@@ -247,7 +284,11 @@ it.effect("formats the adapter block exactly and omits empty notes", () =>
247284
packDir: "/pack",
248285
modelsPath: "/models.md",
249286
resolved: {
250-
roles: [{ role: "architect runners", seats: [{ kind: "inherit" }] }],
287+
roles: [
288+
{ role: "architect runners", seats: [{ kind: "inherit" }] },
289+
{ role: "interrogate reviewers", seats: [{ kind: "inherit" }, { kind: "inherit" }] },
290+
{ role: "feature, refactoring", seats: [{ kind: "inherit" }, { kind: "inherit" }] },
291+
],
251292
diagnostics: [],
252293
},
253294
}),
@@ -260,6 +301,8 @@ it.effect("formats the adapter block exactly and omits empty notes", () =>
260301
"Read <pstack>/skills/arena/SKILL.md and follow it.",
261302
"Resolved roles (exact delegate_task targets; they override any model a skill or <models> names):",
262303
"- architect runners: [1] inherit",
304+
"- interrogate reviewers (panel, one child per seat): [1] inherit [2] inherit",
305+
"- feature, refactoring (pool, pick one per spawn): [1] inherit [2] inherit",
263306
"</t3_pstack>",
264307
].join("\n"),
265308
);

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

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
type ServerProvider,
55
} from "@t3tools/contracts";
66
import { getProviderOptionCurrentValue } from "@t3tools/shared/model";
7-
import { type PstackRoleDefault } from "@t3tools/pstack";
7+
import { PSTACK_PANEL_ROLES, type PstackRoleDefault } from "@t3tools/pstack";
88
import {
99
delegationProviderConstraints,
1010
invalidOptionSelections,
@@ -161,7 +161,8 @@ export function resolveRoles(
161161
role.defaultValue
162162
.split(",")
163163
.map((slug) => defaultSeat(slug.trim(), input.providers, constraintsFor));
164-
const seats = entries.map((seat, index): Seat => {
164+
const panel = PSTACK_PANEL_ROLES.has(role.label);
165+
const seats = entries.map((seat, index): Seat | undefined => {
165166
if (seat.kind === "inherit") return seat;
166167
const entry = seat.entry;
167168
const provider = input.providers.find(
@@ -193,16 +194,20 @@ export function resolveRoles(
193194
reason ??= invalidOptionSelections(options, descriptors).join(" ") || undefined;
194195
if (reason !== undefined) {
195196
diagnostics.push(
196-
`Fallback: ${role.label} seat ${index + 1} ${entry.providerInstanceId}/${entry.model} unavailable (${reason}); runs on the parent model.`,
197+
`Fallback: ${role.label} seat ${index + 1} ${entry.providerInstanceId}/${entry.model} unavailable (${reason}); ${panel ? "runs on the parent model." : "excluded from pool; uses the parent model if no seats remain."}`,
197198
);
198-
return { kind: "inherit" };
199+
return panel ? { kind: "inherit" } : undefined;
199200
}
200201
return {
201202
kind: "target",
202203
target: { providerInstanceId: entry.providerInstanceId, model: entry.model, options },
203204
};
204205
});
205-
return { role: role.label, seats };
206+
const available = seats.filter((seat) => seat !== undefined);
207+
return {
208+
role: role.label,
209+
seats: available.length > 0 ? available : [{ kind: "inherit" } as const],
210+
};
206211
});
207212
return { roles, diagnostics };
208213
}
@@ -220,10 +225,15 @@ export function formatPstackBlock(input: {
220225
`<models>: ${input.modelsPath}`,
221226
...input.skillNames.map((name) => `Read <pstack>/skills/${name}/SKILL.md and follow it.`),
222227
"Resolved roles (exact delegate_task targets; they override any model a skill or <models> names):",
223-
...input.resolved.roles.map(
224-
({ role, seats }) =>
225-
`- ${role}: ${seats.map((seat, index) => `[${index + 1}] ${seat.kind === "inherit" ? "inherit" : JSON.stringify(seat.target)}`).join(" ")}`,
226-
),
228+
...input.resolved.roles.map(({ role, seats }) => {
229+
const rule =
230+
seats.length > 1
231+
? PSTACK_PANEL_ROLES.has(role)
232+
? " (panel, one child per seat)"
233+
: " (pool, pick one per spawn)"
234+
: "";
235+
return `- ${role}${rule}: ${seats.map((seat, index) => `[${index + 1}] ${seat.kind === "inherit" ? "inherit" : JSON.stringify(seat.target)}`).join(" ")}`;
236+
}),
227237
...(input.resolved.diagnostics.length === 0
228238
? []
229239
: ["Notes:", ...input.resolved.diagnostics.map((note) => `- ${note}`)]),

‎docs/user/pstack.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,23 @@ and keeps your model choices.
1616
## Choose models once
1717

1818
Run `$pstack:setup-pstack` in any thread. It reads the providers and models this environment offers,
19-
asks for a reasoning budget, shows every pstack role with its model, and saves your choices for every
19+
asks for a reasoning budget, shows every pstack role with its models, and saves your choices for every
2020
provider's threads on this machine. Run it again to change them, or after you enable or add a
2121
provider. Until you run it, pstack uses its own defaults where this environment offers those models.
2222

23+
List several models on a role to give pstack a pool that picks one per spawn. Arena runners,
24+
architect runners, and interrogate reviewers are panels that run every model listed.
25+
2326
## Run a workflow
2427

2528
Type `$` or `/` in the composer and pick a `pstack:` skill, for example `$pstack:architect design the
2629
cache layer`. Start rigorous work with `$pstack:poteto-mode`; it picks the other skills as it goes.
2730
Helper agents appear under the thread as tasks you can open, follow, or stop.
2831
Use `$pstack:automate-maintainer` or `$pstack:automate-team` to capture a maintainer’s or team’s engineering conventions.
2932

30-
When a role's provider is turned off or no longer offers the model, that helper runs on your thread's
31-
own model instead, and the reply says `Fallback: …`. Turn the provider back on, or run
32-
`$pstack:setup-pstack` to choose another model.
33+
When a model becomes unavailable, pools use their remaining choices; if none remain, they use your
34+
thread’s model. Panels keep every seat, using your thread’s model for unavailable entries. The reply
35+
explains each unavailable choice with `Fallback: …`; run `$pstack:setup-pstack` to change it.
3336

3437
## Good to know
3538

‎packages/pstack/UPSTREAM.json‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"repository": "https://github.com/ScriptedAlchemy/pstack-t3code",
3-
"commit": "72ce8cda5f4c2b9ed413d3360378af861187291b",
4-
"subtreeHash": "60b40eb3e77fb0832479226e65df66504fead7cb",
5-
"version": "0.15.32-t3code.1",
3+
"commit": "3fb34e1854572c88259bd4092be1894713ee7994",
4+
"subtreeHash": "fd4fec719979e22e33188f8dd92a9a9d0d3a606d",
5+
"version": "0.15.32-t3code.2",
66
"files": {
77
".gitignore": {
88
"sha256": "8ffe9de56bd30c1a95cd945262d6e3ac355ada4111551dde41f67851b9f1fc55",
@@ -149,11 +149,11 @@
149149
"executable": false
150150
},
151151
"plugin.json": {
152-
"sha256": "60ba9a8f82249c2a55a07503205096ad343935b593be1389aed038a7144c302d",
152+
"sha256": "cd62e4e678d68b28cc47c2351e9b44ee1930378a7374900ad431bc70677f9263",
153153
"executable": false
154154
},
155155
"skills/architect/SKILL.md": {
156-
"sha256": "0124cef5ab18becdf9b74ae38b67f09f90f7e93dee4da5858dce62125a9d3aea",
156+
"sha256": "af607fce2619de80661d71d63118f73d3aee2ebb80ae6100cfb6fb19afd70c26",
157157
"executable": false
158158
},
159159
"skills/architect/references/design-red-flags.md": {
@@ -169,11 +169,11 @@
169169
"executable": false
170170
},
171171
"skills/arena/SKILL.md": {
172-
"sha256": "258a4178aa78bfb0c184cb6c4de50193403e61d20db681ba8da04645bddc5afb",
172+
"sha256": "3ef9ed8b9bfb7e46666d807dee9ab7bdb863a43cb8ebec0523dcee7ec71df17a",
173173
"executable": false
174174
},
175175
"skills/automate-maintainer/SKILL.md": {
176-
"sha256": "e53ad00ede4e98c000e7708efbb9e5b17c86ec01b6b6e0b364c0be56267bbdfc",
176+
"sha256": "95c17880de2b4521d57df49c60274148f9c90710974b5be37e73674611f12feb",
177177
"executable": false
178178
},
179179
"skills/automate-maintainer/references/evaluation.md": {
@@ -193,11 +193,11 @@
193193
"executable": false
194194
},
195195
"skills/automate-me/SKILL.md": {
196-
"sha256": "9d51497128df81670b1c6a42cfa56c306816cdb06455322f17e01d62808aad1f",
196+
"sha256": "d45c2dfaccdfface448151d2d196b0167d19b7981fdfa7a167964942d0e0f92e",
197197
"executable": false
198198
},
199199
"skills/automate-team/SKILL.md": {
200-
"sha256": "9a4f4cb1ea45377e5ca29f4e289b67cc9df42d1e60403c4ac151fb861974c6c7",
200+
"sha256": "1c4f25014af5adec96a1c5d68c5d872988248daceb7b9a15df6a5d39f98b7a75",
201201
"executable": false
202202
},
203203
"skills/automate-team/references/roster-discovery.md": {
@@ -241,11 +241,11 @@
241241
"executable": false
242242
},
243243
"skills/figure-it-out/SKILL.md": {
244-
"sha256": "576c3f1003faa50497048e2aaad0fb1d8f6adbc598d2b070dfffa872d036d44a",
244+
"sha256": "04ff6765a9f29dd9f9c74050fe6c91cfde03bc554d1174f2e645c32b97c9f0bd",
245245
"executable": false
246246
},
247247
"skills/how/SKILL.md": {
248-
"sha256": "5efd68277f2243e4785111ccec13778a478eb5df393ced6e13a170100b02c074",
248+
"sha256": "7bcb12d931074187e3fe175aa119270290771931f9384aac05cde758c97f5596",
249249
"executable": false
250250
},
251251
"skills/how/references/explainer-prompt.md": {
@@ -261,7 +261,7 @@
261261
"executable": false
262262
},
263263
"skills/interrogate/SKILL.md": {
264-
"sha256": "e8c8c69c83e80b3eb81d01eea87219d878104dab581882ed47c1757369b11140",
264+
"sha256": "ec27cbedd6e40a60cf17307d5e190bddb1a5556a1c6647494f89c2677b3daa77",
265265
"executable": false
266266
},
267267
"skills/interrogate/references/code-quality-review.md": {
@@ -293,15 +293,15 @@
293293
"executable": false
294294
},
295295
"skills/maintain-verification-skill/SKILL.md": {
296-
"sha256": "c55cbc459140ad396b2dd91c95959c7dc597fa1ce55a439772178e8a709401a6",
296+
"sha256": "0ac81df9688c0578a6487d7c06a6fba90fe59f23dd274ab38f5771968cbee72b",
297297
"executable": false
298298
},
299299
"skills/make-bot-ui/SKILL.md": {
300300
"sha256": "b40f81acc7838072768d78ed3a7cd81a41da9f80d866bf940b818b4989dfbb8b",
301301
"executable": false
302302
},
303303
"skills/no-comments/SKILL.md": {
304-
"sha256": "9f338b9ab171a5454b1e5feb5652b0d0d2ad8478d50a641ad1ef7d8b41943b68",
304+
"sha256": "d7d633c6c1dca4b4ebde68b92e4a2c1cb675c1ae1c6092af5dc40268e7cc9053",
305305
"executable": false
306306
},
307307
"skills/poteto-help/SKILL.md": {
@@ -317,7 +317,7 @@
317317
"executable": false
318318
},
319319
"skills/poteto-mode/SKILL.md": {
320-
"sha256": "d74763f526c1699b31f6907f42f5bf590d5a739b0ee259a722519a8316ada8ca",
320+
"sha256": "9668120a717d135e8ce746bb4bd7276388864479a533d62ee0f5a2db12412086",
321321
"executable": false
322322
},
323323
"skills/poteto-mode/playbooks/authoring-a-skill.md": {
@@ -597,11 +597,11 @@
597597
"executable": false
598598
},
599599
"skills/recall/SKILL.md": {
600-
"sha256": "8200f570f22d29376b233dc94b22be1364ef95211617e422ab0b16827747881a",
600+
"sha256": "2eb3a991d0cdeddb03ce805b1b37006a7c4f140429842ee58be72f94760eb4b6",
601601
"executable": false
602602
},
603603
"skills/reflect/SKILL.md": {
604-
"sha256": "e3805f198ef878165bc6188efe42b840e4991395ad126bd2afd1b9da8598d2da",
604+
"sha256": "145ce88ba06ff69a5dd007b7e26111406d2749f4f29a1c6d1b19e33736673217",
605605
"executable": false
606606
},
607607
"skills/reflect/references/divergent-reviewer.md": {
@@ -621,15 +621,15 @@
621621
"executable": false
622622
},
623623
"skills/setup-pstack/SKILL.md": {
624-
"sha256": "560a8459df37a2bdb6761c833ee6319dba661743007fefcd53f4e6a3c8e535f3",
624+
"sha256": "de963997e508ac129b03927ab21f11f3690e9e205c1bf1bdf29a5eed290f8c1e",
625625
"executable": false
626626
},
627627
"skills/sharpen/SKILL.md": {
628628
"sha256": "551ca441d57773dc05edee6612293e23d9f2560d4ac450cd6bb8f32fea6beb5b",
629629
"executable": false
630630
},
631631
"skills/show-me-your-work/SKILL.md": {
632-
"sha256": "b8feeed9e7548933bcf4986422e087dc2095b2bb88967603ef2f86f6a4e52f2f",
632+
"sha256": "dde5838d662842d2d66e38942b2e8d8c693cb0412aca63ebfaa73161f5370a50",
633633
"executable": false
634634
},
635635
"skills/show-me-your-work/references/decision-log-template.tsv": {
@@ -749,7 +749,7 @@
749749
"executable": false
750750
},
751751
"skills/swarm/SKILL.md": {
752-
"sha256": "eedffdbb04a5d75f6be28266e1f6ff2edbe868f23dc7fc968b817726597865cc",
752+
"sha256": "7d7f9728009f5ccb51dff7584fbf46f5fdcc0c1650f9de4cc420ab3ab6a03e65",
753753
"executable": false
754754
},
755755
"skills/tdd/SKILL.md": {
@@ -777,7 +777,7 @@
777777
"executable": false
778778
},
779779
"skills/why/SKILL.md": {
780-
"sha256": "693a375ae6f415da10b88d27cb4c3ca8db39a8ec1860f91a80e78f4550caef3f",
780+
"sha256": "4bfc3b9efebbd4fcd80d8476c9b3317858ec691f5ca47ea7d7e87dc7841df71f",
781781
"executable": false
782782
},
783783
"skills/why/references/epistemics.md": {

‎packages/pstack/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as NodeCrypto from "node:crypto";
33
import * as NodePath from "node:path";
44
import { readManifest } from "./files.ts";
55

6-
export { parsePstackRoleDefaults, type PstackRoleDefault } from "./roles.ts";
6+
export { parsePstackRoleDefaults, PSTACK_PANEL_ROLES, type PstackRoleDefault } from "./roles.ts";
77

88
export const PSTACK_SKILL_PREFIX = "pstack:";
99
export const PSTACK_LAYOUT_VERSION = 3;

‎packages/pstack/src/roles.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
export const PSTACK_PANEL_ROLES: ReadonlySet<string> = new Set([
2+
"arena runners",
3+
"architect runners",
4+
"interrogate reviewers",
5+
]);
6+
17
export interface PstackRoleDefault {
28
readonly label: string;
39
readonly defaultValue: string;

‎packages/pstack/upstream/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
33
"name": "pstack",
4-
"version": "0.15.32-t3code.1",
4+
"version": "0.15.32-t3code.2",
55
"description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence. T3 Code-native port with automate-maintainer and automate-team.",
66
"author": {
77
"name": "Lauren Tan"

‎packages/pstack/upstream/skills/architect/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ disable-model-invocation: true
66

77
# Architect
88

9-
Use `delegate_task` for every spawn. Copy the named role's exact resolved target from `<t3_pstack>` into `target`, including the complete `options` array. An `inherit` seat omits `target`. Repeat fallback notes and compare the spawn's provider, model, and options with the request. Report a rejected or mismatched target; never substitute one. If a required role is missing, stop that spawn. Call `orchestrator_capabilities` once before the first delegation. Start each brief with the absolute `<pstack>` and `<models>` paths; include the relevant resolved role lines when children will delegate. Retain every `taskId`. With `mode: "async"`, spawn the wave and end the turn; completion wakes the parent. Do not poll children. Use `mode: "wait"` only when this turn needs the result; a wait timeout does not cancel the child. Cancel replaced or unneeded work with `task_cancel`.
9+
Use `delegate_task` for every spawn. Arena runners, architect runners, and interrogate reviewers are panels: one child per seat, including fallbacks. Every other role is a pool: pick the seat whose model best fits the job; spread same-role children in a wave across seats. Arena cross-judges prefer a different model family. Copy the chosen target from `<t3_pstack>` exactly, including all options; `inherit` means the parent model and omits `target`. If a pool spawn is rejected, report it and try the next seat; never invent targets or change options. Repeat fallback notes and report provider, model, or option mismatches. If a required role is missing, stop that spawn. Call `orchestrator_capabilities` once before the first delegation. Start each brief with the absolute `<pstack>` and `<models>` paths; include the relevant resolved role lines when children will delegate. Retain every `taskId`. With `mode: "async"`, spawn the wave and end the turn; completion wakes the parent. Do not poll children. Use `mode: "wait"` only when this turn needs the result; a wait timeout does not cancel the child. Cancel replaced or unneeded work with `task_cancel`.
1010

1111
Sketch types, function signatures, class shapes, and module boundaries with `not implemented` bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch.
1212

0 commit comments

Comments
 (0)