cleanup intra referencings in codebase

This commit is contained in:
ValueOn AG 2026-06-09 07:05:12 +02:00
parent fdfffb3579
commit 274198f269
2 changed files with 8 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<!-- status: canonical -->
<!-- lastReviewed: 2026-06-08 -->
<!-- verifiedAgainst: gateway (codebase audit 2026-04-07, post Automation Unification) + Typed Action Architecture Phasen 1-5 + Infomaniak-Connector (2026-04-28) + MSFT/Google Calendar+Contacts + Reconnect (2026-04-28) + Google Voice STT/TTS (2026-05-10) + BackgroundJob i18n payload (2026-05-17) + Feature Lifecycle Hooks (2026-06-05) + ServicesBag Consolidation + ServiceHub Elimination + Import Cleanup (2026-06-08) -->
<!-- lastReviewed: 2026-06-09 -->
<!-- verifiedAgainst: gateway (codebase audit 2026-04-07, post Automation Unification) + Typed Action Architecture Phasen 1-5 + Infomaniak-Connector (2026-04-28) + MSFT/Google Calendar+Contacts + Reconnect (2026-04-28) + Google Voice STT/TTS (2026-05-10) + BackgroundJob i18n payload (2026-05-17) + Feature Lifecycle Hooks (2026-06-05) + ServicesBag Consolidation + ServiceHub Elimination + Import Cleanup (2026-06-08) + Intra-Module Cycle Resolution (2026-06-09) -->
# Gateway -- Architektur
@ -402,7 +402,7 @@ demoConfigs (L6) → L0-L5b
app (L7) → alle (Composition Root)
```
Jede Schicht importiert NUR von niedrigeren Schichten. `workflowAutomation` (L5b) ist der Orchestrator ueber `workflows`/`serviceCenter`/`features` — Imports VON L5a NACH L5b sind VERBOTEN (keine Rueckkanten). Alle frueheren Violations (interfaces→WA, system→WA, serviceCenter→WA, workflows↔serviceCenter bidirektional) sind seit 2026-06-08 geloest.
Jede Schicht importiert NUR von niedrigeren Schichten. `workflowAutomation` (L5b) ist der Orchestrator ueber `workflows`/`serviceCenter`/`features` — Imports VON L5a NACH L5b sind VERBOTEN (keine Rueckkanten). Alle frueheren Violations (interfaces→WA, system→WA, serviceCenter→WA, workflows↔serviceCenter bidirektional) sind seit 2026-06-08 geloest. Seit 2026-06-09 sind auch alle **Intra-Modul-Zyklen** (bidirektionale Imports zwischen Dateien innerhalb desselben Modul-Ordners) bereinigt — u.a. via Protocol-Typen in `serviceCenter/core/types.py`, Logik-Extraktion (`flagResolution`, `_valueKindResolver`, `_runNotifications`) und Lifecycle-Hook-Patterns.
## Regeln / Invarianten

View file

@ -1,5 +1,5 @@
<!-- status: canonical -->
<!-- lastReviewed: 2026-06-08 -->
<!-- lastReviewed: 2026-06-09 -->
# Changelog (c-work)
@ -12,6 +12,10 @@ type: `feat` `fix` `refactor` `docs` `test` `chore` `build` · scope: `platfor
Skip: reine Refactors, Formatting, Lint, Dep-Bumps, Test-only, Wiki-Tippfehler.
## 2026-06-09
- 2026-06-09 | refactor | platform-core | **Intra-Modul-Zyklen komplett bereinigt (B1)**: 9 bidirektionale Import-Zyklen innerhalb von Modul-Ordnern aufgeloest. **interfaces/**: `interfaceDbApp <-> interfaceBootstrap` (copySystemRolesToMandate nach interfaceRbac), `interfaceDbApp <-> interfaceDbBilling` (Billing-Cascade via onMandateDelete Lifecycle-Hook). **serviceCenter/**: `serviceAgent <-> serviceKnowledge` (flagResolution nach core/, FeatureDataProviderProtocol), `serviceExtraction <-> serviceGeneration` (RendererProtocol in core/types). **workflowAutomation/**: `graphUtils <-> pickNotPushMigration` (Migration-Call zum Caller), `conditionOperators <-> upstreamPathsService` (_valueKindResolver.py extrahiert), `executionEngine <-> mainScheduler` (_runNotifications.py), `executionEngine <-> emailPoller` (Pause-Status statt direkter Poller-Start). **features/redmine/**: `serviceRedmine <-> serviceRedmineSync` (getProjectMeta nach interfaceFeatureRedmine). Neue Dateien: `serviceCenter/core/flagResolution.py`, `serviceCenter/core/types.py`, `workflowAutomation/editor/_valueKindResolver.py`, `workflowAutomation/engine/_runNotifications.py`. Ergebnis: **0 bidirektionale Intra-Modul-Zyklen**.
## 2026-06-08
- 2026-06-08 | refactor | platform-core | **ServiceHub eliminiert + ServicesBag als einziger Service-Bag**: `serviceCenter/serviceHub.py` (190 LOC, `ServiceHub`-Klasse mit 3 blanken Interface-Properties + 7 dynamischen Feature-Interfaces) komplett geloescht. 5 Consumer (`neutralizePlayground`, `serviceBzo`, `serviceAiIntent`, `routeSharepoint`, `routeClickup`) + 5 Test/Eval-Dateien auf `getService()` + `ServiceCenterContext` migriert. `_WorkflowAutomationServiceHub` eliminiert, `_ServicesAdapter` zu `ServicesBag` umbenannt — es gibt jetzt genau EINEN Service-Bag im gesamten System. Cursor Rule `service-architecture.mdc` erstellt zur Durchsetzung. Wiki `architecture.md` aktualisiert.