parcadei avatar

Idempotent Redundancy

When you're building fallback paths or redundant systems, you need them to be safe to run multiple times without causing loops or corruption. This pattern is about making those safety nets idempotent. Check if a value exists before writing it in your fallback, use atomic operations for files, pass flags like `_is_merge: true` when updating data stores. The alternative is repair actions that trigger more repairs, or multiple code paths stomping on each other's writes. It's one of those things that seems obvious after you've debugged a reconciliation loop at 2am, but easy to miss when you're just trying to add redundancy.

skills.sh installs
491
GitHub stars
3.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill idempotent-redundancy --agent claude-code

Installs into .claude/skills of the current project.

Files

Idempotent Redundancy

When adding redundant paths (fallbacks, belt-and-suspenders), make them idempotent.

Pattern

Redundancy without idempotency causes loops, churn, or data corruption.

DO

  • Use _is_merge: true for Braintrust updates
  • Check if value exists before writing (fallback only if missing)
  • Use atomic write/rename for file operations
  • Make reconciliation steps safe to run repeatedly

DON'T

  • Write unconditionally in fallback paths
  • Allow multiple writers to overwrite each other
  • Fire "repair" actions that can trigger more repairs

Source Sessions

  • a541f08a: "Redundancy is good only if idempotent"
  • 1c21e6c8: "Belt-and-suspenders, but make it idempotent"
  • 6a9f2d7a: "Idempotent repair hooks"

Sponsors

Details

Repository
github.com/parcadei/continuous-claude-v3
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs