20 lines
593 B
Python
20 lines
593 B
Python
from __future__ import annotations
|
|
|
|
from typing import List
|
|
from deltaforge_skeleton.core import PlanDelta
|
|
|
|
|
|
class ExecutionEngine:
|
|
def __init__(self):
|
|
self.log: List[str] = []
|
|
|
|
def route(self, plan: PlanDelta) -> List[str]:
|
|
# Very small mock routing: just annotate steps with a venue tag
|
|
routed = []
|
|
for i, step in enumerate(plan.steps or []):
|
|
venue = "VenueA" if i % 2 == 0 else "VenueB"
|
|
action = f"{step} -> {venue}"
|
|
routed.append(action)
|
|
self.log.append("routed plan across venues")
|
|
return routed
|