Internet-Draft AWP Well-Known November 2025
Singh & McKay Expires 5 May 2026 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-vinaysingh-awp-wellknown-00
Published:
Intended Status:
Standards Track
Expires:
Authors:
V. Singh
Ajna.inc
D. McKay
Verid.id

The Agent Workflow Protocol (AWP) Well-Known Resource and Link Relation

Abstract

This document registers a Well-Known URI, /.well-known/awp.json, and a companion Link Relation Type, awp. The resource exposes a small, machine-readable description of common website workflows (states, actions, and resulting events) so automated agents can act predictably without scraping. The format is JSON and intentionally minimal.

About This Document

This note is to be removed before publishing as an RFC.

Status information for this document may be found at https://datatracker.ietf.org/doc/draft-vinaysingh-awp-wellknown/.

Source for this draft and an issue tracker can be found at https://github.com/vinaysingh8866/awp-wellknown-draft.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 5 May 2026.

Table of Contents

1. Introduction

Automation on the Web often relies on brittle scraping. Many sites already publish machine metadata (e.g., OpenAPI descriptions, sitemaps). This document defines a single optional entry point — a Well-Known resource — that advertises a compact, typed map of site workflows. Agents can use it to perform tasks deterministically (e.g., sign in, search, checkout).

This document registers:

The resource is read-only and does not alter authorization; normal Web security controls continue to apply.

2. The AWP Resource

An origin MAY expose a JSON resource at:

GET /.well-known/awp.json Content-Type: application/awp+json

The document contains:

A minimal example follows:

{
  "version": "1.0.0",
  "initial": "Anon",
  "states": {
    "Anon":          { "available": ["login"] },
    "Authenticated": { "available": ["search","checkout"] }
  },
  "transitions": [
    { "from": "Anon", "event": "login_ok", "to": "Authenticated" }
  ],
  "actions": {
    "login": {
      "form": { "method": "POST", "target": "/api/login", "contentType": "application/json" },
      "expects":  { "$ref": "#/schemas/LoginInput" },
      "emits": { "onSuccess": "login_ok", "onError": "login_failed" }
    }
  },
  "schemas": {
    "LoginInput": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "required": ["email","password"],
      "properties": {
        "email": { "type": "string", "format": "email" },
        "password": { "type": "string", "minLength": 8 }
      }
    }
  },
  "site": {
    "name": "Example Shop",
    "baseUrl": "https://shop.example.com"
  }
}

Servers MAY use RFC 6570 URI Templates in form.target (e.g., /api/search{?q,limit,offset}). API errors SHOULD use RFC 9457 Problem Details to allow deterministic branching by clients.

4. Security Considerations

5. IANA Considerations

5.1. Well-Known URI Registration

IANA is requested to register the following in the “Well-Known URIs” registry:

  • URI Suffix: awp.json

  • Change Controller: IETF

  • Specification Document: This document, Section 2

  • Status: permanent

  • Related Information: JSON manifest describing site workflows for automated agents.

Appendix A. References

Authors' Addresses

Vinay Singh
Ajna.inc
Dave McKay
Verid.id