🔧 chore(deps): veda's hooks run sarathi 0.8.9, with kavach 0.8.9

Merged
AT
3d ago
+10-10

Slice: #588
State: #603

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 with mode scan-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.
  • Also between v0.8.7 and v0.8.9:
    • #587 adds sarathi where.
    • #458 marks a JSON catch in sarathi's cli.ts fail-open.
    • The mutation sweeps' source rewrites in sarathi (#568, #571, #574, #580, #582) and in kavach's rule-checks TypeScript (#563) are meant to change no behaviour.

Checked locally, with this worktree's install of the pin, on today's main:

  • pnpm install --frozen-lockfile takes the lockfile as it is.
  • pnpm check did 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:scripts and guards did not run inside pnpm check; pre-push ran scripts/guards.sh.
  • .tmp/probe-588.ts sent crafted PreToolUse events through bash .claude/hooks/sarathi.sh PreToolUse. CLAUDE_PROJECT_DIR was set to the worktree, with this session's own CLAUDE_CODE_HOST_SESSION_ID, and the refusal log was off. The results are the same as 0.8.7's:
EventResult
Bash touch or Write, cwd in another live session's worktree (confident-herschel-f502fc), this session's session_idexit 0, the trial warning with the cd back
the same with ls, a wrong or missing session_id, or no CLAUDE_CODE_HOST_SESSION_IDexit 0, silent
own worktree, or a worktree no live record namesexit 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.