session-memory Phase 2: Solution Pattern schema (T01)

Curate package scaffold + flavor-agnostic SolutionPattern artifact with
separate per-flavor rendering hints (OQ4): Resolution/Scope/Provenance
sub-records, stable source-key id, semver bump helper, deterministic
round-trip serialization. 7 new tests; suite 47/47 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 00:16:46 +02:00
parent 43d76b5cf8
commit 5f810a6992
4 changed files with 409 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
"""Curate phase (PRD §6.3) — review candidate patterns into versioned Solution
Patterns held in an in-repo Pattern Catalog.
Layout mirrors ``detect/``:
schema.py Solution Pattern artifact + per-flavor rendering hints (T01)
catalog.py versioned, files-first catalog store (T02)
review.py discuss/approve/reject -> promote workflow (T03)
__main__.py `python -m session_memory.curate` entrypoint (T06)
"""