- 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>
- POST /ingestions accepts format "html": Html_ToMarkdown (core/lib.HtmlAdapter.asp)
drops scripts, styles, comments and navigation, keeps headings, lists, tables and
code blocks, decodes entities; title defaults to the page <title>. The job payload
and the stored document only ever hold Markdown; the response reports source_format.
- Nothing a page references is fetched. PDF is out of scope on this runtime (ADR-013).
- tests/phase4-html.sh (30 checks); kb.sh ingest picks html for .html/.htm files.
- AGENTS.md gotcha: the Windows checkout is case-insensitive, so a new lib.Html.asp
overwrote the framework's lib.HTML.asp (caught before commit and restored).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- POST /consolidations (ApiLearningController.Consolidate) with
core/lib.Consolidation.asp: deterministic word-overlap grouping (Jaccard,
>= 2 shared words, frequent words ignored), drafts built from the
experiences' own text, optional "propose" filing candidates that cite
the experiences; no duplicate proposals (ADR-012, AC-16).
- kb.sh: session, event, consolidate [propose].
- tests/phase3-consolidation.sh (42 checks); OpenAPI, README, AGENTS.md,
acceptance report and decisions updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ApiAdminController: GET /me; GET|POST /namespaces; GET|POST /principals,
GET|PATCH /principals/:id, POST /principals/:id/keys, DELETE /keys/:id;
GET|POST /grants, DELETE /grants/:id.
- Authorization from namespace grants (ADR-011): admin allows granting and
creating below; inherit needs inheriting admin; managing another
principal's keys/status needs admin over all of its grants, so a key
never widens the caller's access. Keys shown once, no-store.
- tests/admin-api.sh (91 checks incl. escalation and isolation attempts).
- OpenAPI, README, AGENTS.md, acceptance report updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- tests/retrieval-benchmark.sh: fixed corpus (30 memories, one handbook),
56 labelled queries (exact, paraphrase, none), hit@5 / MRR@10 / false
positive rate with semantic retrieval and with the provider stopped;
thresholds stored in tests/benchmark/fixtures.json (AC-04).
Hybrid: exact hit@5 1.00, paraphrase hit@5 0.875 (lexical 0.125),
no false positives, MRR 0.745 vs 0.420.
- docs/acceptance.md: AC-01..AC-18 mapped to automated checks and manual
verification, latest evidence, and what is not tested.
- docs/decisions.md: ADR-001..010 for the choices made in phases 1-3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>