⬆️ build(deps): niyam's sessions run sarathi and kavach 0.8.17

Merged
AT
1d ago
+10-10

Moves @veda-hq/sarathi from 0.8.9 to 0.8.17. sarathi 0.8.17 depends on exactly @veda-hq/kavach 0.8.17, so kavach moves with it. Only package.json's sarathi line and the two packages' lockfile entries change. niyam pins kavach only through sarathi, and no other pin, nor niyam's own version, moves.

What reaches niyam's sessions

From veda-hq/veda v0.8.9...v0.8.17, commits touching packages/sarathi and packages/kavach. .claude/kavach.json sets other-sessions-worktree to refuse and names no other rule, so the others warn.

  • kavach 0.8.17 (https://github.com/veda-hq/veda/pull/650): a session whose desktop-app record names the main checkout, as every scheduled task's does, is judged by other-sessions-worktree in a live peer's worktree, so its writes there are now refused here; before, they ran unchecked. cd-out-of-worktree stops warning on its cd out, to the main checkout or a managed worktree no other live record names.
  • kavach 0.8.14 (https://github.com/veda-hq/veda/pull/653): checkout-discards-uncommitted leaves out unmerged paths (conflict resolution with --ours/--theirs/-m); commit-body-ref-line-length takes commitlint's own exemptions, and --fixup/--squash pass.
  • sarathi 0.8.16 (https://github.com/veda-hq/veda/pull/663): sarathi page jobs run on Sonnet with only their tools. Nothing in niyam calls it.
  • sarathi 0.8.17 (https://github.com/veda-hq/veda/pull/676): sarathi check judges several settings entries per event; pnpm hooks:check passes on niyam's settings unchanged.
  • Does not reach niyam: the action-box PreToolUse handler (veda#676), since .claude/sarathi.json does not list action-box.sh; the slice-review skill (https://github.com/veda-hq/veda/pull/675), which niyam's CLAUDE.md does not point to; sarathi's services mutation sweep (https://github.com/veda-hq/veda/pull/581), which niyam does not run. The working-rules and research-first skills that CLAUDE.md loads are unchanged.

No guard file changes: package.json and pnpm-lock.yaml are outside Guard's .github/ floor and scripts/*.mjs.

Checks, run locally on this commit

  • Lockfile integrities match npm view (2026-11-27): sarathi 0.8.17 sha512-ywV7ybI5…dYdQactg==, kavach 0.8.17 sha512-TrRbxFRx…rd/Up3WRg==. npm view @veda-hq/sarathi@0.8.17 dependencies is { '@veda-hq/kavach': '0.8.17' }.
  • pnpm check passes: 3255 and 209 tests, 0 failures. pins passes, and provenance reports @veda-hq/kavach@0.8.17 and @veda-hq/sarathi@0.8.17 built and signed by veda's release.yml.
  • pnpm hooks:check: .claude/sarathi.json is valid (SessionStart 1, PreToolUse 4, PostToolUse 1, Stop 1).
  • .claude/kavach.json loads under kavach 0.8.17. .tmp/probe.mjs ran this branch's .claude/hooks/sarathi.sh PreToolUse on Bash events with CLAUDE_PROJECT_DIR at the main checkout (sarathi 0.8.9), then at this branch:
main   0.8.9  exit 0  cat package.json
main   0.8.9  exit 0  git log --oneline --grep=sarathi -i -n 3
main   0.8.9  exit 0  niyam propose 1
main   0.8.9  exit 0  niyam state 1 --title 'probe'
main   0.8.9  exit 0  touch .tmp/probe-touch
main   0.8.9  exit 0  git commit --fixup HEAD
main   0.8.9  exit 2  git push --no-verify origin HEAD
branch 0.8.17 exit 0  cat package.json
branch 0.8.17 exit 0  git log --oneline --grep=sarathi -i -n 3
branch 0.8.17 exit 0  niyam propose 1
branch 0.8.17 exit 0  niyam state 1 --title 'probe'
branch 0.8.17 exit 0  touch .tmp/probe-touch
branch 0.8.17 exit 0  git commit --fixup HEAD
branch 0.8.17 exit 2  git push --no-verify origin HEAD

The push is refused under both by the worktree guard, for a remote it cannot place from the probe's event. Not probed: the scheduled-task case itself, which needs a desktop-app session record naming the main checkout; veda#650's own probe covers it.

After merge

Hooks load sarathi from the main checkout's node_modules at the pinned version, so /Users/alok/code/athya/niyam needs git pull and pnpm install run together. Between the two, .claude/hooks/sarathi.sh refuses every PreToolUse call in sessions already running, until a session start (or resume) installs the pin or pnpm install runs. That step is Alok's.

Auto-merge is on: an existing dependency's pin moving is none of CLAUDE.md's exceptions. Approval: Alok's 👍 (2026-11-27T10:53Z) on https://github.com/veda-hq/niyam/issues/710#issuecomment-7216402931 (proposal page: https://claude.ai/artifact/Fg1WKbEeTFdnYYwzSRfe1C).

Slice: #710

🤖 Generated with Claude Code


Summary by cubic

Moves @veda-hq/sarathi from 0.8.9 to 0.8.17 for niyam's sessions. sarathi 0.8.17 depends on exactly @veda-hq/kavach 0.8.17, so kavach moves with it. Only package.json's sarathi line and the two packages' lockfile entries change.

  • kavach 0.8.17 refuses writes from a session whose desktop-app record names the main checkout, as a scheduled task's does, into a live peer's worktree; it also stops warning on cd out of the worktree.
  • kavach 0.8.14 exempts unmerged paths from checkout-discards-uncommitted and commitlint's own exemptions (plus --fixup/--squash) from commit-body-ref-line-length.
  • sarathi 0.8.16 and 0.8.17 changes do not affect niyam, which does not call sarathi page or slice-review, and its settings pass pnpm hooks:check.
  • After merge, run git pull and pnpm install together so hooks load the pinned version; between the two, running sessions refuse every PreToolUse call.