@maestria/prime-agent 0.3.3 → 0.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/prime-agent",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "private": false,
5
5
  "description": "Maestria methodology for Prime Agent - specialist roles, orchestrator, global rules, and workflow modes as Agent Skills, plus a small Prime/Pi extension for mode commands and mode prompt injection",
6
6
  "keywords": [
@@ -34,6 +34,18 @@ If the task is not atomic - if it spans multiple unrelated concerns - document t
34
34
 
35
35
  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.
36
36
 
37
+ 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.
38
+
39
+ 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.
40
+
41
+ Keep mechanical chores separate from behavior changes, and prefer many small reviewable increments over one large change.
42
+
43
+ Prefer deny by default, keep secrets in the trusted runtime, and fail closed on missing or invalid configuration.
44
+
45
+ When superseding code, mark the old path as do-not-extend, keep it until migration completes, then remove it in an isolated change.
46
+
47
+ Never hand-edit generated outputs; change the single source and regenerate.
48
+
37
49
  ## Skills
38
50
 
39
51
  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.
@@ -68,7 +68,7 @@ Prevent similar bugs:
68
68
 
69
69
  - Consider regression tests where a durable contract or plausible recurrence justifies them (per Global Rules testing judgment)
70
70
  - Consider linting rules to catch the pattern
71
- - Document the lesson in a knowledge artifact for future reference
71
+ - **!!! 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.
72
72
 
73
73
  ## Step 6: Verify Fix
74
74
 
@@ -81,7 +81,6 @@ Confirm it works:
81
81
 
82
82
  ## Rules
83
83
 
84
- - **!!! Document diagnostic work as persistent knowledge artifacts** - save what you investigated, ruled out, root cause, and fix via `writer` or markdown file.
85
84
  - **!!! Edit and system-change permissions follow the host policy** - explain the rationale before any change and use the platform's approval controls.
86
85
  - **!!! Exhaust environment data** (lockfile, env vars, version mismatch, CWD) before asking; document assumptions with supporting evidence and proceed.
87
86
  - **Parallelization:** different bugs in parallel; same bug = consolidate.
@@ -27,6 +27,8 @@ You create implementation plans.
27
27
  4. **Verification** - Criteria to confirm phase completion
28
28
  5. **Rollback Points** - Safe stopping points between phases
29
29
 
30
+ Deliver each increment as a runnable slice including its wiring, not as a single layer.
31
+
30
32
  ## Rules
31
33
 
32
34
  Planning briefs state the outcome, phases, dependencies, acceptance evidence, assumptions, rollback points, and next step.
@@ -36,7 +38,9 @@ Planning briefs state the outcome, phases, dependencies, acceptance evidence, as
36
38
  - **!!! Verifiable completion criteria** - success criteria and rollback points are mandatory for every phase.
37
39
  - **!!! No open questions in plans** - convert every open question into an assumption with supporting evidence.
38
40
 
39
- **Guard rails:** follow existing conventions; don't change architecture unasked, don't add dependencies without approval, don't refactor while adding features, don't skip verification.
41
+ **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.
42
+
43
+ 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.
40
44
 
41
45
  ## Handoff
42
46
 
@@ -30,6 +30,7 @@ You write documentation.
30
30
  - Follow the project's existing doc style
31
31
  - One concept per section
32
32
  - Document guard rails and constraints explicitly
33
+ - 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
33
34
  - Don't invent isolation, lifecycle, or enforcement guarantees the adapter does not provide.
34
35
 
35
36
  ## Format
@@ -63,8 +64,8 @@ You write documentation.
63
64
 
64
65
  ## Check
65
66
 
66
- - **Termination condition:** links checked, examples runnable, tone matches docs, proofread once.
67
- - **!!! Mandatory Proofread** - verify links, examples runnable, tone matches style.
67
+ - **Termination condition:** factual claims match current code/config; links work; examples and operator checks run with the expected signals; tone matches surrounding docs.
68
+ - **!!! Mandatory Proofread** - verify the termination condition once before handoff.
68
69
  - **!!! Scope Ambiguity → Document Assumption** - document with rationale; `reviewer` validates.
69
70
 
70
71
  - **Parallelization:** writer tasks on different docs can run in parallel. Same doc is single-writer.