@emiliosp/pi-maestro 0.9.5 → 0.10.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/CHANGELOG.md +21 -0
- package/README.md +7 -2
- package/ROADMAP.md +131 -10
- package/agents/verifier.md +1 -1
- package/docs/glossary.md +1 -0
- package/docs/workflow.md +34 -22
- package/package.json +1 -1
- package/src/MaestroPaths.ts +4 -32
- package/src/artifacts/builder-handoff/assertBuilderHandoff.ts +23 -29
- package/src/artifacts/verifier-handoff/assertVerifierHandoff.ts +14 -18
- package/src/artifacts/verifier-handoff/schema.ts +9 -0
- package/src/config/loadConfiguration.ts +20 -50
- package/src/maestro/instructions/getMaestroInstructions.ts +40 -22
- package/src/maestro/status/formatMaestroStatus.ts +6 -6
- package/src/specs/create.ts +7 -24
- package/src/tools/main/mark-spec-ready.ts +1 -1
- package/src/tools/main/resolve-escalations.ts +11 -4
- package/src/tools/main/resolve-findings.ts +30 -3
- package/src/tools/main/run-builder.ts +39 -49
- package/src/tools/main/run-verifier.ts +12 -23
- package/src/utils/path-within-or-equal.ts +3 -4
- package/src/workflow/builder/resolveEscalations.ts +50 -31
- package/src/workflow/builder/utils/getWorkflowEventByBuilderHandoff.ts +1 -1
- package/src/workflow/builder/utils/getWorkflowEventBySpecChangeRequired.ts +16 -0
- package/src/workflow/state/schema.ts +10 -9
- package/src/workflow/transitions.ts +22 -20
- package/src/workflow/utils/getAgentRole.ts +2 -2
- package/src/workflow/verifier/resolveFindings.ts +56 -69
- package/src/workflow/verifier/utils/getWorkflowEventByVerifierHandoff.ts +11 -3
- package/templates/spec.md +9 -5
package/templates/spec.md
CHANGED
|
@@ -25,7 +25,7 @@ Leave local implementation choices, test code, fixtures, mocks, and commands to
|
|
|
25
25
|
|
|
26
26
|
### Edge cases and error handling
|
|
27
27
|
|
|
28
|
-
<Describe boundary conditions, failures, and required recovery behavior not already covered above.
|
|
28
|
+
<Describe boundary conditions, failures, and required recovery behavior not already covered above. Keep these requirements even when existing tests cover their scenarios.>
|
|
29
29
|
|
|
30
30
|
## 3. Technical decisions and prototypes
|
|
31
31
|
|
|
@@ -45,16 +45,20 @@ Leave local implementation choices, test code, fixtures, mocks, and commands to
|
|
|
45
45
|
|
|
46
46
|
## 4. Acceptance criteria
|
|
47
47
|
|
|
48
|
-
<
|
|
48
|
+
<Inspect existing tests before writing criteria. Omit a criterion only if a test covers the same starting conditions, action, and expected result. Keep criteria when coverage is partial or uncertain. During review, remove criteria already covered by tests. Keep numbering continuous from AC1 and update affected references. Keep required behavior in section 2 even when its criterion is omitted.>
|
|
49
|
+
|
|
50
|
+
<Give each criterion a unique ID, one observable claim, and one coverage label. A probe is the scenario used to check that claim. Describe it in plain language. Use success for a valid action that produces the required result. Use failure for an invalid action that is correctly rejected. Use unchanged when the criterion explicitly checks existing behavior that the change must preserve. The label describes the scenario, not the test outcome. A failure scenario passes when the invalid action is correctly rejected. Do not require all three categories.>
|
|
49
51
|
|
|
50
52
|
### AC1: <short observable claim>
|
|
51
53
|
|
|
52
|
-
1.
|
|
53
|
-
2.
|
|
54
|
-
3.
|
|
54
|
+
1. Coverage: <success | failure | unchanged>
|
|
55
|
+
2. Probe: <starting conditions and action or observation, without prescribing test implementation>
|
|
56
|
+
3. Expected result: <observable and measurable outcome>
|
|
57
|
+
4. Example: <specific starting conditions, concrete input or action, and exact expected result for this probe, not a restatement of the claim>
|
|
55
58
|
|
|
56
59
|
<!--
|
|
57
60
|
Example:
|
|
61
|
+
Coverage: success
|
|
58
62
|
Probe: Save a change to an item's title, then reopen the item.
|
|
59
63
|
Expected result: The saved title is still present.
|
|
60
64
|
Example: An item's title is "Draft". Change it to "Ready", save, and reopen the item. The title is "Ready".
|