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.
Editable Mermaid source · All architecture diagrams.
Native Cloudflare
Open the detailed service diagram · Download Mermaid source.
| Component | Owns |
|---|---|
| Artifacts | Git history |
| D1 | Collaboration, permissions and job records |
| Durable Objects | Coordination of requests, jobs and maintenance timers |
| Trusted server code | Provider 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.
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
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.