From f2443cc236f9523f676811a6a7264d6bc3bc5ee6 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Wed, 18 Mar 2026 22:41:00 +0100 Subject: [PATCH] =?UTF-8?q?fix(template):=20session-brain.yml=20+=20patch?= =?UTF-8?q?=20fuite=20ADR-031=20=E2=80=94=20audit=20final=20z=C3=A9ro=20fu?= =?UTF-8?q?ite?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contexts/session-brain.yml | 48 +++++++++++++++++++ .../decisions/adr-031-distribution-model.md | 4 +- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 contexts/session-brain.yml diff --git a/contexts/session-brain.yml b/contexts/session-brain.yml new file mode 100644 index 0000000..1af0bb9 --- /dev/null +++ b/contexts/session-brain.yml @@ -0,0 +1,48 @@ +# session-brain.yml — Contexte BHP pour sessions brain/kernel +# Trigger : "brain boot mode brain" +# Cible : ~22% contexte max au boot + +session_type: brain +description: "Session de travail sur le brain — agents, todo, focus, scribe. PAS le kernel." +tier_required: free # brain = couche applicative — agents fondamentaux suffisent +# Kernel (KERNEL.md, CLAUDE.md, brain-constitution) → session-kernel (lecture) ou session-edit-brain (write) + +# L0 — Invariant (~5%) +L0: + - PATHS.md + - brain-compose.local.yml + - KERNEL.md + +# L1 — Session type (~10%) — tier free +L1: + - now.md # bridge session précédente — état, décisions, fix en attente + - focus.md # direction actuelle brain + - BRAIN-INDEX.md # état global claims, projets, signaux + - todo/brain.md # todos kernel actifs + - agents/coach-boot.md # garde comportemental kernel (free) + - agents/brain-guardian.md # auto-méfiance structurelle — assertions prouvées uniquement + - agents/scribe.md # mise à jour brain après session significative + +# L1_pro — coach complet pour sessions brain architecturales +L1_pro: + - agents/coach.md # coach complet byTask — gardien kernel, gate décisions + +# L2 — Project scope (~5%) +L2: + template: null + extras: + - wiki/concepts.md # vocabulaire + patterns kernel + fallback: null + +# L3 — On demand +# agents/orchestrator.md, agents/bsi-schema.md, wiki/multi-instance.md, +# wiki/context-loading.md, scripts détaillés, brain-template/README.md +L3: + hint: "Charger à la demande : orchestrator, bsi-schema, multi-instance, context-loading, scripts" + +# --- Métriques cibles --- +context_target: + L0: "~5%" + L1: "~15%" + L2: "~5%" + total_boot: "~22%" diff --git a/profil/decisions/adr-031-distribution-model.md b/profil/decisions/adr-031-distribution-model.md index b1a958d..b6b6618 100644 --- a/profil/decisions/adr-031-distribution-model.md +++ b/profil/decisions/adr-031-distribution-model.md @@ -15,8 +15,8 @@ Deux modèles de distribution validés, séquencés dans le temps. - Distribuer brain-template - Les utilisateurs self-hostent leur brain-engine sur leur propre VPS - Chacun embed ses propres fichiers → son propre brain.db → son propre MCP -- Coût infra pour Tetardtek : zéro supplémentaire -- Rôle Tetardtek : maintenir le kernel + distribuer le template +- Coût infra pour l'owner : zéro supplémentaire +- Rôle de l'owner : maintenir le kernel + distribuer le template **Modèle B — Hébergé multi-tenant (moyen/long terme)** - brain-store avec sharding par utilisateur (brain.db isolé par clé)