mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-19 00:03:30 +00:00
## Summary Adds durable automation metadata to workflow runs so automation-triggered runs can carry their automation and trigger references through creation, stored events, projections, summaries, fork, retry, and API surfaces. This also introduces the new `fabro-automation` crate with typed automation IDs, TOML parsing/validation, revision hashing, and a file-backed automation store. The store avoids overwriting malformed existing TOML files on create and keeps read access from being blocked by mutation disk I/O. ## Changes - Add `AutomationRef` propagation through `RunSpec`, `run.created`, store projections, summaries, fork, retry, and related tests. - Add `fabro-automation` domain/store crate for automation TOML definitions, trigger validation, revisions, create/replace/delete, and load behavior. - Update OpenAPI and regenerated TypeScript client types for `RunSpec.automation` and `AutomationRef.trigger_id`. - Add API/type regression coverage for the new automation fields. - Harden automation store create semantics so skipped malformed files still reserve their path. ## Verification - `cargo nextest run -p fabro-automation` - `cargo +nightly-2026-04-14 clippy -p fabro-automation --all-targets -- -D warnings` - `cargo nextest run -p fabro-api` - `cargo nextest run -p fabro-types run_spec_round_trips_templated_settings run_created_props_round_trip_templated_settings` - `cd lib/packages/fabro-api-client && bun run typecheck` - `cargo +nightly-2026-04-14 fmt --check --all` - `git diff --check` |
||
|---|---|---|
| .. | ||
| event | ||
| graph | ||
| handler | ||
| lifecycle | ||
| operations | ||
| pipeline | ||
| records | ||
| transforms | ||
| artifact.rs | ||
| artifact_snapshot.rs | ||
| artifact_upload.rs | ||
| billing_rollup.rs | ||
| command_log.rs | ||
| condition.rs | ||
| context.rs | ||
| devcontainer_bridge.rs | ||
| error.rs | ||
| event.rs | ||
| file_resolver.rs | ||
| git.rs | ||
| github_token_source.rs | ||
| graph.rs | ||
| hook_context.rs | ||
| interview_runtime.rs | ||
| lib.rs | ||
| node_handler.rs | ||
| outcome.rs | ||
| pull_request.rs | ||
| retry.rs | ||
| run_control.rs | ||
| run_dir.rs | ||
| run_lookup.rs | ||
| run_materialization.rs | ||
| run_metadata.rs | ||
| run_options.rs | ||
| run_status.rs | ||
| runtime_store.rs | ||
| sandbox_git.rs | ||
| sandbox_git_runtime.rs | ||
| services.rs | ||
| stage_scope.rs | ||
| static_reference.rs | ||
| steering_hub.rs | ||
| test_support.rs | ||
| workflow_bundle.rs | ||