Chaim
14ab7b0cae
G12 Leak-Guard / leak-guard (pull_request) Successful in 4s
Lint — undefined names / undefined-names (pull_request) Successful in 10s
feat(learning): lesson synthesis — merge overlapping lessons into richer super-lessons (#158 / INV-LRN8)
הפתרון-האמיתי לחיתוך-השקט limit=15 (#157): במקום ערימת לקחים גולמיים חופפים, ממזגים
לקחי-סגנון דומים ל"לקח-על" אחד עשיר ומוכלל — הסט שזורם לכותב קטֵן ומשתבח (Authorial
Style Profiling). מחקה את סינתזת-הקנוני (V41/INV-LRN6) על אותה טבלה (G2, אין מאגר-מקביל).
מנגנון (services/lesson_synthesis.py, מסלול-יחיד):
- אשכול greedy לפי cosine (LESSON_SYNTH_CLUSTER_THRESHOLD) בתוך shard practice_area+category.
- מיזוג ע"י claude_session מעוגן-מקור (INV-AH, סגנון-בלבד INV-LRN5, abstain) + שער-drift
(cosine מול centroid ≥ LESSON_SYNTH_DRIFT_FLOOR).
- לקח-על נכתב source='synthesis' + synthesized_from; המקורות→review_status='superseded'.
- שער מדורג-הפיך (הכרעת-יו"ר): מקורות approved → לקח-על approved (זורם), veto-יו"ר משחזר
את המקורות (db.revert_lesson_synthesis, מחובר ל-PATCH lessons).
- idempotency: lookup-cosine מול synthesis קיים לפני INSERT.
נגזרות: SCHEMA_V46 (embedding vector(1024) + synthesized_from + ivfflat); כלי-MCP
lesson_synthesize_pending; scripts/backfill_lesson_synthesis.py (--dry-run/--apply, audit CSV);
config LESSON_SYNTH_*; spec INV-LRN8; SCRIPTS.md.
get_recent_decision_lessons ללא שינוי — superseded יוצא (מסנן approved), synthesis נכנס.
UI badges (synthesis/superseded) נדחים לשער-העיצוב (מוגנים ב-fallback, ללא קריסה).
בדיקות: py_compile ✓ · leak-guard G12 ✓ · smoke-test טהור לאשכול/cosine/centroid ✓.
אימות functional מלא (dry-run מול DB+voyage+claude CLI) — בהוסט אחרי-deploy, כמו V41.
Invariants: G2 (מסלול-יחיד, אותה טבלה), INV-AH (עיגון+drift), INV-LRN1/G10 (שער מדורג-הפיך),
INV-LRN5 (סגנון-בלבד), INV-LRN8 (חדש). depends-on #157/#159.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 22:24:42 +00:00
..
2026-05-26 08:34:40 +00:00
2026-06-27 12:49:32 +00:00
2026-06-11 17:54:16 +00:00
2026-05-04 06:38:47 +00:00
2026-04-12 23:29:16 +00:00
2026-06-28 22:24:42 +00:00
2026-06-27 12:49:32 +00:00
2026-05-17 12:57:54 +00:00
2026-06-09 17:05:33 +00:00
2026-05-03 18:43:41 +00:00
2026-04-04 14:19:17 +00:00
2026-06-14 13:46:26 +00:00
2026-04-30 14:54:21 +00:00
2026-04-04 14:19:17 +00:00
2026-04-12 23:29:16 +00:00
2026-06-08 06:02:02 +00:00
2026-04-28 16:41:25 +00:00
2026-04-28 16:41:25 +00:00
2026-04-28 16:41:25 +00:00
2026-05-17 16:29:58 +00:00
2026-04-27 07:26:45 +00:00
2026-05-17 16:29:58 +00:00
2026-06-06 19:23:29 +00:00
2026-04-09 14:33:27 +00:00
2026-04-12 23:29:16 +00:00
2026-04-12 23:29:16 +00:00
2026-04-12 23:29:16 +00:00
2026-06-03 12:30:38 +00:00
2026-06-11 20:19:18 +00:00
2026-06-06 20:54:31 +00:00
2026-06-20 10:11:18 +00:00
2026-04-04 14:27:07 +00:00
2026-04-04 14:27:07 +00:00
2026-04-15 10:44:42 +00:00
2026-06-08 09:14:52 +00:00
2026-06-17 04:59:36 +00:00
2026-04-04 14:19:17 +00:00
2026-04-26 19:38:17 +00:00
2026-05-03 20:16:13 +00:00