Build versus borrow
What this is
A record of every third-party component the platform runs, or has considered and declined, with the licence, language, sovereignty position and the verdict.
It is held as data in registries/adoption.yaml rather than as a document, so the decisions are queryable, the doctor can check them, and a component that was declined cannot be quietly reintroduced later by someone who did not know why.
The decision rules
In priority order. A component that fails rule 1 or 2 is disqualified before anything else is discussed.
| rule | the question | disqualifying when |
|---|---|---|
| 1. Licence | is the open edition genuinely open, OSI-approved, and does it permit self-hosted commercial use inside a bank? | permission, role or plan-enablement code is carved out of the open grant, or the licence is non-OSI for the edition we would run |
| 2. Language | what is it written in, and does that conflict with project law? | Python, for anything first-party. A Python upstream may be run as a vendored container, never extended |
| 3. Sovereignty | does it work offline, on premises, with no paid account or cloud dependency? | account-bound or cloud-only, unless the dependency is explicitly accepted and recorded |
| 4. Governance fit | can its governance model be expressed as playbook primitives, or would adopting it replace the registry as the source of truth? | it must own the approval or audit record |
| 5. Security posture | does the open edition carry real access control, audit and a credible patch cadence? | RBAC, audit or backup sit behind a paid tier for the edition we would run |
| 6. Strategic value | is this the differentiated product, or commodity infrastructure? | commodity should be borrowed. Only the differentiated core is worth building |
| 7. Maintenance | who maintains it, and what is the drift cost if we fork? | a fork that drifts silently misses upstream security fixes |
The rule that does the most work
Rule 4 is the one that is easy to miss and expensive to get wrong.
If a product's governance model can be expressed as primitives, adopt the product as an execution backend and keep the registry authoritative. If it cannot, and the registry must defer to it, then it is replacing the governance rather than serving it, and that is a much larger decision.
This is what declined Bytebase. On capability it was a strong fit. But its approval workflow and audit log would have become a second source of truth for approval, alongside the primitive properties and the playbook registry that already hold that role.
The verdicts
| verdict | means |
|---|---|
| BUILD | write it first-party, in Rust or bun, because it is strategic and nothing adequate exists |
| BORROW | run it as a pinned upstream dependency, configured but not patched |
| FORK | adopt and maintain a fork, accepting the drift cost, with a named owner and a rebase cadence |
| SKIP | declined, with the reason recorded so it is not reconsidered blindly |
| BUY | adopt under a commercial licence, with the cost and the exit path recorded |
| CANDIDATE | promising, not yet decided, with the open question named |
The current position
Decided by licence or language
| component | verdict | licence | why |
|---|---|---|---|
| golang-migrate | BORROW | MIT | OSI-approved, Go, fully offline. Adopted as the migration backend |
| Bytebase | SKIP | MIT with a proprietary carve-out | permission and plan-enablement code is excluded from the MIT grant; governance features are paid |
| ClickHouse | CANDIDATE | Apache-2.0 | genuinely open, RBAC in the open build, held pending four control preconditions |
| Neo4j Community | SKIP | GPLv3 | no RBAC, no sub-graph access control, no online backup |
| Neo4j Enterprise | BUY | commercial | the only edition with RBAC and online backup, which the target requires |
| Apache AGE | CANDIDATE | Apache-2.0 | graph inside the PostgreSQL already deployed, so it inherits RBAC and backup |
| Liquibase | SKIP | FSL 5.0+ | the current licence is not OSI-approved |
| Atlas | CANDIDATE | Apache-2.0 | Go and permissive; the alternative if declarative schema diffing is wanted |
| schemachange | SKIP | Apache-2.0 | Python, which law forbids, and Snowflake-locked so it cannot target Postgres |
| pg_lake | CANDIDATE | Apache-2.0 | the one snowflake-labs artefact that works offline with no account |
| GraphAware Framework | SKIP | GPLv3 | archived in 2021, Neo4j 3.x era |
| neo4j-config-cli | BORROW | Apache-2.0 | declarative database reconciliation, same pattern as the registries |
Borrowed and running
| component | licence | language | role |
|---|---|---|---|
| Caddy | Apache-2.0 | Go | reverse proxy and TLS |
| OpenBao | MPL-2.0 | Go | secrets management |
| Headscale | BSD-3-Clause | Go | self-hosted mesh control plane |
| Wazuh | GPLv2 | C, Java, JS | SIEM and host intrusion detection |
| LiteLLM | MIT plus an enterprise directory | Python | AI gateway, accepted upstream, never extended |
| PlantUML server | MIT | Java | local diagram rendering |
| FossFLOW | MIT | TypeScript | isometric diagrams |
| Bun | MIT | Zig, C++ | the sanctioned scripting runtime |
| docker-socket-proxy | Apache-2.0 | Go | read-only Docker API for the indexer |
The platform is overwhelmingly a borrow platform. That is the correct position: it is not differentiating on a reverse proxy or a SIEM.
Anti-patterns this sheet exists to catch
- Adopting a component whose open edition lacks the control you need, then discovering at audit that RBAC was a paid tier. Neo4j Community and Bytebase are both this.
- Adopting a Python component as first-party code. A Python upstream as a vendored container is fine and recorded; extending one is a law breach.
- Forking without an owner or a rebase cadence. A drifted fork silently misses security fixes, and in a bank that is not acceptable.
- Letting a product become the governance record. Two sources of truth for approval is worse than one, even when the product is better at it.
- Re-deciding something already declined. The
SKIProws carry their reason precisely so the argument does not have to be had twice.
What is missing
The sheet is honest about its own gaps.
- Sixty-plus repositories are under evaluation in ten themed groups. Their verdicts will be added as they land.
- Python upstreams are recorded per component but there is no estate-wide count. The platform clearly runs several. That register should exist.
- No exit cost is recorded for the BUY rows. Neo4j Enterprise has a price and a migration path away from it, and neither is written down.
- The doctor checks are specified but not written:
adopted_component_missing_licence,adopted_component_python,adopted_component_no_rationale.
How to use it
- Before adopting anything, work the seven rules in order and stop at the first disqualification.
- Record the verdict in
registries/adoption.yamlwith its evidence URL, not in a document. - If the verdict is SKIP, write the reason. The reason is the deliverable.
- Re-run the collector and the doctor. A component with no licence recorded is a finding.