Repository navigation
Put "do not fork, upstream" in the mission: foundational dependencies stay in the open #43
Description
On the 28 August office hours (#40) a rule got stated that this project has been following by instinct and has never written down. It should be written down, because it is the difference between fixing this problem once and re-creating it.
What was said
The problem, from someone who maintained the codebase for five years: the packages this depends on — the ones it cannot function without — are forks, they live under someone else's umbrella, and forking the linter did not fork the supply chain.
Right now we've just forked the linter itself, but we need to take the tooling as well. We were thinking about whether we contribute back to upstream packages, with some of the libraries that we maintain but which are essentially forks of some other library that just wasn't maintained — kind of like the linter itself. We're saying we're trying to crack down on forks with this, but that's something I've been banging on about for years.
Then the rule, stated normatively:
Anything that's foundational — that is needed by whatever base tooling we prioritize to build — has to somehow be in the open. It can't be lying somewhere behind a closed wall, unmaintained. It has to be at least there, open, and then it's this initiative's responsibility to maintain that if it's fuelling the tooling that other folks will be using. Or, more or less, we can strike up an appropriate relationship.
But the problem with relationships, when something we depend on is not 100% open source, is that it can die on the vine if the champion of that leaves or is no longer in a position to be able to influence things. That's what's happening.
And the specific case, which happens to be the easy one:
This depends on a fork of
json-schema-ref-parser, the upstream version of which I own. So I'm happy to work with myself on that. But we should try to upstream as much stuff as possible. Before, it was just that they didn't want to spend the money, or there were particular features they thought upstream wouldn't want. For this larger effort, it'd be good to put the effort into upstreaming and getting back onto the actual dependencies — or finding a new dependency that wouldn't require a fork. Not having to maintain a million forks would be nice.
Kin's conclusion on the call: this goes in the mission.
The rule, as proposed wording
Every foundational dependency of this specification's tooling must be open, and must be maintained somewhere that does not depend on any one person's goodwill. Where we inherited a fork, the default is to upstream the changes and return to the real dependency. Where upstream is dead, the fork is adopted openly and maintained in the open, and that is stated. Where neither is possible, the dependency is a known risk on the record, not a quiet assumption.
We do not fork by default. Forking is an outcome we accept when the alternative is a private dependency, not a strategy.
Why this belongs in the mission and not only in a backlog
Three reasons, all of them from this project's own history.
- It is the diagnosis of the disease we are treating. This effort exists because a governance format that everybody depends on ended up somewhere its users could not influence. Rebuilding it on packages that are in exactly that position would be the same failure, one layer down.
- "There's a relationship" is not a control. The failure mode is named precisely above: the champion leaves and the dependency dies on the vine. Every organisation in this room has watched that happen — several of them to this codebase.
- It is what we are asking others to do. This project asks vendors to adopt shared core libraries rather than roll their own (api-commons/spotlight-tools). That request has no standing from a project that keeps its own foundations private.
Stating it also usefully constrains us: it means a convenient private dependency, a vendored copy that never gets upstreamed, or a "we'll open it later" is out of bounds by policy, not by argument, every time it comes up.
What this issue delivers
- The rule, in
MISSION.md/ the governance documents, in wording the group agrees on - A stated definition of foundational — a dependency without which the base tooling cannot function, so this does not slowly expand to cover every transitive package
- The inherited-fork inventory referenced from the mission rather than living only in the tooling backlog: api-commons/spotlight-tools#15 (supply chain), #64 (the JSON Ref bundler)
- A statement of what happens when the rule cannot be met — the dependency is declared, with the reason, in a place users can read
Related: api-commons/spotlight-tools#15 · api-commons/spotlight-tools#64 · #3 and #5 (governance documents) · #11 (runtime portability, the other normative "do not lock this in" requirement).
Raised in the office hours of 28 August 2026 — notes in #40.
Activity