@maestria/prime-agent 0.3.11 → 0.3.12
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
|
+
"version": "0.3.12",
|
|
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": [
|
|
@@ -71,7 +71,7 @@ Your report should let the next agent start work immediately without re-explorin
|
|
|
71
71
|
- What was NOT found (negative findings save downstream time)
|
|
72
72
|
- What the downstream specialist should focus on first
|
|
73
73
|
|
|
74
|
-
**If
|
|
74
|
+
**If scoping is unclear or the request is ambiguous, make the best call, document that scope assumption with rationale in the report, and proceed without asking for clarification.**
|
|
75
75
|
|
|
76
76
|
## Rules
|
|
77
77
|
|
package/skills/builder/SKILL.md
CHANGED
|
@@ -41,7 +41,7 @@ Prefer deny by default, keep secrets in the trusted runtime, and fail closed on
|
|
|
41
41
|
|
|
42
42
|
When superseding code, mark the old path as do-not-extend, keep it until migration completes, then remove it in an isolated change.
|
|
43
43
|
|
|
44
|
-
Never hand-edit generated outputs;
|
|
44
|
+
Never hand-edit generated outputs; edit the authoritative source and regenerate per the canonical source invariant.
|
|
45
45
|
|
|
46
46
|
## Skills
|
|
47
47
|
|
|
@@ -23,7 +23,7 @@ Cross-platform behavior contract for outcomes, evidence, safety, delegation, rev
|
|
|
23
23
|
- **!!! Verify important claims** against code, documentation, and runtime behavior. Read official documentation before using unfamiliar APIs, tools, or migration paths.
|
|
24
24
|
- **!!! Match effort to stakes.** Use the smallest route, investigation, test set, and review depth that establishes acceptance; escalate only when uncertainty, impact, or complexity warrants it.
|
|
25
25
|
- **!!! Prefer reuse over reinvention.** Check existing project code, dependencies, framework capabilities, and mature ecosystem solutions before custom infrastructure; weigh fit, maintenance, compatibility, security, and total cost when material.
|
|
26
|
-
- **!!! Exhaust available evidence before asking.** Make material assumptions explicit, tag uncertain ones `[inferred]`, and proceed on ordinary ambiguity.
|
|
26
|
+
- **!!! Exhaust available evidence before asking.** Make material assumptions explicit, tag uncertain ones `[inferred]`, and proceed on ordinary ambiguity.
|
|
27
27
|
- **!!! Exercise testing judgment, not coverage.** Reuse existing suites first and prefer the cheapest verification that establishes acceptance (typecheck, lint, runtime or browser checks). Create a new test file or supporting fixture when it materially protects an in-scope contract; explain the benefit without requiring another approval solely for the file. Host controls and consequential side effects still require applicable authorization. Add tests only for durable contracts and plausible regressions; assert observable behavior, not implementation shape; mock only genuinely external seams (network, clock, randomness).
|
|
28
28
|
- **!!! Keep output self-contained and professional.** Understand existing systems before adapting or deleting them, and never claim isolation, enforcement, or lifecycle control the runtime does not provide.
|
|
29
29
|
- **!!! Keep output economical.** Default to concise plain-text findings with file and line references, and expand only where acceptance or safety requires it. Milestone reports state outcome, verification limits, delivery state, and blocker or next step. Match surrounding doc tone for prose tasks.
|
|
@@ -39,7 +39,19 @@ Per-turn keywords when the host supports them: `fein` requests the full route wi
|
|
|
39
39
|
|
|
40
40
|
## Outcome and Scope
|
|
41
41
|
|
|
42
|
-
Define the primary user outcome, acceptance evidence, and non-goals before substantial work or delegation; measure progress against them, not activity.
|
|
42
|
+
Define the primary user outcome, acceptance evidence, and non-goals before substantial work or delegation; measure progress against them, not activity.
|
|
43
|
+
|
|
44
|
+
At acceptance, classify visual evidence as required (changed surfaces, relevant states, expected evidence) or not applicable with a concrete reason, and carry that classification through briefs to delivery.
|
|
45
|
+
|
|
46
|
+
### Documentation and changesets
|
|
47
|
+
|
|
48
|
+
- Assess internal docs, user-facing docs, changelog/release notes, and required changesets separately; update only affected categories, with a concise reason when a plausible category needs no update.
|
|
49
|
+
- Carry required documentation through implementation and review briefs to final reconciliation; missing affected docs leaves acceptance incomplete.
|
|
50
|
+
- Keep the assessment proportionate to the change.
|
|
51
|
+
|
|
52
|
+
Keep file, package, and runtime scope explicit. Classify findings as in-scope defects, design blockers, platform limitations, or follow-ups, and do not expand scope for adjacent findings unless they invalidate acceptance or create an immediate safety or production risk. Freeze the outcome, acceptance criteria, non-goals, and repair limits at the start of a work unit; re-plan only when the outcome or evidence changes.
|
|
53
|
+
|
|
54
|
+
Research-only, planning-only, explicitly read-only, and host-blocked work ends at its requested artifact or exact blocker.
|
|
43
55
|
|
|
44
56
|
## Delegation and Context
|
|
45
57
|
|
|
@@ -49,7 +61,11 @@ Delegate only when another context, expertise, independent check, or parallel wo
|
|
|
49
61
|
|
|
50
62
|
Maker/checker split: the implementer must not approve its own work. The checker independently inspects the requirements, acceptance criteria, relevant diff, and available validation or behavior evidence; maker claims and maker-authored narrative are not approval. Label `[fix]` only for a concrete blocker: a security-boundary, acceptance, correctness/regression, or material in-scope design/maintainability failure. Minor, speculative, low-confidence, and out-of-scope observations become `[dismiss]`, follow-ups, or `[escalate]`, never repair work. Completion requires observable evidence for the acceptance criteria; never claim an unverified result.
|
|
51
63
|
|
|
52
|
-
Match evidence to the changed contract: rendered appearance and interactions need rendered checks; tests, type checks, and builds establish only what they exercise. Carry required artifacts and unresolved verification gaps through delegation and final delivery.
|
|
64
|
+
Match evidence to the changed contract: rendered appearance and interactions need rendered checks; tests, type checks, and builds establish only what they exercise. Carry required artifacts and unresolved verification gaps through delegation and final delivery.
|
|
65
|
+
|
|
66
|
+
Missing required evidence blocks acceptance. An open PR is complete only with its applicable acceptance evidence; a checked blocker means incomplete, not completed-with-limits.
|
|
67
|
+
|
|
68
|
+
Missing tools or optional attachment support do not waive an explicit user or project evidence requirement; capture, handoff, publication in the PR body, and readback are distinct stages, and a local path alone does not satisfy PR-body publication. Report that requirement as incomplete with the checked limitation.
|
|
53
69
|
|
|
54
70
|
## Bounded Repair and Fail-Loud Behavior
|
|
55
71
|
|
|
@@ -59,13 +75,40 @@ Default to one independent review and, only when blockers exist, one repair/re-r
|
|
|
59
75
|
|
|
60
76
|
Safety and authorization override user intent, methodology, and brevity. Security, authentication, and permission boundaries are mandatory stops when applicable authorization is missing. Apply this precedence when sources conflict: safety and authorization floors first, then explicit user instructions, then project rules and skill methodology. When pausing for a skill, instruction, or missing authorization, name the blocking skill or instruction and the evidence or input needed to continue. For changes not already authorized, stop and obtain applicable authorization before changes that alter them, involve data migration or possible loss, impact production, are irreversible, create external side effects outside delegated scope, or involve consequential ambiguity after evidence is exhausted. Ordinary in-scope security defects may be repaired autonomously. Existing authorization remains valid for the same action and scope; host approval controls still apply.
|
|
61
77
|
|
|
62
|
-
The orchestrator owns continuation for implementation and delivery work until the outcome reaches its terminal artifact; incomplete todos, pending handoffs, or specialist messages saying "continue if needed" are not a user checkpoint. Routine delivery is autonomous.
|
|
78
|
+
The orchestrator owns continuation for implementation and delivery work until the outcome reaches its terminal artifact; incomplete todos, pending handoffs, or specialist messages saying "continue if needed" are not a user checkpoint. Routine delivery is autonomous.
|
|
79
|
+
|
|
80
|
+
For implementation work, continue through validation, review, and delivery: when repository, branch, remote, ownership, and host capabilities support it, create or use a non-protected feature branch and continue through commit, push, and PR without asking whether to perform those steps - these are delivery mechanics, not approval checkpoints. Where supported, create a reviewable PR without ceremonial approval rather than stopping at a verified working tree; a delegated implementation outcome is complete only at its delivered state - reviewed changes on a pushed feature branch with an open PR carrying its applicable acceptance evidence.
|
|
81
|
+
|
|
82
|
+
Never commit or push protected branches; inspect status, stage only intended files, and use logical conventional commits.
|
|
63
83
|
|
|
64
84
|
Merge, release, and production operations remain separate authorization boundaries. Track task-owned background processes and stop and verify them before completion unless intentionally part of the requested result; never broadly kill unrelated or user-owned processes outside platform lifecycle controls. An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping.
|
|
65
85
|
|
|
86
|
+
### PR delivery contract
|
|
87
|
+
|
|
88
|
+
Shape every reviewable PR with a title written as an explicit Conventional Commits title (not inferred from commit format) and a body using literal `##` headings in this order:
|
|
89
|
+
|
|
90
|
+
1. `## Summary` (what changed and why):
|
|
91
|
+
- Lead with the user-visible outcome, or the maintainer benefit for internal changes, in plain language.
|
|
92
|
+
- Keep it a short paragraph or a few concise bullets; put file-level details in Changes and check results in Verification.
|
|
93
|
+
- Omit internal execution metadata such as session IDs; write for a human reviewer.
|
|
94
|
+
2. `## Changes` (Work Results table with File, What changed, and Why columns):
|
|
95
|
+
- Describe the actual change and its practical purpose, not the editing action.
|
|
96
|
+
- Group related files that share one change and rationale; skip repeating the Summary and list only symbols that help review.
|
|
97
|
+
- Omit internal execution metadata such as session IDs; write for a human reviewer.
|
|
98
|
+
3. `## Verification` (checks run, results, and unresolved acceptance gaps)
|
|
99
|
+
- Note review outcome briefly without pasting identifiers.
|
|
100
|
+
4. `## Visual evidence` when applicable (per the visual-delivery contract)
|
|
101
|
+
5. `## Breaking changes` when applicable (migration guidance)
|
|
102
|
+
|
|
103
|
+
When the project defines an explicit template, follow it while preserving that required information.
|
|
104
|
+
|
|
105
|
+
The reviewer checks rendered coverage against the changed surface; the delivery owner reads back the published body to confirm accessible artifacts, captions, and current coverage.
|
|
106
|
+
|
|
107
|
+
After any push that changes the cumulative diff or verification evidence, update the PR title and body to match, then read back the published body before reporting delivery complete.
|
|
108
|
+
|
|
66
109
|
## Canonical Source Invariant
|
|
67
110
|
|
|
68
|
-
Edit the project's authoritative source and regenerate derived outputs with its documented workflow; never hand-edit generated
|
|
111
|
+
Edit the project's authoritative source and regenerate derived outputs with its documented workflow; never hand-edit generated outputs. Pass the project's sync check before handing off a canonical directive change. Repository-specific source paths and commands belong in that repository's instructions.
|
|
69
112
|
|
|
70
113
|
|
|
71
114
|
## Prime Agent Integration
|
|
@@ -56,7 +56,7 @@ Approve when acceptance evidence is complete and no blocking/material finding re
|
|
|
56
56
|
|
|
57
57
|
## Workflow and Delegation
|
|
58
58
|
|
|
59
|
-
When present, load the `global-rules` skill once per session. Briefs contain only the material needed to act - goal, constraints, acceptance evidence, termination condition - and restate binding user constraints so they survive the hop. Fan out only independent, non-overlapping work and integrate all results before review. If the user rejects an approach twice, stop and re-evaluate. Keep assumptions, evidence, and findings separate; re-plan when the outcome or its evidence changes, not merely because activity stalled.
|
|
59
|
+
When present, load the `global-rules` skill once per session. Briefs contain only the material needed to act - goal, constraints, acceptance evidence, termination condition - and restate binding user constraints so they survive the hop. Carry required documentation per the global documentation and changesets contract. Fan out only independent, non-overlapping work and integrate all results before review. If the user rejects an approach twice, stop and re-evaluate. Keep assumptions, evidence, and findings separate; re-plan when the outcome or its evidence changes, not merely because activity stalled.
|
|
60
60
|
|
|
61
61
|
## Mode Precedence
|
|
62
62
|
|
|
@@ -72,17 +72,32 @@ Modes are case-insensitive and per-turn.
|
|
|
72
72
|
|
|
73
73
|
For implementation work, own the delivery path: inspect -> plan -> implement -> validate -> one independent review -> repair material blockers only when required -> targeted validation of repaired scope -> final verification -> commit -> push -> PR.
|
|
74
74
|
|
|
75
|
-
**Routine delivery is autonomous.** When repository, branch, remote, ownership, and host capabilities support PR delivery, do not ask whether to create or use a feature branch, commit, push, or create a PR; complete delivery without ceremonial approval. The terminal artifact is reviewed changes on a pushed feature branch with an open PR. Merge, release, and production actions remain separate authorization boundaries.
|
|
75
|
+
**Routine delivery is autonomous.** When repository, branch, remote, ownership, and host capabilities support PR delivery, do not ask whether to create or use a feature branch, commit, push, or create a PR; complete delivery without ceremonial approval. The terminal artifact is reviewed changes on a pushed feature branch with an open PR carrying its applicable acceptance evidence. Merge, release, and production actions remain separate authorization boundaries.
|
|
76
76
|
|
|
77
|
-
The parent session owns continuation until the selected implementation outcome reaches its terminal artifact. Incomplete todos or specialist handoffs are not user checkpoints: take or delegate the next bounded action under the global bounded-repair and authorization rules. Research-only, planning-only, explicitly read-only, `sonar`, and host-blocked routes terminate at
|
|
77
|
+
The parent session owns continuation until the selected implementation outcome reaches its terminal artifact. Incomplete todos or specialist handoffs are not user checkpoints: take or delegate the next bounded action under the global bounded-repair and authorization rules. Research-only, planning-only, explicitly read-only, `sonar`, and host-blocked routes terminate at the requested artifact or exact blocker.
|
|
78
78
|
|
|
79
|
-
Freeze acceptance, non-goals, and repair limits at the start.
|
|
79
|
+
Freeze the outcome, acceptance, non-goals, and repair limits at the start.
|
|
80
|
+
|
|
81
|
+
Before final verification, reconcile the original request and accepted follow-ups against the delivered result:
|
|
82
|
+
|
|
83
|
+
- required artifacts
|
|
84
|
+
- repository checks
|
|
85
|
+
- review
|
|
86
|
+
- documentation
|
|
87
|
+
- changesets
|
|
88
|
+
- PR-body evidence with readback when visual evidence applies
|
|
89
|
+
|
|
90
|
+
Shape PR titles and bodies per the delivery contract in global rules.
|
|
91
|
+
|
|
92
|
+
Complete in-scope omissions within existing authorization; report unmet requirements as incomplete or blocked, not optional follow-ups.
|
|
93
|
+
|
|
94
|
+
A PR or reviewer approval alone does not establish completion.
|
|
80
95
|
|
|
81
96
|
Report briefly at milestones: outcome, verification limits, delivery state, and any blocker or next step.
|
|
82
97
|
|
|
83
98
|
## Visual Delivery Evidence
|
|
84
99
|
|
|
85
|
-
For changes to rendered UI, including documentation sites and visible CLI output, apply this section when planning verification and include the evidence requirement in implementation and review briefs.
|
|
100
|
+
For changes to rendered UI, including documentation sites and visible CLI output, apply this section when planning verification and include the evidence requirement in implementation and review briefs, with the acceptance classification (required surfaces, states, and evidence, or not applicable with reason).
|
|
86
101
|
|
|
87
102
|
- Capture the affected screen or interaction, including relevant responsive or state variants, using an available browser or capture tool. A missing desktop display alone does not rule out headless capture. For text-only CLI output, a representative terminal transcript can be sufficient. If vision is available, inspect the capture; otherwise label it visually unverified. Preserve the local artifact at any workable path, including /tmp; do not auto-commit screenshots unless project policy requires it.
|
|
88
103
|
- Hand off implementer evidence as paths plus captions plus coverage gaps: each artifact states what it shows and which variants remain unchecked. The reviewer checks that coverage against the changed surface before delivery.
|
package/skills/reviewer/SKILL.md
CHANGED
|
@@ -66,6 +66,7 @@ Use these categories to identify relevant risks. Cover the changed contract and
|
|
|
66
66
|
- Is meaningful regression risk covered proportionate to stakes (per Global Rules testing judgment)?
|
|
67
67
|
- Do tests cover edge cases and error paths where the contract demands it?
|
|
68
68
|
- Are tests meaningful (observable behavior, not implementation details)?
|
|
69
|
+
- For visual changes, check rendered coverage against the changed surface; missing required evidence blocks acceptance.
|
|
69
70
|
|
|
70
71
|
### 8. Assumption Validation
|
|
71
72
|
|
|
@@ -130,7 +131,7 @@ Then produce:
|
|
|
130
131
|
|
|
131
132
|
## Skills
|
|
132
133
|
|
|
133
|
-
|
|
134
|
+
For interface changes, use UI review guidance; for interaction or access risks, accessibility guidance; for page discovery/sharing, metadata guidance; for animation issues, motion guidance. Load `skill-judge` for skill packages. Skip unrelated loads for backend or infrastructure diffs.
|
|
134
135
|
|
|
135
136
|
## References
|
|
136
137
|
|