[codex] Enforce Effect error handling conventions#3380
Conversation
Co-authored-by: codex <codex@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Needs human review Changes to Macroscope configuration files ( You can customize Macroscope's approvability policy. Learn more. |
Co-authored-by: codex <codex@users.noreply.github.com>
Co-authored-by: codex <codex@users.noreply.github.com>
Summary
Effect.catchTagsfor statically known tagged failures while preserving exhaustive and structural catch exceptionsValidation
pnpm vp checkpnpm vp run typecheckNote
Low Risk
Documentation-only change to CI check-run agent guidelines; no runtime or production code paths are modified.
Overview
Updates the Effect Service Conventions Macroscope check-run agent (
.macroscope/check-run-agents/effect-service-conventions.md) so automated reviews enforce stricter error-handling patterns—no application code changes.The Errors and predicates section gains guidance on bounded, safe error/log fields (no raw secrets or wire payloads in
message/detail), pass-through of structured domain errors at translation boundaries, mandatoryEffect.catchTagsfor known tagged failures (instead ofcatchTag/ predicatecatchIf), rejection of trivial error constructor helpers, and preferring static factories on target error classes for reusable mappings.The agent model is switched from
claude-opus-4-8toclaude-opus-4-7.Reviewed by Cursor Bugbot for commit 69ab586. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Enforce Effect error handling conventions in codex guidelines
Updates effect-service-conventions.md with additional rules in the Errors and predicates section:
Effect.catchTagsovercatchIf/catchTagfor handling known tagged failuresMacroscope summarized 69ab586.