feat(workflow): ExecutionPlanCompiler + ExecutionPlanLockedEvent (Slice 3)

- ExecutionPlanLockedEvent: registered, replay-deterministic record of the
  locked plan (CAS ref + compiled stage/start ids).
- ExecutionPlanCompiler: validated execution_plan JSON -> WorkflowGraph,
  reusing ConditionSpec.toCondition(); inline prompts via metadata[promptInline];
  malformed plans throw WorkflowValidationException.
- Replay test: locked event + plan JSON recompiles to the identical graph,
  no architect re-run, no FS reads.
This commit is contained in:
2026-06-08 02:33:57 +04:00
parent be78eaa80f
commit 6c8c5e2ad9
8 changed files with 356 additions and 0 deletions
+2
View File
@@ -14,4 +14,6 @@ dependencies {
testImplementation(project(":core:approvals"))
testImplementation(project(":testing:fixtures"))
testImplementation(project(":infrastructure:persistence"))
testImplementation(project(":infrastructure:workflow"))
testImplementation(project(":core:artifacts"))
}