package strategy import "git.mleku.dev/mleku/dendrite/pkg/axiom" // StrategyElement wraps a strategic text fragment as a lattice element. // Implements axiom.Element, axiom.StickyElement, and axiom.LayeredElement. type StrategyElement struct { Content string Ch int // source chapter (1-13) Cat Category // strategic category Lvl Level // granularity level } // Type returns a tag encoding category and level. func (e StrategyElement) Type() string { return "strategy:" + e.Cat.String() + ":" + e.Lvl.String() } // Value returns the text content. func (e StrategyElement) Value() any { return e.Content } // IsSticky always returns true — strategy elements survive dissolution. func (e StrategyElement) IsSticky() bool { return true } // Layer returns the strategy layer for the coherence field. func (e StrategyElement) Layer() axiom.Layer { return axiom.Layer{ Name: "strategy", Depth: int(e.Lvl), } } // Verify interface compliance at compile time. var ( _ axiom.Element = StrategyElement{} _ axiom.StickyElement = StrategyElement{} _ axiom.LayeredElement = StrategyElement{} )