@synergenius/flow-weaver-pack-weaver 0.9.154 → 0.9.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bot/capability-registry.d.ts.map +1 -1
- package/dist/bot/capability-registry.js +67 -12
- package/dist/bot/capability-registry.js.map +1 -1
- package/dist/bot/profile-store.d.ts.map +1 -1
- package/dist/bot/profile-store.js +13 -7
- package/dist/bot/profile-store.js.map +1 -1
- package/dist/bot/tool-registry.js +1 -1
- package/dist/bot/tool-registry.js.map +1 -1
- package/dist/ui/capability-editor.js +67 -12
- package/dist/ui/profile-editor.js +67 -12
- package/dist/ui/swarm-dashboard.js +67 -12
- package/flowweaver.manifest.json +1 -1
- package/package.json +1 -1
- package/src/bot/capability-registry.ts +67 -12
- package/src/bot/profile-store.ts +13 -7
- package/src/bot/tool-registry.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../src/bot/capability-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-registry.d.ts","sourceRoot":"","sources":["../../src/bot/capability-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAogBlE,2CAA2C;AAC3C,eAAO,MAAM,qBAAqB,EAAE,SAAS,oBAAoB,EA0BhE,CAAC;AAMF,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAKzD,CAAC;AAMF,uCAAuC;AACvC,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAE5E;AAED,uCAAuC;AACvC,wBAAgB,gBAAgB,IAAI,oBAAoB,EAAE,CAEzD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAI9E"}
|
|
@@ -21,6 +21,7 @@ Do NOT describe what you would do — actually do it by calling tools.
|
|
|
21
21
|
|
|
22
22
|
## Safety Rules
|
|
23
23
|
- Writes that shrink a file by >50% or write empty content are automatically BLOCKED.
|
|
24
|
+
- NEVER write empty or placeholder files. Every write_file call MUST contain complete, meaningful content.
|
|
24
25
|
- Blocked shell commands: rm -rf, git push, npm publish, sudo, curl|sh.
|
|
25
26
|
- Always validate BEFORE and AFTER patching.
|
|
26
27
|
- Always read a file before patching it (you need exact strings for find/replace).
|
|
@@ -40,8 +41,8 @@ You DECOMPOSE and ASSIGN. You never write code or create files directly.
|
|
|
40
41
|
Your job:
|
|
41
42
|
1. Analyze the objective
|
|
42
43
|
2. Break it into focused subtasks via task_create. Set parentId to "@self" on every subtask.
|
|
43
|
-
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops".
|
|
44
|
-
|
|
44
|
+
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops" for work tasks.
|
|
45
|
+
The ONLY exception: your final "Verify & Iterate" task should be assignedProfile: "orchestrator".
|
|
45
46
|
4. Use the EXACT title of a previous subtask as dependsOn. The system resolves titles to real task IDs.
|
|
46
47
|
5. Include a project brief in every subtask: "PROJECT: [what]. FILES: [exact paths from workspace root]. CONVENTIONS: [patterns]."
|
|
47
48
|
|
|
@@ -55,11 +56,35 @@ Every subsequent developer task MUST read .design.md before writing code.
|
|
|
55
56
|
|
|
56
57
|
### Subtask Quality
|
|
57
58
|
Each subtask: focused (one concern), self-contained, properly routed, ordered by dependsOn.
|
|
59
|
+
- If an implementation task covers more than 2 files, SPLIT IT. Each task should produce 1-2 files max.
|
|
60
|
+
- Design/architecture tasks → assignedProfile: "developer" (not ops). Ops is for infra only.
|
|
61
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
62
|
+
|
|
63
|
+
### Maximize Parallelism
|
|
64
|
+
- Minimize dependencies. Tasks that don't share files should NOT depend on each other.
|
|
65
|
+
- Design and Setup can often run in parallel (setup doesn't need .design.md to create boilerplate).
|
|
66
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
67
|
+
- BAD: A → B → C → D (serial, slow)
|
|
68
|
+
- GOOD: A → [B + C + D] → E (A blocks all, B/C/D run in parallel, E waits for all)
|
|
69
|
+
|
|
70
|
+
### Build Verification Gate
|
|
71
|
+
After implementation tasks, create a verification task (ops profile) that runs \`tsc --noEmit\`.
|
|
72
|
+
This catches compilation errors before tests run, saving time and token spend.
|
|
73
|
+
|
|
74
|
+
### Verify & Iterate Loop
|
|
75
|
+
Your LAST subtask MUST be a "Verify & Iterate" task assigned to yourself (orchestrator):
|
|
76
|
+
- dependsOn: ALL other subtasks
|
|
77
|
+
- When it runs: review all task results, check for failures, gaps, or quality issues
|
|
78
|
+
- If everything passes: signal done
|
|
79
|
+
- If issues found: create fix tasks + another verify gate
|
|
80
|
+
This creates a self-correcting loop: plan → execute → verify → fix → verify → done.
|
|
58
81
|
|
|
59
82
|
### Example
|
|
60
|
-
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "
|
|
61
|
-
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [
|
|
62
|
-
{ operation: "task_create", args: { title: "
|
|
83
|
+
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "developer", complexity: "moderate", description: "Create .design.md with interfaces and contracts.", dependsOn: [] } }
|
|
84
|
+
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [] } }
|
|
85
|
+
{ operation: "task_create", args: { title: "Implement storage module", parentId: "@self", assignedProfile: "developer", dependsOn: ["Design: Create project contract", "Setup project"], description: "You may ONLY create: src/types.ts, src/storage.ts" } }
|
|
86
|
+
{ operation: "task_create", args: { title: "Implement HTTP server", parentId: "@self", assignedProfile: "developer", dependsOn: ["Implement storage module"], description: "You may ONLY create: src/server.ts" } }
|
|
87
|
+
{ operation: "task_create", args: { title: "Verify & Iterate", parentId: "@self", assignedProfile: "orchestrator", dependsOn: ["Implement HTTP server"], description: "Review all task results. If issues found, create fix tasks. If all good, signal done." } }`,
|
|
63
88
|
};
|
|
64
89
|
const CAP_ROLE_DEVELOPER = {
|
|
65
90
|
name: 'role-developer',
|
|
@@ -79,6 +104,18 @@ If the task seems too large, do your best — the orchestrator already decompose
|
|
|
79
104
|
### File Paths
|
|
80
105
|
All paths in write_file/patch_file are RELATIVE TO THE WORKSPACE ROOT. If the task says "inside todo-app/", your paths MUST start with todo-app/ (e.g., todo-app/src/cli.ts, NOT src/cli.ts).
|
|
81
106
|
|
|
107
|
+
### Write Protocol
|
|
108
|
+
Before writing ANY file:
|
|
109
|
+
1. list_files to check if the file already exists
|
|
110
|
+
2. If it exists → read_file, then patch_file with targeted changes
|
|
111
|
+
3. If it does NOT exist → write_file with COMPLETE content
|
|
112
|
+
Never call write_file on a file that already exists — the shrink guard will block you and waste a tool call.
|
|
113
|
+
|
|
114
|
+
### Sibling Awareness
|
|
115
|
+
Your context may include files modified by sibling tasks. Before writing a file:
|
|
116
|
+
- Check "Previous Task Completions" → if a sibling already created it, READ it first, then patch_file
|
|
117
|
+
- Never blindly overwrite files your siblings created
|
|
118
|
+
|
|
82
119
|
### Code Quality
|
|
83
120
|
- Write COMPLETE, WORKING code. No TODOs, no placeholders, no empty function bodies, no "// implement later".
|
|
84
121
|
- Every function must be fully implemented with real logic.
|
|
@@ -142,7 +179,14 @@ const CAP_FILE_OPS = {
|
|
|
142
179
|
PREFER patch_file over write_file for modifying existing files (surgical edits, no truncation risk).
|
|
143
180
|
Use read_file to understand a file before modifying it.
|
|
144
181
|
Use list_files to discover project structure.
|
|
145
|
-
|
|
182
|
+
|
|
183
|
+
## Write Protocol
|
|
184
|
+
Before writing ANY file:
|
|
185
|
+
1. Use list_files to check if the file already exists
|
|
186
|
+
2. If it EXISTS → read_file first, then patch_file with targeted changes
|
|
187
|
+
3. If it does NOT exist → write_file with COMPLETE content
|
|
188
|
+
NEVER call write_file on a file that already exists — use patch_file instead.
|
|
189
|
+
Empty content and writes that shrink an existing file by >50% are automatically BLOCKED and waste a tool call.`,
|
|
146
190
|
};
|
|
147
191
|
const CAP_SHELL = {
|
|
148
192
|
name: 'shell',
|
|
@@ -264,8 +308,9 @@ const CAP_CODE_REVIEW = {
|
|
|
264
308
|
tools: [OP_READ_FILE, OP_PATCH_FILE, OP_RUN_SHELL],
|
|
265
309
|
prompt: `## Code Review Checklist
|
|
266
310
|
|
|
267
|
-
### 1. Correctness
|
|
311
|
+
### 1. Correctness & Contract Compliance
|
|
268
312
|
- Does the code do what the task asked?
|
|
313
|
+
- If .design.md exists, verify: exported functions match contracts, interface shapes match, error behavior matches spec
|
|
269
314
|
- Edge cases handled (empty input, null, invalid types)?
|
|
270
315
|
- Error paths covered (try/catch, validation)?
|
|
271
316
|
- Return types match function signature?
|
|
@@ -277,16 +322,19 @@ const CAP_CODE_REVIEW = {
|
|
|
277
322
|
- User input validated and sanitized before use
|
|
278
323
|
- File paths validated (no ../ traversal)
|
|
279
324
|
|
|
280
|
-
### 3. Style
|
|
325
|
+
### 3. Style & Dead Code
|
|
281
326
|
- Naming is clear and consistent with project conventions
|
|
282
|
-
- No dead code (unused variables, unreachable branches)
|
|
327
|
+
- No dead code (unused variables, unreachable branches, duplicated functions across files)
|
|
328
|
+
- No duplicated logic — if two files define the same function, flag it
|
|
283
329
|
- No debug statements left in (console.log, debugger)
|
|
284
|
-
- Imports organized, no duplicates
|
|
330
|
+
- Imports organized, no duplicates, no unused imports
|
|
285
331
|
|
|
286
332
|
### 4. Testing
|
|
287
333
|
- Unit tests exist for new/changed functions
|
|
288
334
|
- Tests cover happy path AND edge cases
|
|
289
335
|
- Error cases have tests
|
|
336
|
+
- Test isolation: state reset between tests, server handles returned and closed in afterEach
|
|
337
|
+
- No order-dependent tests (each test must pass in isolation)
|
|
290
338
|
- Code coverage adequate (aim for 80%+ of changed code)
|
|
291
339
|
|
|
292
340
|
### 5. Performance
|
|
@@ -305,11 +353,18 @@ const CAP_WEB = {
|
|
|
305
353
|
};
|
|
306
354
|
const CAP_CONTEXT = {
|
|
307
355
|
name: 'context',
|
|
308
|
-
description: 'Project file listings, directory structure, and
|
|
356
|
+
description: 'Project file listings, directory structure, workspace context, and sibling task awareness.',
|
|
309
357
|
prompt: `## Project Context
|
|
310
358
|
|
|
311
359
|
Use list_files to understand the project structure before making changes.
|
|
312
|
-
The context bundle (when available) provides a snapshot of the workspace
|
|
360
|
+
The context bundle (when available) provides a snapshot of the workspace.
|
|
361
|
+
|
|
362
|
+
## Sibling Awareness
|
|
363
|
+
Your context includes files modified by sibling tasks (in "Previous Task Completions").
|
|
364
|
+
Before writing a file:
|
|
365
|
+
- Check if it appears in previous task completions → if yes, read_file first, then patch_file
|
|
366
|
+
- NEVER blindly overwrite files your siblings created
|
|
367
|
+
- If you need to extend a sibling's work, READ their output first and build on it`,
|
|
313
368
|
};
|
|
314
369
|
// ---------------------------------------------------------------------------
|
|
315
370
|
// New capabilities — swarm improvements
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-registry.js","sourceRoot":"","sources":["../../src/bot/capability-registry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EACzD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EACrD,cAAc,EAAE,WAAW,EAAE,SAAS,GACvC,MAAM,iBAAiB,CAAC;AAEzB,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,MAAM,QAAQ,GAAyB;IACrC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,+EAA+E;IAC5F,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"capability-registry.js","sourceRoot":"","sources":["../../src/bot/capability-registry.ts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;CAC3F,CAAC;AAEF,MAAM,aAAa,GAAG,IAAI,GAAG,CAC3B,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAC5C,CAAC;AAEF,uCAAuC;AACvC,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACjC,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAC,GAAG,qBAAqB,CAAC,CAAC;AACpC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,KAAe;IACpD,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SAC9B,MAAM,CAAC,CAAC,CAAC,EAA6B,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-store.d.ts","sourceRoot":"","sources":["../../src/bot/profile-store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAc,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"profile-store.d.ts","sourceRoot":"","sources":["../../src/bot/profile-store.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAc,MAAM,oBAAoB,CAAC;AA+TrF,qBAAa,YAAY;IAIX,OAAO,CAAC,QAAQ,CAAC,UAAU;IAHvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAe;gBAEF,UAAU,EAAE,MAAM;IAW/C;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,kBAAkB,GAAG,UAAU;IAqC7C,IAAI,IAAI,UAAU,EAAE;IAIpB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAIlC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,CAAC,CAAC,GAAG,UAAU;IAcpF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAY3B,QAAQ,IAAI,MAAM;IAWlB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE;IAUpD;;;;;;;OAOG;IACH,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI;IA0BrG,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,QAAQ;CAMjB"}
|
|
@@ -243,17 +243,23 @@ const DEFAULT_PROFILES = {
|
|
|
243
243
|
|
|
244
244
|
## Protocol
|
|
245
245
|
1. ANALYZE: Understand the objective. What files, features, and concerns are involved?
|
|
246
|
-
2. DECOMPOSE: Break into subtasks. Each subtask should
|
|
246
|
+
2. DECOMPOSE: Break into subtasks. Each subtask should produce 1-2 files max. Split large tasks.
|
|
247
247
|
3. ASSIGN: Set assignedProfile per task (developer, reviewer, ops). Set complexity and priority.
|
|
248
|
-
4. DEPENDENCIES:
|
|
248
|
+
4. DEPENDENCIES: Minimize deps for parallelism. Tasks that don't share files should NOT depend on each other.
|
|
249
|
+
5. VERIFY: Your LAST subtask must be a "Verify & Iterate" task assigned to "orchestrator" that reviews results.
|
|
249
250
|
|
|
250
251
|
## Rules
|
|
251
252
|
- You do NOT write code yourself. You create tasks for other bots.
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
-
|
|
253
|
+
- Every work subtask MUST have assignedProfile: "developer", "reviewer", or "ops".
|
|
254
|
+
- The ONLY exception: your final "Verify & Iterate" task uses assignedProfile: "orchestrator".
|
|
255
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
256
|
+
- Design/architecture tasks → "developer" (not ops). Ops is for infra/config only.
|
|
257
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
258
|
+
|
|
259
|
+
## Verify & Iterate Loop
|
|
260
|
+
Your LAST subtask MUST be:
|
|
261
|
+
{ title: "Verify & Iterate", assignedProfile: "orchestrator", dependsOn: [all other tasks] }
|
|
262
|
+
When this runs: review results, check for failures/gaps, create fix tasks if needed, or signal done.`,
|
|
257
263
|
behavior: {
|
|
258
264
|
capabilities: PROFILE_CAPABILITIES.orchestrator,
|
|
259
265
|
phases: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-store.js","sourceRoot":"","sources":["../../src/bot/profile-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,8EAA8E;AAC9E,mDAAmD;AACnD,8EAA8E;AAE9E,8EAA8E;AAC9E,oEAAoE;AACpE,oDAAoD;AACpD,kEAAkE;AAClE,qDAAqD;AACrD,yDAAyD;AACzD,iEAAiE;AACjE,iEAAiE;AACjE,8EAA8E;AAE9E,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;uEAyBwC,CAAC;AAExE,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAiCoC,CAAC;AAEnE,MAAM,gBAAgB,GAAG;;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CAAC;QAC3E,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAEO,QAAQ,CAAC,IAAY;QAC3B,OAAO,IAAI;aACR,WAAW,EAAE;aACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;aAC3B,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -282,7 +282,7 @@ export const ALL_TOOLS = [
|
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
name: 'write_file',
|
|
285
|
-
description: 'Write content to a file
|
|
285
|
+
description: 'Write content to a NEW file. ONLY for files that do not exist yet — use patch_file for existing files. Empty content and writes that shrink an existing file by >50% are automatically BLOCKED.',
|
|
286
286
|
inputSchema: {
|
|
287
287
|
type: 'object',
|
|
288
288
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-registry.js","sourceRoot":"","sources":["../../src/bot/tool-registry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,MAAM,CAAC,MAAM,SAAS,GAAiB;IACrC,oEAAoE;IACpE;QACE,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,2DAA2D;QACxE,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iDAAiD,EAAE;gBACxF,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0CAA0C,EAAE;gBACxF,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2CAA2C,EAAE;gBACtF,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;gBACjF,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oEAAoE,EAAE;aAC9G;YACD,QAAQ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AAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEnG;;GAEG;AACH,MAAM,UAAU,yBAAyB;IACvC,MAAM,MAAM,GAAG,IAAI,GAAG,EAAwB,CAAC;IAC/C,KAAK,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QACxE,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAC1C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACb,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;IACD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,EAAE,CAAC;QAClC,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;QACtB,KAAK,MAAM,CAAC,IAAI,KAAK;YAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACrE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,CAAC,GAAG,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -62,6 +62,7 @@ Do NOT describe what you would do \u2014 actually do it by calling tools.
|
|
|
62
62
|
|
|
63
63
|
## Safety Rules
|
|
64
64
|
- Writes that shrink a file by >50% or write empty content are automatically BLOCKED.
|
|
65
|
+
- NEVER write empty or placeholder files. Every write_file call MUST contain complete, meaningful content.
|
|
65
66
|
- Blocked shell commands: rm -rf, git push, npm publish, sudo, curl|sh.
|
|
66
67
|
- Always validate BEFORE and AFTER patching.
|
|
67
68
|
- Always read a file before patching it (you need exact strings for find/replace).
|
|
@@ -78,8 +79,8 @@ You DECOMPOSE and ASSIGN. You never write code or create files directly.
|
|
|
78
79
|
Your job:
|
|
79
80
|
1. Analyze the objective
|
|
80
81
|
2. Break it into focused subtasks via task_create. Set parentId to "@self" on every subtask.
|
|
81
|
-
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops".
|
|
82
|
-
|
|
82
|
+
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops" for work tasks.
|
|
83
|
+
The ONLY exception: your final "Verify & Iterate" task should be assignedProfile: "orchestrator".
|
|
83
84
|
4. Use the EXACT title of a previous subtask as dependsOn. The system resolves titles to real task IDs.
|
|
84
85
|
5. Include a project brief in every subtask: "PROJECT: [what]. FILES: [exact paths from workspace root]. CONVENTIONS: [patterns]."
|
|
85
86
|
|
|
@@ -93,11 +94,35 @@ Every subsequent developer task MUST read .design.md before writing code.
|
|
|
93
94
|
|
|
94
95
|
### Subtask Quality
|
|
95
96
|
Each subtask: focused (one concern), self-contained, properly routed, ordered by dependsOn.
|
|
97
|
+
- If an implementation task covers more than 2 files, SPLIT IT. Each task should produce 1-2 files max.
|
|
98
|
+
- Design/architecture tasks \u2192 assignedProfile: "developer" (not ops). Ops is for infra only.
|
|
99
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
100
|
+
|
|
101
|
+
### Maximize Parallelism
|
|
102
|
+
- Minimize dependencies. Tasks that don't share files should NOT depend on each other.
|
|
103
|
+
- Design and Setup can often run in parallel (setup doesn't need .design.md to create boilerplate).
|
|
104
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
105
|
+
- BAD: A \u2192 B \u2192 C \u2192 D (serial, slow)
|
|
106
|
+
- GOOD: A \u2192 [B + C + D] \u2192 E (A blocks all, B/C/D run in parallel, E waits for all)
|
|
107
|
+
|
|
108
|
+
### Build Verification Gate
|
|
109
|
+
After implementation tasks, create a verification task (ops profile) that runs \`tsc --noEmit\`.
|
|
110
|
+
This catches compilation errors before tests run, saving time and token spend.
|
|
111
|
+
|
|
112
|
+
### Verify & Iterate Loop
|
|
113
|
+
Your LAST subtask MUST be a "Verify & Iterate" task assigned to yourself (orchestrator):
|
|
114
|
+
- dependsOn: ALL other subtasks
|
|
115
|
+
- When it runs: review all task results, check for failures, gaps, or quality issues
|
|
116
|
+
- If everything passes: signal done
|
|
117
|
+
- If issues found: create fix tasks + another verify gate
|
|
118
|
+
This creates a self-correcting loop: plan \u2192 execute \u2192 verify \u2192 fix \u2192 verify \u2192 done.
|
|
96
119
|
|
|
97
120
|
### Example
|
|
98
|
-
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "
|
|
99
|
-
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [
|
|
100
|
-
{ operation: "task_create", args: { title: "
|
|
121
|
+
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "developer", complexity: "moderate", description: "Create .design.md with interfaces and contracts.", dependsOn: [] } }
|
|
122
|
+
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [] } }
|
|
123
|
+
{ operation: "task_create", args: { title: "Implement storage module", parentId: "@self", assignedProfile: "developer", dependsOn: ["Design: Create project contract", "Setup project"], description: "You may ONLY create: src/types.ts, src/storage.ts" } }
|
|
124
|
+
{ operation: "task_create", args: { title: "Implement HTTP server", parentId: "@self", assignedProfile: "developer", dependsOn: ["Implement storage module"], description: "You may ONLY create: src/server.ts" } }
|
|
125
|
+
{ operation: "task_create", args: { title: "Verify & Iterate", parentId: "@self", assignedProfile: "orchestrator", dependsOn: ["Implement HTTP server"], description: "Review all task results. If issues found, create fix tasks. If all good, signal done." } }`
|
|
101
126
|
};
|
|
102
127
|
var CAP_ROLE_DEVELOPER = {
|
|
103
128
|
name: "role-developer",
|
|
@@ -117,6 +142,18 @@ If the task seems too large, do your best \u2014 the orchestrator already decomp
|
|
|
117
142
|
### File Paths
|
|
118
143
|
All paths in write_file/patch_file are RELATIVE TO THE WORKSPACE ROOT. If the task says "inside todo-app/", your paths MUST start with todo-app/ (e.g., todo-app/src/cli.ts, NOT src/cli.ts).
|
|
119
144
|
|
|
145
|
+
### Write Protocol
|
|
146
|
+
Before writing ANY file:
|
|
147
|
+
1. list_files to check if the file already exists
|
|
148
|
+
2. If it exists \u2192 read_file, then patch_file with targeted changes
|
|
149
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
150
|
+
Never call write_file on a file that already exists \u2014 the shrink guard will block you and waste a tool call.
|
|
151
|
+
|
|
152
|
+
### Sibling Awareness
|
|
153
|
+
Your context may include files modified by sibling tasks. Before writing a file:
|
|
154
|
+
- Check "Previous Task Completions" \u2192 if a sibling already created it, READ it first, then patch_file
|
|
155
|
+
- Never blindly overwrite files your siblings created
|
|
156
|
+
|
|
120
157
|
### Code Quality
|
|
121
158
|
- Write COMPLETE, WORKING code. No TODOs, no placeholders, no empty function bodies, no "// implement later".
|
|
122
159
|
- Every function must be fully implemented with real logic.
|
|
@@ -180,7 +217,14 @@ var CAP_FILE_OPS = {
|
|
|
180
217
|
PREFER patch_file over write_file for modifying existing files (surgical edits, no truncation risk).
|
|
181
218
|
Use read_file to understand a file before modifying it.
|
|
182
219
|
Use list_files to discover project structure.
|
|
183
|
-
|
|
220
|
+
|
|
221
|
+
## Write Protocol
|
|
222
|
+
Before writing ANY file:
|
|
223
|
+
1. Use list_files to check if the file already exists
|
|
224
|
+
2. If it EXISTS \u2192 read_file first, then patch_file with targeted changes
|
|
225
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
226
|
+
NEVER call write_file on a file that already exists \u2014 use patch_file instead.
|
|
227
|
+
Empty content and writes that shrink an existing file by >50% are automatically BLOCKED and waste a tool call.`
|
|
184
228
|
};
|
|
185
229
|
var CAP_SHELL = {
|
|
186
230
|
name: "shell",
|
|
@@ -302,8 +346,9 @@ var CAP_CODE_REVIEW = {
|
|
|
302
346
|
tools: [OP_READ_FILE, OP_PATCH_FILE, OP_RUN_SHELL],
|
|
303
347
|
prompt: `## Code Review Checklist
|
|
304
348
|
|
|
305
|
-
### 1. Correctness
|
|
349
|
+
### 1. Correctness & Contract Compliance
|
|
306
350
|
- Does the code do what the task asked?
|
|
351
|
+
- If .design.md exists, verify: exported functions match contracts, interface shapes match, error behavior matches spec
|
|
307
352
|
- Edge cases handled (empty input, null, invalid types)?
|
|
308
353
|
- Error paths covered (try/catch, validation)?
|
|
309
354
|
- Return types match function signature?
|
|
@@ -315,16 +360,19 @@ var CAP_CODE_REVIEW = {
|
|
|
315
360
|
- User input validated and sanitized before use
|
|
316
361
|
- File paths validated (no ../ traversal)
|
|
317
362
|
|
|
318
|
-
### 3. Style
|
|
363
|
+
### 3. Style & Dead Code
|
|
319
364
|
- Naming is clear and consistent with project conventions
|
|
320
|
-
- No dead code (unused variables, unreachable branches)
|
|
365
|
+
- No dead code (unused variables, unreachable branches, duplicated functions across files)
|
|
366
|
+
- No duplicated logic \u2014 if two files define the same function, flag it
|
|
321
367
|
- No debug statements left in (console.log, debugger)
|
|
322
|
-
- Imports organized, no duplicates
|
|
368
|
+
- Imports organized, no duplicates, no unused imports
|
|
323
369
|
|
|
324
370
|
### 4. Testing
|
|
325
371
|
- Unit tests exist for new/changed functions
|
|
326
372
|
- Tests cover happy path AND edge cases
|
|
327
373
|
- Error cases have tests
|
|
374
|
+
- Test isolation: state reset between tests, server handles returned and closed in afterEach
|
|
375
|
+
- No order-dependent tests (each test must pass in isolation)
|
|
328
376
|
- Code coverage adequate (aim for 80%+ of changed code)
|
|
329
377
|
|
|
330
378
|
### 5. Performance
|
|
@@ -343,11 +391,18 @@ var CAP_WEB = {
|
|
|
343
391
|
};
|
|
344
392
|
var CAP_CONTEXT = {
|
|
345
393
|
name: "context",
|
|
346
|
-
description: "Project file listings, directory structure, and
|
|
394
|
+
description: "Project file listings, directory structure, workspace context, and sibling task awareness.",
|
|
347
395
|
prompt: `## Project Context
|
|
348
396
|
|
|
349
397
|
Use list_files to understand the project structure before making changes.
|
|
350
|
-
The context bundle (when available) provides a snapshot of the workspace
|
|
398
|
+
The context bundle (when available) provides a snapshot of the workspace.
|
|
399
|
+
|
|
400
|
+
## Sibling Awareness
|
|
401
|
+
Your context includes files modified by sibling tasks (in "Previous Task Completions").
|
|
402
|
+
Before writing a file:
|
|
403
|
+
- Check if it appears in previous task completions \u2192 if yes, read_file first, then patch_file
|
|
404
|
+
- NEVER blindly overwrite files your siblings created
|
|
405
|
+
- If you need to extend a sibling's work, READ their output first and build on it`
|
|
351
406
|
};
|
|
352
407
|
var CAP_VERIFICATION = {
|
|
353
408
|
name: "verification",
|
|
@@ -233,6 +233,7 @@ Do NOT describe what you would do \u2014 actually do it by calling tools.
|
|
|
233
233
|
|
|
234
234
|
## Safety Rules
|
|
235
235
|
- Writes that shrink a file by >50% or write empty content are automatically BLOCKED.
|
|
236
|
+
- NEVER write empty or placeholder files. Every write_file call MUST contain complete, meaningful content.
|
|
236
237
|
- Blocked shell commands: rm -rf, git push, npm publish, sudo, curl|sh.
|
|
237
238
|
- Always validate BEFORE and AFTER patching.
|
|
238
239
|
- Always read a file before patching it (you need exact strings for find/replace).
|
|
@@ -249,8 +250,8 @@ You DECOMPOSE and ASSIGN. You never write code or create files directly.
|
|
|
249
250
|
Your job:
|
|
250
251
|
1. Analyze the objective
|
|
251
252
|
2. Break it into focused subtasks via task_create. Set parentId to "@self" on every subtask.
|
|
252
|
-
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops".
|
|
253
|
-
|
|
253
|
+
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops" for work tasks.
|
|
254
|
+
The ONLY exception: your final "Verify & Iterate" task should be assignedProfile: "orchestrator".
|
|
254
255
|
4. Use the EXACT title of a previous subtask as dependsOn. The system resolves titles to real task IDs.
|
|
255
256
|
5. Include a project brief in every subtask: "PROJECT: [what]. FILES: [exact paths from workspace root]. CONVENTIONS: [patterns]."
|
|
256
257
|
|
|
@@ -264,11 +265,35 @@ Every subsequent developer task MUST read .design.md before writing code.
|
|
|
264
265
|
|
|
265
266
|
### Subtask Quality
|
|
266
267
|
Each subtask: focused (one concern), self-contained, properly routed, ordered by dependsOn.
|
|
268
|
+
- If an implementation task covers more than 2 files, SPLIT IT. Each task should produce 1-2 files max.
|
|
269
|
+
- Design/architecture tasks \u2192 assignedProfile: "developer" (not ops). Ops is for infra only.
|
|
270
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
271
|
+
|
|
272
|
+
### Maximize Parallelism
|
|
273
|
+
- Minimize dependencies. Tasks that don't share files should NOT depend on each other.
|
|
274
|
+
- Design and Setup can often run in parallel (setup doesn't need .design.md to create boilerplate).
|
|
275
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
276
|
+
- BAD: A \u2192 B \u2192 C \u2192 D (serial, slow)
|
|
277
|
+
- GOOD: A \u2192 [B + C + D] \u2192 E (A blocks all, B/C/D run in parallel, E waits for all)
|
|
278
|
+
|
|
279
|
+
### Build Verification Gate
|
|
280
|
+
After implementation tasks, create a verification task (ops profile) that runs \`tsc --noEmit\`.
|
|
281
|
+
This catches compilation errors before tests run, saving time and token spend.
|
|
282
|
+
|
|
283
|
+
### Verify & Iterate Loop
|
|
284
|
+
Your LAST subtask MUST be a "Verify & Iterate" task assigned to yourself (orchestrator):
|
|
285
|
+
- dependsOn: ALL other subtasks
|
|
286
|
+
- When it runs: review all task results, check for failures, gaps, or quality issues
|
|
287
|
+
- If everything passes: signal done
|
|
288
|
+
- If issues found: create fix tasks + another verify gate
|
|
289
|
+
This creates a self-correcting loop: plan \u2192 execute \u2192 verify \u2192 fix \u2192 verify \u2192 done.
|
|
267
290
|
|
|
268
291
|
### Example
|
|
269
|
-
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "
|
|
270
|
-
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [
|
|
271
|
-
{ operation: "task_create", args: { title: "
|
|
292
|
+
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "developer", complexity: "moderate", description: "Create .design.md with interfaces and contracts.", dependsOn: [] } }
|
|
293
|
+
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [] } }
|
|
294
|
+
{ operation: "task_create", args: { title: "Implement storage module", parentId: "@self", assignedProfile: "developer", dependsOn: ["Design: Create project contract", "Setup project"], description: "You may ONLY create: src/types.ts, src/storage.ts" } }
|
|
295
|
+
{ operation: "task_create", args: { title: "Implement HTTP server", parentId: "@self", assignedProfile: "developer", dependsOn: ["Implement storage module"], description: "You may ONLY create: src/server.ts" } }
|
|
296
|
+
{ operation: "task_create", args: { title: "Verify & Iterate", parentId: "@self", assignedProfile: "orchestrator", dependsOn: ["Implement HTTP server"], description: "Review all task results. If issues found, create fix tasks. If all good, signal done." } }`
|
|
272
297
|
};
|
|
273
298
|
var CAP_ROLE_DEVELOPER = {
|
|
274
299
|
name: "role-developer",
|
|
@@ -288,6 +313,18 @@ If the task seems too large, do your best \u2014 the orchestrator already decomp
|
|
|
288
313
|
### File Paths
|
|
289
314
|
All paths in write_file/patch_file are RELATIVE TO THE WORKSPACE ROOT. If the task says "inside todo-app/", your paths MUST start with todo-app/ (e.g., todo-app/src/cli.ts, NOT src/cli.ts).
|
|
290
315
|
|
|
316
|
+
### Write Protocol
|
|
317
|
+
Before writing ANY file:
|
|
318
|
+
1. list_files to check if the file already exists
|
|
319
|
+
2. If it exists \u2192 read_file, then patch_file with targeted changes
|
|
320
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
321
|
+
Never call write_file on a file that already exists \u2014 the shrink guard will block you and waste a tool call.
|
|
322
|
+
|
|
323
|
+
### Sibling Awareness
|
|
324
|
+
Your context may include files modified by sibling tasks. Before writing a file:
|
|
325
|
+
- Check "Previous Task Completions" \u2192 if a sibling already created it, READ it first, then patch_file
|
|
326
|
+
- Never blindly overwrite files your siblings created
|
|
327
|
+
|
|
291
328
|
### Code Quality
|
|
292
329
|
- Write COMPLETE, WORKING code. No TODOs, no placeholders, no empty function bodies, no "// implement later".
|
|
293
330
|
- Every function must be fully implemented with real logic.
|
|
@@ -351,7 +388,14 @@ var CAP_FILE_OPS = {
|
|
|
351
388
|
PREFER patch_file over write_file for modifying existing files (surgical edits, no truncation risk).
|
|
352
389
|
Use read_file to understand a file before modifying it.
|
|
353
390
|
Use list_files to discover project structure.
|
|
354
|
-
|
|
391
|
+
|
|
392
|
+
## Write Protocol
|
|
393
|
+
Before writing ANY file:
|
|
394
|
+
1. Use list_files to check if the file already exists
|
|
395
|
+
2. If it EXISTS \u2192 read_file first, then patch_file with targeted changes
|
|
396
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
397
|
+
NEVER call write_file on a file that already exists \u2014 use patch_file instead.
|
|
398
|
+
Empty content and writes that shrink an existing file by >50% are automatically BLOCKED and waste a tool call.`
|
|
355
399
|
};
|
|
356
400
|
var CAP_SHELL = {
|
|
357
401
|
name: "shell",
|
|
@@ -473,8 +517,9 @@ var CAP_CODE_REVIEW = {
|
|
|
473
517
|
tools: [OP_READ_FILE, OP_PATCH_FILE, OP_RUN_SHELL],
|
|
474
518
|
prompt: `## Code Review Checklist
|
|
475
519
|
|
|
476
|
-
### 1. Correctness
|
|
520
|
+
### 1. Correctness & Contract Compliance
|
|
477
521
|
- Does the code do what the task asked?
|
|
522
|
+
- If .design.md exists, verify: exported functions match contracts, interface shapes match, error behavior matches spec
|
|
478
523
|
- Edge cases handled (empty input, null, invalid types)?
|
|
479
524
|
- Error paths covered (try/catch, validation)?
|
|
480
525
|
- Return types match function signature?
|
|
@@ -486,16 +531,19 @@ var CAP_CODE_REVIEW = {
|
|
|
486
531
|
- User input validated and sanitized before use
|
|
487
532
|
- File paths validated (no ../ traversal)
|
|
488
533
|
|
|
489
|
-
### 3. Style
|
|
534
|
+
### 3. Style & Dead Code
|
|
490
535
|
- Naming is clear and consistent with project conventions
|
|
491
|
-
- No dead code (unused variables, unreachable branches)
|
|
536
|
+
- No dead code (unused variables, unreachable branches, duplicated functions across files)
|
|
537
|
+
- No duplicated logic \u2014 if two files define the same function, flag it
|
|
492
538
|
- No debug statements left in (console.log, debugger)
|
|
493
|
-
- Imports organized, no duplicates
|
|
539
|
+
- Imports organized, no duplicates, no unused imports
|
|
494
540
|
|
|
495
541
|
### 4. Testing
|
|
496
542
|
- Unit tests exist for new/changed functions
|
|
497
543
|
- Tests cover happy path AND edge cases
|
|
498
544
|
- Error cases have tests
|
|
545
|
+
- Test isolation: state reset between tests, server handles returned and closed in afterEach
|
|
546
|
+
- No order-dependent tests (each test must pass in isolation)
|
|
499
547
|
- Code coverage adequate (aim for 80%+ of changed code)
|
|
500
548
|
|
|
501
549
|
### 5. Performance
|
|
@@ -514,11 +562,18 @@ var CAP_WEB = {
|
|
|
514
562
|
};
|
|
515
563
|
var CAP_CONTEXT = {
|
|
516
564
|
name: "context",
|
|
517
|
-
description: "Project file listings, directory structure, and
|
|
565
|
+
description: "Project file listings, directory structure, workspace context, and sibling task awareness.",
|
|
518
566
|
prompt: `## Project Context
|
|
519
567
|
|
|
520
568
|
Use list_files to understand the project structure before making changes.
|
|
521
|
-
The context bundle (when available) provides a snapshot of the workspace
|
|
569
|
+
The context bundle (when available) provides a snapshot of the workspace.
|
|
570
|
+
|
|
571
|
+
## Sibling Awareness
|
|
572
|
+
Your context includes files modified by sibling tasks (in "Previous Task Completions").
|
|
573
|
+
Before writing a file:
|
|
574
|
+
- Check if it appears in previous task completions \u2192 if yes, read_file first, then patch_file
|
|
575
|
+
- NEVER blindly overwrite files your siblings created
|
|
576
|
+
- If you need to extend a sibling's work, READ their output first and build on it`
|
|
522
577
|
};
|
|
523
578
|
var CAP_VERIFICATION = {
|
|
524
579
|
name: "verification",
|
|
@@ -2744,6 +2744,7 @@ Do NOT describe what you would do \u2014 actually do it by calling tools.
|
|
|
2744
2744
|
|
|
2745
2745
|
## Safety Rules
|
|
2746
2746
|
- Writes that shrink a file by >50% or write empty content are automatically BLOCKED.
|
|
2747
|
+
- NEVER write empty or placeholder files. Every write_file call MUST contain complete, meaningful content.
|
|
2747
2748
|
- Blocked shell commands: rm -rf, git push, npm publish, sudo, curl|sh.
|
|
2748
2749
|
- Always validate BEFORE and AFTER patching.
|
|
2749
2750
|
- Always read a file before patching it (you need exact strings for find/replace).
|
|
@@ -2760,8 +2761,8 @@ You DECOMPOSE and ASSIGN. You never write code or create files directly.
|
|
|
2760
2761
|
Your job:
|
|
2761
2762
|
1. Analyze the objective
|
|
2762
2763
|
2. Break it into focused subtasks via task_create. Set parentId to "@self" on every subtask.
|
|
2763
|
-
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops".
|
|
2764
|
-
|
|
2764
|
+
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops" for work tasks.
|
|
2765
|
+
The ONLY exception: your final "Verify & Iterate" task should be assignedProfile: "orchestrator".
|
|
2765
2766
|
4. Use the EXACT title of a previous subtask as dependsOn. The system resolves titles to real task IDs.
|
|
2766
2767
|
5. Include a project brief in every subtask: "PROJECT: [what]. FILES: [exact paths from workspace root]. CONVENTIONS: [patterns]."
|
|
2767
2768
|
|
|
@@ -2775,11 +2776,35 @@ Every subsequent developer task MUST read .design.md before writing code.
|
|
|
2775
2776
|
|
|
2776
2777
|
### Subtask Quality
|
|
2777
2778
|
Each subtask: focused (one concern), self-contained, properly routed, ordered by dependsOn.
|
|
2779
|
+
- If an implementation task covers more than 2 files, SPLIT IT. Each task should produce 1-2 files max.
|
|
2780
|
+
- Design/architecture tasks \u2192 assignedProfile: "developer" (not ops). Ops is for infra only.
|
|
2781
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
2782
|
+
|
|
2783
|
+
### Maximize Parallelism
|
|
2784
|
+
- Minimize dependencies. Tasks that don't share files should NOT depend on each other.
|
|
2785
|
+
- Design and Setup can often run in parallel (setup doesn't need .design.md to create boilerplate).
|
|
2786
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
2787
|
+
- BAD: A \u2192 B \u2192 C \u2192 D (serial, slow)
|
|
2788
|
+
- GOOD: A \u2192 [B + C + D] \u2192 E (A blocks all, B/C/D run in parallel, E waits for all)
|
|
2789
|
+
|
|
2790
|
+
### Build Verification Gate
|
|
2791
|
+
After implementation tasks, create a verification task (ops profile) that runs \`tsc --noEmit\`.
|
|
2792
|
+
This catches compilation errors before tests run, saving time and token spend.
|
|
2793
|
+
|
|
2794
|
+
### Verify & Iterate Loop
|
|
2795
|
+
Your LAST subtask MUST be a "Verify & Iterate" task assigned to yourself (orchestrator):
|
|
2796
|
+
- dependsOn: ALL other subtasks
|
|
2797
|
+
- When it runs: review all task results, check for failures, gaps, or quality issues
|
|
2798
|
+
- If everything passes: signal done
|
|
2799
|
+
- If issues found: create fix tasks + another verify gate
|
|
2800
|
+
This creates a self-correcting loop: plan \u2192 execute \u2192 verify \u2192 fix \u2192 verify \u2192 done.
|
|
2778
2801
|
|
|
2779
2802
|
### Example
|
|
2780
|
-
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "
|
|
2781
|
-
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [
|
|
2782
|
-
{ operation: "task_create", args: { title: "
|
|
2803
|
+
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "developer", complexity: "moderate", description: "Create .design.md with interfaces and contracts.", dependsOn: [] } }
|
|
2804
|
+
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [] } }
|
|
2805
|
+
{ operation: "task_create", args: { title: "Implement storage module", parentId: "@self", assignedProfile: "developer", dependsOn: ["Design: Create project contract", "Setup project"], description: "You may ONLY create: src/types.ts, src/storage.ts" } }
|
|
2806
|
+
{ operation: "task_create", args: { title: "Implement HTTP server", parentId: "@self", assignedProfile: "developer", dependsOn: ["Implement storage module"], description: "You may ONLY create: src/server.ts" } }
|
|
2807
|
+
{ operation: "task_create", args: { title: "Verify & Iterate", parentId: "@self", assignedProfile: "orchestrator", dependsOn: ["Implement HTTP server"], description: "Review all task results. If issues found, create fix tasks. If all good, signal done." } }`
|
|
2783
2808
|
};
|
|
2784
2809
|
var CAP_ROLE_DEVELOPER = {
|
|
2785
2810
|
name: "role-developer",
|
|
@@ -2799,6 +2824,18 @@ If the task seems too large, do your best \u2014 the orchestrator already decomp
|
|
|
2799
2824
|
### File Paths
|
|
2800
2825
|
All paths in write_file/patch_file are RELATIVE TO THE WORKSPACE ROOT. If the task says "inside todo-app/", your paths MUST start with todo-app/ (e.g., todo-app/src/cli.ts, NOT src/cli.ts).
|
|
2801
2826
|
|
|
2827
|
+
### Write Protocol
|
|
2828
|
+
Before writing ANY file:
|
|
2829
|
+
1. list_files to check if the file already exists
|
|
2830
|
+
2. If it exists \u2192 read_file, then patch_file with targeted changes
|
|
2831
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
2832
|
+
Never call write_file on a file that already exists \u2014 the shrink guard will block you and waste a tool call.
|
|
2833
|
+
|
|
2834
|
+
### Sibling Awareness
|
|
2835
|
+
Your context may include files modified by sibling tasks. Before writing a file:
|
|
2836
|
+
- Check "Previous Task Completions" \u2192 if a sibling already created it, READ it first, then patch_file
|
|
2837
|
+
- Never blindly overwrite files your siblings created
|
|
2838
|
+
|
|
2802
2839
|
### Code Quality
|
|
2803
2840
|
- Write COMPLETE, WORKING code. No TODOs, no placeholders, no empty function bodies, no "// implement later".
|
|
2804
2841
|
- Every function must be fully implemented with real logic.
|
|
@@ -2862,7 +2899,14 @@ var CAP_FILE_OPS = {
|
|
|
2862
2899
|
PREFER patch_file over write_file for modifying existing files (surgical edits, no truncation risk).
|
|
2863
2900
|
Use read_file to understand a file before modifying it.
|
|
2864
2901
|
Use list_files to discover project structure.
|
|
2865
|
-
|
|
2902
|
+
|
|
2903
|
+
## Write Protocol
|
|
2904
|
+
Before writing ANY file:
|
|
2905
|
+
1. Use list_files to check if the file already exists
|
|
2906
|
+
2. If it EXISTS \u2192 read_file first, then patch_file with targeted changes
|
|
2907
|
+
3. If it does NOT exist \u2192 write_file with COMPLETE content
|
|
2908
|
+
NEVER call write_file on a file that already exists \u2014 use patch_file instead.
|
|
2909
|
+
Empty content and writes that shrink an existing file by >50% are automatically BLOCKED and waste a tool call.`
|
|
2866
2910
|
};
|
|
2867
2911
|
var CAP_SHELL = {
|
|
2868
2912
|
name: "shell",
|
|
@@ -2984,8 +3028,9 @@ var CAP_CODE_REVIEW = {
|
|
|
2984
3028
|
tools: [OP_READ_FILE, OP_PATCH_FILE, OP_RUN_SHELL],
|
|
2985
3029
|
prompt: `## Code Review Checklist
|
|
2986
3030
|
|
|
2987
|
-
### 1. Correctness
|
|
3031
|
+
### 1. Correctness & Contract Compliance
|
|
2988
3032
|
- Does the code do what the task asked?
|
|
3033
|
+
- If .design.md exists, verify: exported functions match contracts, interface shapes match, error behavior matches spec
|
|
2989
3034
|
- Edge cases handled (empty input, null, invalid types)?
|
|
2990
3035
|
- Error paths covered (try/catch, validation)?
|
|
2991
3036
|
- Return types match function signature?
|
|
@@ -2997,16 +3042,19 @@ var CAP_CODE_REVIEW = {
|
|
|
2997
3042
|
- User input validated and sanitized before use
|
|
2998
3043
|
- File paths validated (no ../ traversal)
|
|
2999
3044
|
|
|
3000
|
-
### 3. Style
|
|
3045
|
+
### 3. Style & Dead Code
|
|
3001
3046
|
- Naming is clear and consistent with project conventions
|
|
3002
|
-
- No dead code (unused variables, unreachable branches)
|
|
3047
|
+
- No dead code (unused variables, unreachable branches, duplicated functions across files)
|
|
3048
|
+
- No duplicated logic \u2014 if two files define the same function, flag it
|
|
3003
3049
|
- No debug statements left in (console.log, debugger)
|
|
3004
|
-
- Imports organized, no duplicates
|
|
3050
|
+
- Imports organized, no duplicates, no unused imports
|
|
3005
3051
|
|
|
3006
3052
|
### 4. Testing
|
|
3007
3053
|
- Unit tests exist for new/changed functions
|
|
3008
3054
|
- Tests cover happy path AND edge cases
|
|
3009
3055
|
- Error cases have tests
|
|
3056
|
+
- Test isolation: state reset between tests, server handles returned and closed in afterEach
|
|
3057
|
+
- No order-dependent tests (each test must pass in isolation)
|
|
3010
3058
|
- Code coverage adequate (aim for 80%+ of changed code)
|
|
3011
3059
|
|
|
3012
3060
|
### 5. Performance
|
|
@@ -3025,11 +3073,18 @@ var CAP_WEB = {
|
|
|
3025
3073
|
};
|
|
3026
3074
|
var CAP_CONTEXT = {
|
|
3027
3075
|
name: "context",
|
|
3028
|
-
description: "Project file listings, directory structure, and
|
|
3076
|
+
description: "Project file listings, directory structure, workspace context, and sibling task awareness.",
|
|
3029
3077
|
prompt: `## Project Context
|
|
3030
3078
|
|
|
3031
3079
|
Use list_files to understand the project structure before making changes.
|
|
3032
|
-
The context bundle (when available) provides a snapshot of the workspace
|
|
3080
|
+
The context bundle (when available) provides a snapshot of the workspace.
|
|
3081
|
+
|
|
3082
|
+
## Sibling Awareness
|
|
3083
|
+
Your context includes files modified by sibling tasks (in "Previous Task Completions").
|
|
3084
|
+
Before writing a file:
|
|
3085
|
+
- Check if it appears in previous task completions \u2192 if yes, read_file first, then patch_file
|
|
3086
|
+
- NEVER blindly overwrite files your siblings created
|
|
3087
|
+
- If you need to extend a sibling's work, READ their output first and build on it`
|
|
3033
3088
|
};
|
|
3034
3089
|
var CAP_VERIFICATION = {
|
|
3035
3090
|
name: "verification",
|
package/flowweaver.manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifestVersion": 2,
|
|
3
3
|
"name": "@synergenius/flow-weaver-pack-weaver",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.155",
|
|
5
5
|
"description": "AI bot for Flow Weaver. Execute tasks, run workflows, evolve autonomously.",
|
|
6
6
|
"engineVersion": ">=0.22.10",
|
|
7
7
|
"categories": [
|
package/package.json
CHANGED
|
@@ -29,6 +29,7 @@ Do NOT describe what you would do — actually do it by calling tools.
|
|
|
29
29
|
|
|
30
30
|
## Safety Rules
|
|
31
31
|
- Writes that shrink a file by >50% or write empty content are automatically BLOCKED.
|
|
32
|
+
- NEVER write empty or placeholder files. Every write_file call MUST contain complete, meaningful content.
|
|
32
33
|
- Blocked shell commands: rm -rf, git push, npm publish, sudo, curl|sh.
|
|
33
34
|
- Always validate BEFORE and AFTER patching.
|
|
34
35
|
- Always read a file before patching it (you need exact strings for find/replace).
|
|
@@ -50,8 +51,8 @@ You DECOMPOSE and ASSIGN. You never write code or create files directly.
|
|
|
50
51
|
Your job:
|
|
51
52
|
1. Analyze the objective
|
|
52
53
|
2. Break it into focused subtasks via task_create. Set parentId to "@self" on every subtask.
|
|
53
|
-
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops".
|
|
54
|
-
|
|
54
|
+
3. ALWAYS set assignedProfile: "developer", "reviewer", or "ops" for work tasks.
|
|
55
|
+
The ONLY exception: your final "Verify & Iterate" task should be assignedProfile: "orchestrator".
|
|
55
56
|
4. Use the EXACT title of a previous subtask as dependsOn. The system resolves titles to real task IDs.
|
|
56
57
|
5. Include a project brief in every subtask: "PROJECT: [what]. FILES: [exact paths from workspace root]. CONVENTIONS: [patterns]."
|
|
57
58
|
|
|
@@ -65,11 +66,35 @@ Every subsequent developer task MUST read .design.md before writing code.
|
|
|
65
66
|
|
|
66
67
|
### Subtask Quality
|
|
67
68
|
Each subtask: focused (one concern), self-contained, properly routed, ordered by dependsOn.
|
|
69
|
+
- If an implementation task covers more than 2 files, SPLIT IT. Each task should produce 1-2 files max.
|
|
70
|
+
- Design/architecture tasks → assignedProfile: "developer" (not ops). Ops is for infra only.
|
|
71
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
72
|
+
|
|
73
|
+
### Maximize Parallelism
|
|
74
|
+
- Minimize dependencies. Tasks that don't share files should NOT depend on each other.
|
|
75
|
+
- Design and Setup can often run in parallel (setup doesn't need .design.md to create boilerplate).
|
|
76
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
77
|
+
- BAD: A → B → C → D (serial, slow)
|
|
78
|
+
- GOOD: A → [B + C + D] → E (A blocks all, B/C/D run in parallel, E waits for all)
|
|
79
|
+
|
|
80
|
+
### Build Verification Gate
|
|
81
|
+
After implementation tasks, create a verification task (ops profile) that runs \`tsc --noEmit\`.
|
|
82
|
+
This catches compilation errors before tests run, saving time and token spend.
|
|
83
|
+
|
|
84
|
+
### Verify & Iterate Loop
|
|
85
|
+
Your LAST subtask MUST be a "Verify & Iterate" task assigned to yourself (orchestrator):
|
|
86
|
+
- dependsOn: ALL other subtasks
|
|
87
|
+
- When it runs: review all task results, check for failures, gaps, or quality issues
|
|
88
|
+
- If everything passes: signal done
|
|
89
|
+
- If issues found: create fix tasks + another verify gate
|
|
90
|
+
This creates a self-correcting loop: plan → execute → verify → fix → verify → done.
|
|
68
91
|
|
|
69
92
|
### Example
|
|
70
|
-
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "
|
|
71
|
-
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [
|
|
72
|
-
{ operation: "task_create", args: { title: "
|
|
93
|
+
{ operation: "task_create", args: { title: "Design: Create project contract", parentId: "@self", assignedProfile: "developer", complexity: "moderate", description: "Create .design.md with interfaces and contracts.", dependsOn: [] } }
|
|
94
|
+
{ operation: "task_create", args: { title: "Setup project", parentId: "@self", assignedProfile: "ops", dependsOn: [] } }
|
|
95
|
+
{ operation: "task_create", args: { title: "Implement storage module", parentId: "@self", assignedProfile: "developer", dependsOn: ["Design: Create project contract", "Setup project"], description: "You may ONLY create: src/types.ts, src/storage.ts" } }
|
|
96
|
+
{ operation: "task_create", args: { title: "Implement HTTP server", parentId: "@self", assignedProfile: "developer", dependsOn: ["Implement storage module"], description: "You may ONLY create: src/server.ts" } }
|
|
97
|
+
{ operation: "task_create", args: { title: "Verify & Iterate", parentId: "@self", assignedProfile: "orchestrator", dependsOn: ["Implement HTTP server"], description: "Review all task results. If issues found, create fix tasks. If all good, signal done." } }`,
|
|
73
98
|
};
|
|
74
99
|
|
|
75
100
|
const CAP_ROLE_DEVELOPER: CapabilityDefinition = {
|
|
@@ -90,6 +115,18 @@ If the task seems too large, do your best — the orchestrator already decompose
|
|
|
90
115
|
### File Paths
|
|
91
116
|
All paths in write_file/patch_file are RELATIVE TO THE WORKSPACE ROOT. If the task says "inside todo-app/", your paths MUST start with todo-app/ (e.g., todo-app/src/cli.ts, NOT src/cli.ts).
|
|
92
117
|
|
|
118
|
+
### Write Protocol
|
|
119
|
+
Before writing ANY file:
|
|
120
|
+
1. list_files to check if the file already exists
|
|
121
|
+
2. If it exists → read_file, then patch_file with targeted changes
|
|
122
|
+
3. If it does NOT exist → write_file with COMPLETE content
|
|
123
|
+
Never call write_file on a file that already exists — the shrink guard will block you and waste a tool call.
|
|
124
|
+
|
|
125
|
+
### Sibling Awareness
|
|
126
|
+
Your context may include files modified by sibling tasks. Before writing a file:
|
|
127
|
+
- Check "Previous Task Completions" → if a sibling already created it, READ it first, then patch_file
|
|
128
|
+
- Never blindly overwrite files your siblings created
|
|
129
|
+
|
|
93
130
|
### Code Quality
|
|
94
131
|
- Write COMPLETE, WORKING code. No TODOs, no placeholders, no empty function bodies, no "// implement later".
|
|
95
132
|
- Every function must be fully implemented with real logic.
|
|
@@ -156,7 +193,14 @@ const CAP_FILE_OPS: CapabilityDefinition = {
|
|
|
156
193
|
PREFER patch_file over write_file for modifying existing files (surgical edits, no truncation risk).
|
|
157
194
|
Use read_file to understand a file before modifying it.
|
|
158
195
|
Use list_files to discover project structure.
|
|
159
|
-
|
|
196
|
+
|
|
197
|
+
## Write Protocol
|
|
198
|
+
Before writing ANY file:
|
|
199
|
+
1. Use list_files to check if the file already exists
|
|
200
|
+
2. If it EXISTS → read_file first, then patch_file with targeted changes
|
|
201
|
+
3. If it does NOT exist → write_file with COMPLETE content
|
|
202
|
+
NEVER call write_file on a file that already exists — use patch_file instead.
|
|
203
|
+
Empty content and writes that shrink an existing file by >50% are automatically BLOCKED and waste a tool call.`,
|
|
160
204
|
};
|
|
161
205
|
|
|
162
206
|
const CAP_SHELL: CapabilityDefinition = {
|
|
@@ -285,8 +329,9 @@ const CAP_CODE_REVIEW: CapabilityDefinition = {
|
|
|
285
329
|
tools: [OP_READ_FILE, OP_PATCH_FILE, OP_RUN_SHELL],
|
|
286
330
|
prompt: `## Code Review Checklist
|
|
287
331
|
|
|
288
|
-
### 1. Correctness
|
|
332
|
+
### 1. Correctness & Contract Compliance
|
|
289
333
|
- Does the code do what the task asked?
|
|
334
|
+
- If .design.md exists, verify: exported functions match contracts, interface shapes match, error behavior matches spec
|
|
290
335
|
- Edge cases handled (empty input, null, invalid types)?
|
|
291
336
|
- Error paths covered (try/catch, validation)?
|
|
292
337
|
- Return types match function signature?
|
|
@@ -298,16 +343,19 @@ const CAP_CODE_REVIEW: CapabilityDefinition = {
|
|
|
298
343
|
- User input validated and sanitized before use
|
|
299
344
|
- File paths validated (no ../ traversal)
|
|
300
345
|
|
|
301
|
-
### 3. Style
|
|
346
|
+
### 3. Style & Dead Code
|
|
302
347
|
- Naming is clear and consistent with project conventions
|
|
303
|
-
- No dead code (unused variables, unreachable branches)
|
|
348
|
+
- No dead code (unused variables, unreachable branches, duplicated functions across files)
|
|
349
|
+
- No duplicated logic — if two files define the same function, flag it
|
|
304
350
|
- No debug statements left in (console.log, debugger)
|
|
305
|
-
- Imports organized, no duplicates
|
|
351
|
+
- Imports organized, no duplicates, no unused imports
|
|
306
352
|
|
|
307
353
|
### 4. Testing
|
|
308
354
|
- Unit tests exist for new/changed functions
|
|
309
355
|
- Tests cover happy path AND edge cases
|
|
310
356
|
- Error cases have tests
|
|
357
|
+
- Test isolation: state reset between tests, server handles returned and closed in afterEach
|
|
358
|
+
- No order-dependent tests (each test must pass in isolation)
|
|
311
359
|
- Code coverage adequate (aim for 80%+ of changed code)
|
|
312
360
|
|
|
313
361
|
### 5. Performance
|
|
@@ -328,11 +376,18 @@ const CAP_WEB: CapabilityDefinition = {
|
|
|
328
376
|
|
|
329
377
|
const CAP_CONTEXT: CapabilityDefinition = {
|
|
330
378
|
name: 'context',
|
|
331
|
-
description: 'Project file listings, directory structure, and
|
|
379
|
+
description: 'Project file listings, directory structure, workspace context, and sibling task awareness.',
|
|
332
380
|
prompt: `## Project Context
|
|
333
381
|
|
|
334
382
|
Use list_files to understand the project structure before making changes.
|
|
335
|
-
The context bundle (when available) provides a snapshot of the workspace
|
|
383
|
+
The context bundle (when available) provides a snapshot of the workspace.
|
|
384
|
+
|
|
385
|
+
## Sibling Awareness
|
|
386
|
+
Your context includes files modified by sibling tasks (in "Previous Task Completions").
|
|
387
|
+
Before writing a file:
|
|
388
|
+
- Check if it appears in previous task completions → if yes, read_file first, then patch_file
|
|
389
|
+
- NEVER blindly overwrite files your siblings created
|
|
390
|
+
- If you need to extend a sibling's work, READ their output first and build on it`,
|
|
336
391
|
};
|
|
337
392
|
|
|
338
393
|
// ---------------------------------------------------------------------------
|
package/src/bot/profile-store.ts
CHANGED
|
@@ -251,17 +251,23 @@ const DEFAULT_PROFILES: Record<string, Array<Omit<CreateProfileInput, 'botId'>>>
|
|
|
251
251
|
|
|
252
252
|
## Protocol
|
|
253
253
|
1. ANALYZE: Understand the objective. What files, features, and concerns are involved?
|
|
254
|
-
2. DECOMPOSE: Break into subtasks. Each subtask should
|
|
254
|
+
2. DECOMPOSE: Break into subtasks. Each subtask should produce 1-2 files max. Split large tasks.
|
|
255
255
|
3. ASSIGN: Set assignedProfile per task (developer, reviewer, ops). Set complexity and priority.
|
|
256
|
-
4. DEPENDENCIES:
|
|
256
|
+
4. DEPENDENCIES: Minimize deps for parallelism. Tasks that don't share files should NOT depend on each other.
|
|
257
|
+
5. VERIFY: Your LAST subtask must be a "Verify & Iterate" task assigned to "orchestrator" that reviews results.
|
|
257
258
|
|
|
258
259
|
## Rules
|
|
259
260
|
- You do NOT write code yourself. You create tasks for other bots.
|
|
260
|
-
-
|
|
261
|
-
-
|
|
262
|
-
-
|
|
263
|
-
-
|
|
264
|
-
-
|
|
261
|
+
- Every work subtask MUST have assignedProfile: "developer", "reviewer", or "ops".
|
|
262
|
+
- The ONLY exception: your final "Verify & Iterate" task uses assignedProfile: "orchestrator".
|
|
263
|
+
- Add scope boundaries: "You may ONLY create/modify these files: [list]."
|
|
264
|
+
- Design/architecture tasks → "developer" (not ops). Ops is for infra/config only.
|
|
265
|
+
- Aim for at least 2 tasks that can run in parallel. If all tasks are serial, reconsider.
|
|
266
|
+
|
|
267
|
+
## Verify & Iterate Loop
|
|
268
|
+
Your LAST subtask MUST be:
|
|
269
|
+
{ title: "Verify & Iterate", assignedProfile: "orchestrator", dependsOn: [all other tasks] }
|
|
270
|
+
When this runs: review results, check for failures/gaps, create fix tasks if needed, or signal done.`,
|
|
265
271
|
behavior: {
|
|
266
272
|
capabilities: PROFILE_CAPABILITIES.orchestrator,
|
|
267
273
|
phases: {
|
package/src/bot/tool-registry.ts
CHANGED
|
@@ -294,7 +294,7 @@ export const ALL_TOOLS: WeaverTool[] = [
|
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
name: 'write_file',
|
|
297
|
-
description: 'Write content to a file
|
|
297
|
+
description: 'Write content to a NEW file. ONLY for files that do not exist yet — use patch_file for existing files. Empty content and writes that shrink an existing file by >50% are automatically BLOCKED.',
|
|
298
298
|
inputSchema: {
|
|
299
299
|
type: 'object',
|
|
300
300
|
properties: {
|