Summary
Two documentation gaps surfaced from AI-agent MDL generation. Both are cases where the tool already does the right thing but the (synced) skills steer agents wrong.
1. retrieve uses sort by, not order by
In a microflow retrieve, sorting is sort by:
retrieve $List from Mod.Entity
where (...)
sort by Mod.Entity.Name asc
limit $Lim offset $Off;
order by produces a parse error on retrieve — it is reserved for catalog queries (select ... from CATALOG.x). Also note limit/offset accept variables and expressions (e.g. limit $Lim), not only literals — contrary to a common assumption.
The write-microflows skill does not clearly document the retrieve … sort by / limit / offset clause. Add it so agents stop emitting order by.
2. Entity event handlers ARE supported in MDL
Binding a microflow to an entity event works today:
alter entity Mod.Entity
add event handler on before commit call Mod.ACT_Validate($currentObject) raise error;
(and inside create entity). It's in docs/01-project/MDL_QUICK_REFERENCE.md:80-81 and generate-domain-model.md, but it is not surfaced in the synced microflow/domain skills, so agents fall back to the manual EVT_* + Studio-Pro-mapping workaround. Make this discoverable in the skills.
Reported via external user feedback.
Summary
Two documentation gaps surfaced from AI-agent MDL generation. Both are cases where the tool already does the right thing but the (synced) skills steer agents wrong.
1.
retrieveusessort by, notorder byIn a microflow
retrieve, sorting issort by:order byproduces a parse error onretrieve— it is reserved for catalog queries (select ... from CATALOG.x). Also notelimit/offsetaccept variables and expressions (e.g.limit $Lim), not only literals — contrary to a common assumption.The
write-microflowsskill does not clearly document theretrieve … sort by / limit / offsetclause. Add it so agents stop emittingorder by.2. Entity event handlers ARE supported in MDL
Binding a microflow to an entity event works today:
(and inside
create entity). It's indocs/01-project/MDL_QUICK_REFERENCE.md:80-81andgenerate-domain-model.md, but it is not surfaced in the synced microflow/domain skills, so agents fall back to the manualEVT_*+ Studio-Pro-mapping workaround. Make this discoverable in the skills.Reported via external user feedback.