Protocol / Architecture
Architecture and action model
LAP separates who expresses a request, who grants permission and who carries it out. These roles can live in the same system.
Participants
- Agent
- Chooses a declared action and builds the URL from the user's intent. Parameters supplied by the agent are input to be checked.
- Principal
- The person on whose behalf the action happens. The principal can confirm directly or give a registered device limited permission.
- Provider
- Publishes actions on its own domain, interprets URLs, checks conditions and issues receipts.
- Executor
- Carries out the change once the request is approved: the website's server, a service gateway or a device controller.
Four kinds of action
read- Returns information from the provider, such as free slots.
render- The browser computes and displays a result from the content of the link. A static page can support this kind.
propose- Opens a preview so the user can confirm before the website makes a change.
execute- Lets a registered device sign the request within a grant. Without a grant it behaves like
propose.
Trust boundary
Knowing the address of an action and being allowed to perform it are two separate things. The provider verifies identity and permission at the time of processing. The executor checks the real conditions again right before it touches a service or a device.