- Migration: entities and relationships tables; evidence_links rebuilt so
relationships can own evidence (rollback and re-apply keep every row).
- ApiGraphController (core/lib.Graph.asp): entity CRUD, POST /relate with
required evidence, validity window, confidence and inferred flag; review
like candidates (verify, no self-review without admin); list/fetch/delete;
POST /graph/traverse (BFS, depth <= 3, <= 100 nodes, accepted edges valid
now, retired memories skipped, truncated flag).
- Visibility: an edge exists for the caller only when its namespace and both
endpoints are readable (Graph_NodeVisibleSql), in lists, fetches,
traversal and exports alike.
- Forgetting a memory or deleting an entity deletes its edges; provision
purge covers the new tables; placeholder principals cover edge authors.
- Export schema version 2 with entities and relationships; version 1
documents still import.
- Evidence_Json moved to lib.Learning.asp for reuse.
- tests/phase4-graph.sh (89), portability suite updated (48); OpenAPI,
ADR-014, README, AGENTS.md, acceptance report.
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>