Spans must be inserted before decision points due to DecisionPoint.parentSpanId FK referencing Span.id. Switched from nested Prisma create to interactive transaction with topological span ordering. Also adds real MoonshotAI LLM test script.
Spans must be inserted before decision points due to DecisionPoint.parentSpanId FK referencing Span.id. Switched from nested Prisma create to interactive transaction with topological span ordering. Also adds real MoonshotAI LLM test script.