Go to file
Lucio Lelii 7cabf6aa08 feat: validate assistant flows with FlowExecutionValidator, raise repair budget to 2
The assistant's validate step only ran jakarta bean-validation on
FlowCreateRequest, which cascades into FlowDataValidator (the
@ValidFlowStructure constraint on FlowData) but never into each
block's own specificConfiguration - Block.specificConfiguration has
no @Valid annotation. So per-block constraints (BranchRejoinBlockConfiguration's
2-10 input bound, LLMBlockConfiguration's placeholder-name regex, MCP
shared-session producer/consumer wiring, container subflow rules via
the execution-level checks, ...) were never actually enforced: the
assistant could emit a structurally-broken block and still report
valid=true.

- FlowAssistantService.validate() now also runs
  FlowExecutionValidator.collectErrors(), merging its errors with the
  existing bean-validation errors so the repair loop sees (and can fix)
  what used to slip through silently.
- Default max repair attempts raised from 1 to 2 (still capped at the
  existing max of 3), since a single fix round often isn't enough once
  more error classes are actually being caught.
- Fixed draftDoesNotFailWhenSharedMemoryFlagsAreIncomplete: its flow was
  already broken (two MCP consumer-only blocks referencing a shared
  session neither produces) and is now correctly reported invalid
  instead of a false-positive valid=true.
- Added two regression tests locking in the new coverage and the new
  default repair budget.
2026-07-25 12:31:07 +02:00
.mvn/wrapper upgrade to springboot 4 2026-05-05 19:22:53 +02:00
src feat: validate assistant flows with FlowExecutionValidator, raise repair budget to 2 2026-07-25 12:31:07 +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: add missing Flyway autoconfiguration and shorten an overlong flow description 2026-07-22 15:24:51 +02:00