- One JSON access-log line per API response (request id, action, status,
duration, tenant/principal; never bodies, queries or keys); ApiAccessLog
setting turns it off
- A caller's X-Request-Id (8-64 safe chars) is kept for correlation
- GET /api/v1/metrics: Prometheus text with request counters and a latency
histogram per action, plus memory/candidate/job/embedding/retrieval/feedback
counts; needs AMK_METRICS_TOKEN (compose .env), 404 while unset
- scripts/ops.sh: migrate/provision/embed/backup/verify/restore on Linux
- AGENTS.md: the knowledge base lives on the production server; the local
container is for tests only
- Tests: observability.sh (25); all eight suites pass
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>