Skip to content

v0.6.1 — Production Audit & Bug Fix

Choose a tag to compare

@lacrous lacrous released this 23 Aug 05:38
· 15 commits to main since this release

v0.6.1 — Production Audit & Bug Fix

🐛 Bug Fixed

Router crash on invalid task type — passing an unknown string as task caused:

TypeError: Cannot read properties of undefined (reading 'reasoning')

Now gracefully falls back to TASK_WEIGHTS.general.

🧪 69 Production Audit Tests

Full adversarial test suite covering every phase of the audit spec:

Phase What was tested
Client Edge Cases Missing provider/model, empty messages, dispose
Router Destruction maxCost=0, exclude all, contradictory requirements
Scoring Audit NaN/Infinity checks, bounds, hard > soft
Structured Output Empty/null/BOM/escaped/nested JSON
Schema Safety Throwing validators, missing safeParse
Observability Listener errors don't break SDK
Concurrency 10 concurrent requests, state isolation
Security API key not in errors, injection
Fuzz Testing Extreme values, negative budgets
Policy Safety Independent copies (no mutation)
State Isolation Separate clients, provider removal

✅ Clean Install Verified

  • Package installs from tarball ✓
  • All imports resolve ✓
  • Zero runtime dependencies ✓
  • No test files shipped ✓

275 Tests Passing

69 new adversarial tests added (206 → 275 total).


Changelog: https://github.com/Hilbras/Hilbras-ai-sdk/blob/main/CHANGELOG.md