OSSS.ai.orchestration.planning.rules¶
OSSS.ai.orchestration.planning.rules
¶
ExplicitPatternRule
dataclass
¶
If caller EXPLICITLY requests graph_pattern, honor it — BUT ONLY if it is a canonical contract pattern.
IMPORTANT
- This rule only fires when _extract_requested_graph_pattern() returns a value.
- API-default config["graph_pattern"] will NOT trigger this rule.
LockedRouteRule
dataclass
¶
If upstream (API pipeline) already locked the route, the planner must emit an ExecutionPlan consistent with that lock.
This prevents falling through to the default plan and tripping invariants.