Skip to content

feat: agent-readiness discovery and edge surfaces - #81

Merged
kieronlanning merged 2 commits into
mainfrom
cloudflare-ai-readiness
Dec 4, 2026
Merged

kieronlanning merged 2 commits into
mainfrom
cloudflare-ai-readiness

Conversation

@kieronlanning

Copy link
Copy Markdown
Contributor

Summary

Adds the machine-readable surfaces agent-readiness tooling looks for, all derived from the site existing sources of truth. Ships v0.12.0 (root package.json minor bump; the release workflow is scoped to package.json).

  • Markdown for Agents (ADR 0016) - per-page Markdown siblings emitted at build time plus a dependency-free Cloudflare Worker that negotiates Accept: text/markdown (falling back to /llms-full.txt).
  • RFC 9727 API catalog (ADR 0017) - a generated linkset at /.well-known/api-catalog, served with its application/linkset+json type by the Worker.
  • Homepage discovery Link headers (RFC 8288 / RFC 9727 section 3, ADR 0018) - api-catalog, service-desc, service-doc, describedby and sitemap on GET/HEAD of /.
  • /auth.md (ADR 0019) - a self-contained agent-registration document for this static, no-login site: it names the agent audience and states there is no registration, no authorization server and no credentials.

Validation

  • bun test worker/tests - 28 pass
  • Discovery unit suites (discovery-*) - pass
  • oxfmt / oxlint - clean (the pre-commit hook ran on commit)
  • astro check - 0 errors / 0 warnings
  • CI (pr.yml -> purview-build) runs the full just validate gate

Notes

  • /auth.md and the RFC 9727 media type are enforced by the Cloudflare Worker, which deploys only when CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID are configured; the static site works without it.
  • The pre-push just validate hook was skipped locally (LEFTHOOK=0) because it needs a network data-sync and a full build; CI runs it.

Add the machine-readable surfaces agent-readiness tooling looks for, all
derived from the site's own sources of truth (ADR 0007):

- Markdown for Agents (ADR 0016): per-page Markdown siblings emitted at build
  time and a dependency-free Cloudflare Worker that negotiates
  `Accept: text/markdown`.
- RFC 9727 API catalog at /.well-known/api-catalog (ADR 0017).
- Homepage discovery `Link` headers (RFC 8288 / RFC 9727 s3, ADR 0018).
- A self-contained /auth.md for a static, no-login site (ADR 0019).

Extend the discovery validator, generated-output check, dist tests and the
Worker test suite to cover the new artifacts.
Bump the site version to ship the agent-readiness surfaces.
@kieronlanning
kieronlanning enabled auto-merge (squash) December 4, 2026 17:12
@kieronlanning
kieronlanning merged commit 4b6cdc1 into main Dec 4, 2026
1 check passed
@kieronlanning
kieronlanning deleted the cloudflare-ai-readiness branch December 4, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant