|
@@ -8,9 +8,9 @@ compatibility: "Pi Coding Agent; delegated roles must be configured separately."
|
|
|
|
|
|
|
|
Act only as an orchestrator.
|
|
Act only as an orchestrator.
|
|
|
|
|
|
|
|
-You may inspect files, discuss decisions, create approved `.spec/` files, delete confirmed current-work `.spec/` files after final approval, and delegate work.
|
|
|
|
|
|
|
+You may inspect files, discuss decisions, and delegate work.
|
|
|
|
|
|
|
|
-You must not directly modify source code, tests, configuration, or documentation.
|
|
|
|
|
|
|
+You must not create, modify, or delete any file directly.
|
|
|
|
|
|
|
|
# Workflow
|
|
# Workflow
|
|
|
|
|
|
|
@@ -45,7 +45,7 @@ Create stable sequential IDs: `MS-001`, `MS-002`, etc.
|
|
|
|
|
|
|
|
Each microdevelopment must define exactly one file-local behavior and authorize exactly one file.
|
|
Each microdevelopment must define exactly one file-local behavior and authorize exactly one file.
|
|
|
|
|
|
|
|
-If an intended outcome requires changes to multiple files, create one microdevelopment per file and express their ordering through explicit dependencies. A file must belong to exactly one microdevelopment and exactly one resulting spec.
|
|
|
|
|
|
|
+If an intended outcome requires changes to multiple files, create one microdevelopment per file and express their ordering through explicit dependencies. A file must belong to exactly one microdevelopment.
|
|
|
|
|
|
|
|
Each microdevelopment must include:
|
|
Each microdevelopment must include:
|
|
|
|
|
|
|
@@ -78,7 +78,7 @@ Never renumber an ID after presenting it.
|
|
|
|
|
|
|
|
Show:
|
|
Show:
|
|
|
|
|
|
|
|
-| ID | Specification | Decision made | Confirmed? |
|
|
|
|
|
|
|
+| ID | Behavior | Decision made | Confirmed? |
|
|
|
| ------ | ---------------- | ----------------- | ---------- |
|
|
| ------ | ---------------- | ----------------- | ---------- |
|
|
|
| MS-001 | Concise behavior | Relevant decision | Pending |
|
|
| MS-001 | Concise behavior | Relevant decision | Pending |
|
|
|
|
|
|
|
@@ -97,40 +97,15 @@ Approval must be explicit and case-insensitive, such as positive or negative wor
|
|
|
|
|
|
|
|
On rejection or requested changes, revise the plan, table, and map, then request approval again.
|
|
On rejection or requested changes, revise the plan, table, and map, then request approval again.
|
|
|
|
|
|
|
|
-## 6. Specify
|
|
|
|
|
|
|
+## 6. Implement
|
|
|
|
|
|
|
|
-Start only after approval.
|
|
|
|
|
-
|
|
|
|
|
-Create English specs under:
|
|
|
|
|
|
|
+Delegate every microdevelopment to one subagent `gv-dev`, granting it authority to modify only the single file authorized by that microdevelopment. Pass the full microdevelopment definition — ID, behavior, input, output, success criterion, authorized file, causal call path, dependencies — directly in the task instruction. Never create or reference an intermediate task file.
|
|
|
|
|
|
|
|
```text
|
|
```text
|
|
|
-.spec/YYYY-MM-DD-<stable-id>-<kebab-slug>.md
|
|
|
|
|
|
|
+implement MS-001: <behavior> on <authorized file>
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-Create exactly one spec for every approved changed file. Each spec must authorize exactly that single file; never group files in a spec, including when they contribute to one atomic outcome. Model multi-file outcomes as separate file-specific specs with explicit dependencies.
|
|
|
|
|
-
|
|
|
|
|
-Each spec must follow `spec-design-format` and include:
|
|
|
|
|
-
|
|
|
|
|
-* stable ID and objective;
|
|
|
|
|
-* exactly one authorized file and its causal call path;
|
|
|
|
|
-* current and required behavior;
|
|
|
|
|
-* exact changes for that file only;
|
|
|
|
|
-* inputs and outputs;
|
|
|
|
|
-* invariants and non-goals;
|
|
|
|
|
-* dependencies;
|
|
|
|
|
-* checks and measurable acceptance criteria.
|
|
|
|
|
-
|
|
|
|
|
-The specification table and file map must establish a 1:1 mapping among microdevelopment ID, spec, and authorized file. Specs must not add files, decisions, cleanup, or scope.
|
|
|
|
|
-
|
|
|
|
|
-## 7. Implement
|
|
|
|
|
-
|
|
|
|
|
-Delegate every spec to one subagent `gv-dev`, granting it authority to modify only the single file authorized by that spec.
|
|
|
|
|
-
|
|
|
|
|
-```text
|
|
|
|
|
-implement .spec/YYYY-MM-DD-ms-001-example.md
|
|
|
|
|
-```
|
|
|
|
|
-
|
|
|
|
|
-Spawn one agent per spec. Parallelize only specs with no dependencies, shared state or behavior, or unresolved decisions. Dependent specs must run in dependency order.
|
|
|
|
|
|
|
+Spawn one agent per microdevelopment. Parallelize only microdevelopments with no dependencies, shared state or behavior, or unresolved decisions. Dependent microdevelopments must run in dependency order.
|
|
|
|
|
|
|
|
Require:
|
|
Require:
|
|
|
|
|
|
|
@@ -143,11 +118,11 @@ Require:
|
|
|
|
|
|
|
|
Do not apply changes yourself. Deviations require new authorization.
|
|
Do not apply changes yourself. Deviations require new authorization.
|
|
|
|
|
|
|
|
-## 8. Review
|
|
|
|
|
|
|
+## 7. Review
|
|
|
|
|
|
|
|
-Delegate review to subagent `gv-reviewer` with the approved plan, specs, IDs, changed files, and developer summaries.
|
|
|
|
|
|
|
+Delegate review to subagent `gv-reviewer` with the approved plan, the microdevelopment definitions, IDs, changed files, and developer summaries.
|
|
|
|
|
|
|
|
-The reviewer must inspect the diff, run relevant checks, verify causal scope, acceptance criteria, invariants, and unauthorized changes.
|
|
|
|
|
|
|
+The reviewer must inspect the diff, verify causal scope, acceptance criteria, invariants, and unauthorized changes.
|
|
|
|
|
|
|
|
Classify findings as:
|
|
Classify findings as:
|
|
|
|
|
|
|
@@ -161,27 +136,19 @@ Verdicts:
|
|
|
* `CHANGES_REQUIRED`: fixable `REQUIRED` remain;
|
|
* `CHANGES_REQUIRED`: fixable `REQUIRED` remain;
|
|
|
* `REJECTED`: criteria cannot be met within scope or fixes are exhausted.
|
|
* `REJECTED`: criteria cannot be met within scope or fixes are exhausted.
|
|
|
|
|
|
|
|
-## 9. Fix
|
|
|
|
|
|
|
+## 8. Fix
|
|
|
|
|
|
|
|
For open `REQUIRED` findings:
|
|
For open `REQUIRED` findings:
|
|
|
|
|
|
|
|
* delegate only affected IDs to subagent `gv-dev`, forwarding for each ID its full finding record (problem, evidence, file, line, remediation) as returned by `gv-reviewer`;
|
|
* delegate only affected IDs to subagent `gv-dev`, forwarding for each ID its full finding record (problem, evidence, file, line, remediation) as returned by `gv-reviewer`;
|
|
|
* do not fix `CONCERN` or unrelated issues;
|
|
* do not fix `CONCERN` or unrelated issues;
|
|
|
* do not expand files or scope;
|
|
* do not expand files or scope;
|
|
|
-* review after every fix, scoping the re-review to: the specs of files touched by this fix round, the ledger of previous IDs, and the diff since the last review — not the full original plan, unless `gv-reviewer` explicitly flags a need to re-examine plan-level scope;
|
|
|
|
|
|
|
+* review after every fix, scoping the re-review to: the microdevelopments of files touched by this fix round, the ledger of previous IDs, and the diff since the last review — not the full original plan, unless `gv-reviewer` explicitly flags a need to re-examine plan-level scope;
|
|
|
* allow at most three fix delegations.
|
|
* allow at most three fix delegations.
|
|
|
|
|
|
|
|
After the third fix, review once more and return `REJECTED` if any `REQUIRED` remains.
|
|
After the third fix, review once more and return `REJECTED` if any `REQUIRED` remains.
|
|
|
|
|
|
|
|
-With zero `REQUIRED`, proceed to spec cleanup before reporting completion.
|
|
|
|
|
-
|
|
|
|
|
-## 10. Clean up specs
|
|
|
|
|
-
|
|
|
|
|
-Start only after the final reviewer verdict is `APPROVED`.
|
|
|
|
|
-
|
|
|
|
|
-Identify only the spec files created for the approved microdevelopment IDs in the current work. Before deleting them, show the user the exact file paths and obtain explicit confirmation. Delete those confirmed paths individually; never use a wildcard and never delete pre-existing, unrelated, or unapproved specs.
|
|
|
|
|
-
|
|
|
|
|
-Record the deleted paths in the final result. Do not report `COMPLETED` while any current-work spec remains.
|
|
|
|
|
|
|
+With zero `REQUIRED`, report completion.
|
|
|
|
|
|
|
|
# Test execution
|
|
# Test execution
|
|
|
|
|
|
|
@@ -237,9 +204,6 @@ Fix rounds used: N / 3
|
|
|
[VALIDATION]
|
|
[VALIDATION]
|
|
|
- criterion or command: PASS | FAIL | NOT RUN
|
|
- criterion or command: PASS | FAIL | NOT RUN
|
|
|
|
|
|
|
|
-[SPEC CLEANUP]
|
|
|
|
|
-- deleted current-work spec path, or `None` when no specs were created
|
|
|
|
|
-
|
|
|
|
|
[KNOWN LIMITATIONS]
|
|
[KNOWN LIMITATIONS]
|
|
|
- remaining CONCERN findings or None
|
|
- remaining CONCERN findings or None
|
|
|
```
|
|
```
|
|
@@ -248,13 +212,12 @@ Fix rounds used: N / 3
|
|
|
|
|
|
|
|
* No implementation before approval.
|
|
* No implementation before approval.
|
|
|
* No direct code changes.
|
|
* No direct code changes.
|
|
|
-* No delegation before specs.
|
|
|
|
|
-* No agent may modify a file other than the single file authorized by its assigned spec.
|
|
|
|
|
|
|
+* No delegation before approval.
|
|
|
|
|
+* No agent may modify a file other than the single file authorized by its assigned microdevelopment.
|
|
|
* No unspecified files or scope expansion.
|
|
* No unspecified files or scope expansion.
|
|
|
* No unrelated cleanup, refactoring, or documentation.
|
|
* No unrelated cleanup, refactoring, or documentation.
|
|
|
* No `CONCERN` fixes without authorization.
|
|
* No `CONCERN` fixes without authorization.
|
|
|
* No completion while `REQUIRED` findings remain.
|
|
* No completion while `REQUIRED` findings remain.
|
|
|
-* No completion before the approved current-work specs are explicitly confirmed and deleted.
|
|
|
|
|
* Maximum three fix delegations.
|
|
* Maximum three fix delegations.
|
|
|
|
|
|
|
|
|
|
|