Skip to content

Missing validation for operator augmentations #7

@wrayre

Description

@wrayre

The datamap validation does not extend to augmentations (attributes beyond the operator name) that are present on the operator.

Example:

sp {propose*new-turn*first-turn
   (state <s> ^superstate nil              
              ^io.input-link.observation <obs>
              ^turns <t>)
   (<t> -^current-turn)
   (<obs> ^turn <turn-num>)
-->
   (<s> ^operator <o> +)
   (<o> ^name new-turn
        ^prior-turn nil)
}

Datamap:

state ^operator 
                ^name new-turn

This combination of production and datamap does not produce an error, even though the datamap lacks the ^prior-turn augmentation.

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