feat: thread root node + workflowAsAgent returns root hash #51

Merged
xiaoju merged 1 commits from feat/42-thread-root-node into main 2026-05-07 13:18:13 +00:00
Owner

What

Engine generates Merkle step + thread root nodes. workflowAsAgent returns root hash.

Changes

  • Step Merkle nodes after each role step
  • Thread root node on workflow completion
  • WorkflowResult.rootHash, WorkflowCompletion split
  • workflowAsAgent returns rootHash
  • DAG traversal tests
  • 151 tests

Ref

Fixes #42, Refs #40

## What Engine generates Merkle step + thread root nodes. workflowAsAgent returns root hash. ## Changes - Step Merkle nodes after each role step - Thread root node on workflow completion - WorkflowResult.rootHash, WorkflowCompletion split - workflowAsAgent returns rootHash - DAG traversal tests - 151 tests ## Ref Fixes #42, Refs #40
xiaoju added 1 commit 2026-05-07 13:18:01 +00:00
- Engine generates step Merkle nodes (type: step) after each role step
- Engine generates thread root Merkle node (type: thread) on completion
- WorkflowResult gains rootHash field
- WorkflowFn returns WorkflowCompletion (no rootHash), engine wraps with rootHash
- workflowAsAgent returns rootHash instead of summary
- Full DAG traversal: root → steps → content
- 151 tests passing

Fixes #42
xiaoju merged commit b5cc0db17e into main 2026-05-07 13:18:13 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#51