Skip to main content

What is a golden path in platform engineering?

A golden path is the supported, opinionated way to build, test, and ship one kind of software in an organisation: a backend service, a Terraform module, a static site, a worker. It packages the decisions a team would otherwise make from scratch (the tooling, the pipeline, the environments, the checks a change must pass) into a default that is easy to follow. Teams can still leave it, but staying on it is the cheapest choice.

Spotify popularised the term; Netflix calls the same idea the paved road. Both describe a platform team doing the hard, repeated work once so that every product team does not have to.

What a golden path contains​

A golden path is more than a project template. A useful one answers every question a team asks between "I need a new service" and "it is running in production":

PartThe question it answers
ShapeWhat must a component of this kind declare? (a runtime version, a directory, a health endpoint)
Build and checkWhich steps build, test, lint, and scan it, and in what order?
LanesWhat runs on a pull request, what runs on merge, what runs on a release?
EnvironmentsWhere does it ship, and in which order does it promote?
OwnershipWho owns it, and where is that recorded?
DocumentationHow does a newcomer, or a coding agent, learn the path?

Golden path, paved road, guardrails, template​

These words get used interchangeably. The distinctions are worth keeping:

TermWhat it is
Golden pathThe supported way to build and ship one kind of software, end to end.
Paved roadNetflix's name for the same idea, often used for the whole set of golden paths.
GuardrailA rule that stops a change from leaving a boundary, such as "production deploys only from a tag". Guardrails can sit on or off a golden path.
TemplateA starting point that generates files once. A template is one way to start on a golden path; it is not the path.

Why most golden paths drift​

Most golden paths ship as two things: a scaffolding template and a wiki page. The template copies files into a new repository on day one. From day two, every copy is a fork.

  • The template is applied once. When the platform team improves the path, the repositories created last year do not change. Rolling the improvement out means a pull request per repository, so most never get it.
  • The pipeline is copied, not referenced. Each repository's CI file starts as the golden one and diverges with every local fix.
  • Nothing checks conformance. The wiki says "every service sets a health check", but nothing fails when one does not.
  • New contributors learn by imitation. They copy the nearest example, which may be the repository that drifted furthest. Coding agents do the same, faster.

The result is a golden path that describes how things should be built, while the repositories describe how they are built, and the two grow apart.

A golden path as code​

A golden path stops drifting when it is a contract the platform reads, rather than files it copies. In practice that takes four properties:

  1. A typed contract, checked on every change. The path declares a schema for the components that follow it, and every plan validates each component against it, not only on the day the component was created.
  2. Versioned and pulled by reference. Repositories depend on the path the way they depend on a library, so an improvement ships as a version bump that each repository reviews, instead of a copy-paste campaign.
  3. Aware of the lane. The same path behaves differently on a pull request, on merge, and on a release, and that difference is declared rather than buried in CI conditionals.
  4. Readable by tools and agents. Because the path is data, a planner, a catalog, and a coding agent can all read the same definition instead of each inferring it.

How orun implements golden paths​

In orun, a golden path is a composition: a ComponentSchema (the shape a component must have), JobTemplates (the steps that build, check, and ship it), and ExecutionProfiles (what may run in each lane). Compositions are packaged as versioned OCI Stacks that any repository pulls by reference and can pin by digest.

A team follows a path by naming its type in a component.yaml next to the code:

apiVersion: sourceplane.io/v1
kind: Component
metadata:
name: network-foundation
spec:
type: terraform # the golden path
subscribe:
environments:
- name: staging
profile: verify # what may run in this lane
- name: production
profile: release
parameters: # checked against the path's schema at plan time
terraformDir: .
terraformVersion: 1.9.8

orun plan rejects a component whose parameters do not match its path's schema, and records the exact digest of every path a plan used. Upgrading the path for every repository is a version bump in intent.yaml, reviewed as a plan diff. A coding agent in the repository reads the same component.yaml and compositions, and can query the catalog built from them through orun mcp, so it follows the path instead of copying the nearest example.

Is your golden path real?​

Five questions to ask of any golden path, whatever tool implements it:

  • If a repository leaves the path, does anything fail, or does someone have to notice?
  • When the path improves, how many pull requests does it take to roll the change out?
  • Can you list every component on the path, and the version each one is on?
  • Can a reviewer see what a change to the path will do before it merges?
  • Does a coding agent working in the repository read the path, or guess it?