Why it matters
No boundaries, one library.
Code today is cut up by namespaces, repositories and crates. Those borders say where code
was written and how it is shipped, not what it computes. When a definition is found by
what it is, they stop being walls.
No arbitrary boundaries. Namespaces, repositories, crates and packages
are somewhat arbitrary lines: they decide what can see what and what has to ship together.
In Sophia every definition sits in one store under its own id. A namespace is only a set
of names laid over it, so code is reused across what used to be package borders, without
wrapping or vendoring.
Versions and dependencies, done differently. A dependency points at an
id, not at a package and a version range, so it cannot drift or conflict: two versions of
a function are two ids, side by side. A release is a named set of bindings, and whether a
change is a patch, minor or major release is
derived from the evidence instead of declared.
Against AI code bloat. Coding agents tend to write a new helper instead
of finding the one that exists, and a library fills up with copies of the same function
under different names. In a store keyed by structure, an exact duplicate gets the
original's id and folds into it; near-duplicates need equivalence edges, below. And an
agent can ask the store whether something exists before writing it (the MCP server, M3b,
planned).
Reuse, not rewrite. AI makes rewriting other people's code cheap, but a
rewrite throws away the tests, proofs and trust the old code had gathered. The intention
is the opposite: find the existing library, with the facts attached to it, and use it.