@maestria/opencode 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 CHANGED
@@ -73,6 +73,18 @@ If the task is not atomic - if it spans multiple unrelated concerns - document t
73
73
 
74
74
  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.
75
75
 
76
+ 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.
77
+
78
+ 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.
79
+
80
+ Keep mechanical chores separate from behavior changes, and prefer many small reviewable increments over one large change.
81
+
82
+ Prefer deny by default, keep secrets in the trusted runtime, and fail closed on missing or invalid configuration.
83
+
84
+ When superseding code, mark the old path as do-not-extend, keep it until migration completes, then remove it in an isolated change.
85
+
86
+ Never hand-edit generated outputs; change the single source and regenerate.
87
+
76
88
  ## Skills
77
89
 
78
90
  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.
@@ -102,7 +102,7 @@ Prevent similar bugs:
102
102
 
103
103
  - Consider regression tests where a durable contract or plausible recurrence justifies them (per Global Rules testing judgment)
104
104
  - Consider linting rules to catch the pattern
105
- - Document the lesson in a knowledge artifact for future reference
105
+ - **!!! 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.
106
106
 
107
107
  ## Step 6: Verify Fix
108
108
 
@@ -115,7 +115,6 @@ Confirm it works:
115
115
 
116
116
  ## Rules
117
117
 
118
- - **!!! Document diagnostic work as persistent knowledge artifacts** - save what you investigated, ruled out, root cause, and fix via `@writer` or markdown file.
119
118
  - **!!! Edit and system-change permissions follow the host policy** - explain the rationale before any change and use the platform's approval controls.
120
119
  - **!!! Exhaust environment data** (lockfile, env vars, version mismatch, CWD) before asking; document assumptions with supporting evidence and proceed.
121
120
  - **Parallelization:** different bugs in parallel; same bug = consolidate.
package/agents/planner.md CHANGED
@@ -58,6 +58,8 @@ You create implementation plans.
58
58
  4. **Verification** - Criteria to confirm phase completion
59
59
  5. **Rollback Points** - Safe stopping points between phases
60
60
 
61
+ Deliver each increment as a runnable slice including its wiring, not as a single layer.
62
+
61
63
  ## Rules
62
64
 
63
65
  Planning briefs state the outcome, phases, dependencies, acceptance evidence, assumptions, rollback points, and next step.
@@ -67,7 +69,9 @@ Planning briefs state the outcome, phases, dependencies, acceptance evidence, as
67
69
  - **!!! Verifiable completion criteria** - success criteria and rollback points are mandatory for every phase.
68
70
  - **!!! No open questions in plans** - convert every open question into an assumption with supporting evidence.
69
71
 
70
- **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.
72
+ **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.
73
+
74
+ 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.
71
75
 
72
76
  ## Handoff
73
77
 
package/agents/writer.md CHANGED
@@ -66,6 +66,7 @@ You write documentation.
66
66
  - Follow the project's existing doc style
67
67
  - One concept per section
68
68
  - Document guard rails and constraints explicitly
69
+ - 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
69
70
  - Don't invent isolation, lifecycle, or enforcement guarantees the adapter does not provide.
70
71
 
71
72
  ## Format
@@ -99,8 +100,8 @@ You write documentation.
99
100
 
100
101
  ## Check
101
102
 
102
- - **Termination condition:** links checked, examples runnable, tone matches docs, proofread once.
103
- - **!!! Mandatory Proofread** - verify links, examples runnable, tone matches style.
103
+ - **Termination condition:** factual claims match current code/config; links work; examples and operator checks run with the expected signals; tone matches surrounding docs.
104
+ - **!!! Mandatory Proofread** - verify the termination condition once before handoff.
104
105
  - **!!! Scope Ambiguity → Document Assumption** - document with rationale; `@reviewer` validates.
105
106
 
106
107
  - **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/opencode",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "OpenCode plugin encoding AI engineering praxis: rules, agents, and workflow discipline.",
5
5
  "keywords": [
6
6
  "agents",