kaizen-agent 1.50.0 → 1.51.0

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": "kaizen-agent",
3
- "version": "1.50.0",
3
+ "version": "1.51.0",
4
4
  "description": "Staged workflow for AI agents — code, writing, research, operations: plan, human approval, build, independent review, bounded fix loop.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -178,9 +178,9 @@ Every iteration is written to `runs/<id>/05-iterations/` so the loop is auditabl
178
178
 
179
179
  Each run keeps its own backlog at `runs/<id>/06-backlog.md`. You write it, in the main
180
180
  thread, at two writes that already happen: `02-approval.md` at the plan approval
181
- (only work the user explicitly deferred) and `stage: "done"` at the final approval
182
- (findings still open after the fix loop, unresolved verification, and explicit
183
- deferrals). Suggestions the user did not request are not backlog items. No subagent writes it.
181
+ and `stage: "done"` at the final approval, and only with what the user asked to
182
+ backlog. Open findings, unverified checks and suggestions are offered, never filed by
183
+ themselves. No subagent writes it.
184
184
  The full rules are in [`spec-main.md`](spec-main.md).
185
185
 
186
186
  `/kaizen status` and `/kaizen backlog`: read [`status.md`](status.md) first and follow
@@ -6,16 +6,14 @@ the final approval. No subagent reads this file.
6
6
  ---
7
7
  ## Backlog
8
8
 
9
- Some runs leave work deliberately unresolved. Capture only:
10
-
11
- 1. Work the user explicitly deferred at an approval.
12
- 2. Findings still open after the bounded fix loop, or below a configured higher
13
- `auto_fix.min_severity` that the user chose not to fix.
14
- 3. Criteria the reviewer answered `CANNOT VERIFY` that the user did not settle.
15
-
16
- Planner suggestions and builder notes outside the approved scope are reported, but
17
- are not backlog items unless the user explicitly defers them. Without capture,
18
- unresolved work would survive only in the conversation that produced it.
9
+ The backlog holds only what the user asked to put there. Nothing is filed because it
10
+ was left over: findings still open after the fix loop, `CANNOT VERIFY` criteria,
11
+ planner suggestions and builder notes are reported at the approval, and each goes to
12
+ the backlog only when the user says so. What the user does not name stays in
13
+ `04-review.md` or the plan as record, not as open work. In `auto` mode nobody is asked,
14
+ so nothing is filed. Asking counts only in the user's own words naming the item ("do
15
+ X next run", "backlog 5"); a bare approve files nothing. When unsure, ask once; do not
16
+ file to be safe.
19
17
 
20
18
  `backlog.enabled: false` skips both capture points — the `02-approval.md` append at
21
19
  plan approval and the `06-backlog.md` append at final approval — for that run. The run
@@ -69,8 +67,8 @@ unconditionally:
69
67
 
70
68
  | Capture point | Stage | What gets appended |
71
69
  |---|---|---|
72
- | Writing `02-approval.md`, when the decision is an approval | Plan approval | Only work the user explicitly deferred |
73
- | Setting `stage: "done"` | Final approval | Unresolved findings and `CANNOT VERIFY` criteria, plus explicit deferrals not already recorded |
70
+ | Writing `02-approval.md`, when the decision is an approval | Plan approval | Only items the user asked to backlog |
71
+ | Setting `stage: "done"` | Final approval | Only items the user asked to backlog, not already recorded |
74
72
 
75
73
  Neither is optional and neither is a separate step to remember — a run cannot finish
76
74
  without touching both files.
@@ -153,18 +151,17 @@ everything in place: report its message as printed and let the user decide. The
153
151
  `done` once approved; whether the work landed is reported, not hidden.
154
152
 
155
153
  **Open findings are offered by number.** List them with the reviewer's numbering
156
- intact and let the user name which to fix — "fix 2 and 5". A number not named is not
157
- touched, and goes to the backlog as `open` like any other deferred item. This is the
154
+ intact, with `CANNOT VERIFY` criteria after them, and let the user name what to fix and
155
+ what to backlog — "fix 2, backlog 5". A number not named is not touched and not filed;
156
+ it stays in `04-review.md`. This is the
158
157
  same granularity the fix loop already works at; the only change is that the user
159
158
  picks the subset instead of accepting or declining the whole review.
160
159
 
161
- Before setting `stage: "done"`, append findings still open after the fix loop,
162
- findings below a configured higher fix threshold that the user chose not to fix,
163
- `CANNOT VERIFY` criteria the user did not settle, and work explicitly deferred at
164
- the final approval to `runs/<id>/06-backlog.md`, each as `open`, in the format given
160
+ Before setting `stage: "done"`, append the findings, criteria and work the user asked
161
+ to backlog at the final approval to `runs/<id>/06-backlog.md`, each as `open`, in the format given
165
162
  in *Backlog* above. Check existing entries and do not append a duplicate. Builder
166
163
  notes outside the approved scope are reported, but are not filed without an explicit
167
- deferral.
164
+ request.
168
165
 
169
166
  Set `stage: "done"` in `state.json` once the user accepts.
170
167
 
@@ -295,7 +295,8 @@ modification the user asked for. When the decision is an approval — full or pa
295
295
  the same write appends to `runs/<id>/06-backlog.md` only work the user explicitly
296
296
  deferred, each as `open` — see *Backlog* below for the format. An unaccepted
297
297
  out-of-scope suggestion is not a backlog item merely because it appeared in the plan;
298
- silence is not a request to do it later. A rejection appends nothing: there is no
298
+ silence is not a request to do it later, and neither is a bare "approve" — a deferral
299
+ is the user naming the item and asking for it later. A rejection appends nothing: there is no
299
300
  approved scope yet to measure against, and the approval of the revised plan is what
300
301
  captures any explicit deferral, once.
301
302
 
@@ -113,8 +113,8 @@ this skill's `config.default.yml`.
113
113
 
114
114
  ## Backlog and status
115
115
 
116
- Backlog records explicit deferrals and findings still unresolved after the fix loop,
117
- not every out-of-scope suggestion. Items: `- <status>: <item text>`, `<status>` one of `open`, `done`, `rejected`
116
+ Backlog records only what the user asked to backlog at an approval; open findings and
117
+ suggestions are offered, not filed by themselves. Items: `- <status>: <item text>`, `<status>` one of `open`, `done`, `rejected`
118
118
  (`rejected` carries a reason after `|`). `/kaizen backlog`/`status` are **read-only** —
119
119
  never edit `06-backlog.md` or `state.json`, even to fix a spotted inconsistency; report
120
120
  it and ask.
package/web/board.html CHANGED
@@ -519,7 +519,7 @@ a.schip:hover{color:var(--ink);border-color:color-mix(in srgb,var(--line) 60%,va
519
519
  .src-add .acts .btn{flex-shrink:0}
520
520
  @media(max-width:480px){.src-add .two,.src-add .two.plat{grid-template-columns:1fr}}
521
521
  @media(max-width:900px){main{grid-template-columns:1fr;padding-inline:16px;gap:8px}.hdr,.ftr,aside.docked>header,aside.docked>.body{padding-inline:16px}.more{display:grid}.card:hover .age{display:inline}.toast{left:16px;max-width:calc(100% - 32px)}}
522
- @media(max-width:640px){.hdr{gap:8px 12px}.hdr h1{order:0;flex:1 0 50%}#newtop{order:1}.hdr .combo{order:2;flex:1 1 calc(50% - 6px);min-width:0}.hdr .combo>.sel{width:100%;max-width:none}.hdr .sp{display:none}#bq{order:3;flex:1 0 100%;width:auto}.ftr{gap:6px 12px}}
522
+ @media(max-width:640px){.hdr{gap:8px 12px;padding-top:28px;padding-bottom:12px}.hdr h1{order:0;flex:1 0 50%;font-size:20px}#newtop{order:1}.hdr .combo{order:2;flex:1 1 calc(50% - 6px);min-width:0}.hdr .combo>.sel{width:100%;max-width:none}.hdr .sp{display:none}#bq{order:3;flex:1 0 100%;width:auto;max-width:none}body.termv .hdr h1{flex-basis:100%}.ftr{gap:6px 12px}}
523
523
  @media(hover:none){#kbd{display:none}}
524
524
  .skel{display:block;border-radius:6px;background:linear-gradient(90deg,var(--line) 25%,color-mix(in srgb,var(--line) 45%,transparent) 50%,var(--line) 75%);background-size:200% 100%;animation:skel 1.2s ease-in-out infinite}@keyframes skel{from{background-position:200% 0}to{background-position:-200% 0}}
525
525
  /* motion: data-motion (Settings) wins over the system's reduced-motion */
package/web/notes.html CHANGED
@@ -85,6 +85,8 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
85
85
  .sel{border:1px solid var(--line);border-radius:var(--r-s);padding:6px 12px;background-color:var(--bg-2);color:var(--ink);font-size:13px}
86
86
  select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px,100%);text-overflow:ellipsis;background-image:linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px;background-repeat:no-repeat}
87
87
  .sel:hover{border-color:var(--dim)}
88
+ .hdr h1{display:none;margin:0;font-weight:600}
89
+ @media(max-width:640px){.hdr{padding-top:28px;padding-bottom:12px}.hdr h1{display:block;flex:1 0 70%;font-size:20px;order:-2}#new{order:-1}.hdr .sp{display:none}.hdr>#side{order:1}.hdr>#proj{order:2}}
88
90
  .hdr>#proj{padding:4px 30px 4px 10px}.hdr>#proj:not(:hover):not(:focus){border-color:transparent;background-color:transparent}
89
91
  .sel:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent)}
90
92
  .sel::placeholder{color:var(--dim)}
@@ -286,6 +288,7 @@ select.sel{cursor:pointer;appearance:none;padding-right:30px;max-width:min(320px
286
288
  </script>
287
289
  <div class="app">
288
290
  <div class="hdr">
291
+ <h1>Notes</h1>
289
292
  <button class="ib" id="side" title="Notes list" aria-label="Notes list"><svg><use href="#i-list"/></svg></button>
290
293
  <select class="sel" id="proj" aria-label="Project"></select>
291
294
  <span class="sp"></span>
package/web/video.html CHANGED
@@ -91,6 +91,8 @@ pre.mark span:nth-child(1){color:var(--ink-hi)}pre.mark span:nth-child(2){color:
91
91
  :root[data-motion=reduce] *,:root[data-motion=reduce] *::before,:root[data-motion=reduce] *::after,:root[data-motion=reduce]::view-transition-group(*),:root[data-motion=reduce]::view-transition-old(*),:root[data-motion=reduce]::view-transition-new(*){transition:none!important;animation:none!important}
92
92
  /* ---- the Video page ---- */
93
93
  .hdr h1{margin:0;font-size:15px;font-weight:600}
94
+ @media(max-width:640px){.hdr{padding:28px 16px 12px}.hdr h1{flex:1;font-size:20px}}
95
+
94
96
  .sp{flex:1}
95
97
  /* Buttons as on the board and in Notes (board.html .btn/.ib): one look across every page. */
96
98
  .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border:1px solid var(--line);border-radius:var(--r-s);padding:4px 12px;color:var(--ink);background:var(--bg-2);min-height:30px;font-size:13px;font-weight:500;box-shadow:var(--shadow-1);transition:background .12s,border-color .12s,color .12s}