def decide.hub
import ezx@1.11.0.0/src/pub/plan.bend as Planimport Base
import ezx@1.11.0.0/src/pub/world.bend as PW
1113# the hub imports: every one on the hub goes on to the upload, one still to
1114# ask about is asked, and any other refuses, sending nothing (EZ-PUB-5)
1115def decide.hub(on: Hubbed, +world: PW.World) -> Verdict:
1116 match on:
1117 case OnHub{}:
1118 decide.upload(uploaded(world), world)
1119 case HubWait{open}:
1120 Pending{probe.asks(hub(world), open)}
1121 case OffHub{why}:
1122 Stop{why}