Source:
__
Local role: Self-contained runnable demo scenarios for the contextual generation pipeline. Each function is independent and illustrates one generation pattern end to end.
Big-picture role:
Executable documentation for the generation architecture (F-16 to F-22). Run python -m ometeotl_core.generation.examples to see all four scenarios.
Module-level helpers:
demo_simple_world()— generates a world with 2 spaces and 1 placed actor; demonstrates nested contexts andGenerationPlacementdemo_multi_actor_world()— generates a world with 3 actors and temporal/spatial constraint propagation; demonstrates deduplication andcombined_generation_rulesdemo_perception_generation()— generates aPerceptionobject for an actor observing a known space; demonstrates metadata-driven perception and registry-selected rule setsdemo_goal_generation()— generates aGoalwith admissibility constraints; demonstrates confidence clamping, capability propagation, and priority validationrun_all()— runs all four scenarios in sequence; called when the module is executed directly
Notes:
- All scenarios use
ContextualGenerationPipelinewith no custom configuration unless stated. demo_perception_generationselects the"default"rule set fromdefault_rule_registry()to demonstrate registry-driven rule selection.Goal.prioritymust be in[0.0, 1.0]— see Goal.
See also:
