Every future case should be small, reproducible, and focused on one backend failure mode.
Each case must have a globally unique ID.
Rules:
- ID format:
BFL-0001. BFLmeansBackend Failure Lab.- The ID must not encode the category.
- Do not use category-prefixed IDs such as
SA-0001,PS-0001, orDB-0001. - The ID must not change after publication.
- The folder name should use the format
BFL-0001-short-kebab-case-title. - The primary category is stored in
case.yaml.
Example:
cases/security-auth/BFL-0001-user-can-read-another-users-order/
A case can start as a GitHub issue using the Failure Case Proposal template.
Before becoming a full case, it should be checked for:
- clear failure mode;
- realistic production scenario;
- reproducible broken scenario;
- difference from existing cases;
- possible failing test;
- possible fix or pattern.
A short overview of the failure mode and why it matters.
The case ID, category, level, technologies, failure modes, patterns, and status. At minimum, include ID, Category, Level, Technologies, and Status. Use TAGS.md for the accepted Category and Level values.
What is broken and why the failure matters.
The real-world conditions that make the issue likely.
The user-facing or system-facing behavior that demonstrates the bug.
The intentionally broken code used for the exercise.
The specific boundary, component, or code path where the failure is introduced.
The testing, logging, or review strategy that exposes the failure clearly.
A test that reproduces the failure clearly.
The reasoning process used to identify the root cause.
The corrected code.
The commands needed to run the broken and fixed versions of the case.
The key directories or files included in the case.
Operational notes, monitoring hints, deployment concerns, and follow-up checks.
What the fix improves and what costs or limitations it introduces.
These sections can be added when they make the case more useful, but they are not required for every case.
Ideas for making the case deeper without expanding the core exercise.
Why this failure mode is worth teaching.
How the issue or fix changes under higher traffic, larger data volume, or distributed execution.