Merge feature/graphify-threshold-banner into develop

This commit is contained in:
bastien
2026-09-24 13:24:52 +02:00
10 changed files with 161 additions and 4 deletions
+19
View File
@@ -6,6 +6,25 @@
pending). Dropped on purpose: release-candidate / audit-delta /
init-project+onboard routing lines. Vocabulary diff audited: no rule lost.
make test unchanged, banner clean, doctor 0 errors. BDR-098. UNMERGED.
## 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