sync: kernel v0.8.0 → template

This commit is contained in:
2026-03-21 19:57:40 +01:00
parent 667e84aa30
commit e40e22c949
14 changed files with 346 additions and 40 deletions

View File

@@ -0,0 +1,45 @@
# session-capital.yml — Contexte BHP pour sessions capital professionnel
# Trigger : "brain boot mode capital"
# Focus : bilan, objectifs, CV, capital professionnel, progression long terme
# Cible : ~23% contexte max au boot
session_type: capital
description: "Session capital — bilan, objectifs, CV, capital professionnel"
tier_required: featured # coach.md complet + capital-scribe = tier featured (RAG + progression)
# L0 — Invariant (~5%)
L0:
- PATHS.md
- brain-compose.local.yml
- KERNEL.md
# L1 — Session type (~18%)
L1:
- now.md # bridge session précédente
- agents/coach.md # coach complet — bilan et cap stratégique (pas boot-summary)
- profil/objectifs.md # objectifs actifs + prochaines étapes
- profil/capital.md # preuves CV, milestones, capital accumulé
- progression/README.md # état métabolique + ratio sessions + tendances
# L2 — non applicable (capital = session introspective, pas de scope projet)
L2:
template: null
extras: []
fallback: null
# L3 — On demand
# progression/ détaillée, sessions passées, capital-scribe pour mise à jour capital.md
L3:
hint: "Charger à la demande : progression/ détaillée, sessions passées, capital-scribe"
# --- Note capital ---
# capital-scribe actif automatiquement si modification capital.md détectée en session.
# Pas de projets/ en L2 — le coaching capital est orthogonal aux projets actifs.
# session-coach = réflexion stratégique ; session-capital = capital pro + CV + milestones.
# --- Métriques cibles ---
context_target:
L0: "~5%"
L1: "~18%"
L2: "0%"
total_boot: "~23%"

View File

@@ -4,7 +4,7 @@
session_type: coach
description: "Session coaching — progression, réflexion, cap stratégique, clarté"
tier_required: pro # coaching complet (coach.md 365 lignes) = feature pro
tier_required: featured # coaching complet (coach.md) = tier featured (RAG + progression)
# L0 — Invariant (~5%)
L0:

View File

@@ -0,0 +1,46 @@
# session-deploy.yml — Contexte BHP pour sessions de déploiement
# Trigger : "brain boot mode deploy[/<project>]"
# Cible : ~25% contexte max au boot
session_type: deploy
description: "Session de déploiement — VPS, Docker, SSL, CI/CD, infra"
tier_required: pro # deploy = agents vps/ci-cd/monitoring (tous pro)
# L0 — Invariant (~5%)
L0:
- PATHS.md
- brain-compose.local.yml
- KERNEL.md
# L1 — Session type (~15%)
L1:
- now.md # état dernière session — ce qui a changé, ce qui est en attente
- focus.md # projets actifs — savoir quoi déployer
- agents/vps.md # VPS, Apache, Docker, SSL, vhost, certbot # tier: pro
- agents/ci-cd.md # pipelines, GitHub Actions, Gitea CI # tier: pro
- agents/monitoring.md # Kuma, alertes, logs post-déploiement # tier: pro
# L2 — Project scope (~8%) — optionnel sur projet déclaré
L2:
template: "projets/{project}.md"
extras:
- "todo/{project}.md"
fallback: null
# L3 — On demand
# Exemples : agents/security.md (audit pré-deploy), agents/mail.md (DNS/DKIM),
# agents/pm2.md, agents/migration.md, config spécifique
L3:
hint: "Charger à la demande : security pre-deploy, mail/DNS, pm2, migration schema"
# --- Règle deploy ---
# agents/security.md NOT en L1 par défaut — deploy ≠ audit sécurité.
# Charger si audit pré-déploiement explicitement demandé (→ session-audit).
# agents/monitoring.md en L1 : toujours vérifier les alertes après deploy.
# --- Métriques cibles ---
context_target:
L0: "~5%"
L1: "~12%"
L2: "~8%"
total_boot: "~25%"

View File

@@ -0,0 +1,52 @@
# session-handoff.yml — Contexte BHP pour sessions HANDOFF
# Trigger : "brain boot mode HANDOFF[/<handoff-id>]"
# Cible : ~15% contexte max au boot — minimum viable pour reprendre
session_type: HANDOFF
description: "Reprise d'une session via handoff — contexte minimal + fichier handoff cible"
tier_required: free # handoff = protocole BSI de base — disponible pour tous
# L0 — Invariant (~5%)
L0:
- PATHS.md
- brain-compose.local.yml
- KERNEL.md
# L1 — Session type (~8%) — chirurgical : seulement ce qu'il faut pour reprendre
L1:
- BRAIN-INDEX.md # trouver le handoff actif
# L2 — Handoff scope (~5%) — fichier handoff si déclaré dans le signal
# Signal : "HANDOFF/<handoff-id>" → charger le fichier handoff directement
L2:
template: "handoffs/{handoff_id}.md"
extras: []
fallback:
- handoffs/LATEST.md # si pas d'ID déclaré → dernier handoff
# L3 — On demand
# Exemples : context complet projet, agents métier, focus.md
# Principe : le fichier handoff CONTIENT les pointeurs vers L3.
# La nouvelle session lit le handoff → décide elle-même quoi charger.
L3:
hint: "Lire le handoff d'abord. Il indique quoi charger en L3."
# --- Règle HANDOFF ---
# Le handoff est la source de vérité pour la reprise.
# Ne pas charger focus.md, metabolism, agents au boot — le handoff décide.
# Après lecture du handoff → promouvoir le contexte nécessaire en L2 implicite.
# Le claim ouvert doit référencer le handoff : parent_satellite ou story_angle.
# --- Format handoff attendu ---
# handoffs/<id>.md doit contenir :
# - Contexte de la session précédente (état, décisions, bloquants)
# - Fichiers à charger (L3 → L2 pour cette session)
# - Todos ouverts prioritaires
# - Signal de session recommandé pour la suite
# --- Métriques cibles ---
context_target:
L0: "~5%"
L1: "~5%"
L2: "~5%"
total_boot: "~15%"

View File

@@ -0,0 +1,45 @@
# session-infra.yml — Contexte BHP pour sessions infrastructure
# Trigger : "brain boot mode infra"
# Focus : ops quotidien — monitoring, maintenance VPS, config, santé système
# Distinct de session-deploy (deploy = ship code ; infra = ops/health/maintenance)
# Cible : ~22% contexte max au boot
session_type: infra
description: "Session infrastructure — ops quotidien, maintenance VPS, santé système"
tier_required: pro # vps, pm2, monitoring = agents pro
# L0 — Invariant (~5%)
L0:
- PATHS.md
- brain-compose.local.yml
- KERNEL.md
# L1 — Session type (~14%)
L1:
- now.md # bridge session précédente
- agents/coach-boot.md # présence légère — pas de bilan complet en infra
- agents/vps.md # VPS, Apache, Docker, SSL, vhost, certbot # tier: pro
- agents/pm2.md # process manager, restart, logs # tier: pro
- focus.md # projets actifs — contexte des services en cours
# L2 — Project scope — optionnel si scope projet déclaré
L2:
template: "projets/{project}.md"
extras: []
fallback: null
# L3 — On demand
# agents/monitoring.md, agents/mail.md (DNS/DKIM), agents/ci-cd.md, agents/migration.md
L3:
hint: "Charger à la demande : monitoring, mail/DNS, ci-cd, migration schema, security pre-audit"
# --- Distinction infra / deploy ---
# infra = état du système, maintenance, vérifications, config — pas de CI/CD au boot
# deploy = livraison code, CI/CD, releases, pipeline — agents/ci-cd.md en L1
# --- Métriques cibles ---
context_target:
L0: "~5%"
L1: "~14%"
L2: "~3%"
total_boot: "~22%"

View File

@@ -0,0 +1,45 @@
# session-urgence.yml — Contexte BHP pour sessions incident/urgence
# Trigger : "brain boot mode urgence"
# Focus : incident prod, production down, hotfix critique
# Mode conserve : automatique — cible context < 40%
# Cible : ~15% contexte max au boot (mode conserve)
session_type: urgence
description: "Session urgence — incident prod, production down, hotfix critique"
tier_required: pro # vps, pm2, debug = agents pro
# L0 — Invariant (~5%)
L0:
- PATHS.md
- brain-compose.local.yml
- KERNEL.md
# L1 — Session type (~10%) — minimal, on va vite
# Coach absent : urgence avant bilan pédagogique — invocation explicite si besoin
L1:
- agents/vps.md # VPS, Apache — infra down # tier: pro
- agents/pm2.md # process manager, restart, logs # tier: pro
- agents/debug.md # diagnostic, crash, comportement inattendu
# L2 — non applicable (urgence = focus immédiat, pas de scope projet)
L2:
template: null
extras: []
fallback: null
# L3 — On demand — déclenché après résolution
L3:
hint: "Après résolution : scribe (post-mortem), security (si faille), monitoring (état alertes)"
# --- Règles urgence ---
conserve: auto # mode conserve activé automatiquement — cible context < 40%
coach: silent # coach silencieux sauf invocation explicite après résolution
# post-mortem : scribe déclenché sur signal "résolution confirmée" ou "c'est résolu"
# secrets-guardian : actif en passif — rotation clés si compromis suspects
# --- Métriques cibles ---
context_target:
L0: "~5%"
L1: "~10%"
L2: "0%"
total_boot: "~15%"

View File

@@ -16,10 +16,14 @@ L0:
L1:
- now.md # bridge session précédente
- focus.md # focus actuel, todos prioritaires
- agents/coach.md # coach complet byTask — observe le projet en cours
- agents/coach-boot.md # coach boot-summary — observe le projet en cours (free)
- agents/debug.md # bug, crash, comportement inattendu
- metabolism/README.md # état métabolique, énergie session
# L1_featured — chargé si tier: featured+ — coach complet remplace coach-boot
L1_featured:
- agents/coach.md # coach complet byTask — observe le projet en cours
# L1_pro — Session type (~5%) — chargé uniquement si tier: pro déclaré
# Pas de code-review ni security pour tier free — chargement explicite sur demande sinon
L1_pro: