Go to file
Lucio Lelii 9cc110464d refactor: order MCP shared sessions with a dependency, drop the state_ready connection hack
MCP shared-session ordering was enforced with a fake data connection: the
consumer's prompt carried a magic ${{state_ready}} placeholder to synthesize
an input, and the producer's output was wired into it purely to force
execution order - the consumer never actually used that data (the real
shared state is the MCP session, accessed by name). This replaces that hack
with a Dependency, the mechanism meant exactly for ordering-without-data.
No engine change: the executor already gates readiness on dependencies and
the validator already counts them for reachability; MCPAgent uses the
default activity() capabilities so it can be a dependency source/target.

- FlowAssistantService: after assembly, generate ordering dependencies
  deterministically for all three cases:
    - top-level chain: Dependency(producer, consumer)
    - within-container chain: Dependency(producer, consumer) in the subflow
    - cross-boundary (top-level producer -> consumer inside a container):
      Dependency(producer, container) - the container runs after the producer
      and inherits its session.
  Existing dependencies are preserved on REFINE (preserveCurrentDependencies).
  Removed completeRequiredSequentialConnections, validateSharedMemorySemantics
  and their now-unused helpers (isReachable, summarizeMcpSessionBlocks); the
  ordering no longer flows through connections.
- Prompt: removed the ${{state_ready}} instructions; the model is told the
  backend orders the consumer after the producer via a dependency and must
  not add a placeholder or connection for it.
- Tests: updated all MCP mocks to stop emitting state_ready (prompt and
  connections) and assert the dependency instead (top-level, within-container,
  cross-boundary). Zero state_ready references remain.

Full suite green (431).
2026-07-26 11:37:42 +02:00
.mvn/wrapper upgrade to springboot 4 2026-05-05 19:22:53 +02:00
src refactor: order MCP shared sessions with a dependency, drop the state_ready connection hack 2026-07-26 11:37:42 +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