wip: Phase 1 protocol + CAS types for Merkle call stack

小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-12 01:35:45 +00:00
parent 82d9abf260
commit e37dbc3f35
3 changed files with 46 additions and 3 deletions
@@ -4,6 +4,8 @@ export type StartNodePayload = {
name: string;
hash: string;
depth: number;
/** Parent thread's head state hash at spawn time. `null` for top-level workflows. */
parentState: string | null;
};
export type StartNode = {
@@ -20,6 +22,8 @@ export type StateNodePayload = {
ancestors: string[];
compact: string | null;
timestamp: number;
/** Child thread's final state hash (workflow-as-agent). `null` when no child spawned. */
childThread: string | null;
};
export type StateNode = {