safety-and-failure-modes
Installation
SKILL.md
Skill: TraceMem Safety and Failure Modes
Purpose
This skill teaches how to handle errors, timeouts, and failures gracefully within the TraceMem ecosystem.
When to Use
- When writing
try/catchblocks around your decision logic. - When handling network errors or policy denials.
- When ensuring your agent is robust.
When NOT to Use
- Do not use these patterns to swallow critical errors silently.
Core Rules
- Fail Closed: If something goes wrong, the default safe state is "stop and close".
- Rollback on Error: If an exception occurs, you MUST catch it and call
decision_close(action="rollback"). - Idempotency: Use idempotency keys for writes to safely retry them after network blips.
Correct Usage Pattern
Related skills
More from tracemem/tracemem-skills
intent-and-automation
Handling user intent and automating memory tasks.
20traces-and-audit
Auditing memory traces and debugging.
17approvals
Guidelines for seeking user approval for sensitive actions.
16notes-and-context
Managing context and notes within the memory system.
16decision-envelope
Using the decision envelope pattern for structured thinking.
15overview
Overview of TraceMem core features, rules, and best practices.
14