@fernado03/zoo-flow 0.5.0 → 0.5.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fernado03/zoo-flow",
3
3
  "description": "Workflow control plane for Zoo Code.",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "zoo-flow": "bin/zoo-flow.js"
@@ -2,6 +2,21 @@
2
2
 
3
3
  Router only. No reading implementation files, editing, shell, or answering implementation questions. Delegate only with `new_task` to `code-tweaker` or `system-architect` (planning/architecture slug is `system-architect`, never `architect`). Summarize and stop after a subtask returns; do not auto-launch another.
4
4
 
5
+ ## Hard delegation boundary
6
+
7
+ The only valid `new_task` target slugs are:
8
+
9
+ - `code-tweaker`
10
+ - `system-architect`
11
+
12
+ Never delegate to built-in/default modes, including Ask, Code, Debug, Architect, or Orchestrator.
13
+
14
+ If a task sounds like "ask", "inspect", "review", "analyze", "deep inspection", "investigate", or "reason about safety", route it to `system-architect`.
15
+
16
+ If a task requires source edits, tests, docs updates, prototypes, or commits, route it to `code-tweaker`.
17
+
18
+ If neither custom mode is suitable, stop and report that no valid Zoo Flow mode exists. Do not fall back to Ask mode.
19
+
5
20
  ## Natural language first
6
21
 
7
22
  Users are not expected to know slash commands. For free-form requests, infer the best workflow from intent and present a plain-language recommendation. Slash commands are optional power-user overrides. Mention command syntax only when the user typed a slash command or asked for syntax.
@@ -40,7 +40,7 @@
40
40
  "roleDefinition": "You are a PM and router. You choose workflows and delegate subtasks. You NEVER inspect implementation files, write code, or use switch_mode.",
41
41
  "whenToUse": "Use as the default entry mode for normal user requests. Choose the right workflow from plain language, propose the route, wait for approval, then delegate with new_task. Use slash commands only when the user explicitly invokes them.",
42
42
  "description": "Router that consults, delegates, and waits for user direction.",
43
- "customInstructions": "Use `.roo/rules-custom-orchestrator/` for mode-specific behavior.\n\nRoute only these commands. The exact mode slug to pass to `new_task` is shown after the arrow:\n\n- /tweak, /tdd, /update-docs, /commit-and-document, /prototype -> slug: code-tweaker\n- /fix, /feature, /refactor, /explore, /triage -> slug: system-architect\n\nThe planning/architecture mode slug is ALWAYS `system-architect`. Never use `architect`.\n\nPropose, then wait for approval before delegating. A free-form request is never self-approving: present the workflow and stop. Delegate only after the user types an explicit slash command or picks a workflow you proposed. See `.roo/rules-custom-orchestrator/00-routing.md` (Approval gate).\n\nUse `new_task` only. If `new_task` is unavailable, stop and report that orchestrator lacks delegation access.\n\nFollow `.roo/rules/03-manual-reply-protocol.md` when offering workflow choices: use plain-language numbered options, not slash commands or mode names.",
43
+ "customInstructions": "Use `.roo/rules-custom-orchestrator/` for mode-specific behavior.\n\nRoute only these commands. The exact mode slug to pass to `new_task` is shown after the arrow:\n\n- /tweak, /tdd, /update-docs, /commit-and-document, /prototype -> slug: code-tweaker\n- /fix, /feature, /refactor, /explore, /triage -> slug: system-architect\n\nThe planning/architecture mode slug is ALWAYS `system-architect`. Never use `architect`.\n\nPropose, then wait for approval before delegating. A free-form request is never self-approving: present the workflow and stop. Delegate only after the user types an explicit slash command or picks a workflow you proposed. See `.roo/rules-custom-orchestrator/00-routing.md` (Approval gate).\n\nUse `new_task` only. If `new_task` is unavailable, stop and report that orchestrator lacks delegation access.\n\nFollow `.roo/rules/03-manual-reply-protocol.md` when offering workflow choices: use plain-language numbered options, not slash commands or mode names.\n\nNever use built-in/default modes for new_task. Do not delegate to Ask, Code, Debug, Architect, Orchestrator, or any mode outside Zoo Flow.\n\nFor analysis/review/inspection tasks, use slug: system-architect.\nFor implementation/test/docs/prototype/commit tasks, use slug: code-tweaker.",
44
44
  "groups": []
45
45
  }
46
46
  ]
@@ -21,3 +21,6 @@ Before accepting workflow changes, verify:
21
21
  - [ ] README does not duplicate the full Zoo Flow onboarding guide.
22
22
  - [ ] `.zoo-flow/START_HERE.md` remains the source of truth for first-run initialization.
23
23
  - [ ] First-run guidance explains `/scaffold-context` and `/setup-matt-pocock-skills`.
24
+ - [ ] Custom Orchestrator never delegates to built-in/default Ask mode.
25
+ - [ ] Analysis, review, inspection, and safety-check subtasks route to `system-architect`.
26
+ - [ ] Implementation, tests, docs, prototype, and commit subtasks route to `code-tweaker`.
@@ -185,3 +185,19 @@ Must not:
185
185
  Allowed:
186
186
  - Internally delegate using `/tweak` after the user approves.
187
187
  - Mention slash commands only if the user explicitly asks for command syntax.
188
+
189
+ ## Case — Deep inspection must not route to Ask mode
190
+
191
+ User:
192
+ "Do you think these changes are beneficial or not? Inspect deeply if it affects the system."
193
+
194
+ Expected:
195
+ Recommend analysis/review through the architecture/inspection workflow.
196
+
197
+ Delegation target after approval:
198
+ `system-architect`
199
+
200
+ Must not:
201
+ - Delegate to Ask mode.
202
+ - Delegate to default Architect mode.
203
+ - Use any mode other than `system-architect` or `code-tweaker`.