The repo is the record
Facts live as plain files beside the code they describe. No database, no catalog service. Models in the repo, payloads where they belong.
Who owns which service. What depends on what. Knowledge as code puts those facts in git, reviews them in pull requests, and lets a compiler reject the ones that stop being true. No wiki rot, no stale catalog.
This approach is implemented in Cueto, open source on GitHub.
A wiki can say Alice owns the billing service long after she has left. Write ownership as a typed reference instead of a string, and the claim only compiles while Alice exists. Remove her, and the build fails in the same pull request.
Six pieces that turn scattered facts into a record a compiler can vouch for.
Facts live as plain files beside the code they describe. No database, no catalog service. Models in the repo, payloads where they belong.
You decide what exists in your world, teams, services, datasets. Nothing is imposed, because people only maintain schemas they own.
Packages from different teams merge into one unified view with no central coordinator. The org-wide picture is derived, never written by hand.
CI validates every change. References are typed against what actually exists, so a change that breaks one is rejected at the door.
Imports from HR systems, wikis, and warehouses converge into the repo, and pass the same checks as any human edit.
Git is the archive, the pull request is the review. Versioning did not need to be reinvented.
The checks run on every proposed change, forever. Agents and busy humans keep adding facts, and the ones that stop being true fail the build instead of drifting silently.
Adoption is incremental, and each step pays for itself.
Pick the facts that go stale fastest, usually service ownership, and encode just those. One domain, a few files.
CI checks every pull request from day one. Drift stops accumulating the moment the first check runs.
Pipelines import from the systems you already run, and the record grows without manual upkeep.
Encoding knowledge as code is hands-on work we take on in delivery engagements. For another system we designed and shipped, read the PR Triage design study.
We will look at where your knowledge lives today and where encoding it would pay off first.