feat(F98): compute_cascade Decision-Matrix — 7 Fixes (P-173, P-177–P-182)
Branch main @ 39999b3 (vor Commit geprüft).
Zentrale Cascade-Architektur nach Rainers Konzept §3.3 statt 7 Inline-Fixes:
- compute_cascade() berechnet PROVIDER × MULTIROOM → OLLAMA_INSTALL_REQUIRED,
MODEL_PULL_REQUIRED (Array), FAISS_REQUIRED. Single Source of Truth.
P-177 (BLOCKER): Modus-Wahl-Dialog (Geführt/Standard) vor Secret-Check;
alle Secret-Refs auf ${VAR:-} gehärtet (set -u-sicher).
P-178: setup_requirements.txt um required_if-Spalte erweitert
(always|multiroom|local_inf); faiss/numpy → multiroom.
P-179 (BLOCKER): Phase 7 im Wizard auf No-Op; neue install_python_deps()
nutzt $VENV_PY -m pip (nach install_hermes_agent) mit Cascade-Filter.
P-180: Ollama-Install + systemd drop-in conditional auf OLLAMA_INSTALL_REQUIRED.
P-181: Modell-Pull iteriert über MODEL_PULL_REQUIRED statt hardcoded Liste.
P-182: loginctl enable-linger mit timeout 10s + Root-Skip.
P-173: check_components Stufe 7 diagnostiziert root-owned venv.
Repair-Pfad: detect_provider + compute_cascade vor check_components;
Stufen 2/3/4 conditional (faiss nur Multiroom, Ollama nur lokal).
Tests: tests/test_f98_cascade.py (18 Tests, alle Matrix-Zellen + Invarianten).
test_f98_wizard.py + test_install_update_only.py angepasst (Schema 5 Felder,
Regex-Toleranz für compute_cascade-Block).
Ergebnis: 91 passed, 2 failed (beide pre-existing: find_site_packages/P-044,
nicht F98-Scope). Dry-Run-Szenarien 1-4 verifiziert gegen Cascade-Matrix.
This commit is contained in:
@@ -33,9 +33,11 @@ def _read_install_sh() -> str:
|
||||
|
||||
def _extract_update_only_section(content: str) -> str:
|
||||
"""Extrahiert den --update-only Block aus install.sh."""
|
||||
# Der Block beginnt bei 'if $UPDATE_ONLY; then' und endet bei 'fi' vor dem Hauptfluss
|
||||
# Der Block beginnt bei 'if $UPDATE_ONLY; then' und endet bei 'fi' vor dem Hauptfluss.
|
||||
# F98: compute_cascade() steht jetzt zwischen dem --update-only Block und dem
|
||||
# Hauptfluss-Marker '# 1. System-Dependencies' — die Regex toleriert das.
|
||||
match = re.search(
|
||||
r'if \$UPDATE_ONLY; then.*?(?=\nfi\n\n# 1\. System-Dependencies|\nfi\n\nexit 0)',
|
||||
r'if \$UPDATE_ONLY; then.*?(?=\nfi\n\n# (?:F98: compute_cascade|1\. System-Dependencies)|\nfi\n\nexit 0)',
|
||||
content,
|
||||
re.DOTALL,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user