Skip to content

feat: v0.2.0 delegation resilience (caching, retry+fallback, custom prompt, inline switch) - #1

Merged
rz1989s merged 10 commits into
mainfrom
feat/v0.2.0-delegation-resilience
Jul 9, 2026
Merged

rz1989s merged 10 commits into
mainfrom
feat/v0.2.0-delegation-resilience

Conversation

@rz1989s

@rz1989s rz1989s commented Jul 9, 2026

Copy link
Copy Markdown
Member

v0.2.0 — Delegation Resilience

Closes PRD gaps #2#5. Builds on the v0.1.0 capability-aware core with four DELEGATE-mode resilience layers. SPEC-2 + PLAN-2 in the strategy vault.

What's new

Changes

  • lib/image.tssourceHash (sha256 of original bytes) on ImageLoadResult
  • lib/cache.ts — NEW: VisionCache (memory Map + optional disk LRU), cacheKey
  • lib/resilience.ts — NEW: withRetry, sleep (abort-aware), classifyError, AbortError
  • lib/config.ts — 8 new fields (forward-compatible — v0.1.0 config loads as-is)
  • lib/delegate.ts — cache lookup before call, system prompt, retry+fallback pipeline, abort-aware
  • extensions/vision.ts — 7 new panel rows, 5 new /vision subcommands, /vision-use, alt+shift+v

Verification

  • 154 tests pass (was 92) — pnpm typecheck clean
  • T11 cache hit = 0 calls ✅, T16 system prompt ✅, T18 retry on 500 ✅, T20 4xx→fallback ✅, T24/T25 hotkey + /vision-use
  • v0.1.0 regression: SPEC-1 T1–T10 still green
  • Tarball clean (tests excluded; 26KB packed)
  • Clean-room; no AI attribution

After merge: git tag v0.2.0 → CI auto-publishes @getpipher/vision@0.2.0.

@rz1989s
rz1989s merged commit 149db69 into main Jul 9, 2026
2 checks passed
@rz1989s
rz1989s deleted the feat/v0.2.0-delegation-resilience branch July 9, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant