I'm thinking I may like to express a part of my system as a list (of maps) that gets turned into rules dynamically. However, I'd still need to express part of the LHS conditions in this list. The examples I saw suggested that I should produce the data structure as if the macros had been run. Is this a bad use case for rule generation, as I'd somehow need to transform these partial conditions and inject into final form?
The API constraint is that mk-session needs to receive unevaluated code in the same format that the defrule and defmacro macros construct. I’ve worked on cases where the rules were generated from a DSL that had quite a bit of processing into Clara rule forms, so what you’re suggesting sounds plausible.