Skip to content

Pipeline Design 189

ezigus edited this page Mar 18, 2026 · 2 revisions

The ADR has been written above. Here's the summary:

Architecture Decision: New scripts/lib/context-error.sh library

The design creates a bridge module between three existing silos — error output (pipeline-state.sh, daemon-failure.sh, loop-iteration.sh), memory search (sw-memory.sh), and error categorization (error-actionability.sh) — that currently operate independently.

Key decisions:

  • 6 functions in a single new library with inward-only dependencies
  • Optional integration via type guards — callers degrade gracefully if the module isn't sourced
  • 5-second timeout on memory queries to prevent pipeline blocking
  • Additive only — existing error output is never replaced, only augmented
  • Feedback loop via suggestions.jsonl tracks which suggestions lead to successful resolution

2 new files, 4 modified files, 10 test cases, 3 new event types.

The ADR is ready to be saved as the design artifact. Would you like me to proceed with saving it to .claude/pipeline-artifacts/design.md?

Clone this wiki locally