generated from coulomb/repo-seed
session-memory: weekly retro entrypoint + hub publish (AGENTIC-WP-0010)
The analysis half of the weekly coding retrospection. retro/build.py: windowed detect+measure -> top-3 improvement suggestions per repo (cross-flavor first, recommendations pulled from the Pattern Catalog) + fleet snapshot. retro/publish.py: publishes the report to the hub as the coding_retro read model (event_type= coding_retro progress event) + local JSON/md, graceful degrade. retro entrypoint with --window-days/--publish/--json. Live verify over real sessions surfaced per-repo suggestions with catalog recommendations. 13 new tests; suite 152/152. Consumed by activity-core ACTIVITY-WP-0008 (Weekly Coding Retrospection, Sat 19:00). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,9 @@ session_memory/
|
||||
measure/metrics.py # fleet metrics + persisted baseline snapshots
|
||||
measure/effect.py # before/after per-pattern effectiveness
|
||||
measure/__main__.py # python -m session_memory.measure
|
||||
retro/build.py # windowed top-3-per-repo suggestions
|
||||
retro/publish.py # hub coding_retro read model + local report
|
||||
retro/__main__.py # python -m session_memory.retro
|
||||
config.toml # store paths, retention caps, sources, repo->domain map, curate gate
|
||||
```
|
||||
|
||||
@@ -163,6 +166,24 @@ python -m session_memory.measure --no-save --json
|
||||
retired. Recorded pre-fix baseline (2026-06-07): 27 sessions, infra-overhead
|
||||
median 11.7 %, error rate 0.96, schema-thrash 8 sessions.
|
||||
|
||||
## Weekly retro (the input to the scheduled retrospection)
|
||||
|
||||
A windowed roll-up: detect + measure over the last N days → the **top-3
|
||||
improvement suggestions per repo** (cross-flavor first; recommendations pulled
|
||||
from the Pattern Catalog) → published to the hub as the `coding_retro` read model.
|
||||
|
||||
```bash
|
||||
python -m session_memory.retro # last 7 days, local report
|
||||
python -m session_memory.retro --window-days 30 --json
|
||||
python -m session_memory.retro --publish # also post coding_retro to the hub
|
||||
```
|
||||
|
||||
Writes `retro/last_retro.{json,md}` and (with `--publish`) posts an
|
||||
`event_type=coding_retro` progress event. This is consumed by activity-core's
|
||||
**Weekly Coding Retrospection** schedule (ACTIVITY-WP-0008, Saturday 19:00 Berlin),
|
||||
which emits one improvement task per relevant repo. Hub publish degrades
|
||||
gracefully when the hub is unreachable.
|
||||
|
||||
## Retention knobs (`[retention]` in config.toml)
|
||||
|
||||
| Key | Meaning |
|
||||
|
||||
Reference in New Issue
Block a user