🔧 chore(deps): veda's hooks run sarathi 0.8.9, with kavach 0.8.9
Under work item #43. Slice #588 closed when #594 merged; this is the pin bump it named next.
The root pin of @veda-hq/sarathi moves from 0.8.7 to 0.8.9. sarathi 0.8.9 depends on @veda-hq/kavach 0.8.9, and v0.8.9 published both (run). The lockfile changes to match. Its integrities are the ones npm serves for both packages.
What live sessions get once the main checkout installs this: kavach and sarathi 0.8.7 to 0.8.9.
- From #594 (#588):
- When rule
other-sessions-worktree's scan of the desktop app's records fails, the refusal log gets a row withmodescan-failed, and the rule lets the call through in either mode. - When the scan skips a record it cannot read, it logs the same row, and the owners it did find still decide.
- veda's config still leaves the rule on trial. The next State under #588 sets it to refuse.
- When rule
- Also between
v0.8.7andv0.8.9:
Checked locally, with this worktree's install of the pin, on today's main:
pnpm install --frozen-lockfiletakes the lockfile as it is.pnpm checkdid not finish here, so CI's "Typecheck, test, build" is the judge.- The first run failed because dvara's suite left temp folders behind.
- The second failed because dvara's supervisor tests timed out at 5 s, with the load average near 150.
- dvara's check passes on its own, and this pull request touches nothing in dvara.
- Lint,
test:scriptsandguardsdid not run insidepnpm check; pre-push ranscripts/guards.sh.
.tmp/probe-588.tssent crafted PreToolUse events throughbash .claude/hooks/sarathi.sh PreToolUse.CLAUDE_PROJECT_DIRwas set to the worktree, with this session's ownCLAUDE_CODE_HOST_SESSION_ID, and the refusal log was off. The results are the same as 0.8.7's:
| Event | Result |
|---|---|
Bash touch or Write, cwd in another live session's worktree (confident-herschel-f502fc), this session's session_id | exit 0, the trial warning with the cd back |
the same with ls, a wrong or missing session_id, or no CLAUDE_CODE_HOST_SESSION_ID | exit 0, silent |
| own worktree, or a worktree no live record names | exit 0, silent |
After merge: Alok pulls main in the main checkout and runs pnpm install there, both at once. From the pull until the install, sarathi.sh refuses every PreToolUse call in every live session, because the installed sarathi differs from the pin. SessionStart's own install helps only sessions that start later.
🤖 Generated with Claude Code
Summary by cubic
Bumps the root pin of @veda-hq/sarathi from 0.8.7 to 0.8.9 (pulling in @veda-hq/kavach 0.8.9) and updates the lockfile so veda's hooks run the latest rules from #594.
Behavior changes: when rule other-sessions-worktree's scan of the desktop app's records fails, or skips a record it cannot read, the refusal log gets a row with mode scan-failed and the call is let through. The rule stays on trial; a follow-up flips it to refuse. sarathi where is also now available, and a JSON catch in sarathi's CLI fails open.
Rollout: after merge, the main checkout must pull main and run pnpm install; until then the installed sarathi differs from the pin and sarathi.sh refuses every PreToolUse call in live sessions.