· Sourceplane engineering · Platform engineering · 4 min read
Golden paths: make the right way the fast way
Mandates tell engineers what to do. Golden paths make it the easiest thing to do. What a good one contains, how to build it from your best repository, and the mistakes that make them rot.
There are two ways to get a team to build software consistently. You can write a standard and ask everyone to follow it. Or you can make the standard the quickest way to get anything done, so following it is simply what people, and agents, do.
The second is a golden path: a supported, paved road from “I need a new service” to “it is running in production”, with everything the team would otherwise have to work out already in place.
What a golden path contains
A golden path is more than a project template. A good one wires up, from the first commit:
- The code skeleton for the kind of thing you build: a web service, a worker, a scheduled job, a frontend.
- The pipeline: build, test, scan and deploy on merge, with the same stages as every other service.
- The environments: development, staging and production, declared from the same definitions.
- Observability: structured logs, metrics and traces with the team’s standard names, plus a starter dashboard and a basic alert.
- Security defaults: secrets from the secrets manager, CI that authenticates with short-lived tokens, dependency scanning.
- Ownership and docs: a code owners file, an entry in the service catalog, a README that explains how to run, change and operate it.
Someone starting a new service gets all of this in minutes, and none of it needs a meeting.
How to build one
Start from your most common case. If most of what you build is HTTP services in one language, the first golden path is exactly that. Resist the urge to support everything.
Extract it from your best repository. You almost certainly have one service that is built the way you wish they all were. Use it as the starting point, strip out what is specific to it, and keep what is good.
Give it an owner and a version. A golden path is a product with users. Someone owns it, changes go through review, and it has a version so services know what they were built from.
Let improvements flow. The weakness of most templates is that they are copied once and never updated. A better path is one services can be upgraded to: a baseline that evolves, with a clear way to bring existing services up to date.
How to know it is working
Three measures tell you most of what you need:
- Time from idea to staging for a new service. A good path makes it an afternoon.
- Adoption: the share of services built from the path, and the share on its latest version.
- Drift: how many services have diverged from it, and in which ways. Drift is a signal: either the path is missing something teams need, or teams need help to come back.
Mistakes that make paths rot
Too many options. A path that tries to support every language, database and deployment target becomes a maze. Better to have one excellent path and a documented way to step off it.
Copy and forget. Templates that are copied and never updated become historical artefacts. Each copy diverges, and within a year you have the snowflakes you were trying to avoid.
Mandates without convenience. If the path is slower or more painful than doing it by hand, people route around it, and they are right to. The path has to be genuinely the fastest way.
No escape hatch. Some work really does need something different. Make stepping off the path possible and visible, and treat each exception as feedback.
Golden paths and agents
Coding agents learn by example. Point one at a codebase built from a golden path and it produces changes that look like the rest of the system, use the standard libraries and pass the standard checks. Point it at a codebase of snowflakes and it guesses.
That makes golden paths one of the most effective things a team can do before adopting agents widely. They turn “please follow our conventions” from a request into the default. We wrote about the wider picture in the hidden tax of having no standards.
How we help. We build golden paths with your team, extracted from what already works for you and wired into your pipelines and environments. See platform foundation, or talk to an engineer.