- Import creates placeholder principals (status imported, no keys or grants)
for author ids unknown to the target installation, inside the transaction.
- backup.asp repair [apply] (backup.cmd / ops.sh): lists foreign key
violations; apply creates placeholders and deletes orphaned verifications.
- Errors raised inside /api actions answer a JSON 500 (detail only in
Development) and are logged as action_error; open transactions roll back.
- GetAppSetting honours APPSETTING_<key> environment overrides; compose
passes APPSETTING_Environment.
- api_keys.last_used_at update is best-effort (a read-only db no longer
turns valid keys into 401).
- Docs: never open the WAL database from the host; repair procedure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>