Add a Compose operation to the free monad that combines prompts with predictable semantics.
Define conventions for how prompts combine, making composition predictable even without full Bayesian theory.
1. System prompt = hyperprior (sets the space of behaviors) 2. Skills = conditional priors (activated by context) 3. User messages = observations (data that updates the posterior) 4. Assistant messages = posterior samples (past behavior conditions future)
1. Add Compose constructor to OpF 2. Define PromptComponent type (System | Skill | Message | Context) 3. Composition rules:
4. Verify: composed prompt behaves as expected
This is conventions, not calculus. The goal is predictable engineering, not mathematical composition laws. But conventions can evolve toward theory.
Pipeline: build verification passed
Pipeline: integrated into live at bd23ef658f117e79a720d719095bd4858163f106
Pipeline: dev completed (run=dev-t-396-1771506378, cost=0.0c)