Repository navigation
feat(kaizen)!: move the production commands to kaizen-ops — Kaizen 4.0.0, kaizen-ops 1.0.0 (S2) - #37
Merged
Merged
Conversation
…en (S2/U3) git mv of the three skills, their guides and the postmortem template. In the moved skills, K is the kaizen-ops resolver and core's conventions and configuration are read through $(node "$K" core-root); in the moved guides, links to core pages point to ../../../kaizen/docs/. kaizen-ops README lists the commands, docs/README.md indexes the guides. Intermediate commit: core still names the old commands until U5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
…2/U4) /kaizen:deploy, /kaizen:monitor and /kaizen:postmortem become stubs (allowed-tools: Read) that only say the command is now /kaizen-ops:<name> and how to enable kaizen-ops; they run nothing. Short guides keep the one-guide-per-skill contract until 4.1.0 removes them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
doctor -> ops_plugin: a repository whose config declares deploy environments or monitor signals while kaizen-ops@dojo is not enabled (project, local or user settings) gets a warning with the settings line. audit fix claude_settings enables kaizen-ops@dojo in that case, also on top of an existing kaizen@dojo declaration. Tests isolate the user settings with CLAUDE_CONFIG_DIR. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
…/U5) 66 mentions in status next steps, the protected-deploy hook message, skills (help, plan, release, autopilot), references, docs and eval prompts; core links to the old guides point to kaizen-ops'. The README's Deploy and monitor table becomes a pointer to kaizen-ops; help, setup and conventions relay the doctor's ops_plugin warning; troubleshooting covers "moved" and unknown /kaizen-ops commands. Diagrams regenerated (the help routing one also follows 3.10's order). Evals load both plugins (--plugin-dir is repeatable). New contract: no core script or hook may refer to kaizen-ops, so every gate stays whole without it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
kaizen-ops registered in marketplace.json next to Kaizen; Kaizen 4.0.0 (breaking: three commands left its namespace), kaizen-ops 1.0.0 requiring it. CHANGELOGs, root README (plugin table, install, team settings), CLAUDE.md, and the split plan updated (stub descriptions follow core's skill contract; two-plugin evals resolved). kaizen-ops contract checks it is registered and that the core version it requires is the one shipped. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Slice S2 of
docs/plans/2026-10-20-1515-refactor-kaizen-core-ops-split-plan.md: the switch, in one merge so the commands are never in neither plugin. Breaking (Kaizen 4.0.0):/kaizen:deploy,/kaizen:monitor,/kaizen:postmortembecome/kaizen-ops:deploy,/kaizen-ops:monitor,/kaizen-ops:postmortem. Teams that deploy with Kaizen enablekaizen-ops@dojonext tokaizen@dojo; everyone else gets 3 fewer commands and ~1,900 fewer characters of skill descriptions per session.What does not move: the CLI (
deploy,monitor,metrics…), the configuration, deployment tags, DORA metrics, and every gate — typed approval for protected environments, refusal of raw deploy commands and forged tags. A new core contract test forbids any core script or hook from referring to kaizen-ops, so no protection depends on the second plugin.Reviewer guide — read commit by commit
The diff is above the 400-line PR limit as a whole (moves + 66 renamed mentions + stubs); the plan keeps S2 as one merge (rollout order) and splits it into five reviewable commits:
1861fcfU3 — move (137 lines):git mvof the three skills, their guides and the postmortem template (detected as renames, 74–100 % similar). In the skills,Kis the kaizen-ops resolver and core's conventions/configuration are read through$(node "$K" core-root); guide links to core pages point to../../../kaizen/docs/. Intermediate commit (core still names the old commands until U5).4e481b0U4 — stubs (83 lines):/kaizen:deploy|monitor|postmortemanswer "moved to/kaizen-ops:<name>" + the settings line,allowed-tools: Read, run nothing; short guides keep core's one-guide-per-skill contract; removed in 4.1.0 (S3).3ba3fe9U6 — migration warning (74 lines):doctor→ops_pluginwarns when a repo declares deploy environments or monitor signals andkaizen-ops@dojois not enabled (project, local or user settings);audit fix claude_settingsenables it, also on top of an existingkaizen@dojo.db46ad9U5 — names (260 lines, mostly one-word substitutions): status next steps, protected-deploy hook message, skills, references, docs, eval prompts; links to the old guides now target kaizen-ops'; README "Deploy and monitor" table → pointer; help/setup/conventions relayops_plugin; troubleshooting row; diagrams regenerated (the help-routing one also follows 3.10's order); evals pass--plugin-dirtwice (repeatable perclaude --help); the "core never refers to kaizen-ops" contract.d6178feU7 — release (87 lines):marketplace.jsonregisters kaizen-ops; Kaizen 4.0.0, kaizen-ops 1.0.0 (requires ≥ 4.0.0, checked by its contract against the shipped core); CHANGELOGs (Breaking / Deprecated); root README (table, install, team settings);CLAUDE.md; plan updated.Test plan
node --test plugins/kaizen/tests/*.test.mjs plugins/kaizen-ops/tests/*.test.mjs— 194/194 (both plugins' contracts incl. moved skills'core-rootpaths and cross-plugin links; doctorops_pluginwarn/ok/absent;claude_settingsadds kaizen-ops; existing core tests for protected deploy refusal, forged tags and DORA from tags, all run with core alone).kaizen-ops/scripts/kaizen.mjs --version→kaizen-ops 1.0.0 (Kaizen 4.0.0, sibling checkout);deploy listforwarded with its exit code;core-rootfiles exist;doctorreportsops_pluginon a repo with a deploy environment.claude -p,/kaizen-ops:*prompts):deploy-healthy,deploy-breach,deploy-protected,monitor-blind,postmortem-revert— 5/5 scenarios, 16/16 checks (deployed and tagged, breach → rollback + postmortem proposed, nothing deployed without the typed code, blind signal reported without rollback, blameless postmortem with owners).🤖 Generated with Claude Code
https://claude.ai/code/session_012iZk6aQ3fhJy4jrZhfWtaf