How luo-root/pulse works
Pulse is an embeddable Go library for defining and running data-driven workflows in-process. The principal path is to define a graph and its nodes, provide inputs, start and wait for an execution, then read declared outputs. Major branches include reusable subgraphs, streams, checkpoint integration, YAML assembly and analysis, and execution observability. Relationships use README-documented behavior; source excerpts are partial, so some internal wiring is not represented.
Main entry points: graph.go Graph definition · execution.go Execution lifecycle · record.go Structured records · node.go Workflow nodes
Components 25
Workflow engine
- Typed keys
key.go - Run inputs
inputs.go - Workflow nodes
node.go - Retry and timeout
aspect.go - Graph definition
graph.go - Execution lifecycle
execution.go - Run orchestration
execution_run.go - Output reads
inputs.go - Run problems
problems.go - Run snapshot
snapshot.go - Checkpoint bridge
checkpoint_run.go
Composition
- Reusable subgraphs
sub.go - Stream processing
stream.go - Topology view
topology.go - Mermaid rendering
mermaid.go
Assembly and analysis
- YAML assembly
yaml/load.go - YAML subgraphs
yaml/subgraph.go - YAML analysis
yaml/analyze.go
Observability
- Observer events
observer.go - Record adapter
observe/graph_record.go - Structured records
observe/record.go - Line sink
observe/linelog.go - Async sink
observe/async.go
Other components
- Application developer
- Custom sink
Connections 27
- Application developer → Graph definition: defines
README.md - Application developer → Run inputs: provides
README.md - Graph definition → Workflow nodes: registers
README.md - Workflow nodes → Typed keys: declares data
README.md - Workflow nodes → Retry and timeout: uses policies
README.md - Graph definition → Execution lifecycle: creates execution
README.md - Run inputs → Execution lifecycle: seeds
README.md - Execution lifecycle → Run orchestration: starts and waits
README.md - Run orchestration → Output reads: enables reads
README.md - Execution lifecycle → Run problems: reports failures
README.md - Execution lifecycle → Run snapshot: exposes state
README.md - Execution lifecycle → Checkpoint bridge: supports bridge
README.md - Graph definition → Reusable subgraphs: mounts
README.md - Graph definition → Stream processing: supports
README.md - Graph definition → Topology view: exposes structure
README.md - Topology view → Mermaid rendering: renders
- Application developer → YAML assembly: loads workflow
README.md - YAML assembly → Graph definition: assembles
README.md - YAML assembly → YAML subgraphs: assembles subgraphs
- Application developer → YAML analysis: analyzes workflow
README.md - YAML analysis → Topology view: returns structure
- Execution lifecycle → Observer events: emits events
README.md - Observer events → Record adapter: adapts events
README.md - Record adapter → Structured records: creates records
README.md - Structured records → Line sink: writes lines
README.md - Structured records → Async sink: queues records
- Structured records → Custom sink: exports records
README.md