Annotating Destructive Actions
Destructive actions (delete, purge, revoke) require explicit safety annotations.
🔴 Critical destructive action — account deletion
<button
axag-intent="account.delete"
axag-entity="account"
axag-action-type="delete"
axag-required-parameters='["account_id","confirmation_code"]'
axag-risk-level="critical"
axag-confirmation-required="true"
axag-confirmation-message="This will permanently delete the account and all data. This cannot be undone."
axag-idempotent="false"
axag-side-effects='["data_purged","subscriptions_cancelled","api_keys_revoked"]'
axag-scope="user"
>Delete Account</button>
Rules:
deleteactions MUST declareaxag-risk-levelofmediumor highercriticalrisk actions MUST haveaxag-confirmation-required="true"- Irreversible actions SHOULD declare
axag-idempotent="false" - All side effects MUST be declared