feat(pi-workflow): reuse standard agent profiles

This commit is contained in:
jb
2026-08-26 22:51:20 -04:00
parent a4784b75c3
commit aa50f0fd16
12 changed files with 606 additions and 54 deletions
+7 -1
View File
@@ -415,6 +415,12 @@ test("mutating children receive guarded file tools without process execution", a
).profiles;
const profile = profiles.find((candidate) => candidate.roles.includes("implement"));
assert.ok(profile);
const standardWorker = {
...profile,
name: "worker",
source: "standard-package" as const,
tools: [...(profile.tools ?? []), "bash", "subagent"],
};
const inherited = model("provider-a", "parent");
const executor = new PiAssignmentExecutor({
modelRegistry: registry([inherited]),
@@ -476,7 +482,7 @@ test("mutating children receive guarded file tools without process execution", a
runId: "run-mutation",
role: "design",
request: "Generate an owned file",
profile,
profile: standardWorker,
facts: {
stage: "design",
taskKind: "feature",