firstAvailable function
The availability WALK: the first entry of preference present in the
ambient AvailableEnvironments, or null when none is present.
PUBLIC because bead pow-n6n.2's critic lane picks its ModelPreference by
ASPECT before the walk runs, and one walk beats two copies.
Implementation
AgentEnvironment? firstAvailable(
TreeContext context,
ModelPreference preference,
) => firstAvailableFrom(preference, availableEnvironmentsOf(context));