You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A .env.example file should be provided for reference and any new secrets should
49
-
be added to it.
50
-
51
-
- The implementation should use the dotenv (or similar) library to load environment
52
-
variables from .env files.
53
-
54
-
- Variables should also be loaded from the environment.
55
-
56
-
'
57
-
- display_name: Error Handling
58
-
slug: error-handling
59
-
content: '### Error Handling
60
-
61
-
62
-
**Core Principle**: We need to intelligently decide when to fail hard and fast
63
-
to quickly address issues, and when to allow processes to complete in critical
64
-
services despite failures. Read below carefully and make intelligent decisions
65
-
on a case-by-case basis.
66
-
67
-
79
+
- A .env.example file should be provided for reference and any new secrets should be added to it
80
+
- The implementation should use the dotenv (or similar) library to load environment variables from .env files
81
+
- Variables should also be loaded from the environment
82
+
83
+
error-handling:
84
+
display_name: Error Handling
85
+
type: ruleset
86
+
author: Engineering Team
87
+
tags: ["errors", "exceptions", "reliability"]
88
+
namespace: "development"
89
+
children:
90
+
- "fail-fast-principle"
91
+
- "when-to-fail-fast"
92
+
- "when-to-log-continue"
93
+
94
+
fail-fast-principle:
95
+
display_name: Fail Fast Principle
96
+
type: rule
97
+
author: Engineering Team
98
+
tags: ["architecture", "errors"]
99
+
namespace: "development"
100
+
content: |
101
+
**Core Principle**: We need to intelligently decide when to fail hard and fast to quickly address issues, and when to allow processes to complete in critical services despite failures. Read below carefully and make intelligent decisions on a case-by-case basis.
102
+
103
+
when-to-fail-fast:
104
+
display_name: When to Fail Fast and Loud
105
+
type: rule
106
+
author: Engineering Team
107
+
tags: ["exceptions", "errors"]
108
+
namespace: "development"
109
+
content: |
68
110
#### When to Fail Fast and Loud (Let it Crash!)
69
-
70
-
111
+
71
112
These errors should stop execution and bubble up immediately:
72
-
73
-
74
-
- **Service startup failures** - If credentials, database, or any service can''t
75
-
initialize, the system should crash with a clear error
76
-
77
-
- **Missing configuration** - Missing environment variables or invalid settings
0 commit comments