feat: add learner memory ingestion

This commit is contained in:
user
2026-04-26 16:34:52 +09:00
parent 4a4240fea2
commit 600acf7303
23 changed files with 931 additions and 24 deletions

View File

@@ -0,0 +1,36 @@
# Phase 3 Summary
**Status:** Complete
**Completed:** 2026-04-26
## Delivered
- Added `internal/learnermemory` for profile, concept mastery,
misconceptions, interventions, review schedule, and snapshots.
- Added in-memory learner memory store and service.
- Extended `GradedAnswer` with `user_id`.
- Implemented `ExtractLearningMemory` in the workflow stub.
- Wired diagnostic answer submission to memory extraction and evidence-backed
memory application.
- Added `GET /api/v1/learners/{userID}/memory`.
- Added unit and HTTP tests for memory application and readback.
## Verification
```powershell
gofmt -w cmd internal
go test ./...
openspec validate bootstrap-job-tutor-platform --strict
```
Additional smoke check:
- Diagnostic create/answer followed by learner memory read returned 1 mastery
entry for `user-1`.
## Deferred
- Durable database persistence.
- Memory decay and ranking.
- Repeated-mistake clustering beyond the current evidenced candidate writes.
- Progression readiness map UI/API.