litclaude-ai 0.3.31 → 0.3.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.33 - 2026-07-24 — update notice and installed catalog verification
4
+
5
+ - Add a nonblocking npm update notice for interactive `install`, `update`, and
6
+ `doctor`, backed by a strict product cache, atomic concurrent reservation,
7
+ and bounded official registry refresh. Attempt timestamps throttle successful,
8
+ offline, failed, and interrupted checks for 24 hours without discarding the
9
+ last trusted result; stale trusted results may still notify, while future or
10
+ noncanonical timestamps fail safe. Transition/recovery mutex ownership and
11
+ per-attempt generation fencing prevent stale takeover or late-worker cache
12
+ overwrite. CI/JSON/dry-run/non-TTY and environment opt-outs remain authoritative.
13
+ - Preserve the installed permission mode and HUD accent during an optionless
14
+ reinstall while retaining explicit overrides.
15
+ - Make source doctor, install verification, installed doctor, and Claude plugin
16
+ details share the exact canonical skill catalog. Missing installed skill
17
+ payloads now fail with `DOCTOR_FAIL`, and packed-install corruption coverage
18
+ proves the user-facing doctor cannot report success for an incomplete catalog.
19
+ - Add a narrow native `/goal` capability matrix for user/Remote Control,
20
+ SDK-owned, separate print, and already-open TUI session boundaries without a
21
+ plugin runtime bridge, including minimum client, workspace trust, policy/hook,
22
+ and SDK-advertised command prerequisites.
23
+
24
+ ## 0.3.32 - 2026-07-23 — bounded-authority start-work lifecycle
25
+
26
+ - Added a code-owned schema-3 start-work runtime with canonical authority roots,
27
+ semantic grants, monotonic revisions, idempotency, lock ownership, and durable
28
+ ledger reconciliation.
29
+ - Enforced active authority through Claude Code PreToolUse, exact single-use
30
+ UserPromptSubmit resume grants, and fail-closed forbidden release boundaries.
31
+ - Bound root sessions, subagent lanes, Claude-owned worktrees, fenced-safe plan
32
+ progress, and bounded Stop continuation receipts into completion checks.
33
+ - Kept zero-dependency CI executable without lockfile-only npm setup, made Stop
34
+ re-entry non-blocking with fresh normal-event progress checks, and made invalid
35
+ no-state resume attempts side-effect-free.
36
+
3
37
  ## 0.3.31 - 2026-07-22 — litgoal lifecycle and visual QA hardening
4
38
 
5
39
  - Made duplicate litgoal creation byte-preserving, required explicit replacement
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
  <p align="center">
11
11
  <img src="https://img.shields.io/badge/npm-litclaude--ai-cb3837" />
12
- <img src="https://img.shields.io/badge/version-0.3.31-2ea44f" />
12
+ <img src="https://img.shields.io/badge/version-0.3.33-2ea44f" />
13
13
  <img src="https://img.shields.io/badge/Claude%20Code-plugin-blueviolet" />
14
14
  <img src="https://img.shields.io/badge/license-MIT-blue" />
15
15
  </p>
@@ -22,10 +22,10 @@
22
22
  > `litclaude@litclaude-ai`, so normal `claude` launches can load the
23
23
  > LitClaude skills and hooks without a long `--plugin-dir` command.
24
24
 
25
- This checkout is prepared as `litclaude-ai@0.3.31` for personal install
25
+ This checkout is prepared as `litclaude-ai@0.3.33` for personal install
26
26
  convenience. The repo can remain quiet; preparing npm package metadata here does
27
27
  not imply public repo promotion, marketplace publication, or advertisement.
28
- Future package releases still require explicit user approval. The v0.3.31 release material hardens litgoal creation, replacement, completion, and autoloop receipts while making visual QA browser ownership, bounded waits, blocked states, and cleanup evidence explicit. The v0.3.30 release material strengthens LitResearch with root-owned scientific evidence records, DOI/PDF lifecycle receipts, bounded route coverage, and a connection-pinned public-source reader with inert-content and secret-redaction guarantees. The v0.3.29 release material bundles exact-source `lit-handoff` and `lit-scientific-visualization` skills with Claude-native commands, exact-bare hook invocation, visible LITBURN banners, installed-payload integrity checks, and read-only scientific dependency diagnostics. The v0.3.28 release material requires explicit leading start-work invocations so diagnostic or copied mentions remain inert. The v0.3.27 release material adds a structured, animated five-stage installer with a success or failure receipt while preserving deterministic automation output. The v0.3.26 release material adds adaptive objective-achievable planning, draft-plan review, and orchestration readiness hardening. The v0.3.25 release material aligns portable details, public-read, litgoal status JSON, and evidence wording. The v0.3.24 release material aligns auxiliary skill inventories and advisory probes. The v0.3.23
28
+ Future package releases still require explicit user approval. The v0.3.33 release material adds a quiet nonblocking npm update notice with strict cache, concurrency, timestamp, opt-out, and official-registry boundaries; preserves the installed permission mode and HUD accent on optionless updates; and makes source, install, installed-doctor, and Claude-details checks share the exact canonical skill catalog so missing packaged skills fail with `DOCTOR_FAIL`. The v0.3.32 release material adds the code-owned schema-3 start-work lifecycle with canonical bounded authority, explicit single-use resume grants, PreToolUse enforcement, root/subagent lane identity, progress-bound Stop continuation receipts, and fail-closed release boundaries. The v0.3.31 release material hardens litgoal creation, replacement, completion, and autoloop receipts while making visual QA browser ownership, bounded waits, blocked states, and cleanup evidence explicit. The v0.3.30 release material strengthens LitResearch with root-owned scientific evidence records, DOI/PDF lifecycle receipts, bounded route coverage, and a connection-pinned public-source reader with inert-content and secret-redaction guarantees. The v0.3.29 release material bundles exact-source `lit-handoff` and `lit-scientific-visualization` skills with Claude-native commands, exact-bare hook invocation, visible LITBURN banners, installed-payload integrity checks, and read-only scientific dependency diagnostics. The v0.3.28 release material requires explicit leading start-work invocations so diagnostic or copied mentions remain inert. The v0.3.27 release material adds a structured, animated five-stage installer with a success or failure receipt while preserving deterministic automation output. The v0.3.26 release material adds adaptive objective-achievable planning, draft-plan review, and orchestration readiness hardening. The v0.3.25 release material aligns portable details, public-read, litgoal status JSON, and evidence wording. The v0.3.24 release material aligns auxiliary skill inventories and advisory probes. The v0.3.23
29
29
  release materials inject the bundled skill bodies for bare `hyperplan`,
30
30
  `litresearch`, `lit research`, `init-deep`, and explicit `$start-work` prompt-hook routes while
31
31
  preserving the v0.3.19 adversarial planning skill, the v0.3.18 read-only `lit-recap` session recap surface, the v0.3.17 separate-worker native `/goal` launcher, the v0.3.16
@@ -131,7 +131,7 @@ directory, the normal install command works:
131
131
 
132
132
  ```bash
133
133
  cd /tmp
134
- npx --yes litclaude-ai@0.3.31 install
134
+ npx --yes litclaude-ai@0.3.33 install
135
135
  ```
136
136
 
137
137
  Validate the installed plugin:
@@ -140,11 +140,26 @@ Validate the installed plugin:
140
140
  npx --yes litclaude-ai doctor
141
141
  ```
142
142
 
143
+ Interactive `install`, `update`, and `doctor` runs may show a quiet update notice
144
+ on stderr from LitClaude's own cache. A strictly validated last successful
145
+ version may still be shown after it becomes stale. At most one new attempt is
146
+ reserved per 24 hours across concurrent parents; that reservation remains after
147
+ offline, failed, or interrupted refreshes while preserving the last successful
148
+ version and check time. A transition/recovery mutex and per-attempt ownership
149
+ generation serialize stale takeover and completion, so an old worker cannot
150
+ remove a newer reservation or overwrite its result. The refresh is a detached, three-second request to the
151
+ official npm registry, so the management command does not wait. Noncanonical or
152
+ future cache timestamps are not trusted. The notice is disabled for CI, JSON,
153
+ dry-run, or non-TTY use and by either `NO_UPDATE_NOTIFIER` or
154
+ `LITCLAUDE_NO_UPDATE_CHECK`. It never reads npm credentials or installs an
155
+ update. Follow the version-pinned `npx --yes litclaude-ai@<version> install`
156
+ command shown in the notice, then restart Claude Code.
157
+
143
158
  The installer also sets Claude Code's `statusLine` command to the packaged
144
159
  LitClaude HUD. A typical no-color render starts like:
145
160
 
146
161
  ```text
147
- [🔥LITCLAUDE v0.3.31] | O4.8 │ ctx [▎░░] 9%/1000k │ 5h [▏░] 4% ↻2h15m │ 1w [▊░] 35% ↻3d6h │ git main +3 ✓
162
+ [🔥LITCLAUDE v0.3.33] | O4.8 │ ctx [▎░░] 9%/1000k │ 5h [▏░] 4% ↻2h15m │ 1w [▊░] 35% ↻3d6h │ git main +3 ✓
148
163
  ```
149
164
 
150
165
  The `↻` suffix is a compact rate-limit reset countdown. It is separated from
@@ -159,6 +174,10 @@ To override the accent without the picker, set `LITCLAUDE_HUD_ACCENT` to one
159
174
  of `cyan`, `blue`, `teal`, `green`, `lavender`, `rose`, `gold`, `orange`,
160
175
  `slate`, or `gray` before installing.
161
176
 
177
+ An optionless `litclaude update` preserves the installed permission mode and
178
+ HUD accent. An explicit `--permission-mode` / `--yolo` choice or
179
+ `LITCLAUDE_HUD_ACCENT` value still overrides the saved choice.
180
+
162
181
  Launch Claude Code normally:
163
182
 
164
183
  ```bash
@@ -294,6 +313,9 @@ litclaude litgoal native-worker --condition "<completion condition>" --mode bg -
294
313
  `native-worker` starts a separate print/background Claude Code worker whose first
295
314
  prompt begins with `/goal`; it does not arm the already-open TUI, does not use
296
315
  tmux keystroke injection, and does not mutate private transcript metadata.
316
+ See the clean-room [native `/goal` surface matrix](./docs/native-goal-surface.md)
317
+ for the separate User / Remote Control, SDK-owned, `claude -p`, and already-open
318
+ TUI capability boundaries plus a ready-to-paste ledger-backed condition.
297
319
  For large independent work, LitClaude applies the same principle to Claude
298
320
  Code's available orchestration surfaces: `lit workflow`, `lit dynamic workflow`,
299
321
  and `lit ultracode` prefer current `ultracode` or explicit “run a workflow” /
@@ -332,12 +354,48 @@ When a long `$start-work` run is interrupted, compacted, or resumed in a new
332
354
  terminal pane, use the continuation helper from the checkout:
333
355
 
334
356
  ```bash
335
- litclaude-ai start-work-next --json
357
+ litclaude-ai start-work-next --session-id <claude-session> --json
336
358
  ```
337
359
 
338
360
  It reads `.litclaude/boulder.json` and `.litclaude/start-work/ledger.jsonl`, then prints the
339
- active plan, ledger path, and first unchecked top-level task. If the plan is
340
- complete, it returns `{"status":"idle","directive":null}`.
361
+ active plan, ledger path, and first unchecked top-level task. Schema-3 state
362
+ requires the owning Claude session id and otherwise fails closed to idle. If the
363
+ plan is complete, it returns `{"status":"idle","directive":null}`.
364
+
365
+ Start-work now has a code-owned schema-3 bounded-authority lifecycle:
366
+
367
+ ```bash
368
+ litclaude-ai start-work init --plan plans/example-plan.md --work-id work-1 --session-id <claude-session> --grant read:"$PWD" --grant write:"$PWD" --grant execute:"$PWD" --grant test:"$PWD" --idempotency-key init-1 --json
369
+ litclaude-ai start-work status --json
370
+ litclaude-ai start-work progress --work-id work-1 --session-id <claude-session> --expected-revision <n> --idempotency-key progress-1 --json
371
+ ```
372
+
373
+ The runtime owns monotonic revisions, nonce/PID-owned locks, strict reconciliation,
374
+ canonical plan/worktree/authority roots, bounded state history, fenced-safe
375
+ top-level checkbox progress, and semantic action/root grants. Null worktree is
376
+ cwd only when cwd is authorized. A new non-forbidden authority boundary pauses
377
+ the work; forbidden release, registry, host-config, destructive VCS, commit,
378
+ push, publish, tag, and version-bump boundaries fail closed. Paused work cannot
379
+ complete.
380
+
381
+ Resume has no generic CLI or agent approval route. The trusted user submits exactly:
382
+
383
+ ```text
384
+ /litclaude:start-work resume --work-id <id> --revision <n> --boundary-id <id> --prompt-id <id> --grant-id <id>
385
+ ```
386
+
387
+ `UserPromptSubmit` validates the active Claude session, origin prompt, and exact
388
+ pending boundary, records the single-use consumed grant durably, and injects
389
+ bounded structured context without echoing prompt text. Official `PreToolUse`
390
+ enforces semantic action/root grants before execution; `PostToolUse` only
391
+ observes. Bash paths are canonicalized against their effective grant, while
392
+ outside operands, relocation flags, and shell forms requiring speculative
393
+ parsing are denied. Stop uses `prompt_id` and strict boolean `stop_hook_active`:
394
+ each normal Stop event re-evaluates current plan progress and emits once for a
395
+ new fingerprint, while host re-entry with `stop_hook_active: true` stays silent
396
+ instead of replaying stale blocking output. Subagent hooks
397
+ bind root-session, child-lane, and Claude-owned worktree identity; active lanes
398
+ gate completion.
341
399
 
342
400
  For v0.2.0 workflow parity, `review-work` is the dedicated review route. It is a
343
401
  5-lane review: scope/diff verification, tests/evidence execution,
@@ -470,6 +528,7 @@ unavailable capabilities are reported as `DEGRADED` with the affected workflow.
470
528
  | `npx --yes litclaude-ai --version` | Print the packaged LitClaude version |
471
529
  | `npx --yes litclaude-ai doctor` | Validate files, Claude plugin validation, and plugin details |
472
530
  | `npx --yes litclaude-ai path` | Print the installed Claude plugin path |
531
+ | `npx --yes litclaude-ai start-work <command> --json` | Manage schema-3 bounded-authority work state |
473
532
  | `npx --yes litclaude-ai public-read <url> --json` | Read a public source with SSRF/auth safety stops |
474
533
  | `npx --yes litclaude-ai run -- --help` | Run plain `claude` after verifying install state |
475
534
  | `npx --yes litclaude-ai update` | Reinstall the current package version |
package/README_ko-KR.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
  <p align="center">
11
11
  <img src="https://img.shields.io/badge/npm-litclaude--ai-cb3837" />
12
- <img src="https://img.shields.io/badge/version-0.3.31-2ea44f" />
12
+ <img src="https://img.shields.io/badge/version-0.3.33-2ea44f" />
13
13
  <img src="https://img.shields.io/badge/Claude%20Code-plugin-blueviolet" />
14
14
  <img src="https://img.shields.io/badge/license-MIT-blue" />
15
15
  </p>
@@ -26,11 +26,11 @@
26
26
  > 설치되므로, 매번 긴 `--plugin-dir` 없이 일반 `claude` 실행에서
27
27
  > LitClaude skill과 hook을 불러올 수 있습니다.
28
28
 
29
- 현재 checkout은 `litclaude-ai@0.3.31` 배포 준비용으로 정리되어 있습니다. 목적은
29
+ 현재 checkout은 `litclaude-ai@0.3.33` 배포 준비용으로 정리되어 있습니다. 목적은
30
30
  다른 PC에서도 빠르게 설치하기 위한 개인용 package metadata를 갖추는 것입니다.
31
31
  npm package metadata를 준비했다고 해서 홍보, 공개 저장소 운영, Claude
32
32
  marketplace 등록을 의미하지는 않습니다. 새 버전 배포는 항상 별도의 명시적
33
- 승인 후에 진행합니다. v0.3.31 release material은 litgoal 생성·교체·완료와 autoloop receipt를 강화하고 visual QA의 browser ownership, bounded wait, blocked state, cleanup evidence를 명확히 합니다. v0.3.30 release material은 root-owned scientific evidence record, DOI/PDF lifecycle receipt, bounded route coverage, connection-pinned public-source reader, inert-content 및 secret-redaction 보장을 포함하는 LitResearch 강화판입니다. v0.3.29 release material은 exact-source `lit-handoff`와 `lit-scientific-visualization` skill, Claude-native command, exact-bare hook invocation, visible LITBURN banner, installed-payload integrity check, read-only scientific dependency diagnostic을 함께 포함합니다. v0.3.28 release material은 start-work 호출을 prompt 선두의 명시적 invocation으로 제한해 진단문이나 복사된 언급을 비활성 상태로 유지합니다. v0.3.27 release material은 success/failure receipt와 deterministic automation output을 갖춘 5-stage animated installer를 추가합니다. v0.3.26 release material은 adaptive objective-achievable planning, draft-plan review, orchestration readiness hardening을 추가합니다. v0.3.25 release material은 portable details, public-read, litgoal status JSON, evidence wording을 정렬합니다. v0.3.24 release material은 auxiliary skill inventory와 advisory probe를 정렬합니다. v0.3.23 release material은 bare `hyperplan`,
33
+ 승인 후에 진행합니다. v0.3.33 release material은 strict cache, concurrency, timestamp, opt-out, official-registry boundary를 갖춘 조용한 nonblocking npm update notice를 추가하고, optionless update에서 기존 permission mode와 HUD accent를 보존하며, source/install/installed doctor/Claude details가 정확한 canonical skill catalog를 공유해 packaged skill 누락 시 `DOCTOR_FAIL`로 실패하도록 합니다. v0.3.32 release material은 canonical bounded authority, single-use resume grant, PreToolUse enforcement, root/subagent lane identity, progress-bound Stop continuation receipt, fail-closed release boundary를 갖춘 code-owned schema-3 start-work lifecycle을 추가합니다. v0.3.31 release material은 litgoal 생성·교체·완료와 autoloop receipt를 강화하고 visual QA의 browser ownership, bounded wait, blocked state, cleanup evidence를 명확히 합니다. v0.3.30 release material은 root-owned scientific evidence record, DOI/PDF lifecycle receipt, bounded route coverage, connection-pinned public-source reader, inert-content 및 secret-redaction 보장을 포함하는 LitResearch 강화판입니다. v0.3.29 release material은 exact-source `lit-handoff`와 `lit-scientific-visualization` skill, Claude-native command, exact-bare hook invocation, visible LITBURN banner, installed-payload integrity check, read-only scientific dependency diagnostic을 함께 포함합니다. v0.3.28 release material은 start-work 호출을 prompt 선두의 명시적 invocation으로 제한해 진단문이나 복사된 언급을 비활성 상태로 유지합니다. v0.3.27 release material은 success/failure receipt와 deterministic automation output을 갖춘 5-stage animated installer를 추가합니다. v0.3.26 release material은 adaptive objective-achievable planning, draft-plan review, orchestration readiness hardening을 추가합니다. v0.3.25 release material은 portable details, public-read, litgoal status JSON, evidence wording을 정렬합니다. v0.3.24 release material은 auxiliary skill inventory와 advisory probe를 정렬합니다. v0.3.23 release material은 bare `hyperplan`,
34
34
  `litresearch`, `lit research`, `init-deep`, explicit `$start-work` prompt-hook route에
35
35
  bundled skill body를 주입하면서, v0.3.19 adversarial planning
36
36
  skill, v0.3.18 read-only `lit-recap` session recap surface, v0.3.17 별도 worker 기반 native `/goal`
@@ -131,7 +131,7 @@ checkout을 먼저 해석해서 `sh: litclaude-ai: command not found`로 실패
131
131
 
132
132
  ```bash
133
133
  cd /tmp
134
- npx --yes litclaude-ai@0.3.31 install
134
+ npx --yes litclaude-ai@0.3.33 install
135
135
  ```
136
136
 
137
137
  설치 상태를 확인합니다.
@@ -140,11 +140,26 @@ npx --yes litclaude-ai@0.3.31 install
140
140
  npx --yes litclaude-ai doctor
141
141
  ```
142
142
 
143
+ interactive `install`, `update`, `doctor`에서는 LitClaude가 소유하는 cache의
144
+ 마지막으로 검증된 성공 버전이 오래되었더라도 조용한 update notice를 stderr에
145
+ 표시할 수 있습니다. 여러 parent가 동시에 실행되어도 atomic reservation으로
146
+ 24시간에 한 번만 새 조회를 예약합니다. offline, 실패, 중단된 조회도 attempted
147
+ time을 남겨 24시간 동안 재시도를 제한하되 마지막 성공 version/check time은
148
+ 보존합니다. transition/recovery mutex와 attempt별 ownership generation이 stale
149
+ takeover와 completion을 직렬화하므로 이전 worker가 새 reservation을 지우거나 새
150
+ 결과를 덮어쓸 수 없습니다. refresh는 official npm registry를 최대 3초 동안 조회하는 detached
151
+ process이므로 management command는 기다리지 않습니다. canonical하지 않거나
152
+ 미래인 cache timestamp는 신뢰하지 않습니다. CI, JSON, dry-run, non-TTY에서는
153
+ 동작하지 않으며 `NO_UPDATE_NOTIFIER` 또는 `LITCLAUDE_NO_UPDATE_CHECK`로 끌 수
154
+ 있습니다. npm credential을 읽거나 update를 자동 설치하지 않습니다. notice가 제시한
155
+ `npx --yes litclaude-ai@<version> install`을 실행한 뒤 Claude Code를 다시
156
+ 시작하세요.
157
+
143
158
  installer는 Claude Code의 `statusLine` command도 packaged LitClaude HUD로
144
159
  설정합니다. 색상을 제거한 예시는 다음처럼 시작합니다.
145
160
 
146
161
  ```text
147
- [🔥LITCLAUDE v0.3.31] | O4.8 │ ctx [▎░░] 9%/1000k │ 5h [▏░] 4% ↻2h15m │ 1w [▊░] 35% ↻3d6h │ git main +3 ✓
162
+ [🔥LITCLAUDE v0.3.33] | O4.8 │ ctx [▎░░] 9%/1000k │ 5h [▏░] 4% ↻2h15m │ 1w [▊░] 35% ↻3d6h │ git main +3 ✓
148
163
  ```
149
164
 
150
165
  `↻` 표시는 rate-limit reset까지 남은 시간을 짧게 보여주는 countdown입니다.
@@ -158,6 +173,10 @@ picker 없이 색상을 지정하려면 설치 전에 `LITCLAUDE_HUD_ACCENT`를
158
173
  `cyan`, `blue`, `teal`, `green`, `lavender`, `rose`, `gold`, `orange`,
159
174
  `slate`, `gray` 중 하나로 설정하세요.
160
175
 
176
+ option을 생략한 `litclaude update`는 기존 permission mode와 HUD accent를
177
+ 보존합니다. 명시적인 `--permission-mode` / `--yolo` 선택 또는
178
+ `LITCLAUDE_HUD_ACCENT` 값은 저장된 선택을 계속 override합니다.
179
+
161
180
  설치 후에는 일반적인 `claude` 명령으로 Claude Code를 실행합니다.
162
181
 
163
182
  ```bash
@@ -284,6 +303,9 @@ litclaude litgoal native-worker --condition "<completion condition>" --mode bg -
284
303
  `native-worker`는 첫 prompt가 `/goal`로 시작하는 별도 print/background Claude
285
304
  Code worker를 시작합니다. 이미 열린 TUI를 arm하지 않고, tmux keystroke
286
305
  injection이나 private transcript metadata 변경도 사용하지 않습니다.
306
+ User / Remote Control, SDK-owned session, 별도 `claude -p`, 이미 열린 TUI의
307
+ capability boundary와 ledger 기반 ready-to-paste condition은 clean-room
308
+ [native `/goal` surface matrix](./docs/native-goal-surface.md)에 정리되어 있습니다.
287
309
  `Workflow`가 노출되면 먼저 제안하고 사용자 opt-in 또는 이미 허용된 orchestration
288
310
  상태에서만 `Workflow` tool을 호출합니다. isolated edit lane이 model-facing
289
311
  worktree를 필요로 하면 `EnterWorktree`를 사용합니다. CLI surface만 가능한 새 격리
@@ -307,7 +329,7 @@ litclaude-ai workflow-check --json
307
329
  checkout에서 continuation helper를 실행합니다.
308
330
 
309
331
  ```bash
310
- litclaude-ai start-work-next --json
332
+ litclaude-ai start-work-next --session-id <claude-session> --json
311
333
  ```
312
334
 
313
335
  이 명령은 `.litclaude/boulder.json`과 `.litclaude/start-work/ledger.jsonl`을 읽고 active
@@ -1,6 +1,14 @@
1
1
  # LitClaude Release Checklist
2
2
 
3
- Status: `litclaude-ai@0.3.31` is the current release candidate — guarded litgoal
3
+ Status: `litclaude-ai@0.3.33` is the current release candidate — a quiet
4
+ nonblocking npm update notice with strict cache, concurrency, timestamp,
5
+ opt-out, and official-registry boundaries; optionless update preservation for
6
+ the installed permission mode and HUD accent; and a shared canonical skill
7
+ catalog enforced by source, install, installed-doctor, and Claude-details
8
+ checks, with `DOCTOR_FAIL` on missing installed skills. It also carries the
9
+ code-owned schema-3 start-work lifecycle with canonical bounded authority,
10
+ single-use resume grants, PreToolUse enforcement, root/subagent lane identity,
11
+ bounded Stop continuation receipts, and fail-closed release boundaries, plus guarded litgoal
4
12
  creation and replacement, durable idempotent autoloop completion, and explicit
5
13
  visual QA backend ownership, bounded waits, blocked states, and cleanup receipts,
6
14
  plus root-owned scientific evidence records, DOI/PDF lifecycle receipts, bounded route coverage,
@@ -25,9 +33,9 @@ side-effect-free, the launcher starts only a separate Claude Code
25
33
  print/background worker, and the release preserves the Korean polishing
26
34
  command, strict multi-agent review pipeline, fidelity guardrails, package
27
35
  hygiene checks, native route gates, and safe start-work handoff behavior.
28
- `package.json` is aligned to `0.3.31`,
29
- `plugins/litclaude/.claude-plugin/plugin.json` is aligned to `0.3.31`, and the
30
- plugin-local MCP server reports `0.3.31`.
36
+ `package.json` is aligned to `0.3.33`,
37
+ `plugins/litclaude/.claude-plugin/plugin.json` is aligned to `0.3.33`, and the
38
+ plugin-local MCP server reports `0.3.33`.
31
39
 
32
40
  This release carries the v0.2.2 Dynamic workflow hardening surfaces:
33
41
  `/dynamic-workflow`, `workflow-check --json`, native `/goal` fallback guidance,
@@ -54,6 +62,10 @@ behavior.
54
62
 
55
63
  - `npm test`
56
64
  - `npm run validate:plugin`
65
+ - `npm run doctor`
66
+ - `npm run check:version`
67
+ - `npm run scan:legacy-tokens`
68
+ - `npm run pack:payload-guard`
57
69
  - `npm run qa:tmux`
58
70
  - `npm run qa:portable`
59
71
  - `npm run pack:dry-run`
@@ -71,6 +83,34 @@ Use this track when testing from the current checkout:
71
83
 
72
84
  No npm publication is required for this track.
73
85
 
86
+ ## v0.3.33 Update Notice and Canonical Catalog Gates
87
+
88
+ Before requesting publication approval, confirm interactive `install`, `update`,
89
+ and `doctor` can show only the quiet stderr update notice while CI, JSON,
90
+ dry-run, non-TTY, `NO_UPDATE_NOTIFIER`, and `LITCLAUDE_NO_UPDATE_CHECK` remain
91
+ authoritative opt-outs. Confirm the cache accepts only stable official-package
92
+ metadata, preserves the last trusted result across failed refreshes, throttles
93
+ attempts for 24 hours, and fences stale owners from newer reservations.
94
+
95
+ Confirm source doctor, installation verification, installed doctor, and
96
+ `claude plugin details` consume the same exact canonical skill catalog. A
97
+ packed isolated install must emit `SKILL_CATALOG_PASS` and `DOCTOR_PASS`; after
98
+ one canonical `SKILL.md` is moved aside, doctor must exit nonzero with
99
+ `DOCTOR_FAIL` and must not print `DOCTOR_PASS`.
100
+
101
+ ## v0.3.32 Bounded-Authority Start-Work Gates
102
+
103
+ Before requesting publication approval, confirm schema-3 state remains
104
+ monotonic and reconciled, semantic action/root grants are canonicalized,
105
+ forbidden release actions fail closed, and only the exact single-use
106
+ `/litclaude:start-work resume` UserPromptSubmit route can resume paused work.
107
+ Confirm PreToolUse denies unauthorized tools before execution, root/subagent
108
+ lane identity gates completion, fenced examples do not count as plan progress,
109
+ normal Stop events re-evaluate progress while `stop_hook_active: true` re-entry
110
+ never replays a stale block, and an exact invalid no-state resume creates no
111
+ `.litclaude` state. Confirm the zero-dependency GitHub Actions path uses neither
112
+ lockfile-only npm caching nor a dependency-install step.
113
+
74
114
  ## v0.3.31 Litgoal Lifecycle and Visual QA Gates
75
115
 
76
116
  Before requesting publication approval, confirm duplicate objectives remain
@@ -122,9 +162,9 @@ checkout and from an isolated install of the packed tarball:
122
162
  Before requesting publication approval, confirm these artifacts from the current
123
163
  checkout:
124
164
 
125
- - `package.json` version is `0.3.31`.
126
- - `plugins/litclaude/.claude-plugin/plugin.json` version is `0.3.31`.
127
- - `plugins/litclaude/bin/litclaude-mcp.js` reports server version `0.3.31`.
165
+ - `package.json` version is `0.3.33`.
166
+ - `plugins/litclaude/.claude-plugin/plugin.json` version is `0.3.33`.
167
+ - `plugins/litclaude/bin/litclaude-mcp.js` reports server version `0.3.33`.
128
168
  - Prompt-hook tests cover bundled `SKILL.md` body injection for bare `hyperplan`, `litresearch`, `lit research`, `init-deep`, and explicit leading `$start-work`; diagnostic/copy mentions stay inert while leading natural-language `lit start work` stays BLOCKED.
129
169
  - `lit search` and `lit query` route to `/litclaude:litresearch` without activating on slash mentions, code spans, or non-lit prompts.
130
170
  - Litresearch web lanes require public API/feed preference, validator-first checks, route traces, prompt-injection quarantine, and honest auth/paywall/private-data stop reasons.
@@ -134,7 +174,7 @@ checkout:
134
174
  - `node bin/litclaude-ai.js workflow-check --json` reports `status: pass`.
135
175
  - `node bin/litclaude-ai.js workflow-check --json` reports
136
176
  `subagentReliability` and `commandHookAgreement` as true.
137
- - `node bin/litclaude-ai.js start-work-next --json` is available for active
177
+ - `node bin/litclaude-ai.js start-work-next --session-id <claude-session> --json` is available for active
138
178
  `.litclaude/boulder.json` continuation state and returns idle when no task remains.
139
179
  - PostToolUse hook tests cover patch-shaped mutated-file extraction.
140
180
  - SessionStart hook tests cover context-pressure resume guidance.
@@ -15,18 +15,24 @@ import { homedir } from "node:os";
15
15
  import { dirname, join, resolve } from "node:path";
16
16
  import { createInterface } from "node:readline/promises";
17
17
  import { fileURLToPath } from "node:url";
18
+ import {
19
+ canonicalSkillFiles,
20
+ canonicalSkillIds,
21
+ } from "../plugins/litclaude/lib/canonical-skill-catalog.mjs";
18
22
  import { HUD_ACCENT_THEMES, normalizeHudAccent, themeForAccent } from "../plugins/litclaude/lib/hud-accent-palette.mjs";
19
23
  import { readPublicSource } from "../plugins/litclaude/lib/public-source-reader/reader.mjs";
20
24
  import { verifyBundledSkillsIntegrity } from "../plugins/litclaude/lib/bundled-skills-integrity.mjs";
21
25
  import { runStartWorkContinuationCli } from "../plugins/litclaude/lib/start-work-continuation.mjs";
26
+ import { runStartWorkCli } from "../plugins/litclaude/lib/start-work-cli.mjs";
22
27
  import { runLitgoalCli } from "../plugins/litclaude/lib/litgoal/cli.mjs";
23
28
  import { runWorkflowCheckCli } from "../plugins/litclaude/lib/workflow-check.mjs";
29
+ import { runUpdateNotifier } from "./update-notifier.mjs";
24
30
 
25
31
  const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
26
32
  const packageJson = JSON.parse(readFileSync(join(root, "package.json"), "utf8"));
27
33
  const version = packageJson.version;
28
34
 
29
- const usage = `Usage: litclaude-ai [--dry-run] <install|doctor|path|run|update|uninstall|litgoal|workflow-check|start-work-next|public-read> [...args]
35
+ const usage = `Usage: litclaude-ai [--dry-run] <install|doctor|path|run|update|uninstall|litgoal|workflow-check|start-work|start-work-next|public-read> [...args]
30
36
  litclaude-ai --version
31
37
 
32
38
  Commands:
@@ -36,6 +42,7 @@ Commands:
36
42
  run -- ... Run Claude Code after the global plugin install.
37
43
  litgoal Manage litgoal runtime state and evidence.
38
44
  workflow-check Verify Dynamic workflow, /goal, and subagent delegation readiness.
45
+ start-work Manage schema-3 bounded-authority lifecycle state.
39
46
  start-work-next Print the next active start-work continuation directive.
40
47
  public-read Read a public http(s) source with FetchAttempt/FetchVerdict JSON.
41
48
  update Reinstall this package version and refresh the Claude plugin registry.
@@ -65,6 +72,7 @@ const parseArgs = (argv) => {
65
72
 
66
73
  const litHome = () => resolve(process.env.LITCLAUDE_HOME ?? join(homedir(), ".litclaude"));
67
74
  const claudeHome = () => resolve(process.env.CLAUDE_CONFIG_DIR ?? process.env.CLAUDE_HOME ?? join(homedir(), ".claude"));
75
+ const updateNotifierCachePath = (home = litHome()) => join(home, "update-notifier", "latest.json");
68
76
  const versionRoot = (home = litHome()) => join(home, "litclaude-ai", version);
69
77
  const currentRoot = (home = litHome()) => join(home, "current");
70
78
  const pluginPathForRoot = (installRoot) => join(installRoot, "plugins", "litclaude");
@@ -94,8 +102,9 @@ const parsePermissionMode = (value) => {
94
102
  return value;
95
103
  };
96
104
 
97
- const parseInstallOptions = (rest) => {
98
- let permissionMode = parsePermissionMode(process.env.LITCLAUDE_PERMISSION_MODE || "safe");
105
+ const parseInstallOptions = (rest, existingPermissionMode = "safe") => {
106
+ const preservedMode = permissionModes.has(existingPermissionMode) ? existingPermissionMode : "safe";
107
+ let permissionMode = parsePermissionMode(process.env.LITCLAUDE_PERMISSION_MODE || preservedMode);
99
108
  let permissionExplicit = Boolean(process.env.LITCLAUDE_PERMISSION_MODE);
100
109
 
101
110
  for (let index = 0; index < rest.length; index += 1) {
@@ -306,12 +315,13 @@ const shouldPromptHudAccent = () => {
306
315
  return Boolean(process.stdin.isTTY && process.stdout.isTTY && !process.env.CI);
307
316
  };
308
317
 
309
- const chooseHudAccent = async () => {
318
+ const chooseHudAccent = async (existingAccent = "cyan") => {
319
+ const preservedAccent = normalizeHudAccent(existingAccent);
310
320
  const envAccent = process.env.LITCLAUDE_HUD_ACCENT;
311
321
  if (envAccent && process.env.LITCLAUDE_HUD_ACCENT_PROMPT !== "1") {
312
322
  return normalizeHudAccent(envAccent);
313
323
  }
314
- if (!shouldPromptHudAccent()) return normalizeHudAccent(envAccent);
324
+ if (!shouldPromptHudAccent()) return envAccent ? normalizeHudAccent(envAccent) : preservedAccent;
315
325
 
316
326
  process.stdout.write("Choose LitClaude HUD brand color:\n");
317
327
  for (const [index, theme] of hudAccentThemes.entries()) {
@@ -320,10 +330,10 @@ const chooseHudAccent = async () => {
320
330
 
321
331
  const rl = createInterface({ input: process.stdin, output: process.stdout });
322
332
  try {
323
- const answer = await rl.question("Color 1-10 or name [cyan]: ");
333
+ const answer = await rl.question(`Color 1-10 or name [${preservedAccent}]: `);
324
334
  const trimmed = answer.trim().toLowerCase();
325
335
  const byIndex = hudAccentThemes[Number.parseInt(trimmed, 10) - 1]?.name;
326
- const selected = byIndex ?? normalizeHudAccent(trimmed);
336
+ const selected = byIndex ?? (trimmed ? normalizeHudAccent(trimmed) : preservedAccent);
327
337
  if (trimmed && selected === "cyan" && trimmed !== "cyan" && byIndex === undefined) {
328
338
  process.stdout.write("HUD_COLOR_WARNING: unknown color; using cyan\n");
329
339
  }
@@ -561,6 +571,8 @@ const commandExists = (command) => {
561
571
  };
562
572
 
563
573
  const escapeRegex = (value) => value.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
574
+ const exactInventoryToken = (value) =>
575
+ new RegExp(`(?<![A-Za-z0-9_-])${escapeRegex(value)}(?![A-Za-z0-9_-])`, "u");
564
576
 
565
577
  const assertCurrentPluginDetails = (detailsOutput) => {
566
578
  const missing = [];
@@ -584,11 +596,11 @@ const assertCurrentPluginDetails = (detailsOutput) => {
584
596
  missing.push("expected nonzero Agents inventory with prometheus-planner");
585
597
  }
586
598
 
587
- if (!/\blit-loop\b/u.test(skillsInventory) || !/\blit-plan\b/u.test(skillsInventory)) {
588
- missing.push("expected lit-loop and lit-plan skills");
589
- }
590
- if (!/\blit-handoff\b/u.test(skillsInventory) || !/\blit-scientific-visualization\b/u.test(skillsInventory)) {
591
- missing.push("expected lit-handoff and lit-scientific-visualization skills");
599
+ const missingSkills = canonicalSkillIds.filter(
600
+ (skillId) => !exactInventoryToken(skillId).test(skillsInventory),
601
+ );
602
+ if (missingSkills.length > 0) {
603
+ missing.push(`expected canonical skills: ${missingSkills.join(", ")}`);
592
604
  }
593
605
 
594
606
  if (missing.length > 0) {
@@ -638,11 +650,13 @@ const verifyInstalledPayload = ({ home, litClaudeHome, targetPlugin }) => {
638
650
  ".claude-plugin/plugin.json",
639
651
  "hooks/hooks.json",
640
652
  "bin/litclaude-hook.js",
653
+ "lib/start-work-lifecycle.mjs",
654
+ "lib/start-work-cli.mjs",
655
+ ...canonicalSkillFiles,
656
+ "commands/start-work.md",
641
657
  "bin/litclaude-scientific-visualization-doctor.js",
642
- "skills/lit-handoff/SKILL.md",
643
658
  "commands/lit-handoff.md",
644
659
  "vendor/022_handoff/SKILL.md",
645
- "skills/lit-scientific-visualization/SKILL.md",
646
660
  "commands/lit-scientific-visualization.md",
647
661
  "vendor/045_scientific-visualization/SKILL.md",
648
662
  "vendor/045_scientific-visualization/scripts/style_presets.py",
@@ -664,9 +678,14 @@ const verifyInstalledPayload = ({ home, litClaudeHome, targetPlugin }) => {
664
678
  };
665
679
 
666
680
  const install = async ({ dryRun, rest }) => {
667
- const { permissionMode, permissionExplicit } = parseInstallOptions(rest);
668
681
  const home = claudeHome();
669
682
  const litClaudeHome = litHome();
683
+ const existingLitClaude = readClaudeSettings(home)[litClaudeSettingsKey] ?? {};
684
+ const { permissionMode, permissionExplicit } = parseInstallOptions(rest, existingLitClaude.permissionMode);
685
+ const existingHudAccent = normalizeHudAccent(existingLitClaude.hudAccent);
686
+ const requestedHudAccent = process.env.LITCLAUDE_HUD_ACCENT
687
+ ? normalizeHudAccent(process.env.LITCLAUDE_HUD_ACCENT)
688
+ : existingHudAccent;
670
689
  const targetPlugin = claudePluginRoot(home);
671
690
  const sourcePlugin = sourcePluginPath();
672
691
  const targetMarketplace = marketplaceRoot(litClaudeHome);
@@ -677,8 +696,11 @@ const install = async ({ dryRun, rest }) => {
677
696
  process.stdout.write(`Would copy: ${sourcePlugin} -> ${targetPlugin}\n`);
678
697
  process.stdout.write(`Would create local marketplace: ${targetMarketplace}\n`);
679
698
  process.stdout.write(`Would register Claude plugin: ${pluginKey}\n`);
680
- process.stdout.write(`Would set Claude statusLine HUD: ${hudCommandForPlugin(targetPlugin)}\n`);
681
- process.stdout.write(`Would record permission preference: ${permissionMode}${permissionExplicit ? " (explicit)" : " (default)"}\n`);
699
+ process.stdout.write(`Would set Claude statusLine HUD: ${hudCommandForPlugin(targetPlugin, requestedHudAccent)}\n`);
700
+ const permissionSource = permissionExplicit
701
+ ? "explicit"
702
+ : permissionModes.has(existingLitClaude.permissionMode) ? "preserved" : "default";
703
+ process.stdout.write(`Would record permission preference: ${permissionMode} (${permissionSource})\n`);
682
704
  process.stdout.write(`Permission profile: ${permissionProfile(permissionMode).description}\n`);
683
705
  process.stdout.write("Launch with: claude\n");
684
706
  return;
@@ -688,7 +710,7 @@ const install = async ({ dryRun, rest }) => {
688
710
  fail(`Packaged LitClaude plugin payload is missing: ${sourcePlugin}`);
689
711
  }
690
712
 
691
- const hudAccent = await chooseHudAccent();
713
+ const hudAccent = await chooseHudAccent(existingHudAccent);
692
714
  progress.prepare({ claudeTarget: home, litTarget: litClaudeHome });
693
715
  await progress.run(
694
716
  {
@@ -793,15 +815,14 @@ const doctor = ({ dryRun }) => {
793
815
  "hooks/hooks.json",
794
816
  "bin/litclaude-hook.js",
795
817
  "bin/litclaude-mcp.js",
796
- "skills/lit-loop/SKILL.md",
797
- "skills/lit-plan/SKILL.md",
798
- "skills/lit-handoff/SKILL.md",
818
+ "lib/start-work-lifecycle.mjs",
819
+ "lib/start-work-cli.mjs",
820
+ "commands/start-work.md",
799
821
  "commands/lit-handoff.md",
800
822
  "vendor/022_handoff/SKILL.md",
801
823
  "vendor/022_handoff/evals/evals.json",
802
824
  "vendor/022_handoff/examples/HANDOFF-example-generic-auth-refactor.md",
803
825
  "vendor/022_handoff/templates/HANDOFF.md",
804
- "skills/lit-scientific-visualization/SKILL.md",
805
826
  "commands/lit-scientific-visualization.md",
806
827
  "bin/litclaude-scientific-visualization-doctor.js",
807
828
  "vendor/045_scientific-visualization/SKILL.md",
@@ -818,6 +839,13 @@ const doctor = ({ dryRun }) => {
818
839
  const path = join(pluginPath, file);
819
840
  if (!existsSync(path)) fail(`LitClaude install is missing ${file}. Run \`litclaude install\` again.`);
820
841
  }
842
+ for (const file of canonicalSkillFiles) {
843
+ const path = join(pluginPath, file);
844
+ if (!existsSync(path)) {
845
+ fail(`DOCTOR_FAIL: LitClaude install is missing ${file}. Run \`litclaude install\` again.`);
846
+ }
847
+ }
848
+ process.stdout.write("SKILL_CATALOG_PASS\n");
821
849
 
822
850
  printLspDiagnostics(pluginPath, registry);
823
851
 
@@ -921,13 +949,15 @@ const runClaude = ({ dryRun, rest }) => {
921
949
  const uninstall = ({ dryRun }) => {
922
950
  const home = litHome();
923
951
  const pluginCacheRoot = join(claudeHome(), "plugins", "cache", "litclaude-ai");
952
+ const updateNotifierRoot = dirname(updateNotifierCachePath(home));
924
953
  if (dryRun) {
925
- process.stdout.write(`DRY_RUN: remove ${join(home, "litclaude-ai")}, ${currentRoot(home)}, ${marketplaceRoot(home)}, ${pluginCacheRoot}, ${pluginKey}, and its marketplace/settings entries\n`);
954
+ process.stdout.write(`DRY_RUN: remove ${join(home, "litclaude-ai")}, ${currentRoot(home)}, ${marketplaceRoot(home)}, ${updateNotifierRoot}, ${pluginCacheRoot}, ${pluginKey}, and its marketplace/settings entries\n`);
926
955
  return;
927
956
  }
928
957
  rmSync(currentRoot(home), { recursive: true, force: true });
929
958
  rmSync(join(home, "litclaude-ai"), { recursive: true, force: true });
930
959
  rmSync(marketplaceRoot(home), { recursive: true, force: true });
960
+ rmSync(updateNotifierRoot, { recursive: true, force: true });
931
961
  unregisterClaudePlugin();
932
962
  unregisterMarketplace();
933
963
  uninstallHudStatusLine();
@@ -973,6 +1003,9 @@ const main = async () => {
973
1003
  case "start-work-next":
974
1004
  process.exit(runStartWorkContinuationCli(root, parsed.rest));
975
1005
  break;
1006
+ case "start-work":
1007
+ process.exit(runStartWorkCli(parsed.rest, undefined, process.cwd()));
1008
+ break;
976
1009
  case "uninstall":
977
1010
  uninstall(parsed);
978
1011
  break;
@@ -980,6 +1013,14 @@ const main = async () => {
980
1013
  printUsage();
981
1014
  fail(`Unknown command: ${command}`, 64);
982
1015
  }
1016
+
1017
+ if (command === "install" || command === "update" || command === "doctor") {
1018
+ runUpdateNotifier({
1019
+ ...parsed,
1020
+ currentVersion: version,
1021
+ cachePath: updateNotifierCachePath(),
1022
+ });
1023
+ }
983
1024
  };
984
1025
 
985
1026
  main().catch((error) => fail(error.message));
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { refreshUpdateCache } from "./update-notifier.mjs";
4
+
5
+ const cachePath = process.argv[2];
6
+ const generation = process.argv[3];
7
+ if (cachePath && generation) await refreshUpdateCache(cachePath, { generation }).catch(() => {});