Skip to main content
Version: Alpha

Architecture and ownership

This page shows how Golf is put together on Cloudflare and on portable infrastructure, and which component owns each kind of data. Read it before you deploy, extend or operate Golf.

Portable and Cloudflare Golf share the same React interface and API contract. Each installation reports which features it supports and explains when a service is unavailable.

Canonical source, product state and private output ownership

Editable Mermaid source · All architecture diagrams.

Native Cloudflare​

Open the detailed service diagram · Download Mermaid source.

ComponentOwns
ArtifactsGit history
D1Collaboration, permissions and job records
Durable ObjectsCoordination of requests, jobs and maintenance timers
Trusted server codeProvider credentials

Private source and reports require current repository access.

The native control Worker embeds the built shared UI. It does not serve its authenticated UI through the Workers Static Assets router; that router's Access identity limitation is documented in the product setup. The independent marketing and docs sites are static Workers asset deployments.

Roadmap

The agentic mode roadmap changes how the Cloudflare control path admits concurrent Git traffic and lands changes, so many agents can work in one repository at once. It is planned and in progress, not current behavior.

Portable​

Open the portable diagram.

Forge data boundary

Golf does not write the forge's database or repository files directly. Privileged offline recovery is a separately documented operation into a fresh, stopped target, with all writers drained; it is not a live-write exception.

Shared contracts​

api/golf/v1/golf.proto and companion generated contracts remain authoritative. Browser Connect clients and the Golf CLI reuse these services. In the browser:

  • TanStack Router owns navigation.
  • TanStack Query holds cancellable private data.
  • Forms and loaded inventory tables use the shared product components.

Uncertain provider results​

If a provider response is uncertain, Golf checks the stored result before marking the operation complete. A saved operation record does not make changes across multiple services atomic. Read security, native execution and status for the current boundaries.