From c67f2b14c404a792c4c45b560126a74a80e239f9 Mon Sep 17 00:00:00 2001 From: alvis Date: Wed, 6 May 2026 07:45:40 +0000 Subject: [PATCH] docs: update CLAUDE.md with #61 completion and feature test patterns Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a8d0109..916fcdb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -66,7 +66,9 @@ docs/ architecture notes, ADRs, API specs - ADRs go in `docs/adr/NNNN-title.md` for any decision that constrains future work. - No secrets in repo. Local dev via `.env.local` (gitignored), prod via the server's secret store (Vaultwarden now; k8s secrets later). - Compose profiles: `core` (api + web + admin), `full` (adds ml-serving), `mlops` (adds MLflow), `ai` (adds Ollama + LiteLLM). Mix as needed. -- Run Python agent tests from repo root: `python3 -m pytest ml/agents/tests/ -x -q` (tests add repo root to `sys.path` themselves). +- Run Python agent tests: `python3 -m pytest ml/agents/tests/ -x -q` (tests add repo root to `sys.path` themselves). +- Run Python feature tests: `python3 -m pytest ml/features/ -x -q` +- `ml/features/` files are Python mirrors of TS registries — TS is source of truth. Tests parse `registry.ts` with regex to detect drift; follow the same pattern whenever a new field is added to `ProfileFeature`. ## Definition of done (per feature) @@ -113,8 +115,9 @@ Recent completions: - Rich per-agent inference for all four active agents (#112, #114, #115, #116) — 2026-05-06: quiet/peak hours (time-of-day), z-score baseline (momentum), p50 lateness + project realness (overdue-task), adaptive lookback + weekly/daily cycles (recent-patterns) - Semantic task clustering via nomic-embed-text + focus-area preferred_areas inference (#97, #113) — 2026-05-06: `ml/agents/clustering.py`, focus-area v2.0.0 -Active work (M2): -- Per-user feature freshness SLAs (#61, ADR-0011 phase B) +- Per-user feature freshness SLAs (#61) — 2026-05-06: `invalidated_by` mirrored into `ProfileFeature`; drift-detection test added + +Active work (M2): *(all M2 items complete — see README for M3 planning)* ## ADR-0014 endpoint map (as of step 6)