- POST /exports: canonical agent-memory-export document (schema_version 1,
sha256 digest over data), filtered by read permission; POST /imports keeps
ids, revisions, timestamps and provenance, rebuilds derived data, and is
all-or-nothing (409 conflict, 422 format/schema/integrity, 413 over 8 MiB)
- JsonLite: RegExp tokenizer; Api_Utf8Decode works on byte runs (builtins cost
time proportional to string length, per-character loops timed out)
- scripts/backup.cmd (VACUUM INTO + integrity/foreign key/row-count checks),
scripts/restore.cmd; restore drill into an isolated container
- Tests: phase3-portability.sh (44), backup-restore.sh (21); docs and OpenAPI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ApiLearningController: POST/GET /sessions/:id/events, POST /learn, GET /candidates[/:id],
POST /candidates/:id/review (verify permission, no self-approval without admin, stale
revision proposals 409, duplicates reuse the memory), GET /memories/:id/sources (evidence
the caller cannot read is shown without its id), POST /feedback.
- core/lib.Learning.asp: evidence validation and pinning, shared memory writes, telemetry.
Recall, search and context record the query_id they return and each result revision.
- Migration for experiences, learning_candidates, evidence_links, retrieval_queries,
retrieval_results and feedback; forget and provision purge remove the linked rows.
- Readiness reports degraded plus the embedding backlog; embed-worker container retries
pending items every 30 s.
- tests/phase3-learning.sh (85 checks); OpenAPI, README and AGENTS.md updated.
- scripts/kb.sh: use this repo's own knowledge base (keys in git-ignored .amk.env).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add docker-compose.yml serving public/ on 8801 (mounts core, app, db)
- Include mvc.asp last in autoload_core so class methods can see
GetRouter()/Flash()
- Dispatch controllers through per-controller Invoke + <Name>_Invoke
(GetRef) entry points instead of runtime Eval/Execute, which doubled
output and bound a shared call site to the first controller
- Update generateController.vbs and Api.tpl.asp to emit Invoke
- Ignore UPSTREAM-TODO.txt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>