Skip to content

WhaleFlow: Rust executor skeleton for branch/leaf workflows #2669

@Hmbown

Description

@Hmbown

Problem

The workflow script should not execute effects. It should build IR; Rust should own async execution, cancellation, budgets, branch isolation, and reducers.

Scope

  • Execute Sequence, BranchSet, Leaf, Reduce, LoopUntil, Cond, and Expand using mock leaves first.
  • Enforce branch parallelism caps, cancellation tokens, global run budgets, and per-leaf budgets.
  • Add BranchIsolation variants: ReadOnly, PatchBuffer, GitWorktree, TempCopy.
  • Add BranchTournament and ParetoFrontier reducer scaffolding.
  • Persist run/branch/leaf/control results to TraceStore.

Acceptance criteria

  • run_mock_three_branch_workflow passes.
  • loop_until_stops_on_pass and loop_until_honors_max_iters pass.
  • cond_uses_logged_predicate_result passes.
  • expand_respects_max_children and expand_generated_nodes_validate_before_run pass.
  • tournament_selects_passing_minimal_branch and pareto_frontier_keeps_diverse_candidates pass.

Source: /Users/huntermbown/Downloads/CodeWhale_v0_9_0_BranchLeafTeacher_Workflows_UPDATED.md and the Claude workflow-mode observation from June 3, 2026.

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch-leafBranch-and-leaf orchestration semanticsenhancementNew feature or requestv0.9.0Targeting v0.9.0whaleflowWhaleFlow branch/leaf workflow runtime and workflow modeworkflow-runtimeWorkflow IR, executor, control flow, and replay runtime

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions