← ClaudeAtlas

kintsugi-reliabilitylisted

Focused reliability anti-patterns and verified code templates compiled by Kintsugi Harness.
tunguyen1993/kintsugi-harness · ★ 0 · AI & Automation · score 73
Install: claude install-skill tunguyen1993/kintsugi-harness
# kintsugi-reliability (`@KML/1` Machine-Native AST-IR) ```bash kintsugi scan --staged --fail-on HIGH ``` ## `@KML/1` Symbolic Guardrail Specifications (`NEG_AST => POS_AST`) ### `KS-005` · `Silent exception swallowing (bare except or except-pass)` - `@WIRE`: `@KML/1|id=KS-005|sev=H|cat=reliability|lang=py|op=py!bare_except_pass->log_raise|guard=AST:py_silent_except_swallow|neg=«try: ; sync_records() ; except Exception: ; pass»|pos=«try: ; sync_records() ; except ConnectionError as exc: ; logger.warning('Transient sync fa»|fp=110ea00c5093d1c6` - `@TRAP`: `Agents wrap failing blocks in bare `except:` or `except Exception: pass` to make tests turn green while hiding real data corruption or network failures.` - `@LAW`: `Preserves KeyboardInterrupt/SystemExit propagation and forces explicit failure handling.` `@NEG_AST` (`❌ FORBIDDEN`): ```python try: sync_records() except Exception: pass ``` `@POS_AST` (`✅ REQUIRED`): ```python try: sync_records() except ConnectionError as exc: logger.warning('Transient sync failure: %s', exc) raise ``` ### `KS-008` · `Unbounded synchronous HTTP call missing explicit timeout` - `@WIRE`: `@KML/1|id=KS-008|sev=H|cat=reliability|lang=py|op=http!no_timeout->timeout=10|guard=AST:py_http_missing_timeout|neg=«import urllib.request ; resp = urllib.request.urlopen("https://example.com/api/health")»|pos=«import urllib.request ; resp = urllib.request.urlopen("https://example.com/api/health", ti»|fp=77bfd07f80230141` - `@TRAP`: `re