pi-maestro-flow 0.2.0 → 0.3.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/README.md +44 -72
- package/agents/cross-role-reviewer.md +1 -1
- package/agents/impeccable-agent.md +1 -1
- package/agents/ralph-executor.md +1 -1
- package/agents/team-worker.md +1 -1
- package/agents/workflow-analyzer.md +1 -1
- package/agents/workflow-codebase-mapper.md +1 -1
- package/agents/workflow-collab-planner.md +1 -1
- package/agents/workflow-debugger.md +1 -1
- package/agents/workflow-executor.md +1 -1
- package/agents/workflow-integration-checker.md +1 -1
- package/agents/workflow-nyquist-auditor.md +1 -1
- package/agents/workflow-phase-researcher.md +1 -1
- package/agents/workflow-planner.md +1 -1
- package/agents/workflow-project-researcher.md +1 -1
- package/agents/workflow-reviewer.md +1 -1
- package/agents/workflow-verifier.md +1 -1
- package/package.json +18 -4
- package/skills/codify-to-knowhow/SKILL.md +1 -1
- package/skills/delegation-check/SKILL.md +1 -1
- package/skills/domain-add/SKILL.md +5 -5
- package/skills/insight-challenge/SKILL.md +1 -1
- package/skills/learn-decompose/SKILL.md +4 -4
- package/skills/learn-follow/SKILL.md +5 -5
- package/skills/learn-investigate/SKILL.md +5 -5
- package/skills/learn-second-opinion/SKILL.md +5 -5
- package/skills/maestro/SKILL.md +8 -8
- package/skills/maestro-amend/SKILL.md +4 -4
- package/skills/maestro-analyze/SKILL.md +9 -9
- package/skills/maestro-blueprint/SKILL.md +7 -7
- package/skills/maestro-brainstorm/SKILL.md +10 -10
- package/skills/maestro-collab/SKILL.md +4 -4
- package/skills/maestro-companion/SKILL.md +3 -3
- package/skills/maestro-composer/SKILL.md +10 -10
- package/skills/maestro-execute/SKILL.md +8 -8
- package/skills/maestro-fork/SKILL.md +7 -7
- package/skills/maestro-grill/SKILL.md +12 -12
- package/skills/maestro-guard/SKILL.md +5 -5
- package/skills/maestro-help/SKILL.md +3 -3
- package/skills/maestro-impeccable/SKILL.md +7 -7
- package/skills/maestro-init/SKILL.md +8 -8
- package/skills/maestro-merge/SKILL.md +6 -6
- package/skills/maestro-milestone-audit/SKILL.md +3 -3
- package/skills/maestro-milestone-complete/SKILL.md +8 -8
- package/skills/maestro-milestone-release/SKILL.md +9 -9
- package/skills/maestro-next/SKILL.md +5 -5
- package/skills/maestro-overlay/SKILL.md +19 -19
- package/skills/maestro-plan/SKILL.md +8 -8
- package/skills/maestro-player/SKILL.md +5 -5
- package/skills/maestro-quick/SKILL.md +5 -5
- package/skills/maestro-ralph/SKILL.md +15 -15
- package/skills/maestro-ralph-cli/SKILL.md +6 -6
- package/skills/maestro-ralph-cli-execute/SKILL.md +2 -2
- package/skills/maestro-ralph-execute/SKILL.md +4 -4
- package/skills/maestro-ralph-v2/SKILL.md +17 -17
- package/skills/maestro-roadmap/SKILL.md +7 -7
- package/skills/maestro-swarm-workflow/SKILL.md +9 -9
- package/skills/maestro-tools-execute/SKILL.md +5 -5
- package/skills/maestro-tools-register/SKILL.md +7 -7
- package/skills/maestro-ui-codify/SKILL.md +8 -8
- package/skills/maestro-universal-workflow/SKILL.md +15 -15
- package/skills/maestro-update/SKILL.md +10 -10
- package/skills/manage-codebase-rebuild/SKILL.md +4 -4
- package/skills/manage-drift-realign/SKILL.md +7 -7
- package/skills/manage-harvest/SKILL.md +5 -5
- package/skills/manage-issue/SKILL.md +4 -4
- package/skills/manage-issue-discover/SKILL.md +7 -7
- package/skills/manage-kg-extractors/SKILL.md +3 -3
- package/skills/manage-knowhow/SKILL.md +3 -3
- package/skills/manage-knowhow-capture/SKILL.md +4 -4
- package/skills/manage-knowledge-audit/SKILL.md +5 -5
- package/skills/manage-status/SKILL.md +3 -3
- package/skills/manage-wiki/SKILL.md +5 -5
- package/skills/odyssey-debug/SKILL.md +13 -13
- package/skills/odyssey-improve/SKILL.md +15 -15
- package/skills/odyssey-planex/SKILL.md +16 -16
- package/skills/odyssey-review-test-fix/SKILL.md +11 -11
- package/skills/odyssey-ui/SKILL.md +10 -10
- package/skills/prompt-generator/SKILL.md +5 -5
- package/skills/quality-auto-test/SKILL.md +3 -3
- package/skills/quality-debug/SKILL.md +3 -3
- package/skills/quality-refactor/SKILL.md +3 -3
- package/skills/quality-retrospective/SKILL.md +9 -9
- package/skills/quality-review/SKILL.md +4 -4
- package/skills/quality-sync/SKILL.md +3 -3
- package/skills/quality-test/SKILL.md +4 -4
- package/skills/scholar-anti-ai-writing/SKILL.md +1 -1
- package/skills/scholar-citation-verify/SKILL.md +1 -1
- package/skills/scholar-experiment/SKILL.md +2 -2
- package/skills/scholar-ideation/SKILL.md +7 -7
- package/skills/scholar-latex-organizer/SKILL.md +1 -1
- package/skills/scholar-publish/SKILL.md +3 -3
- package/skills/scholar-rebuttal-pro/SKILL.md +3 -3
- package/skills/scholar-review/SKILL.md +1 -1
- package/skills/scholar-writing/SKILL.md +1 -1
- package/skills/security-audit/SKILL.md +2 -2
- package/skills/skill-generator/SKILL.md +3 -3
- package/skills/skill-iter-tune/SKILL.md +3 -3
- package/skills/skill-simplify/SKILL.md +1 -1
- package/skills/skill-tuning/SKILL.md +1 -1
- package/skills/spec-add/SKILL.md +5 -5
- package/skills/spec-load/SKILL.md +3 -3
- package/skills/spec-remove/SKILL.md +4 -4
- package/skills/spec-setup/SKILL.md +6 -6
- package/skills/team-adversarial-swarm/SKILL.md +5 -5
- package/skills/team-arch-opt/SKILL.md +2 -2
- package/skills/team-brainstorm/SKILL.md +3 -3
- package/skills/team-coordinate/SKILL.md +4 -4
- package/skills/team-designer/SKILL.md +1 -1
- package/skills/team-executor/SKILL.md +3 -3
- package/skills/team-frontend/SKILL.md +2 -2
- package/skills/team-frontend-debug/SKILL.md +3 -3
- package/skills/team-interactive-craft/SKILL.md +2 -2
- package/skills/team-issue/SKILL.md +3 -3
- package/skills/team-lifecycle-v4/SKILL.md +4 -4
- package/skills/team-motion-design/SKILL.md +2 -2
- package/skills/team-perf-opt/SKILL.md +3 -3
- package/skills/team-planex/SKILL.md +2 -2
- package/skills/team-quality-assurance/SKILL.md +3 -3
- package/skills/team-review/SKILL.md +3 -3
- package/skills/team-roadmap-dev/SKILL.md +3 -3
- package/skills/team-swarm/SKILL.md +4 -4
- package/skills/team-tech-debt/SKILL.md +2 -2
- package/skills/team-testing/SKILL.md +3 -3
- package/skills/team-ui-polish/SKILL.md +2 -2
- package/skills/team-uidesign/SKILL.md +2 -2
- package/skills/team-ultra-analyze/SKILL.md +4 -4
- package/skills/team-ux-improve/SKILL.md +3 -3
- package/skills/team-visual-a11y/SKILL.md +2 -2
- package/skills/workflow-skill-designer/SKILL.md +8 -8
- package/templates/business-test-report.json +68 -0
- package/templates/config.json +48 -0
- package/templates/context.md +16 -0
- package/templates/doc-index.json +11 -0
- package/templates/index.json +68 -0
- package/templates/issue.json +36 -0
- package/templates/plan.json +38 -0
- package/templates/project.md +60 -0
- package/templates/reflection-log.md +20 -0
- package/templates/roadmap.md +45 -0
- package/templates/scratch-index.json +19 -0
- package/templates/search-tool.json +1 -0
- package/templates/search-tools.md +47 -0
- package/templates/state.json +18 -0
- package/templates/task-summary.md +21 -0
- package/templates/task.json +89 -0
- package/templates/terminology-template.json +22 -0
- package/templates/uat.md +21 -0
- package/templates/validation.json +31 -0
- package/templates/verification.json +37 -0
- package/templates/workflow.md +14 -0
- package/templates/worktree-scope.json +9 -0
- package/templates/worktrees.json +26 -0
- package/workflows/agy-instructions.md +156 -0
- package/workflows/analyze.md +768 -0
- package/workflows/auto-test.md +705 -0
- package/workflows/blueprint.md +406 -0
- package/workflows/boundary-grill.md +50 -0
- package/workflows/brainstorm.md +508 -0
- package/workflows/business-test.md +574 -0
- package/workflows/chinese-response.md +25 -0
- package/workflows/claude-instructions.md +167 -0
- package/workflows/codebase-rebuild.md +267 -0
- package/workflows/codebase-refresh.md +168 -0
- package/workflows/codex-instructions.md +156 -0
- package/workflows/coding-philosophy.md +70 -0
- package/workflows/command-authoring.md +823 -0
- package/workflows/debug.md +409 -0
- package/workflows/delegate-usage.md +99 -0
- package/workflows/domain-add.md +121 -0
- package/workflows/drift-realign.md +396 -0
- package/workflows/execute.md +631 -0
- package/workflows/explore-usage.md +93 -0
- package/workflows/finish-work.md +124 -0
- package/workflows/fork.md +162 -0
- package/workflows/grill.md +494 -0
- package/workflows/harvest.md +478 -0
- package/workflows/impeccable.md +168 -0
- package/workflows/init.md +157 -0
- package/workflows/instruction-authoring-guide.md +97 -0
- package/workflows/integration-test.md +186 -0
- package/workflows/interview-mechanics.md +8 -0
- package/workflows/issue-analyze.md +20 -0
- package/workflows/issue-discover.md +238 -0
- package/workflows/issue-execute.md +110 -0
- package/workflows/issue-gaps-analyze.codex.md +256 -0
- package/workflows/issue-gaps-analyze.md +215 -0
- package/workflows/issue-plan.md +110 -0
- package/workflows/issue.md +338 -0
- package/workflows/knowhow.md +429 -0
- package/workflows/knowledge-audit.md +355 -0
- package/workflows/learn.md +271 -0
- package/workflows/maestro-chain-execute.md +20 -0
- package/workflows/maestro-link-coordinate.md +114 -0
- package/workflows/maestro-super.md +120 -0
- package/workflows/maestro.md +501 -0
- package/workflows/map.md +74 -0
- package/workflows/merge.md +122 -0
- package/workflows/milestone-audit.md +155 -0
- package/workflows/milestone-complete.md +167 -0
- package/workflows/milestone-release.md +82 -0
- package/workflows/odyssey-base-codex.md +305 -0
- package/workflows/odyssey-base.md +256 -0
- package/workflows/overlays.md +109 -0
- package/workflows/plan.md +520 -0
- package/workflows/quick.md +350 -0
- package/workflows/ralph-amend-goal.md +177 -0
- package/workflows/refactor.md +87 -0
- package/workflows/retrospective.md +471 -0
- package/workflows/review.md +448 -0
- package/workflows/roadmap-common.md +193 -0
- package/workflows/roadmap.md +106 -0
- package/workflows/shell-exec-protocol.md +30 -0
- package/workflows/skill-authoring.md +265 -0
- package/workflows/spec-generate.md +475 -0
- package/workflows/specs-add.md +123 -0
- package/workflows/specs-load.md +76 -0
- package/workflows/specs-remove.md +104 -0
- package/workflows/specs-setup.md +316 -0
- package/workflows/status.md +149 -0
- package/workflows/sync.md +116 -0
- package/workflows/tdd.md +255 -0
- package/workflows/test-gen.md +226 -0
- package/workflows/test.md +385 -0
- package/workflows/tools-spec.md +70 -0
- package/workflows/ui-codify-extract.md +372 -0
- package/workflows/ui-codify-knowhow.md +258 -0
- package/workflows/ui-codify-package.md +159 -0
- package/workflows/ui-codify.md +227 -0
- package/workflows/ui-design.md +393 -0
- package/workflows/ui-style.md +201 -0
- package/workflows/verify.md +557 -0
- package/workflows/wiki-connect.md +153 -0
- package/workflows/wiki-digest.md +180 -0
- package/workflows/wiki-manage.md +113 -0
package/README.md
CHANGED
|
@@ -1,99 +1,68 @@
|
|
|
1
1
|
# pi-maestro-flow
|
|
2
2
|
|
|
3
|
-
> Maestro workflow orchestration for [Pi](https://github.com/earendil-works/pi) — tools, skills, and agent definitions
|
|
3
|
+
> Maestro workflow orchestration for [Pi](https://github.com/earendil-works/pi) — tools, skills, workflows, and agent definitions
|
|
4
4
|
|
|
5
|
-
Pi extension providing Maestro's full workflow toolkit
|
|
5
|
+
Pi extension providing Maestro's full workflow toolkit. Built on [pi-teammate](../pi-teammate/) for the execution engine.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Contents
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
| Resource | Count | Description |
|
|
10
|
+
|----------|-------|-------------|
|
|
11
|
+
| **Extension tools** | 3 | `maestro`, `maestro-wait`, `maestro-status` |
|
|
12
|
+
| **Skills** | 113 | All maestro commands + skills as `/skill:name` |
|
|
13
|
+
| **Agent definitions** | 28 | For teammate dispatch |
|
|
14
|
+
| **Workflow docs** | 82 | Bundled reference documentation |
|
|
15
|
+
| **Templates** | 23 | Bundled template files |
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|------|---------|
|
|
13
|
-
| `maestro` | Main dispatch — `action: explore \| delegate \| moa` |
|
|
14
|
-
| `maestro-wait` | Block until background runs finish |
|
|
15
|
-
| `maestro-status` | Inspect running/completed teammate fleet |
|
|
17
|
+
## Prerequisites
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
- **Pi coding agent** — the host runtime
|
|
20
|
+
- **Maestro CLI** — `maestro search`, `maestro load`, `maestro delegate`, `maestro explore`
|
|
21
|
+
- **pi-maestro-teammate** — installed automatically as dependency
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## Install
|
|
20
24
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
- `maestro-execute` — Task execution with verification
|
|
25
|
-
- `maestro-ralph-v2` — Adaptive lifecycle orchestrator
|
|
26
|
-
- `maestro-roadmap` — Project roadmap generation
|
|
25
|
+
```bash
|
|
26
|
+
# From npm (installs pi-maestro-teammate automatically)
|
|
27
|
+
pi install npm:pi-maestro-flow
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- `quality-refactor` — Refactoring with behavior preservation
|
|
32
|
-
- `security-audit` — Security vulnerability analysis
|
|
29
|
+
# Or from local path
|
|
30
|
+
pi install ./flow
|
|
31
|
+
```
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
- `
|
|
36
|
-
- `
|
|
37
|
-
-
|
|
38
|
-
-
|
|
33
|
+
After installation:
|
|
34
|
+
- 3 tools available: `maestro`, `maestro-wait`, `maestro-status`
|
|
35
|
+
- 113 skills available as `/skill:name` slash commands
|
|
36
|
+
- 28 agent definitions for teammate dispatch
|
|
37
|
+
- 82 workflow docs bundled at `~/.pi/agent/packages/pi-maestro-flow/workflows/`
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
- `team-coordinator` — Multi-role team pipeline
|
|
42
|
-
- `team-executor` — Session execution
|
|
43
|
-
- `team-frontend` — Frontend development team
|
|
44
|
-
- `team-quality-assurance` — QA pipeline
|
|
39
|
+
## Skills Categories
|
|
45
40
|
|
|
46
|
-
**
|
|
47
|
-
- `spec-add` / `spec-load` / `spec-remove` — Spec CRUD
|
|
48
|
-
- `manage-knowhow-capture` — Knowledge extraction
|
|
49
|
-
- `manage-knowledge-audit` — Knowledge health check
|
|
41
|
+
**Workflow orchestration:** `maestro-analyze`, `maestro-plan`, `maestro-execute`, `maestro-ralph-v2`, `maestro-roadmap`
|
|
50
42
|
|
|
51
|
-
|
|
43
|
+
**Quality & review:** `quality-review`, `quality-test`, `quality-refactor`, `security-audit`
|
|
52
44
|
|
|
53
|
-
|
|
54
|
-
|-------|------|
|
|
55
|
-
| `explorer` | Read-only codebase exploration |
|
|
56
|
-
| `delegate` | General-purpose task execution |
|
|
57
|
-
| `workflow-executor` | Atomic task implementation |
|
|
58
|
-
| `workflow-planner` | Execution plan creation |
|
|
59
|
-
| `workflow-reviewer` | Multi-dimensional code review |
|
|
60
|
-
| `workflow-verifier` | Goal-backward verification |
|
|
61
|
-
| `team-worker` | Role-specific pipeline execution |
|
|
62
|
-
| `team-supervisor` | Pipeline health monitoring |
|
|
63
|
-
| ... and 20 more |
|
|
45
|
+
**Odyssey workflows:** `odyssey-planex`, `odyssey-debug`, `odyssey-review-test-fix`, `odyssey-ui`
|
|
64
46
|
|
|
65
|
-
|
|
47
|
+
**Team orchestration:** `team-coordinator`, `team-executor`, `team-frontend`, `team-quality-assurance`
|
|
66
48
|
|
|
67
|
-
|
|
49
|
+
**Knowledge management:** `spec-add`, `spec-load`, `manage-knowhow-capture`, `manage-knowledge-audit`
|
|
68
50
|
|
|
69
|
-
|
|
51
|
+
**Academic writing:** `scholar-writing`, `scholar-review`, `scholar-experiment`, `scholar-thesis-docx`
|
|
70
52
|
|
|
71
|
-
|
|
72
|
-
pi install npm:pi-maestro-flow
|
|
73
|
-
# or from local path
|
|
74
|
-
pi install ./flow
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
Requires `pi-maestro-teammate` as a dependency (installed automatically).
|
|
78
|
-
|
|
79
|
-
After installation, all 113 skills become available as `/skill:name` slash commands.
|
|
80
|
-
|
|
81
|
-
## Actions
|
|
53
|
+
## Tool Actions
|
|
82
54
|
|
|
83
55
|
### Explore
|
|
84
|
-
|
|
85
56
|
```
|
|
86
57
|
{ action: "explore", prompts: ["Find authentication middleware"], maxTurns: 6 }
|
|
87
58
|
```
|
|
88
59
|
|
|
89
60
|
### Delegate
|
|
90
|
-
|
|
91
61
|
```
|
|
92
62
|
{ action: "delegate", prompt: "Fix the login bug", tool: "claude", mode: "write" }
|
|
93
63
|
```
|
|
94
64
|
|
|
95
65
|
### MOA (Mixture-of-Agents)
|
|
96
|
-
|
|
97
66
|
```
|
|
98
67
|
{ action: "moa", prompts: ["Best approach for caching layer?"] }
|
|
99
68
|
```
|
|
@@ -104,18 +73,21 @@ After installation, all 113 skills become available as `/skill:name` slash comma
|
|
|
104
73
|
┌──────────────────────────────────────────┐
|
|
105
74
|
│ pi-maestro-flow │
|
|
106
75
|
│ │
|
|
107
|
-
│ Extension
|
|
108
|
-
│ maestro
|
|
76
|
+
│ Extension: │
|
|
77
|
+
│ maestro / maestro-wait / maestro-status│
|
|
109
78
|
│ │
|
|
110
79
|
│ Skills (113): │
|
|
111
|
-
│ maestro
|
|
112
|
-
│ team
|
|
80
|
+
│ maestro-* / odyssey-* / quality-* │
|
|
81
|
+
│ team-* / manage-* / spec-* / learn-* │
|
|
82
|
+
│ scholar-* / skill-* │
|
|
113
83
|
│ │
|
|
114
84
|
│ Agents (28): │
|
|
115
|
-
│ workflow
|
|
85
|
+
│ workflow-* / team-* / role-* │
|
|
86
|
+
│ │
|
|
87
|
+
│ Workflows (82) + Templates (23): │
|
|
88
|
+
│ Bundled reference docs │
|
|
116
89
|
│ │
|
|
117
|
-
│
|
|
118
|
-
│ (spawn pi subprocess) │
|
|
90
|
+
│ Dispatch via ──► pi-maestro-teammate │
|
|
119
91
|
└──────────────────────────────────────────┘
|
|
120
92
|
```
|
|
121
93
|
|
|
@@ -9,7 +9,7 @@ tools:
|
|
|
9
9
|
|
|
10
10
|
# Cross-Role Reviewer
|
|
11
11
|
|
|
12
|
-
You read N role analysis index files from a brainstorm session and report cross-role issues. You do NOT write files. You produce structured text that the orchestrator consumes to drive
|
|
12
|
+
You read N role analysis index files from a brainstorm session and report cross-role issues. You do NOT write files. You produce structured text that the orchestrator consumes to drive user prompt and subsequent file edits.
|
|
13
13
|
|
|
14
14
|
## Inputs (parsed from your prompt)
|
|
15
15
|
|
|
@@ -64,7 +64,7 @@ These commands ask questions only "if unclear from codebase". When PRODUCT.md an
|
|
|
64
64
|
|
|
65
65
|
1. **Load context**: Run `maestro impeccable load-context` to load PRODUCT.md and DESIGN.md
|
|
66
66
|
2. **Validate command**: Check the requested command is in the allowed list above
|
|
67
|
-
3. **Execute**: Read `~/.maestro/workflows/impeccable/{command}.md` → follow workflow instructions
|
|
67
|
+
3. **Execute**: Read `~/.pi/agent/packages/pi-maestro-flow/workflows/impeccable/{command}.md` → follow workflow instructions
|
|
68
68
|
- Pass `-y` to auto-confirm where the workflow allows
|
|
69
69
|
- Pass `--skip-harvest` — the caller handles harvest if needed
|
|
70
70
|
4. **Report**: Return the command output (scores, changes made, findings)
|
package/agents/ralph-executor.md
CHANGED
package/agents/team-worker.md
CHANGED
|
@@ -77,7 +77,7 @@ Before executing role-specific logic, load available cross-role context:
|
|
|
77
77
|
Follow the instructions loaded from the role_spec body. This contains the domain-specific execution phases for the role. Key rules:
|
|
78
78
|
|
|
79
79
|
- Team workers cannot call Agent() to spawn other agents
|
|
80
|
-
- Use CLI tools (`maestro delegate`) or direct tools (Read, Grep, Glob) for analysis — see
|
|
80
|
+
- Use CLI tools (`maestro delegate`) or direct tools (Read, Grep, Glob) for analysis — see ~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md for tool selection
|
|
81
81
|
- If agent delegation is needed, send a request to the coordinator via SendMessage
|
|
82
82
|
|
|
83
83
|
### Context-Aware Signal Emission (Optional)
|
|
@@ -17,7 +17,7 @@ tools:
|
|
|
17
17
|
You perform structured multi-dimensional analysis of technical topics, proposals, or decisions. You evaluate across six standard dimensions, score each with evidence, and produce actionable recommendations. You are invoked when a decision needs rigorous evaluation before proceeding.
|
|
18
18
|
|
|
19
19
|
## Search Tools
|
|
20
|
-
|
|
20
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
21
21
|
|
|
22
22
|
## Process
|
|
23
23
|
|
|
@@ -15,7 +15,7 @@ tools:
|
|
|
15
15
|
You analyze an existing codebase from a specific focus area (tech, arch, features, or concerns). You are typically spawned 4 times in parallel, each mapping a different dimension of the codebase. Your output feeds into planning and execution agents.
|
|
16
16
|
|
|
17
17
|
## Search Tools
|
|
18
|
-
|
|
18
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
19
19
|
|
|
20
20
|
## Process
|
|
21
21
|
|
|
@@ -14,7 +14,7 @@ tools:
|
|
|
14
14
|
You are a collaborative planner that works within a pre-allocated task ID range. Multiple collab-planners run in parallel, each responsible for planning a subset of the work. You coordinate through a shared plan-note.md file and produce task definitions within your assigned ID range.
|
|
15
15
|
|
|
16
16
|
## Search Tools
|
|
17
|
-
|
|
17
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
|
|
18
18
|
|
|
19
19
|
## Process
|
|
20
20
|
|
|
@@ -16,7 +16,7 @@ tools:
|
|
|
16
16
|
You perform hypothesis-driven debugging of issues identified by verification or testing. You form hypotheses, design experiments, execute them, and log structured evidence. You iterate until the root cause is found and a fix is implemented, or you reach a checkpoint requiring user input. Maximum 5 hypothesis cycles before checkpoint.
|
|
17
17
|
|
|
18
18
|
## Search Tools
|
|
19
|
-
|
|
19
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
20
20
|
|
|
21
21
|
## Process
|
|
22
22
|
|
|
@@ -16,7 +16,7 @@ tools:
|
|
|
16
16
|
You implement a single task from the execution plan. Each task is executed atomically: you make the code changes, verify the convergence criteria are met, run test commands if defined, create an atomic git commit, and write a completion summary. You never modify code outside the task's scope.
|
|
17
17
|
|
|
18
18
|
## Search Tools
|
|
19
|
-
|
|
19
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
20
20
|
|
|
21
21
|
## Process
|
|
22
22
|
|
|
@@ -14,7 +14,7 @@ tools:
|
|
|
14
14
|
You validate cross-phase integration at milestone boundaries. You check that shared interfaces match across phases, data contracts are honored, and no cross-phase dependencies are broken. You are invoked during milestone audits to ensure phases compose correctly.
|
|
15
15
|
|
|
16
16
|
## Search Tools
|
|
17
|
-
|
|
17
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
18
18
|
|
|
19
19
|
## Schema Reference
|
|
20
20
|
N/A -- reads code artifacts, not task JSON.
|
|
@@ -15,7 +15,7 @@ tools:
|
|
|
15
15
|
You audit test coverage by mapping requirements to test files, calculating coverage metrics, identifying gaps, and generating test stubs for missing coverage. Named after the Nyquist theorem -- you ensure the testing "sample rate" is sufficient to capture the signal of correctness.
|
|
16
16
|
|
|
17
17
|
## Search Tools
|
|
18
|
-
|
|
18
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
19
19
|
|
|
20
20
|
## Schema Reference
|
|
21
21
|
- `@templates/validation.json` -- defines the validation artifact schema for coverage data and gap reporting
|
|
@@ -16,7 +16,7 @@ tools:
|
|
|
16
16
|
You research the implementation approach for a specific phase of the roadmap. You investigate libraries, patterns, and potential pitfalls relevant to that phase's goals, producing a research document that the planner consumes when creating tasks.
|
|
17
17
|
|
|
18
18
|
## Search Tools
|
|
19
|
-
|
|
19
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
|
|
20
20
|
|
|
21
21
|
## Process
|
|
22
22
|
|
|
@@ -15,7 +15,7 @@ tools:
|
|
|
15
15
|
You create structured execution plans from context, research, and specifications. You group work into feature-level tasks, assign them to parallel waves, set dependencies only when truly needed, and define verifiable convergence criteria. You support both full planning (detailed) and quick mode (one task per feature, minimal waves).
|
|
16
16
|
|
|
17
17
|
## Search Tools
|
|
18
|
-
|
|
18
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
19
19
|
|
|
20
20
|
## Process
|
|
21
21
|
|
|
@@ -16,7 +16,7 @@ tools:
|
|
|
16
16
|
You are a domain researcher for project initialization. You explore a specific angle of the project domain (tech stack, architecture, features, or concerns) and produce a focused research document. You are typically spawned 4 times in parallel, each with a different focus angle.
|
|
17
17
|
|
|
18
18
|
## Search Tools
|
|
19
|
-
|
|
19
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md
|
|
20
20
|
|
|
21
21
|
## Schema Reference
|
|
22
22
|
N/A -- produces markdown research documents, not task JSON artifacts.
|
|
@@ -14,7 +14,7 @@ tools:
|
|
|
14
14
|
You perform focused code review for a single dimension (e.g., security, performance, architecture). You analyze changed files, identify issues with evidence, classify severity, and produce structured findings. You are read-only and never modify project files.
|
|
15
15
|
|
|
16
16
|
## Search Tools
|
|
17
|
-
|
|
17
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
18
18
|
|
|
19
19
|
## Process
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ tools:
|
|
|
14
14
|
You perform goal-backward verification of completed work using a three-layer checking approach. You verify that artifacts exist, contain real substance, and are properly connected to the rest of the system. You also validate each task's convergence criteria individually. You are read-only and never modify project files.
|
|
15
15
|
|
|
16
16
|
## Search Tools
|
|
17
|
-
|
|
17
|
+
~/.pi/agent/packages/pi-maestro-flow/templates/search-tools.md — Follow search tool priority and selection patterns.
|
|
18
18
|
|
|
19
19
|
## Process
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-maestro-flow",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Pi extension for Maestro workflow orchestration — explore, delegate, MOA tools, 113 skills, and 28 agent definitions",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Pi extension for Maestro workflow orchestration — explore, delegate, MOA tools, 113 skills, 82 workflow docs, and 28 agent definitions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package",
|
|
@@ -13,12 +13,15 @@
|
|
|
13
13
|
"delegate",
|
|
14
14
|
"moa",
|
|
15
15
|
"workflow",
|
|
16
|
-
"orchestration"
|
|
16
|
+
"orchestration",
|
|
17
|
+
"skills"
|
|
17
18
|
],
|
|
18
19
|
"files": [
|
|
19
20
|
"src/**/*.ts",
|
|
20
21
|
"agents/",
|
|
21
22
|
"skills/",
|
|
23
|
+
"workflows/",
|
|
24
|
+
"templates/",
|
|
22
25
|
"README.md"
|
|
23
26
|
],
|
|
24
27
|
"pi": {
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
]
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
|
-
"pi-maestro-teammate": "0.1.0",
|
|
36
|
+
"pi-maestro-teammate": "^0.1.0",
|
|
34
37
|
"@earendil-works/pi-tui": "0.74.0",
|
|
35
38
|
"typebox": "1.1.24"
|
|
36
39
|
},
|
|
@@ -54,5 +57,16 @@
|
|
|
54
57
|
"@earendil-works/pi-agent-core": "0.74.0",
|
|
55
58
|
"@earendil-works/pi-ai": "0.74.0",
|
|
56
59
|
"@earendil-works/pi-coding-agent": "0.74.0"
|
|
60
|
+
},
|
|
61
|
+
"maestro": {
|
|
62
|
+
"required": true,
|
|
63
|
+
"minVersion": "1.0.0",
|
|
64
|
+
"features": [
|
|
65
|
+
"search",
|
|
66
|
+
"load",
|
|
67
|
+
"delegate",
|
|
68
|
+
"explore"
|
|
69
|
+
],
|
|
70
|
+
"installUrl": "https://github.com/catlog22/maestro2"
|
|
57
71
|
}
|
|
58
72
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: codify-to-knowhow
|
|
3
3
|
description: "Manifest-driven knowledge asset generator — converts any structured package into maestro knowhow + spec entries with ref linking. Triggers on \"codify-to-knowhow\", \"style to knowhow\", \"知识固化\"."
|
|
4
|
-
allowed-tools: Read Write Edit Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Edit Bash Glob Grep maestro
|
|
5
5
|
auto-continue: true
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: delegation-check
|
|
3
3
|
description: "Check workflow delegation prompts against agent role definitions for content separation violations. Detects conflicts, duplication, boundary leaks, and missing contracts. Triggers on \"check delegation\", \"delegation conflict\", \"prompt vs role check\"."
|
|
4
|
-
allowed-tools: Read Glob Grep Bash
|
|
4
|
+
allowed-tools: Read Glob Grep Bash maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: domain-add
|
|
3
3
|
description: "Register a domain term into project glossary Arguments: <canonical> \\\"<definition>\\\""
|
|
4
|
-
allowed-tools: Read Write Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Bash Glob Grep maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -9,7 +9,7 @@ Register a domain term into `.workflow/domain/glossary.yaml`. Domain terms are a
|
|
|
9
9
|
</purpose>
|
|
10
10
|
|
|
11
11
|
<required_reading>
|
|
12
|
-
|
|
12
|
+
~/.pi/agent/packages/pi-maestro-flow/workflows/domain-add.md
|
|
13
13
|
</required_reading>
|
|
14
14
|
|
|
15
15
|
<context>
|
|
@@ -35,15 +35,15 @@ Domain term lifecycle: discover/manual → register → active → (optional) de
|
|
|
35
35
|
1. **Single-term atomic operation** — each invocation registers exactly ONE term; NEVER batch-write multiple terms in a single execution
|
|
36
36
|
2. **Glossary append-only** — existing terms in `glossary.yaml` SHALL NOT be modified or removed; only new entries are appended
|
|
37
37
|
3. **Duplicate guard** — MUST check for exact canonical name match AND near-matches before writing; NEVER create duplicate entries
|
|
38
|
-
4. **Confirmation mandatory** — MUST present term details (canonical, definition, aliases, tier, path) via
|
|
38
|
+
4. **Confirmation mandatory** — MUST present term details (canonical, definition, aliases, tier, path) via user prompt before any glossary write; NEVER write without user confirmation
|
|
39
39
|
5. **Schema compliance** — every term entry MUST include canonical name, definition, tier, and at least one alias/keyword; incomplete entries SHALL NOT be persisted
|
|
40
40
|
6. **Domain directory prerequisite** — `.workflow/domain/` MUST exist before writing; NEVER auto-create the directory (E002 if missing)
|
|
41
41
|
</invariants>
|
|
42
42
|
|
|
43
43
|
<execution>
|
|
44
|
-
Follow '~/.maestro/workflows/domain-add.md' completely.
|
|
44
|
+
Follow '~/.pi/agent/packages/pi-maestro-flow/workflows/domain-add.md' completely.
|
|
45
45
|
|
|
46
|
-
**Confirmation gate**: Before writing to glossary.yaml,
|
|
46
|
+
**Confirmation gate**: Before writing to glossary.yaml, user prompt showing the term canonical name, definition, extracted aliases/keywords, tier, and target file path. Proceed only on user confirm.
|
|
47
47
|
</execution>
|
|
48
48
|
|
|
49
49
|
<error_codes>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: insight-challenge
|
|
3
3
|
description: "Adversarial review of code quality findings. Challenges insights with counter-evidence, verifies claims against source code, and produces structured verdicts. Triggers on 'insight-challenge', 'challenge finding', '审查发现'."
|
|
4
|
-
allowed-tools: Read Glob Grep Bash Write
|
|
4
|
+
allowed-tools: Read Glob Grep Bash Write maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Insight Challenge
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: learn-decompose
|
|
3
3
|
description: "Extract design patterns from code into specs and wiki Arguments: <path|module> [--patterns <list>] [--save-spec] [--save-wiki] [-y]"
|
|
4
|
-
allowed-tools: Read Write Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -30,7 +30,7 @@ $ARGUMENTS — target path/module and optional flags.
|
|
|
30
30
|
2. **Evidence-anchored findings** — every pattern MUST include at least one `file:line` anchor from source; unanchored patterns SHALL NOT be persisted
|
|
31
31
|
3. **Dedup before persist** — MUST cross-reference against existing `learnings.md` and `coding-conventions.md` before writing; duplicate entries SHALL NOT be appended
|
|
32
32
|
4. **Parallel agent isolation** — each dimension agent operates independently; NEVER share state between agents during analysis
|
|
33
|
-
5. **Confirmation gate** — unless `-y` is set, MUST present all findings and target files via
|
|
33
|
+
5. **Confirmation gate** — unless `-y` is set, MUST present all findings and target files via user prompt before any writes
|
|
34
34
|
6. **Append-only learnings** — `.workflow/specs/learnings.md` MUST be appended, NEVER overwritten or truncated
|
|
35
35
|
</invariants>
|
|
36
36
|
|
|
@@ -49,7 +49,7 @@ S_PERSIST — 写文件 + 可选 spec-add/wiki create PERSIST: knowho
|
|
|
49
49
|
|
|
50
50
|
S_RESOLVE:
|
|
51
51
|
→ S_DEDUP WHEN: file list resolved
|
|
52
|
-
→ S_RESOLVE WHEN: unresolvable DO:
|
|
52
|
+
→ S_RESOLVE WHEN: unresolvable DO: user prompt
|
|
53
53
|
|
|
54
54
|
S_DEDUP:
|
|
55
55
|
→ S_ANALYZE DO: read coding-conventions.md + .workflow/specs/learnings.md → build known pattern set
|
|
@@ -64,7 +64,7 @@ S_CATALOG:
|
|
|
64
64
|
→ S_PERSIST DO: write KNW-decompose report (grouped by dimension: pattern table + details)
|
|
65
65
|
|
|
66
66
|
S_PERSIST:
|
|
67
|
-
→ END GATE: unless -y,
|
|
67
|
+
→ END GATE: unless -y, user prompt showing files to write and patterns to persist — proceed only on confirm
|
|
68
68
|
DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
|
|
69
69
|
|
|
70
70
|
</transitions>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: learn-follow
|
|
3
3
|
description: "Guided reading of code or wiki to extract patterns Arguments: <path|wiki-id|topic> [--depth shallow|deep] [--save-wiki] [-y]"
|
|
4
|
-
allowed-tools: Read Write Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -36,7 +36,7 @@ $ARGUMENTS — target and optional flags.
|
|
|
36
36
|
3. **Anchor requirement** — every extracted pattern MUST include a `file:line` anchor; unanchored patterns SHALL NOT be persisted to learnings.md
|
|
37
37
|
4. **Convention cross-ref** — MUST check every finding against `coding-conventions.md` and mark status (documented/candidate); NEVER persist without status tag
|
|
38
38
|
5. **Append-only learnings** — `.workflow/specs/learnings.md` MUST be appended, NEVER overwritten or truncated
|
|
39
|
-
6. **Confirmation gate** — unless `-y` is set, MUST present findings and target files via
|
|
39
|
+
6. **Confirmation gate** — unless `-y` is set, MUST present findings and target files via user prompt before any writes
|
|
40
40
|
7. **Depth contract** — `--depth shallow` MUST NOT descend into function bodies; `--depth deep` MUST cover every branch and sub-expression
|
|
41
41
|
</invariants>
|
|
42
42
|
|
|
@@ -59,7 +59,7 @@ $ARGUMENTS — target and optional flags.
|
|
|
59
59
|
- BLOCKED if: unanchored patterns remain in extraction results.
|
|
60
60
|
|
|
61
61
|
**GATE 4: Persistence → Completion** (S_PERSIST → END)
|
|
62
|
-
- REQUIRED: Unless `-y`,
|
|
62
|
+
- REQUIRED: Unless `-y`, user prompt showing files to write and spec-entries to append — user must confirm.
|
|
63
63
|
- REQUIRED: KNW-follow-{slug}-{date}.md written with understanding map.
|
|
64
64
|
- REQUIRED: learnings.md appended (not overwritten) with new spec-entry blocks.
|
|
65
65
|
- BLOCKED if: user declines confirmation — offer to adjust findings before retry.
|
|
@@ -81,7 +81,7 @@ S_PERSIST — 写 understanding map + spec-entry 块 PERSIST: knowh
|
|
|
81
81
|
|
|
82
82
|
S_RESOLVE:
|
|
83
83
|
→ S_CONTEXT WHEN: target resolved
|
|
84
|
-
→ S_RESOLVE WHEN: unresolvable DO:
|
|
84
|
+
→ S_RESOLVE WHEN: unresolvable DO: user prompt with suggestions
|
|
85
85
|
|
|
86
86
|
S_CONTEXT:
|
|
87
87
|
→ S_ORDER DO: A_BUILD_CONTEXT_WEB
|
|
@@ -96,7 +96,7 @@ S_EXTRACT:
|
|
|
96
96
|
→ S_PERSIST DO: A_EXTRACT_PATTERNS
|
|
97
97
|
|
|
98
98
|
S_PERSIST:
|
|
99
|
-
→ END GATE: unless -y,
|
|
99
|
+
→ END GATE: unless -y, user prompt showing files to write and spec-entries to append — proceed only on confirm
|
|
100
100
|
DO: write KNW-follow + append .workflow/specs/learnings.md [+ wiki note if --save-wiki]
|
|
101
101
|
|
|
102
102
|
</transitions>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: learn-investigate
|
|
3
3
|
description: "Investigate questions with hypothesis testing and evidence logging Arguments: <question> [--scope <path>] [--max-hypotheses N] [-y]"
|
|
4
|
-
allowed-tools: Read Write Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -34,8 +34,8 @@ $ARGUMENTS — question text and optional flags.
|
|
|
34
34
|
3. **Scope lock** — once `--scope` is resolved in S_FRAME, NEVER expand search scope without explicit user confirmation via S_ESCALATE
|
|
35
35
|
4. **Hypothesis cap** — MUST NOT generate more than `--max-hypotheses` (default 3) before triggering escalation; NEVER silently exceed the cap
|
|
36
36
|
5. **Structured evidence format** — every evidence entry MUST include `{ts, type, source, relevance, content, note}`; incomplete entries SHALL NOT be appended
|
|
37
|
-
6. **3-strike escalation** — after all hypotheses fail, MUST escalate to user via
|
|
38
|
-
7. **Confirmation gate** — unless `-y` is set, MUST present report.md path and spec-entries via
|
|
37
|
+
6. **3-strike escalation** — after all hypotheses fail, MUST escalate to user via user prompt; NEVER silently conclude as INCONCLUSIVE without user interaction
|
|
38
|
+
7. **Confirmation gate** — unless `-y` is set, MUST present report.md path and spec-entries via user prompt before final writes
|
|
39
39
|
</invariants>
|
|
40
40
|
|
|
41
41
|
<state_machine>
|
|
@@ -75,11 +75,11 @@ S_TEST:
|
|
|
75
75
|
→ S_ESCALATE WHEN: max_hypotheses all failed DO: A_TEST_HYPOTHESIS
|
|
76
76
|
|
|
77
77
|
S_ESCALATE:
|
|
78
|
-
→ S_HYPOTHESIZE WHEN: user broadens scope or provides new hypothesis DO:
|
|
78
|
+
→ S_HYPOTHESIZE WHEN: user broadens scope or provides new hypothesis DO: user prompt
|
|
79
79
|
→ S_REPORT WHEN: user selects "Escalate" or still stuck DO: mark INCONCLUSIVE
|
|
80
80
|
|
|
81
81
|
S_REPORT:
|
|
82
|
-
→ END GATE: unless -y,
|
|
82
|
+
→ END GATE: unless -y, user prompt showing report.md path and spec-entries to append — proceed only on confirm
|
|
83
83
|
DO: A_SYNTHESIZE_REPORT
|
|
84
84
|
|
|
85
85
|
</transitions>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: learn-second-opinion
|
|
3
3
|
description: "Get alternative perspectives — review, challenge, or consult Arguments: <target> [--mode review|challenge|consult] [-y]"
|
|
4
|
-
allowed-tools: Read Write Bash Glob Grep
|
|
4
|
+
allowed-tools: Read Write Bash Glob Grep teammate maestro
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
@@ -37,7 +37,7 @@ $ARGUMENTS — target and optional mode flag.
|
|
|
37
37
|
3. **Evidence-backed verdicts** — every finding MUST include a `location` reference (file:line or section); ungrounded opinions SHALL NOT appear in the report
|
|
38
38
|
4. **Mode contract** — MUST execute exactly the mode specified (review/challenge/consult); NEVER mix mode behaviors within a single execution
|
|
39
39
|
5. **Append-only learnings** — `.workflow/specs/learnings.md` MUST be appended, NEVER overwritten or truncated
|
|
40
|
-
6. **Confirmation gate** — unless `-y` is set, MUST present findings and target files via
|
|
40
|
+
6. **Confirmation gate** — unless `-y` is set, MUST present findings and target files via user prompt before any writes
|
|
41
41
|
</invariants>
|
|
42
42
|
|
|
43
43
|
<state_machine>
|
|
@@ -54,7 +54,7 @@ S_PERSIST — 写文件、append .workflow/specs/learnings.md PERSIST: k
|
|
|
54
54
|
|
|
55
55
|
S_RESOLVE:
|
|
56
56
|
→ S_CONTEXT WHEN: target resolved DO: read target content
|
|
57
|
-
→ S_RESOLVE WHEN: unresolvable DO:
|
|
57
|
+
→ S_RESOLVE WHEN: unresolvable DO: user prompt for clarification
|
|
58
58
|
|
|
59
59
|
S_CONTEXT:
|
|
60
60
|
→ S_EXECUTE DO: load specs + wiki search (optional, proceed without)
|
|
@@ -68,7 +68,7 @@ S_SYNTHESIZE:
|
|
|
68
68
|
→ S_PERSIST DO: merge perspectives → agreements, disagreements, verdict, top 3 recommendations
|
|
69
69
|
|
|
70
70
|
S_PERSIST:
|
|
71
|
-
→ END GATE: unless -y,
|
|
71
|
+
→ END GATE: unless -y, user prompt showing files to write and spec-entries to append — proceed only on confirm
|
|
72
72
|
DO: write KNW-opinion + append <spec-entry> blocks to .workflow/specs/learnings.md
|
|
73
73
|
|
|
74
74
|
</transitions>
|
|
@@ -98,7 +98,7 @@ Spawn 1 adversarial Agent:
|
|
|
98
98
|
Interactive loop:
|
|
99
99
|
1. Agent studies target
|
|
100
100
|
2. Display "Target loaded. What would you like to know?"
|
|
101
|
-
3.
|
|
101
|
+
3. user prompt → Agent answers with code refs → repeat until "done"
|
|
102
102
|
4. Compile Q&A into report
|
|
103
103
|
|
|
104
104
|
</actions>
|