fabro/lib/crates/fabro-cli/tests/it/workflow
Bryan Helmkamp eae89a6f53
refactor(events): dedupe schema v2 plumbing
Mostly consolidation of code added in the recent schema v2 work:

- Share a single ActorRef::user() constructor between server control
  actions and workflow provenance conversions.
- Share StageScope::from_context() between current_stage_scope and
  StageScope::for_handler so the 4-field construction lives in one place.
- Collapse RunEvent::to_value's if-let chain into an insert_opt helper.
- Use Value::String(id.to_string()) instead of serde_json::to_value for
  StageId/ParallelBranchId when seeding the parallel branch context.
- Share parse_event_envelopes via tests/it/support/mod.rs instead of
  duplicating the parsing block in two CLI run_events helpers.

Also fix parallel-branch git.commit to emit via emit_scoped with a
branch-specific StageScope so it carries stage_id / parallel_group_id /
parallel_branch_id alongside the other stage-scoped events.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 17:23:54 -04:00
..
fixtures Extract workflow E2E tests into workflow/ directory 2026-03-30 11:41:18 -04:00
agent_linear.rs refactor(cli): route run state through the shared server daemon 2026-04-05 00:15:33 -04:00
command_agent_mixed.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
command_pipeline.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
conditional_branching.rs refactor(cli): route run state through the shared server daemon 2026-04-05 00:15:33 -04:00
dry_run_examples.rs fix(cli): restore green server-backed test checkpoint 2026-04-05 03:41:10 -04:00
full_stack.rs refactor(scratch): remove stale scratch file refs 2026-04-07 20:40:06 -04:00
hooks.rs refactor(config): unify machine config as settings.toml 2026-04-05 23:55:28 -04:00
human_gate.rs refactor(cli): route run state through the shared server daemon 2026-04-05 00:15:33 -04:00
mod.rs refactor(events): dedupe schema v2 plumbing 2026-04-09 17:23:54 -04:00
real_cli.rs refactor(billing): unify the LLM billing domain 2026-04-07 14:33:35 -04:00