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.
No activity yet.