mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-12-01 00:27:17 +00:00
Every run executes on Petri, so the in-process legacy executor goes: `fabro-core` and, in `fabro-workflow`, the handlers, lifecycle, pipeline execution, routing, retry, conditions, node handlers, steering, agent memory, artifacts, checkpoints, command log, and the `start`, `resume`, `retry`, `fork`, `rewind` and `timeline` operations. The two are deleted together because the engine half of `fabro-workflow` was the only user of `fabro-core` and `fabro-core` the only runtime of that half; neither compiles without the other. Kept in `fabro-workflow`, narrowed: the parse/transform/validate/persist pipeline and `create`, `archive`, `validate` (workflow definitions still come from DOT and settings); the run tools (`run_tools`, moved from `handler/llm/fabro_tools.rs`) for Ask Fabro, `fabro exec` and Petri's host tools; the pull request pipeline (`pull_request`, moved from `pipeline/`, for the step 0 port); Run Files' diff helpers in `sandbox_git`; `git_identity`, `usage_rollup`, `run_status`, `run_materialization`, `web_search` and `workflow_bundle`. Server: `RegistryFactoryOverride` becomes `execute_in_process`; `RunAnswerTransport::InProcess` carries only the interviewer; the interrupt endpoint answers 501 `interrupt_unsupported` and every pair endpoint 501 `pair_unsupported` (status lists none); rewind, fork, retry and timeline handlers and routes are removed; the command log is served from the stage output blob; usage rollups accumulate from the settled projection after an in-process run as after a worker exit. Ported while here: - `materialize_admitted_run` materializes the goal and drops a disabled pull request block, as the legacy materializer did. - A run whose admitted graph has an agent or prompt node is refused at create when no LLM provider is ready (`fabro.model.no_ready_provider`); a workflow of commands and gates needs no model and is admitted. - The projection's question type falls back on the options, as the interview adapter does, so a gate with edge-label options answers as multiple choice. Tests: the server scenarios (lifecycle, run completion, SSE, helpers) run in process on Petri and assert Petri's stage labels and stream names; the reconcile tests assert Petri's relaunch semantics; legacy unit tests of the deleted executor are removed; three server unit tests the removal took with it are restored; the pair fixtures go with the pair feature. Petri test fixtures no longer name `[workflow] engine`. Still red after this commit, all legacy consumers the next steps delete or port: fabro-store's Slate/reducer fixtures and fabro-types legacy JSON tests (step 4); server unit tests over legacy run events (retry endpoints, list_run_events, artifacts, per-event pause/unpause, run history activation, legacy sandbox fixtures) (steps 3-4); CLI tests that parse legacy event envelopes, the legacy `events`/`attach`/`diff`/ `dump`/`inspect` snapshots, `run rewind`/`run fork`, the ACP and git-identity workflow tests, and the runner tests that drive the legacy worker by hand (steps 3-4); the web app's Petri fixtures still carry `engine` (regenerate with `FABRO_CAPTURE_PETRI_FIXTURES` in step 4). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
90 lines
3.1 KiB
TOML
90 lines
3.1 KiB
TOML
[package]
|
|
name = "fabro-workflow"
|
|
edition.workspace = true
|
|
version.workspace = true
|
|
publish = false
|
|
license.workspace = true
|
|
description = "A DOT-based pipeline runner for multi-stage AI workflows"
|
|
repository = "https://github.com/brynary/arc"
|
|
keywords = ["llm", "ai", "pipeline", "workflow", "dot"]
|
|
categories = ["development-tools"]
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[features]
|
|
test-support = ["fabro-auth/test-support", "fabro-store/test-support"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
fabro-auth = { path = "../../foundation/fabro-auth" }
|
|
fabro-config = { path = "../../foundation/fabro-config" }
|
|
fabro-graphviz = { path = "../fabro-graphviz" }
|
|
fabro-validate = { path = "../fabro-validate" }
|
|
fabro-sandbox = { path = "../fabro-sandbox" }
|
|
sandbox-driver.workspace = true
|
|
pebble-agent.workspace = true
|
|
pebble-coding-agent.workspace = true
|
|
fabro-github = { path = "../fabro-github" }
|
|
fabro-interview = { path = "../fabro-interview" }
|
|
fabro-template = { path = "../../foundation/fabro-template" }
|
|
fabro-tool = { path = "../fabro-tool" }
|
|
fabro-util = { path = "../../foundation/fabro-util" }
|
|
fabro-redact.workspace = true
|
|
fabro-checkpoint = { path = "../fabro-checkpoint" }
|
|
fabro-llm = { path = "../fabro-llm" }
|
|
fabro-store = { path = "../fabro-store" }
|
|
fabro-static.workspace = true
|
|
fabro-types = { path = "../../foundation/fabro-types" }
|
|
lithos-llm = { workspace = true, features = ["runtime"] }
|
|
fabro-http.workspace = true
|
|
thiserror.workspace = true
|
|
strum.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
jsonschema.workspace = true
|
|
tokio.workspace = true
|
|
bytes.workspace = true
|
|
object_store.workspace = true
|
|
ulid.workspace = true
|
|
uuid.workspace = true
|
|
rand.workspace = true
|
|
async-trait.workspace = true
|
|
futures.workspace = true
|
|
chrono = { workspace = true, features = ["serde"] }
|
|
dirs = "6"
|
|
regex.workspace = true
|
|
scopeguard = "1"
|
|
md5.workspace = true
|
|
hex.workspace = true
|
|
sha2 = { workspace = true }
|
|
mime_guess.workspace = true
|
|
miette.workspace = true
|
|
git2.workspace = true
|
|
tokio-util.workspace = true
|
|
tracing.workspace = true
|
|
walkdir.workspace = true
|
|
tempfile = "3"
|
|
toml.workspace = true
|
|
fabro-vault = { path = "../../foundation/fabro-vault" }
|
|
[dev-dependencies]
|
|
fabro-dump = { path = "../fabro-dump" }
|
|
fabro-client = { path = "../../foundation/fabro-client" }
|
|
fabro-workflow-version = { path = "../fabro-workflow-version" }
|
|
fabro-environment = { path = "../fabro-environment" }
|
|
fabro-llm = { path = "../fabro-llm", features = ["test-support"] }
|
|
fabro-store = { path = "../fabro-store", features = ["test-support"] }
|
|
fabro-auth = { path = "../../foundation/fabro-auth", features = ["test-support"] }
|
|
fabro-github = { path = "../fabro-github", features = ["test-support"] }
|
|
fabro-workflow = { path = ".", features = ["test-support"] }
|
|
fabro-sandbox = { path = "../fabro-sandbox", features = ["test-support"] }
|
|
tokio = { workspace = true, features = ["test-util", "macros"] }
|
|
object_store.workspace = true
|
|
httpmock = "0.8"
|
|
fabro-macros = { path = "../../foundation/fabro-macros" }
|
|
fabro-test = { workspace = true }
|
|
fabro-types = { path = "../../foundation/fabro-types", features = ["test-support"] }
|