Skip to main content

Actions

The axag-action-type attribute classifies the nature of an operation.

Action Types

TypeSemanticSide EffectsIdempotent by Default
readRetrieves data without modificationNoneYes
createCreates a new entity instanceEntity creationNo
mutateModifies an existing entityState changeDepends
deleteRemoves an entityEntity removalDepends
navigateChanges view context without data mutationNoneYes

Rules

  • read and navigate actions SHOULD have axag-risk-level="none" unless special circumstances apply
  • create, mutate, and delete actions MUST declare axag-risk-level
  • delete actions SHOULD have axag-confirmation-required="true" unless the deletion is trivially reversible
  • mutate actions that produce financial impact SHOULD be classified as high or critical risk