@maestria/codex 0.4.0 → 0.4.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestria",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Maestria methodology for Codex CLI: specialist workflow skills, orchestration, and review contracts",
5
5
  "author": {
6
6
  "name": "agustinusnathaniel"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @maestria/codex
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#275](https://github.com/agustinusnathaniel/maestria/pull/275) [`56351de`](https://github.com/agustinusnathaniel/maestria/commit/56351debf73a97c24eb10826517e0d9aabeaca6b) Thanks [@agustinusnathaniel](https://github.com/agustinusnathaniel)! - Refine specialist engineering judgment around trust-boundary normalization, feature-local seams, shared-interface compatibility, executable sources of truth, staged migrations, durable diagnostic knowledge, and operational documentation.
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#269](https://github.com/agustinusnathaniel/maestria/pull/269) [`ef07bf7`](https://github.com/agustinusnathaniel/maestria/commit/ef07bf78a8e5f676c76b55680301bc7c839b68a9) Thanks [@agustinusnathaniel](https://github.com/agustinusnathaniel)! - Add conditional visual-evidence guidance for PR delivery: confirm the project targets GitHub with authenticated gh --attach support and an available capture tool before attaching a screenshot or short video for visual or behavioral changes. Vision is optional verification only, not a precondition.
14
+
15
+ - [#269](https://github.com/agustinusnathaniel/maestria/pull/269) [`ef07bf7`](https://github.com/agustinusnathaniel/maestria/commit/ef07bf78a8e5f676c76b55680301bc7c839b68a9) Thanks [@agustinusnathaniel](https://github.com/agustinusnathaniel)! - Add a global testing-judgment rule (test artifacts are opt-in, behavior over implementation shape, mocks only at external seams) and align reviewer and diagnose guidance with it.
16
+
3
17
  ## 0.4.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/codex",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "private": false,
5
5
  "description": "Maestria skills and native agent integration for Codex CLI",
6
6
  "keywords": [
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@types/node": "^26.2.0",
42
42
  "typescript": "^7.0.2",
43
- "vite-plus": "0.2.9",
43
+ "vite-plus": "0.3.0",
44
44
  "vitest": "4.1.11"
45
45
  },
46
46
  "engines": {
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: adventurer
3
2
  description: Codebase reconnaissance workflow for mapping unfamiliar code, tracing call chains, and reporting verified context without implementing changes.
3
+ name: adventurer
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: architect
3
2
  description: Architecture decision workflow for comparing implementation approaches, boundaries, threat models, and ADR decisions.
3
+ name: architect
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: blitz
3
2
  description: Fast capability-aware Maestria route that skips optional ceremony without waiving safety or review.
3
+ name: blitz
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: builder
3
2
  description: Focused implementation workflow for one atomic, verifiable feature, fix, test, or refactor.
3
+ name: builder
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -31,6 +31,18 @@ If the task is not atomic - if it spans multiple unrelated concerns - document t
31
31
 
32
32
  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.
33
33
 
34
+ 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.
35
+
36
+ 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.
37
+
38
+ Keep mechanical chores separate from behavior changes, and prefer many small reviewable increments over one large change.
39
+
40
+ Prefer deny by default, keep secrets in the trusted runtime, and fail closed on missing or invalid configuration.
41
+
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
+
44
+ Never hand-edit generated outputs; change the single source and regenerate.
45
+
34
46
  ## Skills
35
47
 
36
48
  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.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: diagnose
3
2
  description: Systematic regression-tracing workflow from symptom and error evidence to root cause, fix, and prevention.
3
+ name: diagnose
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -63,9 +63,9 @@ Fix the root cause with minimal changes:
63
63
 
64
64
  Prevent similar bugs:
65
65
 
66
- - Add/update regression tests
66
+ - Consider regression tests where a durable contract or plausible recurrence justifies them (per Global Rules testing judgment)
67
67
  - Consider linting rules to catch the pattern
68
- - Document the lesson in a knowledge artifact for future reference
68
+ - **!!! 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.
69
69
 
70
70
  ## Step 6: Verify Fix
71
71
 
@@ -78,7 +78,6 @@ Confirm it works:
78
78
 
79
79
  ## Rules
80
80
 
81
- - **!!! Document diagnostic work as persistent knowledge artifacts** - save what you investigated, ruled out, root cause, and fix via `$maestria:writer` or markdown file.
82
81
  - **!!! Edit and system-change permissions follow the host policy** - explain the rationale before any change and use the platform's approval controls.
83
82
  - **!!! Exhaust environment data** (lockfile, env vars, version mismatch, CWD) before asking; document assumptions with supporting evidence and proceed.
84
83
  - **Parallelization:** different bugs in parallel; same bug = consolidate.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: fein
3
2
  description: "Full Maestria pipeline: reconnaissance, design, implementation, and independent review."
3
+ name: fein
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: global-rules
3
2
  description: Universal Maestria rules for evidence, safety, authorization, delegation, review, bounded repair, and branch discipline.
3
+ name: global-rules
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -18,6 +18,7 @@ Cross-platform behavior contract for outcomes, evidence, safety, delegation, rev
18
18
  - **!!! 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.
19
19
  - **!!! 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.
20
20
  - **!!! Exhaust available evidence before asking.** Make material assumptions explicit, tag uncertain ones `[inferred]`, and proceed on ordinary ambiguity. Ship affected documentation and changesets with code when project policy requires them.
21
+ - **!!! Exercise testing judgment, not coverage.** New test files, fixtures, mocks, and test-only helpers are opt-in, never automatic: reuse existing suites first and prefer the cheapest verification that establishes acceptance (typecheck, lint, runtime or browser checks). Add tests only for durable contracts and plausible regressions; assert observable behavior, not implementation shape; mock only genuinely external seams (network, clock, randomness).
21
22
  - **!!! 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.
22
23
  - **!!! Human-facing output.** In all agent-authored text (responses, status updates, briefs, comments/docstrings, commit messages, PR titles/descriptions, and documentation), never emit Unicode U+2014 EM DASH. Prefer commas, colons, parentheses, or ASCII hyphen-minus (`-`). Preserve code syntax, intentional literals, quoted source text, and user-provided text. Scan authored output before handoff or delivery.
23
24
 
@@ -49,7 +50,7 @@ Default to one independent review and, only when blockers exist, one repair/re-r
49
50
 
50
51
  Safety and authorization override user intent, methodology, and brevity. Security, authentication, and permission boundaries are mandatory stops. 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.
51
52
 
52
- 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. 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. Never commit or push protected branches; inspect status, stage only intended files, and use logical conventional commits. 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.
53
+ 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. 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. Never commit or push protected branches; inspect status, stage only intended files, and use logical conventional commits. Before attaching visual PR evidence, confirm both preconditions: the project targets GitHub (GitHub remote with authenticated gh that supports media attachments, for example gh v2.99.0+ repeatable --attach on pr create, edit, and comment) and a capture tool is available (screenshot, screen-capture, or browser tool). When both hold and the change is visual or behavioral, capture a screenshot or short video at reasonable cost and attach it, preferring referenced paths with alt text (for example, --attach './after.png#Short alt text') within host size limits; skip when either check fails, when no display is available, or when review value is low. Vision is not required: when present, use it to verify the capture shows the intended state, otherwise describe the capture from the action taken and leave visual verification to the reviewer. 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.
53
54
 
54
55
  ## Canonical Source Invariant
55
56
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: handoff
3
2
  description: Concise handoff contract for passing outcome, constraints, evidence, blockers, and next steps between workflow stages.
3
+ name: handoff
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: iteration-limits
3
2
  description: Verifiable termination and bounded repair guidance for loops, reviews, and repeated implementation attempts.
3
+ name: iteration-limits
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: orchestrator
3
2
  description: "Maestria workflow dispatcher for Codex CLI: route work, use specialist skills, preserve handoffs, and keep independent review explicit."
3
+ name: orchestrator
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -72,7 +72,7 @@ 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 the lifecycle without ceremonial approval. A delegated implementation outcome reaches its terminal artifact only when delivered: reviewed changes on a pushed feature branch with an open PR. Do not stop at a local diff, commit, pushed branch, or `PR pending`, and never treat "not requested" as a reason to withhold routine delivery. 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 the lifecycle without ceremonial approval. A delegated implementation outcome reaches its terminal artifact only when delivered: reviewed changes on a pushed feature branch with an open PR. Do not stop at a local diff, commit, pushed branch, or `PR pending`, and never treat "not requested" as a reason to withhold routine delivery. When the change is visual or behavioral, attach a screenshot or short video only after confirming both preconditions: the project targets GitHub (GitHub remote with authenticated gh that supports --attach) and a capture tool is available (screenshot, screen-capture, or browser tool); skip when either check fails, when no display is available, or when cost outweighs review value. Vision is not required: use it to verify the capture when present, otherwise describe the capture from the action taken. Merge, release, and production actions remain separate authorization boundaries.
76
76
 
77
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. A failed or cancelled delegation is transport trouble, not a verdict - retry once with an adjusted brief before reporting a structured blocker; user-initiated or intentional platform cancellation is terminal. Research-only, planning-only, explicitly read-only, `sonar`, and host-blocked routes terminate at their requested artifact or exact blocker. Safety, authorization, ambiguity, and host-capability boundaries always take precedence.
78
78
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: planner
3
2
  description: Phased implementation planning workflow with dependencies, verification criteria, timelines, and rollback points.
3
+ name: planner
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -22,6 +22,8 @@ You create implementation plans.
22
22
  4. **Verification** - Criteria to confirm phase completion
23
23
  5. **Rollback Points** - Safe stopping points between phases
24
24
 
25
+ Deliver each increment as a runnable slice including its wiring, not as a single layer.
26
+
25
27
  ## Rules
26
28
 
27
29
  Planning briefs state the outcome, phases, dependencies, acceptance evidence, assumptions, rollback points, and next step.
@@ -31,7 +33,9 @@ Planning briefs state the outcome, phases, dependencies, acceptance evidence, as
31
33
  - **!!! Verifiable completion criteria** - success criteria and rollback points are mandatory for every phase.
32
34
  - **!!! No open questions in plans** - convert every open question into an assumption with supporting evidence.
33
35
 
34
- **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.
36
+ **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.
37
+
38
+ 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.
35
39
 
36
40
  ## Handoff
37
41
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: reviewer
3
2
  description: Independent code review workflow covering correctness, security, performance, maintainability, and quality gates.
3
+ name: reviewer
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -63,9 +63,9 @@ The initial general reviewer must give a verdict for every category. A specializ
63
63
 
64
64
  ### 7. Test Coverage
65
65
 
66
- - Are tests present for new functionality?
67
- - Do tests cover edge cases and error paths?
68
- - Are tests meaningful (not just checking implementation details)?
66
+ - Is meaningful regression risk covered proportionate to stakes (per Global Rules testing judgment)?
67
+ - Do tests cover edge cases and error paths where the contract demands it?
68
+ - Are tests meaningful (observable behavior, not implementation details)?
69
69
 
70
70
  ### 8. Assumption Validation
71
71
 
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: sonar
3
2
  description: Research-only Maestria route using read-only specialist skills, then stop before implementation.
3
+ name: sonar
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: writer
3
2
  description: Structured documentation workflow for READMEs, API docs, architecture documents, changelogs, and decision records.
3
+ name: writer
4
4
  ---
5
5
 
6
6
  <!-- Auto-generated from @maestria/core. Do not edit directly.
@@ -26,6 +26,7 @@ You write documentation.
26
26
  - Follow the project's existing doc style
27
27
  - One concept per section
28
28
  - Document guard rails and constraints explicitly
29
+ - 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
29
30
  - Don't invent isolation, lifecycle, or enforcement guarantees the adapter does not provide.
30
31
 
31
32
  ## Format
@@ -59,8 +60,8 @@ You write documentation.
59
60
 
60
61
  ## Check
61
62
 
62
- - **Termination condition:** links checked, examples runnable, tone matches docs, proofread once.
63
- - **!!! Mandatory Proofread** - verify links, examples runnable, tone matches style.
63
+ - **Termination condition:** factual claims match current code/config; links work; examples and operator checks run with the expected signals; tone matches surrounding docs.
64
+ - **!!! Mandatory Proofread** - verify the termination condition once before handoff.
64
65
  - **!!! Scope Ambiguity → Document Assumption** - document with rationale; `$maestria:reviewer` validates.
65
66
 
66
67
  - **Parallelization:** writer tasks on different docs can run in parallel. Same doc is single-writer.