Red Queen - REAL MISSION 003 NOTION SAFETY BRAIN DISCOVERY & ARCHITECTURE. One-Way Safety-Brain-Design (Forgejo/Tolaria -> Notion, keine Source of Truth), Provenance-Modell, Backup-Manifest, Verify (WRITE != SUCCESS), Restore Human Gate, Secret-Policy, Scaling/Versions/Delete-Safety, RQ-Access (Minimum Privilege). Fresh Checker PASS. READ-ONLY, keine Notion-Implementierung.
55 lines
3.3 KiB
Markdown
55 lines
3.3 KiB
Markdown
# NOTION SAFETY BRAIN — DATA CLASSIFICATION (Mission 003)
|
|
|
|
Datum: 2026-08-25 · Red Queen · Status: **EVIDENCE-basiert (read-only)**
|
|
|
|
> Klassifikation, welche Inhalte aus Forgejo und Tolaria in den Notion Safety Brain
|
|
> gesichert werden sollen. Kategorien:
|
|
> **BACKUP_REQUIRED** · **BACKUP_RECOMMENDED** · **OPTIONAL** · **DO_NOT_BACKUP** · **SECRET/FORBIDDEN**
|
|
|
|
---
|
|
|
|
## 1. FORGEJO (technische Source of Truth)
|
|
|
|
EVIDENCE (lokaler Klon `/opt/data/forgejo/trading-system-docs`, main=`819fd8a`):
|
|
|
|
| Inhalt | Kategorie | Begründung |
|
|
|---|---|---|
|
|
| `red-queen-architecture/` (10 Contracts) | **BACKUP_REQUIRED** | Architektur-Entscheidungen, Safety/External-Review-Contracts, MISSION_STATE_MACHINE |
|
|
| `tolaria/` (Discovery-Report, B1-Docs) | **BACKUP_REQUIRED** | Tolaria-Dokumentation, Baseline, Recovery-Runbook |
|
|
| `a2/`..`a5/` (Design/README/Code) | **BACKUP_RECOMMENDED** | Red-Queen-Automatisierung, relevant für Recovery |
|
|
| Modul-Doku (`modul-*.md`, `ports-reference`, `infrastructure-handbook`, `trend-pullback-spec`) | **BACKUP_RECOMMENDED** | System-/Modul-Dokumentation |
|
|
| `backup_patches/` | **BACKUP_RECOMMENDED** | Wichtige Patches |
|
|
| `notes/` (Hubs/Wikilinks) | **BACKUP_RECOMMENDED** | Verknüpfungs-Struktur |
|
|
| `README.md` | OPTIONAL | Überblick (bereits in modul-Doku enthalten) |
|
|
| `__pycache__/`, `.git/`, Binär-/Build-Artefakte | **DO_NOT_BACKUP** | Rebuildbar, keine Knowledge-Inhalte |
|
|
| `.env`, `*.pem`, `*.key`, `*.token`, config mit Secrets | **SECRET/FORBIDDEN** | Nie nach Notion |
|
|
|
|
**Doppel-Zählung beachten:** Modul-Dateien existieren teils auch im Vault (Root + system-docs) → Deduplizierung nötig (siehe Provenance).
|
|
|
|
## 2. TOLARIA (operatives Second Brain, 84 .md via API)
|
|
|
|
EVIDENCE (Vault-API, `/app/vault`, HEAD `69aecf2…`):
|
|
|
|
| Bereich | Kategorie | Begründung |
|
|
|---|---|---|
|
|
| `notes/trading/second-brain/` (journal, t212-logs, Phase-Docs) | **BACKUP_REQUIRED** | Operative Knowledge-Logs, Verlauf |
|
|
| `notes/trading/system-docs/*` (30) | **BACKUP_RECOMMENDED** | Modul-/System-Doku (teils identisch mit Forgejo → dedupe) |
|
|
| `/app/vault/*.md` Root (README, infrastructure-handbook, modul-*) | **BACKUP_RECOMMENDED** | Duplikat-Struktur (19 Paare) |
|
|
| `notes/` Hubs (ai-agents, alice-betrieb, projekte, start, inbox, trading, reference) | **BACKUP_RECOMMENDED** | Wikilink-/Hub-Struktur, Beziehungen |
|
|
| **Frontmatter / Wikilinks / Provenance** | **BACKUP_REQUIRED** (als Metadaten) | Für Beziehungs-/Graph-Rebuild |
|
|
| `.git/` (Objects) | **DO_NOT_BACKUP** via API | Binär, nicht via JSON-API vollständig ziehbar; separat technisch sichern |
|
|
| secrets in Frontmatter/Inhalt (falls vorhanden) | **SECRET/FORBIDDEN** | Secret-Scan vor Upload |
|
|
|
|
## 3. Kategorientabelle (Provenance-Vorbereitung)
|
|
|
|
Jede Notion-Seite erhält im Frontmatter/Property die Quelle:
|
|
`SOURCE_SYSTEM` (forgejo|tolaria), `SOURCE_PATH`, `SOURCE_HASH`, `SOURCE_VERSION` (git-HEAD / Vault-HEAD).
|
|
|
|
## 4. Zwei-Quellen-Prinzip
|
|
- Forgejo und Tolaria enthalten **nicht zwingend** dieselben Informationen.
|
|
- Notion sichert **beide getrennt und nachvollziehbar** (je `SOURCE_SYSTEM`).
|
|
- **Kein blindes Mergen** der beiden Quellen in Notion.
|
|
|
|
## 5. DO_NOT_BACKUP + SECRET — Grundregeln
|
|
- Secrets/Tokens/Passwörter/private Keys/.env/Credentials → **SECRET_BLOCKED**, nie hochladen.
|
|
- Binär-/Build-Artefakte, `.git/objects`, große Dateien → **DO_NOT_BACKUP** (technical backup übernimmt das).
|