chore(memory): BDR-097 graphify threshold, LRN-162 graphify measurements, journal + TODO 2026-09-24

This commit is contained in:
bastien
2026-09-24 12:12:16 +02:00
parent c81b1731af
commit 566fcfe1ec
4 changed files with 36 additions and 0 deletions
+20
View File
@@ -1,5 +1,25 @@
# TODO
## 2026-09-24 — graphify threshold signal: inform from 200 code files, user decides (feature/graphify-threshold-banner)
User: "graphify seulement à partir de 200 fichiers de code… tu informes, je décide".
Grounded in LRN-162 measurements (robin_petier scratch copy: AST 2.3 s, 0 tokens,
query 2-3k tokens, `.claude/` noise). Alternatives rejected in BDR-097.
- [x] G1 `lib/graphify-gate.sh`: tracked code-file count (AST extension set,
vendored trees excluded), ≥ 200 + no graph → one banner-sized line, rc 0;
silent rc 1 otherwise. `GRAPHIFY_MIN_CODE_FILES` override.
- [x] G2 `lib/tests/graphify-gate.test.sh` 11 checks: not-a-repo, 199/200,
graph present, vendored, untracked, override, subdirectory, non-code.
- [x] G3 `hooks/session-start.sh`: compute after the gitflow reconcile, print
after the hooks-refreshed line: `🕸️ graphify? N code files ≥ 200, no graph`
+ `→ /graphify (AST, seconds) — you decide`.
- [x] G4 doctrine: CLAUDE.global.md § graphify threshold sentence; plugin-advisor
thresholds no longer pre-enable graphify; CHANGELOG.
- [x] G5 BDR-097, LRN-162, journal. shellcheck clean. Live: this repo silent (74),
robin_petier fires (214). UNMERGED — human gate.
Pilot (not started, user's call): robin_petier graph + `.graphifyignore` +
gitignore `graphify-out/` + `GRAPHIFY_FORCE=1 graphify update .` in the
gitflow post-commit hook when a graph exists.
## 2026-09-24 — branch deletion guard: never main/develop, never unmerged (feature/branch-delete-guard)
User rule (after the 21/09 wipe, same family as BDR-095): auto-delete of a branch
is accepted ONLY once it is merged into develop or main; main and develop are