Daniel Covington
a0ff4115e5
Phase 2: document ingestion, chunking with locators, lexical search, recall and verification
Adds ApiDocumentsController, core/lib.Search.asp (class-based chunker, FTS5 indexing),
POST /recall and /memories/:id/verifications, the documents/search migration, purge
coverage for the new tables, OpenAPI spec and tests/phase2-api.sh.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 день назад
Daniel Covington
87009ec861
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>
1 день назад