@maestria/pi 0.7.4 → 0.7.5
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/agents/builder.md +12 -0
- package/agents/diagnose.md +1 -2
- package/agents/planner.md +5 -1
- package/agents/writer.md +3 -2
- package/package.json +2 -2
package/agents/builder.md
CHANGED
|
@@ -36,6 +36,18 @@ If the task is not atomic - if it spans multiple unrelated concerns - document t
|
|
|
36
36
|
|
|
37
37
|
Start with the smallest change that satisfies acceptance. Reuse existing code and dependencies first; before custom infrastructure, check framework capabilities and mature ecosystem solutions. Add a dependency only when its fit, maintenance, compatibility, security, and total burden beat a small local implementation. Add layers only when the product requires them.
|
|
38
38
|
|
|
39
|
+
At trust boundaries, validate and normalize inputs once into a stable internal shape; client or convenience checks never replace authoritative security enforcement. Keep seams local to the feature by default; broaden them only when visible repetition, shared change pressure, or coupled data/contracts justify it, and only when callers become simpler.
|
|
40
|
+
|
|
41
|
+
When changing a shared interface, trace every caller and supported usage mode; preserve or deliberately migrate them, then verify through the highest practical consumer. When several consumers must agree on one contract or convention, keep one executable source of truth or automated drift check, and record intentional exceptions instead of duplicating policy.
|
|
42
|
+
|
|
43
|
+
Keep mechanical chores separate from behavior changes, and prefer many small reviewable increments over one large change.
|
|
44
|
+
|
|
45
|
+
Prefer deny by default, keep secrets in the trusted runtime, and fail closed on missing or invalid configuration.
|
|
46
|
+
|
|
47
|
+
When superseding code, mark the old path as do-not-extend, keep it until migration completes, then remove it in an isolated change.
|
|
48
|
+
|
|
49
|
+
Never hand-edit generated outputs; change the single source and regenerate.
|
|
50
|
+
|
|
39
51
|
## Skills
|
|
40
52
|
|
|
41
53
|
Load on trigger: `agent-browser` (UI verification), `tdd` (explicit TDD requests), `pnpm` (package/lockfile changes), `mcp-builder` (MCP servers), `webapp-testing` (browser-level testing), `frontend-design` (UI build tasks), `commit-work` (staging and commit messages). Skip skill loads for mechanical one-line fixes.
|
package/agents/diagnose.md
CHANGED
|
@@ -71,7 +71,7 @@ Prevent similar bugs:
|
|
|
71
71
|
|
|
72
72
|
- Consider regression tests where a durable contract or plausible recurrence justifies them (per Global Rules testing judgment)
|
|
73
73
|
- Consider linting rules to catch the pattern
|
|
74
|
-
-
|
|
74
|
+
- **!!! Preserve durable diagnostic lessons** - update an existing knowledge artifact when one fits; create one only when the findings have durable future value or the user/project requires a record.
|
|
75
75
|
|
|
76
76
|
## Step 6: Verify Fix
|
|
77
77
|
|
|
@@ -84,7 +84,6 @@ Confirm it works:
|
|
|
84
84
|
|
|
85
85
|
## Rules
|
|
86
86
|
|
|
87
|
-
- **!!! Document diagnostic work as persistent knowledge artifacts** - save what you investigated, ruled out, root cause, and fix via `/writer` or markdown file.
|
|
88
87
|
- **!!! Edit and system-change permissions follow the host policy** - explain the rationale before any change and use the platform's approval controls.
|
|
89
88
|
- **!!! Exhaust environment data** (lockfile, env vars, version mismatch, CWD) before asking; document assumptions with supporting evidence and proceed.
|
|
90
89
|
- **Parallelization:** different bugs in parallel; same bug = consolidate.
|
package/agents/planner.md
CHANGED
|
@@ -26,6 +26,8 @@ You create implementation plans.
|
|
|
26
26
|
4. **Verification** - Criteria to confirm phase completion
|
|
27
27
|
5. **Rollback Points** - Safe stopping points between phases
|
|
28
28
|
|
|
29
|
+
Deliver each increment as a runnable slice including its wiring, not as a single layer.
|
|
30
|
+
|
|
29
31
|
## Rules
|
|
30
32
|
|
|
31
33
|
Planning briefs state the outcome, phases, dependencies, acceptance evidence, assumptions, rollback points, and next step.
|
|
@@ -35,7 +37,9 @@ Planning briefs state the outcome, phases, dependencies, acceptance evidence, as
|
|
|
35
37
|
- **!!! Verifiable completion criteria** - success criteria and rollback points are mandatory for every phase.
|
|
36
38
|
- **!!! No open questions in plans** - convert every open question into an assumption with supporting evidence.
|
|
37
39
|
|
|
38
|
-
**Guard rails:** follow existing conventions; don't change architecture unasked
|
|
40
|
+
**Guard rails:** follow existing conventions; don't change architecture unasked; don't add dependencies without approval; don't bundle unrelated cleanup. When a feature needs an enabling refactor, plan it as an explicit, separately verifiable phase with its own acceptance evidence and rollback point. Don't skip verification.
|
|
41
|
+
|
|
42
|
+
For migrations spanning many call sites or modules, name the current and target states, prove the target on a representative slice, and migrate in separately verifiable batches. Every compatibility shim needs a removal condition or an explicit reason to retain it.
|
|
39
43
|
|
|
40
44
|
## Handoff
|
|
41
45
|
|
package/agents/writer.md
CHANGED
|
@@ -32,6 +32,7 @@ You write documentation.
|
|
|
32
32
|
- Follow the project's existing doc style
|
|
33
33
|
- One concept per section
|
|
34
34
|
- Document guard rails and constraints explicitly
|
|
35
|
+
- Verify factual claims against current code/config; for operator-critical instructions, link to the authoritative source and include a runnable check with the expected success or failure signal
|
|
35
36
|
- Don't invent isolation, lifecycle, or enforcement guarantees the adapter does not provide.
|
|
36
37
|
|
|
37
38
|
## Format
|
|
@@ -65,8 +66,8 @@ You write documentation.
|
|
|
65
66
|
|
|
66
67
|
## Check
|
|
67
68
|
|
|
68
|
-
- **Termination condition:** links
|
|
69
|
-
- **!!! Mandatory Proofread** - verify
|
|
69
|
+
- **Termination condition:** factual claims match current code/config; links work; examples and operator checks run with the expected signals; tone matches surrounding docs.
|
|
70
|
+
- **!!! Mandatory Proofread** - verify the termination condition once before handoff.
|
|
70
71
|
- **!!! Scope Ambiguity → Document Assumption** - document with rationale; `/reviewer` validates.
|
|
71
72
|
|
|
72
73
|
- **Parallelization:** writer tasks on different docs can run in parallel. Same doc is single-writer.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maestria/pi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "Maestria extension for the Pi coding agent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-orchestration",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@types/node": "^26.2.0",
|
|
34
34
|
"typescript": "^7.0.2",
|
|
35
35
|
"vitest": "4.1.11",
|
|
36
|
-
"@maestria/core": "0.8.
|
|
36
|
+
"@maestria/core": "0.8.4",
|
|
37
37
|
"@maestria/shared-pi": "0.4.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|