Expand description
Workflow journal DAG (petgraph + SQLite), one-shot run/resume. One-shot workflow journal (PRD §5H): DAG + SQLite, no live Page/@eN across processes.
§Workload / parallelism
- DAG validate: CPU-light (petgraph); sequential is fine.
- Step execution: sequential topo order with fail-fast. Independent ready sets are not fan-out parallel here because the SQLite journal is a single-writer resource and offline steps may share process-local caches. Parallelism lives inside each step (batch scrape, sg scan, find-paths).
- Justification (rules_rust_paralelismo): coordinating multi-step journal writes under a Mutex would add complexity without measured gain for typical agent workflows (few steps, I/O inside steps already bounded).
Structs§
- Workflow
Manifest - Workflow manifest file shape.
- Workflow
Step - Workflow step in a manifest (no live browser handles).
Functions§
- journal_
path - Open or create journal DB under XDG state.
- load_
manifest - Load manifest from JSON path (BOM-aware, size-limited, typed).
- validate_
dag - Validate DAG with petgraph; return topological order of step ids.
- workflow_
resume - Resume: skip steps already
okin journal; re-execute pending/error only. - workflow_
run - Run workflow one-shot: validate DAG, execute steps that are CLI-data commands,
journal state. Browser multi-step with @eN still requires nested
runscripts. - workflow_
status - Status of journal steps.