šŸ”§ chore(lint): sarathi cli.ts's JSON catch is marked fail-open; its suppression drops to 4

Merged
AT
5d ago
+2-2

The hook command's JSON catch in packages/sarathi/src/cli.ts is marked // fail-open:, and the swallowed-catch suppression for that file drops from 5 to 4.

  • The catch leaves input that is not JSON undefined, and the check right after it refuses that input, so carrying on is correct (shuddhi's ERR-01). https://github.com/veda-hq/veda/pull/432 kept a plain comment there so it would not touch eslint-suppressions.json.
  • The change to cli.ts is comment-only, so the mutation gate judges nothing.
  • eslint-suppressions.json is code-owned, so this waits for Alok's approving review. pnpm lint is green with the count at 4.

Slice: #454

šŸ¤– Generated with Claude Code


Summary by cubic

Marks the JSON catch in packages/sarathi/src/cli.ts as fail-open and drops its swallowed-catch suppression count in eslint-suppressions.json from 5 to 4.

The catch leaves non-JSON input as undefined, and the check immediately after it rejects that input, so continuing after the catch is correct (shuddhi's ERR-01). The change to cli.ts is comment-only, so the mutation gate is unaffected. pnpm lint passes with the updated count.