Add Phase 1 memory API: auth, memories, sessions, health
- lib.Api.asp: bearer-key auth (SHA-256 only), namespace grants with
inheritance, audit trail, idempotency, JSON error format
- ApiMemoriesController: remember (duplicate detection), list with
cursor paging, fetch by revision, correct (If-Match), retire, forget,
versions
- ApiSessionsController: start, checkpoint save/restore with
If-Match concurrency, complete
- ApiHealthController: live/ready
- JsonLite: raw nested capture, string arrays, surrogate-pair escapes
- scripts/provision.*: tenants, principals, keys, namespaces, grants,
purge; CLI tools now run as the server user (db ownership)
- tests/phase1-api.sh: 71 checks incl. tenant isolation, permissions,
idempotency, checkpoints, UTF-8, restart persistence
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>