Skip to content

describe drops captions on loop and while activities #443

@hjotha

Description

@hjotha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions