Go to file
Lucio Lelii 46a1fb2d3e refactor(assistant): extract plan validation/normalization into PlanValidationSupport
Clusters E (plan validation, normalization, KEEP/ADD/UPDATE/REMOVE
operation-diffing - including the 145-line validateAndNormalizePlan
"god method") and F (existing block/container identity matching) from
the structural analysis. Field-free except the PLAN_SENSITIVE_ERROR_CODES
constant.

- New PlanValidationSupport holds validateAndNormalizePlan and its full
  dependency tree: normalizeContainerInnerBlocks(AgainstExisting),
  validateInnerBlockShapes, normalize{Inner}BlockOperation,
  resolveContainerOperation, hasValidationErrorFor{Block,Container},
  resolveExisting{Block,Container}(ForPlan), findExisting{Block,Container},
  parsePlanOperation, isTargetedBlockRepairEligible,
  buildReusedPlanForTargetedRepair, canUseMinimalDraftFallback,
  hasCurrentFlow{Blocks,Containers}, isContainerBlockType, blockTypeName
- PLAN_SENSITIVE_ERROR_CODES promoted from private to package-private so
  the new class can reference it without duplicating the 48-entry set
- isSharedMemoryContext made static + package-private (it already didn't
  touch any instance field) so PlanValidationSupport can call it while it
  stays in FlowAssistantService, next to the AssistantFlowPlan/
  AssistantBlockPlan records it needs

2352 -> 1805 lines (-547, now under 1900 and past the halfway point of
the original file). 3350 -> 1805 total so far (-1545, ~46%).
Behavior-preserving: pure extraction, no logic changes.

Verified with `mvn test`: 462 tests, 0 failures, 0 errors.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-09-02 10:26:25 +02:00
.mvn/wrapper upgrade to springboot 4 2026-05-05 19:22:53 +02:00
src refactor(assistant): extract plan validation/normalization into PlanValidationSupport 2026-09-02 10:26:25 +02:00
.gitattributes first commit 2025-03-27 11:38:06 +01:00
.gitignore Improve assistant model routing and diagnostics 2026-05-20 12:27:09 +02:00
Dockerfile Update Dockerfile for Java 25 2026-04-17 14:11:02 +02:00
mvnw first commit 2025-03-27 11:38:06 +01:00
mvnw.cmd first commit 2025-03-27 11:38:06 +01:00
ollama-preloaded-docker image for test with ollama added 2025-09-29 17:00:57 +02:00
pom.xml fix(concurrency): harden static holders populated by Spring constructors 2026-09-02 09:53:13 +02:00
run_service.sh feat: support provider selection for flow assistant 2026-09-01 15:34:41 +02:00