@litfamily/litmuse 0.1.22 → 0.1.23

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,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.23 — 2026-11-27
4
+
5
+ - start-work can now finish a long run with nobody at the keyboard. A step the run guard will not let through (a push, a delete, an install, a file made in a folder the plan grants only for reading) is parked with its command and folder, and the run goes on with the next row. When every row is ticked and the plan's `## Done when` check exits 0, the run closes itself with one line. Otherwise it ends with one inbox that starts with `WAITING-ON-USER:` and lists the parked steps, the waiting rows and the answers: `lit approve` runs the shown local steps, `lit approve x` (typed exactly) also runs pushes, tags, publishes and other outward steps, `lit deny` drops them, `lit skip-row [N]` skips a row, `lit pause` / `lit resume` stop and restart the driving, and `lit cancel` ends the run (a damaged state file too, which still refuses protected reads until then). A row the model cannot do carries `IMPOSSIBLE: <reason>`. Secrets and the real host home are still refused and never parked; a reader's glob in the workspace (`cat .env*`) is expanded and every match checked, and git index paths (`git show :.env`) count as paths.
6
+ - A plan line `Run charter: commit on <branch> in <repo>` lets the run commit on that branch after your `yes`. Amend, `--no-verify`, `git add -A`, push and tag stay out of it, and a charter edited after the start grants nothing.
7
+ - Muse's native goal is armed only for a plan with a `goal: native` line, and its objective always ends itself on a `WAITING-ON-USER:` reply or after 30 turns. Other plans are driven by the start-work hooks alone.
8
+ - A prompt without `lit` now gets a short suggestion when it clearly fits a skill ("plot this csv" names lit-scientific-visualization), always with "none of these", and the model decides. When no rule fires, one compact catalog line is added instead. Slash commands get nothing. Each rule shipped only after it reached recall of at least 0.85 and near-miss false positives of at most 0.10 on a sealed held-out set, scored once with `node scripts/routing-eval.mjs heldout --record`; `npm run eval:routing` now scores only the dev half.
9
+ - Muse shows no hook text to the user, so the completion line and the inbox reach you only through the model's reply: the hook asks the model to repeat them exactly. A child lane follows the run guard only when Muse names the child session in its SubagentStart payload. Replays run through `/bin/sh`.
10
+ - The run guard reads past harmless-looking readers: a sed script with w, r or e commands, awk with `system` or `>`, `rg --pre`, `sort -o` and `git diff --output` outside the workspace are held or parked, and a tool it cannot read (cron, MCP servers) is held. Replays and the done check run in their own process group, so a timeout also stops background children, and injected messages are capped.
11
+ - During a run the guard parks by default. It runs readers, the plan's Done-when check, the repo's own test and check commands and scripts inside the project; a verb it does not know (`dd`, `ln`, `chmod`, `go run`, `awk` and the like) and a shell redirect into the workspace park as X, and a file the shell makes there parks as B. Write files with the file tools. A script inside the project can still do anything its author wrote; the reference says so. Link chains are followed to the end, a loop is refused, and a shell write into the real host home is refused.
12
+ - The run record is sealed with an HMAC whose key stays in LitMuse's state folder. A record changed outside the hooks loses its parked steps and grants, and the inbox shows a digest of its list that replay checks.
13
+ - Injected messages now fit Muse's 16 KiB hook output limit: each stays within 12 KiB after JSON escaping, and the inbox lists only the parked steps that fit; `lit approve` runs only those, and the rest are counted. A plain prompt in the middle of a run no longer switches the run guard off. During a run only read-only `litmuse/*` child agents start, because Muse does not name the child session to the hooks. An absolute path in a prompt (`/Users/me/data.csv`) is no longer taken for a slash command.
14
+ - The run guard also refuses moves and removes that would take the run state with them (`mv .litmuse x`, `rm -rf .`), checks secret names case-insensitively and inside `git show REV:path`, holds `grep -f` with an outside pattern file, and after `lit approve x` runs a BLOCKED row's step it tells the model to clear the BLOCKED line and finish the row.
15
+ - The guard reads `sort` and `file` options from an allowlist (clusters and abbreviations included), refuses recursive reads over a folder that holds secrets (`grep -r x ~`), refuses writes into any `.git` folder, and keeps `lit deny` answers when a run record fails its seal.
16
+ - During a run the guard fails closed: a call it cannot read or check is denied, and a step over 2000 characters is refused without being stored.
17
+ - The UserPromptSubmit and Stop hooks now allow up to 110 s and 100 s, to fit one replay and one done check.
18
+ - The hook code changed, so Muse asks you to approve the LitMuse hooks again after the update: run `muse plugins approve litmuse:hook:<id>` for each one doctor lists.
19
+
3
20
  ## 0.1.22 — 2026-11-26
4
21
 
5
22
  - `litmuse install --agent` (or `--agent`) prints an install guide for coding agents. It writes nothing, starts nothing and needs no Muse. `--help`, the first line of an install without a person, and the plan card point to it; the README prompts carry the same steps.
package/README.md CHANGED
@@ -405,6 +405,26 @@ Work leaves the build unit through a valve that the Stop hook keeps shut while p
405
405
 
406
406
  </details>
407
407
 
408
+ ### A run that finishes while you are away
409
+
410
+ Say you approve a two-row plan with `yes` and go to lunch. The run builds row 1, then tries `git push origin feat/qa` for row 2. It does not stop to ask you. The hook parks the push with its folder, and the model carries on with what is left. When you come back, the run has ended in one of two ways.
411
+
412
+ If every row is ticked and the plan's `## Done when` check exits 0, it closed itself with one line such as `plans/p.md is complete: every row is ticked and \`npm test\` passed.` You type nothing.
413
+
414
+ If something needs you, the last reply is one inbox that starts with `WAITING-ON-USER:`. It lists each parked step whole, with its folder, and the rows that are waiting or impossible. You answer with one prompt:
415
+
416
+ - `lit approve` runs the shown local steps, such as a folder made in a read-only Scope root, and grants the shown folders.
417
+ - `lit approve x`, typed exactly, also runs the shown outward steps: push, tag, publish, delete, install.
418
+ - `lit deny` drops every parked step. `lit skip-row 2` skips row 2. `lit pause` and `lit resume` stop and restart the run.
419
+
420
+ Every step is checked again before it runs, and a step that runs past 100 s is stopped and stays parked. A secret file or your real home folder is refused outright and never parked. While a run is on, the guard lets through only readers, the plan's check, the repo's own test and check commands and scripts inside the project; anything else waits in the inbox. A script inside the project can still do whatever its author wrote, so keep the plan's own scripts honest. Muse shows no hook text, so the completion line and the inbox reach you through the model, which the hook tells to repeat them word for word.
421
+
422
+ Three optional plan lines shape the run. `Run charter: commit on feat/qa in .` lets it make plain commits on that branch; amend, `--no-verify`, `git add -A`, push and tag stay out. `goal: native` also arms Muse's own goal, which always ends itself on a `WAITING-ON-USER:` reply or after 30 turns. A row the model cannot do gets `IMPOSSIBLE: <reason>` under it, and the run moves on.
423
+
424
+ ### Suggestions without `lit`
425
+
426
+ A prompt that does not start with `lit` can still get a hint. Type `plot this csv` and the model is told that lit-scientific-visualization may fit, next to "none of these", and it decides from your request. When nothing fits, it gets one short line of skill names instead. A slash command gets nothing. Each hint rule shipped only after it found at least 85% of the right prompts and fired on at most 10% of near misses, on a sealed test set that was scored once, apart from the everyday checks.
427
+
408
428
  ### What a planning turn may do
409
429
 
410
430
  `lit plan` turns are planning only, and the PreToolUse hook holds that line with an allowlist. Anything unlisted is refused, including MCP tools and tools a later Muse release adds. If the route state goes missing or breaks during a plan turn, the limit stays on.
package/README_ko-KR.md CHANGED
@@ -396,6 +396,26 @@ npx @litfamily/litmuse extensions prune-backups --older-than 30 --yes
396
396
 
397
397
  </details>
398
398
 
399
+ ### 자리를 비운 사이 끝나는 실행
400
+
401
+ 두 줄짜리 계획을 `yes`로 승인하고 점심을 먹으러 갔다고 해 봅시다. 실행은 1번 줄을 만들고, 2번 줄에서 `git push origin feat/qa`를 하려 합니다. 이때 멈춰서 묻지 않습니다. 훅이 그 push를 폴더와 함께 보관해 두고, 모델은 남은 일을 이어 갑니다. 돌아와 보면 실행은 둘 중 하나로 끝나 있습니다.
402
+
403
+ 모든 줄에 체크가 되어 있고 계획의 `## Done when` 검사가 0으로 끝나면, 실행은 `plans/p.md is complete: every row is ticked and \`npm test\` passed.` 같은 한 줄로 스스로 닫힙니다. 따로 입력할 것은 없습니다.
404
+
405
+ 사람이 필요한 일이 남았으면 마지막 답이 `WAITING-ON-USER:`로 시작하는 받은편지함 하나입니다. 보관된 단계를 폴더와 함께 줄임 없이 보여 주고, 기다리는 줄과 할 수 없는 줄도 적습니다. 답은 프롬프트 하나로 합니다.
406
+
407
+ - `lit approve`(`lit 승인`)는 보여 준 로컬 단계를 실행합니다. 읽기 전용 Scope root 안에 폴더를 만드는 일 같은 것입니다. 보여 준 폴더 쓰기 권한도 줍니다.
408
+ - `lit approve x`를 정확히 그대로 치면 보여 준 바깥 단계(push, tag, publish, 삭제, 설치)까지 실행합니다.
409
+ - `lit deny`(`lit 거절`)는 보관된 단계를 모두 버립니다. `lit skip-row 2`는 2번 줄을 건너뜁니다. `lit pause`(`lit 멈춤`)와 `lit resume`(`lit 재개`)은 실행을 멈추고 다시 돌립니다.
410
+
411
+ 모든 단계는 실행 직전에 다시 검사하고, 100초를 넘긴 단계는 멈춘 뒤 보관 상태로 남깁니다. 비밀 파일이나 실제 홈 폴더는 보관하지 않고 바로 거절합니다. 실행 중에 가드가 그냥 통과시키는 것은 읽기 명령, 계획의 검사, 저장소 자체의 테스트와 검사 명령, 프로젝트 안의 스크립트뿐이고, 나머지는 받은편지함에서 기다립니다. 프로젝트 안의 스크립트는 작성자가 쓴 일을 여전히 무엇이든 할 수 있으니, 계획이 부르는 스크립트는 믿을 만한 것이어야 합니다. Muse는 훅 글을 사용자에게 보여 주지 않습니다. 그래서 완료 줄과 받은편지함은 모델의 답으로만 전달되고, 훅은 모델에게 그 글을 그대로 옮기라고 말합니다.
412
+
413
+ 계획에 넣을 수 있는 줄이 세 가지 더 있습니다. `Run charter: commit on feat/qa in .`는 그 브랜치에 평범한 커밋을 허락합니다. amend, `--no-verify`, `git add -A`, push, tag는 들어가지 않습니다. `goal: native`는 Muse 자체 목표도 거는데, 이 목표는 `WAITING-ON-USER:` 답이 나오거나 30턴이 지나면 늘 스스로 끝납니다. 모델이 할 수 없는 줄 밑에는 `IMPOSSIBLE: <이유>`가 붙고, 실행은 다음으로 넘어갑니다.
414
+
415
+ ### `lit` 없이 받는 제안
416
+
417
+ `lit`로 시작하지 않는 프롬프트도 힌트를 받을 수 있습니다. `plot this csv`라고 치면 모델은 lit-scientific-visualization이 맞을 수 있다는 말을 "none of these"와 함께 듣고, 요청을 보고 직접 정합니다. 맞는 것이 없으면 스킬 이름을 담은 짧은 한 줄만 받습니다. 슬래시 명령에는 아무것도 붙지 않습니다. 각 힌트 규칙은 봉인된 시험 세트에서 맞는 프롬프트를 85% 이상 찾고, 비슷하지만 아닌 프롬프트에는 10% 이하로만 반응한 뒤에 실렸습니다. 이 시험 세트는 평소 검사와 따로 한 번만 채점했습니다.
418
+
399
419
  ### 계획 턴에서 할 수 있는 일
400
420
 
401
421
  `lit plan` 턴은 계획 전용이며, PreToolUse 훅이 허용 목록으로 이를 지킵니다. 목록에 없는 도구는 MCP 도구와 나중에 Muse에 추가되는 도구까지 모두 거부됩니다. 계획 턴 중에 경로 상태가 사라지거나 깨져도 제한은 그대로 유지됩니다.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litfamily/litmuse",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Installer for LitMuse: skills, hooks and agents that help Meta's Muse Code plan, build, check and hand off work.",
5
5
  "keywords": [
6
6
  "muse",
@@ -29,7 +29,8 @@
29
29
  "qa:muse-live": "node scripts/qa-muse-live.mjs",
30
30
  "sync:digests": "node scripts/sync-hook-digests.mjs",
31
31
  "check:digests": "node scripts/sync-hook-digests.mjs --check",
32
- "sync:lock": "node scripts/sync-skills-lock.mjs"
32
+ "sync:lock": "node scripts/sync-skills-lock.mjs",
33
+ "eval:routing": "node scripts/routing-eval.mjs dev"
33
34
  },
34
35
  "files": [
35
36
  "bin",
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "litmuse",
4
4
  "displayName": "LitMuse",
5
- "version": "0.1.22",
5
+ "version": "0.1.23",
6
6
  "description": "LitFamily workflows for Muse Code: bare lit activation, planning, evidence-bound execution, review, research, handoff and Korean prose care.",
7
7
  "compat": {
8
8
  "source": "native",
@@ -251,7 +251,7 @@
251
251
  "node",
252
252
  "hooks/session-start.mjs",
253
253
  "--digest",
254
- "1dffc2949834e04d"
254
+ "ecd588cc8add5a5a"
255
255
  ],
256
256
  "timeoutMs": 5000
257
257
  },
@@ -262,9 +262,9 @@
262
262
  "node",
263
263
  "hooks/user-prompt-submit.mjs",
264
264
  "--digest",
265
- "a005f619d0221178"
265
+ "0704e1408ba24bda"
266
266
  ],
267
- "timeoutMs": 5000,
267
+ "timeoutMs": 110000,
268
268
  "statusMessage": "LitMuse route check"
269
269
  },
270
270
  {
@@ -274,7 +274,7 @@
274
274
  "node",
275
275
  "hooks/pre-tool-use.mjs",
276
276
  "--digest",
277
- "86fc0def8a86f4bd"
277
+ "39010c96d8edc5a0"
278
278
  ],
279
279
  "timeoutMs": 5000
280
280
  },
@@ -285,7 +285,7 @@
285
285
  "node",
286
286
  "hooks/post-tool-use.mjs",
287
287
  "--digest",
288
- "3b81610dc35969d1"
288
+ "fec2c7800dfa3bf0"
289
289
  ],
290
290
  "timeoutMs": 5000
291
291
  },
@@ -296,7 +296,7 @@
296
296
  "node",
297
297
  "hooks/post-tool-use-failure.mjs",
298
298
  "--digest",
299
- "c95b4780ca00948d"
299
+ "2717a5a534a6d881"
300
300
  ],
301
301
  "timeoutMs": 5000
302
302
  },
@@ -307,9 +307,9 @@
307
307
  "node",
308
308
  "hooks/stop.mjs",
309
309
  "--digest",
310
- "0a1a04d48d28875d"
310
+ "baead71b5cfdcc86"
311
311
  ],
312
- "timeoutMs": 5000
312
+ "timeoutMs": 100000
313
313
  },
314
314
  {
315
315
  "id": "subagent-start",
@@ -318,7 +318,7 @@
318
318
  "node",
319
319
  "hooks/subagent-start.mjs",
320
320
  "--digest",
321
- "8f675c7f0b5209b3"
321
+ "24c6d0cd3a5da054"
322
322
  ],
323
323
  "timeoutMs": 5000
324
324
  },
@@ -329,7 +329,7 @@
329
329
  "node",
330
330
  "hooks/subagent-stop.mjs",
331
331
  "--digest",
332
- "05789f8effcb2eff"
332
+ "d14d92c88c486267"
333
333
  ],
334
334
  "timeoutMs": 5000
335
335
  },
@@ -340,7 +340,7 @@
340
340
  "node",
341
341
  "hooks/session-end.mjs",
342
342
  "--digest",
343
- "4fbfe88045109e11"
343
+ "60ba6b0fa2bedf3e"
344
344
  ],
345
345
  "timeoutMs": 5000
346
346
  },
@@ -351,7 +351,7 @@
351
351
  "node",
352
352
  "hooks/pre-compact.mjs",
353
353
  "--digest",
354
- "6e445d503992e185"
354
+ "ed5287d05cbbd453"
355
355
  ],
356
356
  "timeoutMs": 5000
357
357
  }