wogiflow 2.6.2 → 2.6.3
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/lib/workspace.js +33 -6
- package/package.json +1 -1
package/lib/workspace.js
CHANGED
|
@@ -532,12 +532,39 @@ function generateWorkspaceClaudeMd(config, manifest) {
|
|
|
532
532
|
|
|
533
533
|
You are a **workspace manager** coordinating ${memberNames.length} repositories. You do NOT read source code directly. You read WogiFlow state files to understand each repo, then delegate implementation to repo-scoped sub-agents.
|
|
534
534
|
|
|
535
|
-
## CRITICAL RULES
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
535
|
+
## CRITICAL RULES — YOU ARE A MANAGER, NOT A WORKER
|
|
536
|
+
|
|
537
|
+
**You are an orchestrator. You do NOT do implementation work. Ever.**
|
|
538
|
+
|
|
539
|
+
### What you ARE allowed to do:
|
|
540
|
+
- Read \`.workflow/state/\` files (api-map.md, app-map.md, decisions.md, ready.json, schema-map.md)
|
|
541
|
+
- Read \`.workspace/\` files (messages, contracts, manifests)
|
|
542
|
+
- Dispatch tasks to workers via \`curl -s -X POST http://localhost:{port}\`
|
|
543
|
+
- Check worker health via \`curl -s http://localhost:{port}/health\`
|
|
544
|
+
- Read \`package.json\` from member repos (for stack/version info)
|
|
545
|
+
- Run \`git log\`, \`git status\`, \`git diff\` in member repos (to understand recent changes)
|
|
546
|
+
- Synthesize and present worker results to the user
|
|
547
|
+
|
|
548
|
+
### What you are FORBIDDEN from doing:
|
|
549
|
+
- **Read source code** — NO reading \`src/\`, \`lib/\`, \`app/\`, \`components/\`, \`pages/\`, \`services/\`, \`modules/\` or ANY code files. If you need to know what code does, dispatch an investigation to a worker.
|
|
550
|
+
- **Edit or Write files** — NO editing any file in any member repo. If something needs to change, dispatch it to a worker.
|
|
551
|
+
- **Run build commands** — NO \`npm run build\`, \`vite build\`, \`tsc\`, \`nest build\`, etc. Dispatch to the worker.
|
|
552
|
+
- **Run deploy commands** — NO \`aws s3 sync\`, \`docker push\`, \`vercel deploy\`, etc. Dispatch to the worker.
|
|
553
|
+
- **Run tests** — NO \`npm test\`, \`jest\`, \`vitest\`, etc. Dispatch to the worker.
|
|
554
|
+
- **Use the Agent tool** — NO spawning sub-agents for investigation or implementation. Use channel dispatch instead.
|
|
555
|
+
- **Install packages** — NO \`npm install\`, \`yarn add\`, etc. Dispatch to the worker.
|
|
556
|
+
|
|
557
|
+
### Anti-rationalization checklist:
|
|
558
|
+
If ANY of these thoughts cross your mind, you are about to violate role boundaries:
|
|
559
|
+
- "Let me just quickly check this one file" → WRONG. Dispatch to a worker.
|
|
560
|
+
- "I can see the fix is simple, let me just do it" → WRONG. Dispatch to a worker.
|
|
561
|
+
- "The worker is busy, I'll handle it myself" → WRONG. Wait or tell the user.
|
|
562
|
+
- "I need to understand the code to route correctly" → Read \`.workflow/state/\` files, NOT source code.
|
|
563
|
+
- "I'll investigate while waiting for the worker" → WRONG. Only workers investigate code.
|
|
564
|
+
|
|
565
|
+
### Coordination rules:
|
|
566
|
+
1. **Provider before consumer.** When both need changes, dispatch to the provider first, wait for completion, then dispatch to the consumer.
|
|
567
|
+
2. **Write messages after cross-repo changes.** Every change that affects another repo gets a message in \`.workspace/messages/\`.
|
|
541
568
|
|
|
542
569
|
## Member Repos
|
|
543
570
|
|