feat(11-A): schema additive — Span, SpanStatus, python_source, spans #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/11-phase-a-schema-additive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Phase A of hero_logic#11. Schema-only, additive. Old DAG flows still work; new Python flows get their data model.
SpanStatusenumpending|running|ok|failed|timed_out|cancelled— finer-grained thanExecutionStatusSpantypeflow.step/flow.span/ instrumented RPC callWorkflowVersion.python_source@flow-decorated source. Empty = DAG modePlay.spansPlay.parent_span_idNothing removed. Existing rows stay valid. Method count unchanged at 25 — new RPCs land in Phase C.
Phase plan (#11 split)
hero_tracing.pySDK (decorator, step/span context, instrument, JSONL UDS protocol)Each phase is independently mergeable. Old DAG path keeps running through C; D is the destructive removal.
Test plan
cargo build --workspacecleancargo test --workspace --libgreenopenrpc.jsoncontainsSpan,SpanStatus,Play.spans,Play.parent_span_id,WorkflowVersion.python_sourcePlay.node_runs,WorkflowVersion.{nodes,edges}) still presentImplementation note
Array fields don't support
= []defaults in OSchema's parser (verified: parser rejectsspans: [Span] = []), soPlay.spansandPlay.node_runsare listed without defaults — same convention as the existingtags: [str]andversions: [str]fields.🤖 Generated with Claude Code