⬆️ build(deps): niyam's sessions run sarathi and kavach 0.8.17
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-worktreein a live peer's worktree, so its writes there are now refused here; before, they ran unchecked.cd-out-of-worktreestops warning on itscdout, 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-uncommittedleaves out unmerged paths (conflict resolution with--ours/--theirs/-m);commit-body-ref-line-lengthtakes commitlint's own exemptions, and--fixup/--squashpass. - sarathi 0.8.16 (https://github.com/veda-hq/veda/pull/663):
sarathi pagejobs 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 checkjudges several settings entries per event;pnpm hooks:checkpasses on niyam's settings unchanged. - Does not reach niyam: the action-box PreToolUse handler (veda#676), since
.claude/sarathi.jsondoes not listaction-box.sh; theslice-reviewskill (https://github.com/veda-hq/veda/pull/675), which niyam'sCLAUDE.mddoes not point to; sarathi's services mutation sweep (https://github.com/veda-hq/veda/pull/581), which niyam does not run. Theworking-rulesandresearch-firstskills thatCLAUDE.mdloads 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.17sha512-ywV7ybI5…dYdQactg==, kavach 0.8.17sha512-TrRbxFRx…rd/Up3WRg==.npm view @veda-hq/sarathi@0.8.17 dependenciesis{ '@veda-hq/kavach': '0.8.17' }. pnpm checkpasses: 3255 and 209 tests, 0 failures.pinspasses, andprovenancereports@veda-hq/kavach@0.8.17and@veda-hq/sarathi@0.8.17built and signed by veda'srelease.yml.pnpm hooks:check:.claude/sarathi.json is valid (SessionStart 1, PreToolUse 4, PostToolUse 1, Stop 1)..claude/kavach.jsonloads under kavach 0.8.17..tmp/probe.mjsran this branch's.claude/hooks/sarathi.sh PreToolUseon Bash events withCLAUDE_PROJECT_DIRat 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
cdout of the worktree. - kavach 0.8.14 exempts unmerged paths from
checkout-discards-uncommittedand commitlint's own exemptions (plus--fixup/--squash) fromcommit-body-ref-line-length. - sarathi 0.8.16 and 0.8.17 changes do not affect niyam, which does not call
sarathi pageorslice-review, and its settings passpnpm hooks:check. - After merge, run
git pullandpnpm installtogether so hooks load the pinned version; between the two, running sessions refuse every PreToolUse call.