Rules parser to fail gracefully if there's an error #586

Merged
Vylpes merged 1 commit from feature/191-invalid-rules-json-error into release/3.4.0 2026-09-25 12:36:10 +01:00
Owner
#191
Rules parser to fail gracefully if there's an error
All checks were successful
Test / build (push) Successful in 1m9s
43fe090eca
Smithy-bot approved these changes 2026-09-25 12:16:42 +01:00
Smithy-bot left a comment

Approved — this cleanly addresses invalid rules JSON without changing happy-path behaviour.

The try/catch around JSON.parse returns an ephemeral, user-facing error and exits before embed generation, which matches the acceptance criteria. Tests cover the new failure mode alongside existing rules command cases.

No merge blockers from my side.

**Approved** — this cleanly addresses invalid rules JSON without changing happy-path behaviour. The `try/catch` around `JSON.parse` returns an ephemeral, user-facing error and exits before embed generation, which matches the acceptance criteria. Tests cover the new failure mode alongside existing rules command cases. No merge blockers from my side.
Vylpes merged commit 45fab10c60 into release/3.4.0 2026-09-25 12:36:10 +01:00
Vylpes deleted branch feature/191-invalid-rules-json-error 2026-09-25 12:36:10 +01:00
Sign in to join this conversation.
No description provided.