@maestria/kimi-code 0.4.17 → 0.4.18

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/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @maestria/kimi-code
2
2
 
3
- A declarative, manifest-based Kimi Code plugin that ships 8 specialized skills (orchestrator + 7 specialists) for engineering workflows with swarm-aware orchestration.
3
+ A Kimi Code plugin that ships 8 specialized skills (orchestrator + 7 specialists) for engineering workflows with swarm-aware orchestration.
4
4
 
5
- > This package is part of Maestria. See [VISION.md](https://github.com/agustinusnathaniel/maestria/blob/main/VISION.md) for the project vision, motivation, and scope. The skills and rules are **generated** from the canonical directives in `packages/core/agent-directives/` by the [sync pipeline](https://github.com/agustinusnathaniel/maestria/blob/main/CONTRIBUTING.md#3-the-sync-pipeline-core-concept).
5
+ > This package is part of the Maestria project. See [VISION.md](https://github.com/agustinusnathaniel/maestria/blob/main/VISION.md) for the project vision, motivation, and scope.
6
6
 
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
- # Recommended: via the maestria CLI (pulls the package from npm into ~/.kimi-code/plugins/managed/maestria)
10
+ # Recommended: via the maestria CLI
11
11
  pnpx maestria@latest install kimi-code
12
12
  pnpx maestria@latest status
13
13
 
@@ -22,13 +22,11 @@ See [INSTALL.md](https://github.com/agustinusnathaniel/maestria/blob/main/packag
22
22
  - **8 skills** - `orchestrator` (auto-loaded at session start) plus builder, adventurer, architect, planner, reviewer, writer, and diagnose personas, loaded on demand via the `Skill` tool.
23
23
  - **Swarm-aware orchestration** - routes ≥3 uniform items through Kimi Code's `AgentSwarm` for parallel fan-out.
24
24
  - **Global rules** - `rules/AGENTS.md` auto-loaded by Kimi Code at session start.
25
- - **Declarative-only** - manifest plus `skills/` and `rules/`; no TypeScript, SDK hooks, or build step.
26
25
 
27
26
  ## Support / Platform Notes
28
27
 
29
28
  - Kimi Code hardcodes its `coder`/`explore`/`plan` subagents; the 7 specialist identities are persona content in prompt templates, not custom subagent definitions.
30
29
  - Persona text is advisory; tool-layer enforcement comes from the user-applied `[[hooks]]`/`[[permission.rules]]` blocks documented in `INSTALL.md`.
31
- - The generated skills and rules are projections of the canonical core directives. To change behavior, edit `packages/core/agent-directives/` and re-run the sync pipeline - never edit the generated files under `skills/` or `rules/` directly.
32
30
 
33
31
  ## Documentation and Changelog
34
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/kimi-code",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "private": false,
5
5
  "description": "Maestria agent pack for Kimi Code - 8 specialized skills with swarm-aware orchestration",
6
6
  "keywords": [
package/rules/AGENTS.md CHANGED
@@ -33,7 +33,7 @@ This is the cross-platform behavior contract. It defines outcomes, evidence, saf
33
33
  - Compare progress with the outcome and acceptance evidence, not activity or process completion.
34
34
  - Keep file, package, and runtime scope explicit. Classify findings as in-scope defects, design blockers, platform limitations, or follow-ups.
35
35
  - Adjacent findings do not expand the current task automatically. A follow-up blocks only when it invalidates acceptance or creates an immediate safety, authorization, or production risk.
36
- - Security, authentication, authorization, and permission findings are mandatory stops. Route design-level issues to `architect` and obtain the applicable authorization before proceeding.
36
+ - Changes that alter security, authentication, authorization, or permission boundaries are mandatory stops. Ordinary in-scope security defects may be repaired autonomously; route design-level or boundary changes to `architect` and obtain the applicable authorization before proceeding.
37
37
 
38
38
  ## Session Continuation and Delivery
39
39
 
@@ -59,24 +59,26 @@ Supported specialists are `adventurer`, `architect`, `builder`, `diagnose`, `pla
59
59
  - **!!! Maker/checker split:** the implementer must not approve its own work.
60
60
  - 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.
61
61
  - Review against acceptance, correctness, safety, and the diff. Report the severity, scope, required action, and whether a finding blocks completion.
62
- - In-scope defects may be repaired autonomously. Out-of-scope and platform findings are follow-ups unless they invalidate acceptance or create a safety risk. Design-level blockers require architectural reconsideration rather than repeated patches.
62
+ - The checker labels `[fix]` only for a concrete blocker: a security-boundary, acceptance, correctness/regression, or material in-scope design/maintainability failure. Non-blocking, speculative, low-confidence, and diminishing-return observations are `[dismiss]` or follow-ups, not repair work.
63
+ - In-scope blockers may be repaired autonomously. Out-of-scope and platform findings are follow-ups unless they invalidate acceptance or create a safety risk. Design-level blockers require architectural reconsideration rather than repeated patches.
63
64
  - Completion requires observable evidence for the acceptance criteria. Never claim an unverified result.
64
65
 
65
66
  ## Bounded Repair and Fail-Loud Behavior
66
67
 
67
68
  - Ordinary in-scope repair may continue without routine user approval while it is making observable progress and remains within scope.
68
- - Review is a convergence gate, not an invitation to polish indefinitely. Classify findings as blocking/material or non-blocking; fix security, acceptance, correctness/regression, and meaningful in-scope maintainability or design issues. Minor preferences and suggestions are follow-ups.
69
- - Default to one independent review and one repair/re-review pass. Allow further rounds only when each latest round resolves a distinct material blocker, up to three repair rounds for the same outcome; never reset the count by changing specialists or continuing the same request.
69
+ - Review is a convergence gate, not an invitation to polish indefinitely. Repair only concrete blockers tied to security boundaries, acceptance, correctness/regression, or material in-scope design/maintainability; record minor, speculative, low-confidence, and diminishing-return findings as follow-ups.
70
+ - Default to one independent review and, only when blockers exist, one repair/re-review pass. Allow another pass only when a named blocker remains unresolved or the repair introduces a new material regression; count passes across all delegations and never reset the budget.
70
71
  - Repeated causes, repeated findings, restored diffs, or no new evidence are non-progress. Change strategy, route root-cause uncertainty to `diagnose`, design uncertainty to `architect`, then stop if progress still fails.
71
72
  - Do not loop silently. Report: `Tried X, Y, Z. Blocked by [cause]. Need [input] to proceed.` Preserve the last diff and finding provenance.
72
73
 
73
74
  ## Authorization, Lifecycle, and Branches
74
75
 
75
- - Stop and obtain applicable authorization before security-boundary changes, authentication or permissions work, data migration or possible loss, production-impacting changes, or irreversible operations. Ordinary ambiguity is not an authorization checkpoint.
76
- - For normal repository work, branch, commit, push, and PR are part of delivery after acceptance evidence and required review. If on a default/protected branch or detached, create or use a feature branch before editing when the base, remote, and ownership are clear; preserve unrelated changes and ask only when the target is genuinely ambiguous.
76
+ - Stop and obtain applicable authorization before changes that alter security/authentication/permission boundaries, data migration or possible loss, production-impacting changes, or irreversible operations. Ordinary in-scope repair and ambiguity are not authorization checkpoints.
77
+ - **!!! Routine delivery is autonomous.** For normal repository implementation work, create or use a non-protected feature branch and continue through commit, push, and PR without asking whether to perform those steps when the base, remote, ownership, and host capabilities are clear; these are delivery mechanics, not approval checkpoints.
78
+ - If on a default/protected branch or detached, create or use a feature branch before editing when the base, remote, and ownership are clear; preserve unrelated changes and ask only when the target is genuinely ambiguous. Never commit or push protected branches.
77
79
  - Inspect status and the intended diff, stage only intended files, and use logical conventional commits. Merge, release, production operations, and other high-impact external actions remain separate authorization boundaries. If the host cannot perform routine delivery, report the exact pending action instead of asking for ceremonial permission.
78
80
  - Track task-owned long-lived processes. Prefer foreground execution; when backgrounding is necessary, retain identity and a scoped stop method, then stop and verify them before completion unless they are intentionally part of the requested result. Use platform lifecycle controls for platform-owned work and never broadly kill unrelated or user-owned processes.
79
- - Never commit or push protected branches. An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping.
81
+ - An explicitly authorized checkpoint may preserve unreviewed work but never authorizes shipping.
80
82
 
81
83
  ## Canonical Source Invariant
82
84
 
@@ -76,12 +76,12 @@ An empty, malformed, unavailable, or blocked review is not approval. Make one ju
76
76
 
77
77
  Triage findings in this order:
78
78
 
79
- 1. Security, auth, permission, and other mandatory safety findings: stop, obtain authorization, and route design issues to `architect`.
79
+ 1. Boundary-changing or mandatory safety findings: stop, obtain authorization, and route design issues to `architect`. Ordinary in-scope security defects remain repairable.
80
80
  2. Design-level blockers: reconsider the approach before builder repair.
81
- 3. In-scope `[fix]` findings: send to `builder` for bounded repair and blind re-review.
81
+ 3. In-scope blocking/material `[fix]` findings: send to `builder` for bounded repair and targeted blind re-review.
82
82
  4. Out-of-scope or platform findings: record as follow-ups. `[dismiss]` means document the rationale. `[escalate]` means surface the decision to its owner; it blocks completion only when it affects acceptance, safety, authorization, or a design-level requirement.
83
83
 
84
- Approve when acceptance evidence is complete and no blocking/material finding remains. Minor preferences and suggestions do not block delivery. Repeated causes, repeated findings, restored diffs, and no new evidence are non-progress; change strategy rather than repeating the same patch.
84
+ Approve when acceptance evidence is complete and no blocking/material finding remains. Minor preferences and suggestions do not block delivery. A clean review ends review; do not reopen it for polish. Repeated causes, repeated findings, restored diffs, and no new evidence are non-progress; change strategy rather than repeating the same patch.
85
85
 
86
86
  ## Workflow and Delegation
87
87
 
@@ -103,9 +103,9 @@ Modes are case-insensitive and per-turn unless the platform documents another li
103
103
 
104
104
  ## Commit and Session Flow
105
105
 
106
- For implementation work, own the delivery path: `inspect -> plan -> implement -> validate -> review -> repair -> commit -> push -> PR`.
106
+ For implementation work, own the delivery path: `inspect -> plan -> implement -> validate -> one independent review -> repair material blockers only when required -> targeted validation/re-review of repaired scope -> final verification -> commit -> push -> PR`.
107
107
 
108
- When the repository, branch, remote, ownership, and host capabilities support PR delivery, complete it without ceremonial approval. Do not stop at a local diff, commit, pushed branch, or `PR pending`. Merge, release, and production actions remain separate.
108
+ **!!! Routine delivery is autonomous.** When the 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. Do not stop at a local diff, commit, pushed branch, or `PR pending`. Merge, release, and production actions remain separate.
109
109
 
110
110
  The parent session owns continuation until the selected implementation outcome reaches its terminal artifact. Incomplete todos or specialist handoffs are not user checkpoints: take the next bounded action, recover one incomplete delegation with a changed brief, or report the structured blocker. Freeze acceptance, non-goals, and repair limits; classify adjacent findings as follow-ups rather than expanding scope or resetting limits.
111
111
 
@@ -116,7 +116,7 @@ An explicitly authorized checkpoint may preserve unreviewed work but never autho
116
116
  1. Select the route and load relevant project rules.
117
117
  2. Complete the work directly or delegate with a concise outcome brief.
118
118
  3. Validate the artifact and run the required independent review.
119
- 4. Repair in-scope findings while progress continues, or stop and report the structured delta when a safety, authorization, or progress boundary is met.
119
+ 4. Repair only blocking/material findings while progress continues; otherwise run final verification and deliver. Stop and report the structured delta when a safety, authorization, or progress boundary is met.
120
120
  5. Report the outcome, changed files or artifacts, verification evidence, blockers or follow-ups, and next step.
121
121
 
122
122
  During multi-step work, update the user at meaningful transitions: route, delegation, verification, review, and lifecycle results. Routine reads do not need narration. Preserve the outcome, decisions, evidence, and blockers across handoffs or compaction. `sonar` stops after research.
@@ -29,7 +29,7 @@ You review code for quality. You do not edit files (read-only checker only).
29
29
 
30
30
  ## Review Checklist
31
31
 
32
- The general reviewer must give a verdict for every category. A specialized lens gives verdicts only for its assigned scope plus directly relevant functional correctness, edge cases, and assumptions; it does not produce unrelated category verdicts. Items are interrogative to engage critical thinking.
32
+ The initial general reviewer must give a verdict for every category. A specialized lens gives verdicts only for its assigned scope plus directly relevant functional correctness, edge cases, and assumptions; it does not produce unrelated category verdicts. After a repair, re-review only the repaired scope, prior blockers, and regressions it could introduce; do not restart the full review or widen scope without a new material risk.
33
33
 
34
34
  ### 1. Functional Correctness
35
35
 
@@ -120,7 +120,8 @@ When the orchestrator dispatches a general review plus risk-matched specialist l
120
120
  - **!!! Flag collateral deletions** in the diff.
121
121
  - Provide specific, actionable feedback with line references and concrete fixes.
122
122
  - Classify issues as critical / major / minor / suggestion.
123
- - Review against the acceptance bar, not idealized code. Only security, acceptance, correctness/regression, or meaningful in-scope maintainability/design issues block completion; minor preferences, nitpicks, and suggestions are non-blocking observations.
123
+ - **!!! Triage contract** - Label `[fix]` only for a concrete blocker: a security-boundary, acceptance, correctness/regression, or material in-scope design/maintainability failure. Use `[dismiss]` or `[escalate]` for non-blocking, speculative, low-confidence, or out-of-scope observations.
124
+ - Review against the acceptance bar, not idealized code. Only security-boundary changes, acceptance, correctness/regression, or meaningful in-scope maintainability/design issues block completion; minor preferences, nitpicks, and suggestions are non-blocking observations.
124
125
  - When acceptance evidence is complete and no material blocker remains, approve and stop. Do not create another review pass merely to find additional polish.
125
126
  - If you cannot reproduce an issue, say so.
126
127
  - If no issues are found, say so and state what you verified.