Symptom
describe microflow --format mdl emits @caption metadata for action activities and split activities, but captions stored on loop/while activities are omitted from the generated MDL.
That means a microflow containing a captioned loop can lose visible caption metadata after a describe/exec roundtrip.
Root cause
Loop and while statements are represented by microflows.LoopedActivity. The builder already preserves LoopedActivity.Caption, but the describer helper only emitted captions for ActionActivity, ExclusiveSplit, and InheritanceSplit.
Expected behavior
When a LoopedActivity has a non-empty caption, the describer should emit it as an @caption annotation before the loop/while statement, using the same MDL quoting rules as other activity captions.
Validation
A focused regression test should cover a loop caption with MDL-sensitive characters so the quoting path stays aligned with existing caption emission.
Symptom
describe microflow --format mdlemits@captionmetadata for action activities and split activities, but captions stored on loop/while activities are omitted from the generated MDL.That means a microflow containing a captioned loop can lose visible caption metadata after a describe/exec roundtrip.
Root cause
Loop and while statements are represented by
microflows.LoopedActivity. The builder already preservesLoopedActivity.Caption, but the describer helper only emitted captions forActionActivity,ExclusiveSplit, andInheritanceSplit.Expected behavior
When a
LoopedActivityhas a non-empty caption, the describer should emit it as an@captionannotation before the loop/while statement, using the same MDL quoting rules as other activity captions.Validation
A focused regression test should cover a loop caption with MDL-sensitive characters so the quoting path stays aligned with existing caption emission.