Backend:
- logic_evaluator.py (NEU, 307 Zeilen): Deterministischer Logic Evaluator
- Vergleichsoperatoren: EQ, NEQ, IN, NOT_IN, GT, LT, GTE, LTE, CONTAINS
- Logische Operatoren: AND, OR, NOT mit Verschachtelung
- Resolve signal references (node_id.question_type)
- Error handling für UNCLEAR/INVALID/NOT_DECIDABLE Signale
- workflow_executor.py (ERWEITERT):
- execute_logic_node(): Bedingungen evaluieren, Pfade aktivieren/deaktivieren
- execute_workflow(): BFS-Traversierung mit Edge-Activation statt Sequential
- _apply_fallback(): 4 Fallback-Strategien (CONSERVATIVE_SKIP, DEFAULT_PATH, UNCERTAINTY_PATH, DOCUMENT_ONLY)
- _has_active_incoming_edge(): Prüft ob Node erreichbar ist
- _get_edges_by_label(): Findet then/else/uncertainty Pfade
- workflow_models.py (ERWEITERT):
- LogicOperator.CONTAINS hinzugefügt
- version.py: 0.9k → 0.9l, workflow 0.3.0 → 0.4.0
Tests:
- test_phase3_logic_evaluator.py (NEU): 20 Unit Tests (alle passing)
- Comparison operators (EQ, NEQ, IN, GT, LT, CONTAINS)
- Logical operators (AND, OR, NOT)
- Nested expressions
- Error handling (missing refs, UNCLEAR/INVALID signals)
- test_phase2_workflow_executor.py (AKTUALISIERT): 11 Tests (alle passing)
- execute_node() graph parameter hinzugefügt (Phase 3 requirement)
- test_execute_node_unknown_type: logic → join (logic jetzt implementiert)
- test_phase3_workflow_branching.py (NEU): Integration Tests vorbereitet
- Erfordert vollständige DB-Mock-Strategie (wird in E2E-Test nachgeholt)
Phase 2 Backward Compatibility: ✅ Alle Phase 2 Tests bestehen weiterhin
Konzept: .claude/task/Workflow_engine_prompting_engine/konzept_workflow_engine_konsolidated.md
Anforderungsanalyse: .claude/task/Workflow_engine_prompting_engine/phase3_anforderungsanalyse.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
96 lines
3.9 KiB
Python
96 lines
3.9 KiB
Python
"""
|
|
Application Version Information
|
|
|
|
Semantic Versioning: MAJOR.MINOR.PATCH
|
|
- MAJOR: Breaking Change, DB-Migration inkompatibel
|
|
- MINOR: Neues Feature, neues Modul
|
|
- PATCH: Bugfix, kleine Änderung, Refactor
|
|
"""
|
|
|
|
APP_VERSION = "0.9l"
|
|
BUILD_DATE = "2026-04-04"
|
|
DB_SCHEMA_VERSION = "20260403" # Migration 034
|
|
|
|
MODULE_VERSIONS = {
|
|
"auth": "1.2.0",
|
|
"profiles": "1.1.0",
|
|
"weight": "1.0.3",
|
|
"circumference": "1.0.1",
|
|
"caliper": "1.0.1",
|
|
"activity": "1.1.0",
|
|
"nutrition": "1.0.2",
|
|
"photos": "1.0.0",
|
|
"insights": "1.3.0",
|
|
"prompts": "1.1.0",
|
|
"admin": "1.2.0",
|
|
"stats": "1.0.1",
|
|
"exportdata": "1.1.0",
|
|
"importdata": "1.0.0",
|
|
"membership": "2.1.0",
|
|
"workflow": "0.4.0", # Phase 3: Logic Nodes + Conditional Branching
|
|
}
|
|
|
|
CHANGELOG = [
|
|
{
|
|
"version": "0.9l",
|
|
"date": "2026-04-04",
|
|
"changes": [
|
|
"Phase 3: Logic Nodes + Conditional Branching",
|
|
"logic_evaluator.py: Deterministischer Logic Evaluator (EQ, NEQ, IN, GT, LT, CONTAINS, AND, OR, NOT)",
|
|
"workflow_executor.py: Conditional Branching via BFS-Traversierung mit Edge-Activation",
|
|
"execute_logic_node(): Bedingungen evaluieren, then/else Pfade aktivieren",
|
|
"Fallback-Strategien: CONSERVATIVE_SKIP, DEFAULT_PATH, UNCERTAINTY_PATH, DOCUMENT_ONLY",
|
|
"workflow_models.py: CONTAINS Operator hinzugefügt",
|
|
"Unit-Tests Phase 3: 20 Tests für Logic Evaluator (alle passing)",
|
|
"Phase 2 Backward Compatibility: 11 Tests aktualisiert (alle passing)",
|
|
]
|
|
},
|
|
{
|
|
"version": "0.9k",
|
|
"date": "2026-04-03",
|
|
"changes": [
|
|
"Phase 2: Normalisierung + Workflow Executor",
|
|
"normalization_engine.py: Synonym-Mapping, 5 Statuswerte (valid, normalized, unclear, invalid, not_decidable)",
|
|
"workflow_executor.py: Sequenzielle Workflow-Ausführung, Node-State-Tracking, Ergebnis-Aggregation",
|
|
"Integration in prompt_executor.py: Dispatcher für type='workflow'",
|
|
"API-Router workflows.py: POST /workflows/{id}/execute, GET /workflows/executions/{id}",
|
|
"Unit-Tests Phase 2: 27 Tests (normalization_engine + workflow_executor)",
|
|
"Erweitert: workflow_models.py (NormalizedSignal, NodeExecutionState, ExecutionResult)",
|
|
]
|
|
},
|
|
{
|
|
"version": "0.9j",
|
|
"date": "2026-04-03",
|
|
"changes": [
|
|
"Phase 1: Fragenergänzung + Strukturierter Container",
|
|
"question_augmenter.py: Hybrid-Modell (Knotengebundene Fragen überschreiben Prompt-Defaults)",
|
|
"result_container_parser.py: Markdown-Sektionen (Analysekern, Entscheidungsanteil, Begründungsanker)",
|
|
"Integration in execute_base_prompt(): Fragenergänzung vor LLM-Call, Parsing nach LLM-Response",
|
|
"API-Router workflow_questions.py: CRUD für workflow_question_catalog",
|
|
"Unit-Tests Phase 1: 25 Tests (question_augmenter + result_container_parser)",
|
|
]
|
|
},
|
|
{
|
|
"version": "0.9i",
|
|
"date": "2026-04-03",
|
|
"changes": [
|
|
"Phase 0: Workflow Engine Foundation",
|
|
"DB-Migration 034: workflow_definitions, workflow_question_catalog, workflow_executions",
|
|
"Pydantic-Modelle für Workflow-Graph (WorkflowGraph, Node, Edge, Condition)",
|
|
"Graph-Parsing, Topologische Sortierung, DAG-Validierung",
|
|
"Dispatcher-Erweiterung: type='workflow' (Stub-Implementierung)",
|
|
"Unit-Tests für Phase 0 (Graph-Parsing, Zyklen-Erkennung, Erreichbarkeit)",
|
|
]
|
|
},
|
|
{
|
|
"version": "0.9h+",
|
|
"date": "2026-03-28",
|
|
"changes": [
|
|
"Phase 0c: Multi-Layer Data Architecture Complete",
|
|
"Data Layer Migration (97 Funktionen in 6 Modulen)",
|
|
"20 neue Chart Endpoints (E1-E5, A1-A8, R1-R5, C1-C4)",
|
|
"Single Source of Truth für Datenberechnungen",
|
|
]
|
|
},
|
|
]
|