Stories: Dependency Management
See also:
spec/dependencies.md— the rules this story explains.
URL identity and the two-file manifest
The first fork in any dependency system is the identity of a package. The mainstream answer is a central registry: a package is a short global name — lodash, serde, requests — that the registry maps to code. We could have built that, and it buys real benefits: memorable names, a single place to search, a curated namespace. We turned it down anyway, because a registry is a name authority, and a name authority is a single point of control, failure, and dispute. Someone has to own the mapping from math to a repository, adjudicate who gets the name http, keep the index alive for the life of the language, and be trusted not to repoint a package name at hostile code. Every registry ecosystem eventually fights typosquatting, name-squatting, and the day the index goes down. None of that is essential to fetching code; it is essential only to the short-name convenience the registry exists to sell.
So Zane takes the URL the code already lives at as the identity. github.com/zane-lang/math is the package — there is nothing to register, no authority to trust, and the name is globally unique by construction because URLs already are. The address you fetch from and the name you use for the package are one string, which removes a whole layer of indirection and the failure modes that come with it.
The price is paid in two coins, and they are real. First, there are no short names: source would be unreadable if every call site spelled out a URL, so the manifest assigns each dependency a local key — math — used in import math and as the join column between the two manifest files. That key is deliberately only a nickname, scoped to one project; it carries no identity and two projects may nickname the same URL differently. Second, identity is tied to location, so a repository that moves — an org rename, a host migration — looks like a different package, and consumers must update the URL. A registry would have absorbed that move behind a stable name. We judge the move-churn cheaper to live with than a permanent name authority to maintain, but it is a genuine benefit the registry road would have given us and this road does not. That the key is a per-project nickname with no global meaning is exactly why the remapping opt-in, much later in this story, is written in URLs rather than keys.
Given URL identity, a project still has to record two quite different facts: the human’s request, and the resolution of that request. The lazy design folds them into one file — a single manifest holding key, URL, version, and commit hash all together. We split them into zane.coda (intent) and zane-versions.coda (resolution) instead, and the split is not bookkeeping fussiness; it tracks a difference in audience and lifecycle. Intent is small, human-authored, and reviewed: “I want math at v6.2.9.” Resolution is large, machine-generated, and verified: “that tag is URL …/math at commit a3f8c2d.” Mixing them buries every intent review — the part a human actually reads in a pull request — under churning commit hashes the human neither wrote nor should diff. Keeping intent in its own file means a dependency-bump review shows a one-line tag change, while the resolution file acts as a lockfile: a verifiable record that this tag was this commit, so a later moved tag is detectable, a thread the tag-and-commit pinning picks up below. This is the same intent-versus-lock division that package.json/package-lock.json and Cargo.toml/Cargo.lock arrived at; we are not original here, and the convergence is a good sign.
The cost of two files is that they can drift out of sync — a key in one and not the other, a hand-edit to one alone. We pay it down not by merging them back but by making the toolchain refuse to guess: build-flow step 1 validates that the keys in the two files correspond exactly, and aborts on any missing, extra, or mismatched key rather than papering over it. Drift becomes a loud error instead of a silent mis-resolution, which is the trade we want — the split’s danger is contained by strictness rather than by giving up the split.
Shipping compiled objects, and rewriting their symbols
With identity and the two-file record settled, the next question is how a dependency actually arrives in linkable form. Three roads. Distribute source and compile it on the consumer’s machine, the way Cargo does. Distribute prebuilt binaries as release assets attached out-of-band to a tag, the way GitHub Releases and most C package managers do. Or commit the prebuilt object files into the repository tree itself, beside the source. Zane takes the third, and it is the most unusual choice in the document, so it is worth being honest about why and about what it costs. Compile-on-install was rejected because it makes every consumer pay the full build cost of every transitive dependency, and makes “fetching a package” depend on a working local toolchain for that package’s every quirk — the dependency that makes a clean install slow and fragile elsewhere. Release-asset binaries were rejected for a subtler reason: they make fetching depend on a host-specific API. The binary for tag v1.0.1 lives not in git but in GitHub’s (or GitLab’s, or some artifact server’s) release endpoint, so the fetcher has to speak each host’s asset protocol, and the source and its binary no longer share one immutable identity — the tag can point at one commit while its attached assets are swapped underneath. Putting the objects in the tree under build/ means a fetch is just a git clone, host-agnostic by construction, and the source and its compiled form share the single immutable identity of one commit. That last property lets the commit-pin tamper check, described shortly, cover the binaries too, not just the source.
The costs are not small and we do not pretend otherwise. Repositories carry compiled objects for every supported target triple, so they are larger and their history heavier. A package is only usable on a target whose prebuilt artifact the author actually shipped — there is no compile-from-source fallback in the normal path, so a missing triple is a hard “unsupported here” result. And consuming a prebuilt object means trusting the author’s binary, which is a heavier trust than trusting source you could read. We mitigate the last cost with an explicit escape hatch — --from-source compiles from the verified source checkout for anyone who does not trust the shipped object — but we keep that as opt-in rather than default precisely because the host-agnostic, identity-sharing prebuilt path is the property we are optimizing for, and making source-compilation the default would forfeit it for everyone to serve the cautious minority.
Shipping prebuilt objects raises a problem the moment two parts of one program need two different versions of the same library — your direct dependency on math v6 and some transitive dependency’s pin to math v5. A linker cannot hold two symbols both named math$vec; one definition wins and the other’s callers are silently mislinked. The classic answers are all unhappy: force the whole graph onto one version (a solver, with the diamond-dependency conflicts that make npm and pip painful), or make authors bake a version number into every public name by hand (math_v6_vec), which pushes versioning into source and makes every API rename a version bump. Zane’s answer is to make the toolchain do the renaming, mechanically, at fetch time. A library is compiled with its own exports carrying a placeholder marker — !math$vec — and when zane add pulls a specific version, it rewrites that placeholder into the resolved version tag, producing v1.0.1%math$vec. Two versions now have genuinely different symbol names and coexist in one link with no collision and no solver. The author never writes a version into their source; the ! placeholder is a promise that the toolchain will stamp the real version in later. This is why side-by-side coexistence, not version unification, is the default behavior — the mechanism makes coexistence the cheap path.
The interesting scar on this story is the separator character, because it is where an abstract design met the ugly reality of platform linkers. The natural first pick between the version and the key was @ — v1.0.1@math$vec reads cleanly and @ is conventional for “at version.” It is also actively dangerous: on ELF, @ is reserved for symbol versioning (symbol@VERSION), so a linker reading v1.0.1@math$vec may decide v1.0.1 is the symbol and math$vec is its version — exactly backwards — and Mach-O and PE toolchains variously reject or decorate @ too. We went looking for a character with no reserved linker meaning on any of the three major object formats and settled on %. The competing candidate was __, which is maximally portable but reads as part of an identifier rather than as a structural delimiter; % was chosen over it because the symbol scheme already spends a non-alphanumeric delimiter — $, between the package key and the member — so the toolchain has already committed to carrying assembler-special punctuation through symbol names, and % is the same class of character as the $ we have lived with all along, not a new kind of risk. To make the first % an unambiguous delimiter, % is also forbidden in version tags by the same path-safety validation that screens cache paths (§7), so the version-to-key boundary can never be faked by a % inside a tag. The lesson worth recording: a symbol-mangling scheme is not free to use whatever punctuation reads nicely, because the punctuation namespace is already colonized by linkers, and the only safe move is to pick from what they all leave alone and then reserve it.
The cost of the whole approach is a rewrite step with state: there is now a distinction between the author’s original !-prefixed objects (which arrive in the repo’s own build/, cached at src/build/) and the toolchain’s rewritten version-stamped objects (the cache’s top-level build/). That two-level cache layout is bookkeeping the symbol-rewriting buys, and the spec spends real words keeping the two straight; it is the price of doing versioning in the linker’s namespace instead of the source’s.
A tag for humans, a commit for the machine
A version pin itself has to satisfy two readers with opposite needs. Humans want a tag — v6.2.9 is meaningful, orderable, the label a changelog uses. Reproducibility needs a commit hash — immutable, content-addressed, immune to a tag being repointed. Pin only by tag and your build is at the mercy of whoever can move the tag; pin only by commit and the manifest becomes an unreadable wall of hashes nobody can review. Semver ranges, the npm/Cargo default, fail the reproducibility test outright: ^6.2.0 resolves to different code on different days, which is the opposite of what a build that has to be bit-reproducible can accept. So Zane records both: the tag in the human-facing manifest, the commit it resolved to in the lock file. The two together are stronger than either alone, and they make a specific attack detectable. When the toolchain fetches, it re-resolves the recorded tag to a current commit and compares it to the recorded commit; if they differ, the tag has moved since it was added, and the fetch aborts with a security error rather than proceeding. A moved tag is exactly the signature of repository tampering or a hijacked release, and the default stance is to treat it as hostile, not to silently accept the new commit. The cost is friction in the one case where a tag legitimately moves and the user actually wants the new commit — a re-tagged release, for example. We do not make that impossible, but we make it deliberate: it takes an explicit --accept-tag-move override, so trusting a moved tag is always a conscious, named act, never a silent default. We would rather impose a flag on the rare legitimate move than auto-trust every move and miss the malicious move hiding among them.
One cache, many spellings of one URL
A verified fetch has to land at a path on disk, and that path is in a single cache shared across every project on the machine (dependencies.md §7) rather than a copy vendored into each project. The per-project alternative is simpler to reason about — every project owns its own dependency tree, nothing is shared, nothing can be corrupted by a neighbor — but it pays for that isolation by refetching and re-rewriting the same math v6.2.9 once per project that wants it, and by storing the prebuilt objects (which are not small, chapter two) once per project too. Because identity is an immutable URL-plus-commit and the rewrite that produces the version-stamped objects is deterministic, the same version resolves to byte-identical cached artifacts no matter who asks for it, so sharing is safe by construction: there is nothing project-specific in a cache entry to get crossed. A second project that adds the same version reuses the existing build/ rather than downloading and rewriting again.
Sharing forces the question the per-project model never has to ask: the path of a cache entry, given that its identity is a URL. A URL is not a filesystem path — it carries a scheme, sometimes a user prefix, a host, and a path, in punctuation a filesystem will not all accept. The first temptation is to hash the URL into a fixed-width opaque directory name, which is collision-resistant and trivially path-safe. We turned that down because an opaque hash makes the cache unbrowsable: a developer who wants to see what is cached, or delete one package, faces a directory of meaningless hex. So the cache mirrors the URL’s own structure instead — Go-style mangling, where each / of the URL becomes a directory level, so github.com/zane-lang/math is three nested, human-legible directories. The price is that the URL must first be reduced to a canonical shape, because the same repository has several legitimate spellings.
That reduction is the part with the most reasoning behind it. One repository can be named https://github.com/zane-lang/math or git@github.com:zane-lang/math — different scheme, an SSH user prefix, and an SCP-style : where the HTTPS form has /. Left alone, those two spellings would mangle to two different cache directories and the toolchain would fetch, store, and rewrite the same code twice, and worse, the multiple-version coexistence machinery might see them as two different packages. So normalization strips the scheme, strips the SSH user prefix, and rewrites the SCP : to /, collapsing both spellings onto the single identity github.com/zane-lang/math — one cache entry, one fetch. This is the rare place the design treats two different strings as the same package, and it is deliberate: the strings differ only in transport, not in what is fetched, so unifying them is recognizing a true equality, not guessing at one.
After normalization there is still punctuation that has no business becoming a directory name — a stray :, @, %, ?, #. Here the design makes a choice it makes nowhere else with paths: rather than escape or percent-encode such characters into a path-safe form, zane add simply fails and refuses the URL (dependencies.md §7). The reasoning is that an escaping scheme is a second, lossy namespace layered over the first — two distinct URLs can escape to the same directory, or one URL can be escaped two ways — and every such scheme eventually leaks. A package URL that needs escaping to be a path is almost always a malformed or hostile input, not a real repository anyone hosts, so the honest move is to reject it loudly at the one moment a human is running a command, not to invent an encoding to swallow it silently. The check runs only over the host-and-path remainder, since the scheme, user prefix, and normalized : are exempt by construction — they were already handled. This same forbid-rather-than-escape stance is why % is banned in version tags back in the symbol-rewriting chapter: the cache path and the symbol separator are screened by one rule for one reason.
The cost the cache layout carries is a two-level structure that the spec spends real words keeping straight, and which exists entirely because of the prebuilt-object decision. A cache entry’s src/ holds the whole cloned repository — including its own build/, so the author’s original !-prefixed objects sit at src/build/ — while the entry’s top-level build/ holds the toolchain’s rewritten, version-stamped objects. Two directories both called build, at different depths, holding different files: the author’s input and the toolchain’s output. That is genuinely confusing, and it is the bookkeeping price of doing version-stamping as a rewrite of shipped binaries rather than at compile time; a source-only model would have one build/ and no rewrite, at the costs the shipping chapter already accepted.
No cycles between packages, every freedom within one
Reading a package’s manifest pulls in its dependencies, and reading their manifests pulls in theirs — fetching is recursive (dependencies.md §9), so the dependency relation forms a graph, and a graph raises the question of cycles. Zane forbids them across package boundaries: the package graph MUST be a DAG (dependencies.md §10), so if A depends on B, no chain of dependencies may lead from B back to A. The alternative — tolerating cycles and resolving them, the way a linker resolves mutually-referential object files — was available, but a dependency cycle is almost never a design anyone intended: it shows that two packages have no clean layering, that neither is really “below” the other, and that they probably belong in one package. Allowing the cycle would let that latent design error compound silently across releases; rejecting it at build time, with an error that names the cycle, turns it into feedback at the moment it is introduced.
The rejection has to be drawn at the right boundary, though, because within a single package mutual reference is not an error at all — it is ordinary code. Two functions in different files of the same package calling each other, a type in one file referenced by a function in another: a package is compiled as one unit, so these are just internal references, and forbidding them would be absurd. So the acyclicity rule is scoped strictly to the package-level graph and says nothing about intra-package references (dependencies.md §10.1). The line is between units of distribution, not between declarations. The cost is that two packages which genuinely want to reference each other cyclically cannot, and their author is pushed to either merge them or factor the shared part into a third package they both depend on — which is, not by accident, exactly the restructuring we wrote the rule to provoke.
Opt-in remapping
Side-by-side coexistence is safe and simple, but it has a cost that grows with the dependency graph: a program that pulls math at v6.2.9, v6.3.1, and v6.3.4 through three different paths links three nearly-identical copies of math into the binary, even though for most libraries those three are perfectly interchangeable. We wanted a means of collapsing that waste — without reintroducing the version solver we had just spent the coexistence design avoiding, and without ever silently picking a version that turns out to be incompatible. That tension is the whole of what follows. The dangerous shortcut is the shortcut every range-based ecosystem takes: let a solver decide that v6.2.9 and v6.3.4 are “compatible” by semver convention and substitute one for the other. The problem is that Zane links prebuilt objects, so substituting one version’s compiled code for another’s caller is an ABI claim — identical layouts, signatures, calling conventions — which is a far stronger and more fragile promise than the source-level “compatible” semver pretends to certify. A wrong guess here is not a compile error you can fix; it is silent undefined behavior at the call boundary, with no recompilation to catch it. Auto-substituting on a version-number heuristic would be handing out that footgun by default.
The resolution splits the decision in two along the line of who actually knows what. Only the package author knows the real ABI-compatibility windows of their own releases — so the author publishes that knowledge as a version-pattern in their manifest. But the author must not be able to force substitution onto a consumer, because only the consumer bears the consequence if the claim is wrong in their particular link. So the pattern is information, not permission: it states which of the author’s own versions are interchangeable, and nothing more. The consumer separately, explicitly opts a package in via the top-level remaps block. Remapping happens only when the author’s facts and the consumer’s decision both permit it; absent either, the safe default — coexistence — stands. This is the single most important shape in the document: compatibility facts and the decision to trust them are different jobs held by different people, and we refused to let either party unilaterally impose the merge.
Three smaller choices fall out of that frame, each with its own small fork. The version-pattern language marks each version component as a fixed boundary (*, must match — typically the major), or directionally substitutable (+ upward, - downward), with priority encoded by repetition (+ outranks ++) so a pattern is self-describing with no positional convention to memorize; we deliberately did not mandate that a pattern contain a *, nor that it contain a +/-, keeping it fully general so authors can express custom schemes, on the reasoning that an over-broad window is the same class of author error as any other and is already caught by the consumer’s opt-in and the coexistence fallback (and an all-* pattern is harmless on its own terms: it makes only identical versions interchangeable, which is a deterministic no-op, not an ambiguous selection). The remaps block lists URLs, not keys — and this is the one place the design deliberately steps away from the key-nickname convention it uses everywhere else. A key is a local nickname defined in this project’s deps, but remapping’s whole point is to collapse versions of a package that may appear only transitively, several levels down, and such a package has no key in the top-level project at all — there is nowhere to have defined one. We tried to keep keys here and could not make it cohere: a transitive package’s key, if it had one, would live in some intermediate manifest under that intermediate’s private naming, and two intermediates can nickname different URLs with the same key or the same URL with different keys, so a key in the top-level remaps would be ambiguous exactly when it mattered. The URL is the one identifier that is globally unambiguous and available for any node in the resolved graph, direct or not, so remaps names packages the canonical way even though the rest of the manifest uses nicknames. And the block is a bare single-column list rather than a keyed table, because that is simply the form of a one-column array in coda; a URL is a valid bare token (it contains none of coda’s syntax characters), so no quoting or header is needed. A listed URL needs no version pin, since the versions come from the resolved graph.
The cost is the cost the whole design is organized around and cannot remove, only contain: a version-pattern is an unchecked ABI assertion, and if an author declares a wider window than their ABI actually honors, an opted-in consumer gets silent UB. We do not solve this — there is no ABI verifier here — we bound it: remapping is never on by default, it requires a deliberate per-package opt-in, and it always degrades back to safe coexistence when interchangeability cannot be shown. The feature buys smaller binaries at the price of a trust the consumer takes on with their eyes open, and the entire author/consumer split exists to make sure that trust is never taken on by accident. One lesser cost rides along: when two versions of a package declare different patterns, full dedup is impossible, and the toolchain says so — but only as a one-time informational note during dependency resolution, not on every build, since a downstream consumer usually cannot fix an upstream pattern mismatch and drowning every compile in the warning would just train people to ignore it.
The toolchain rides one tag; the standard library does not
A language also has to state how the compiler and its core library are versioned together, and there is a tempting “everything is a package” purity under which the compiler, the core runtime, and the whole standard library should each be independently versioned dependencies. We took a deliberately impure middle line: the compiler and the core package are released together under a single zane-version tag, while everything else in the standard library — std and friends — is an ordinary package versioned like any third-party dependency. The reason for coupling compiler and core is that the two are genuinely inseparable: core is the part of the library the compiler emits calls into, so a compiler build and its core are co-designed and there is no meaningful sense in which you mix compiler version X with core version Y. Pinning them to one tag means a project always builds against a known, coherent toolchain, which in turn frees the toolchain to evolve without maintaining backward-compatibility guarantees across its own versions — each project simply states the toolchain it builds with, the same captured-intent move the rest of the language makes. The reason for not extending that privilege to the rest of std is the opposite: there is nothing inseparable about a hashing library or a JSON parser, so blessing them with toolchain-coupled versioning would just deny them the normal independent-release cadence every other package gets, for no compatibility benefit. So only core rides the tag; std is fetched, versioned, pinned, and even remapped exactly like any URL-identified dependency, reserved zane key and all. The cost is that the toolchain tag is coarse: you cannot upgrade the compiler while holding core fixed, or vice versa, because they share one version by construction. We think that is honest rather than limiting — they are not actually separable artifacts — but under it a compiler bump is always a core bump, and a project that wanted only one of those cannot have it.
Cutting core loose from the toolchain
That coupling bought coherence, but it did so by making core the one exception to a rule the rest of the design holds without apology: every package is fetched at a URL, versioned on its own, added to a manifest, imported by name, and reached by packageName$ qualification. core sat outside all of that — it rode in with the compiler, needed no deps row, and its surface types answered to no import. We came to see that exception as the expensive part, not the coherence. The inseparability argument was real but it proved less than we had claimed: a Zane build is coherent not because the compiler and its library ship under one tag, but because a project pins exact versions of everything it builds against — the same captured-intent move the tag-and-commit pinning makes for every other dependency. A project that names its compiler version and, separately, its core version has pinned both just as exactly as one bundled tag would have; the build is no less reproducible for the versions being written on two lines instead of one. So the coherence the coupling was defending never depended on the coupling. Once we saw that, the special standing was doing nothing but carving core out of the uniform package rules, and we cut it loose: dependencies.md §14 now versions the compiler alone, and core is an ordinary package — a deps row, a pinned commit, an explicit import core, core$Int — with no privilege the design denies anything else.
We weighed dissolving core the other way, into the compiler, so Int and String became free-standing language built-ins belonging to no package at all. That removes the exception too, but in the wrong direction: it hard-wires the surface library into the compiler, and it still leaves Int reachable by a rule — “it’s just there” — that applies to nothing else in the language. It also fights how people already think, which is that Int comes from core; a programmer reaching for it prefers to write that origin down. Making core a real package keeps that mental model intact and pays for it with one honest cost, spelled out where the surface types are introduced (syntax.md §2.1): a project that never installs core cannot name Int at all. We take that trade. The types earn their place by being imported, not by being blessed.
The deeper reason to prefer this shape is a feature we have not built yet but mean to: an omni-import, the from numpy import * of Zane, that pulls a package’s names in unqualified in one file. The whole point of such a rule is that it is uniform — one rule that works the same on math, on std, on anything. A core that was a compiler built-in, or a blessed always-present package, would be the single carve-out that rule had to apologize for; unqualified Int would come from a different mechanism than unqualified anything-else, and there would be two stories to learn instead of one. By making core ordinary now, we make sure the ergonomic path to bare Int — when it lands — is the very same path that reaches every other package’s names (packages.md §3.1 fixes the rule that keeps them qualified until then). This is why the spec’s examples already write Int bare and elide the import core: they are written against the world where that import, plus the omni-import, sits at the top of the file out of frame, not against a world where core is magic.
The cost we accept is the cost the previous chapter named as the reason to couple in the first place, now turned face-up: a compiler and a core are versioned independently, so a project can pin a core that does not match what its compiler emits calls into, a mismatch the single tag made impossible by construction. We do not make that impossible any more; we make it ordinary — a version incompatibility like any other, caught, if it is caught, by the same pinning and compatibility machinery that governs every dependency, not prevented outright by a release process. That is a genuine guard the coupling gave for free and this design gives up. We judge it the right price: the alternative was a permanent exception to the package model, and an exception that has to be re-explained at every feature — imports, versioning, and the omni-import still to come — is a heavier long-run tax than a version mismatch that a project pins its way out of.
core becomes part of the language again
The previous chapter made core ordinary to protect the uniformity of packages. It was a coherent local answer and the wrong global answer. The contradiction appeared when we stopped asking how Int is imported and asked which type an if accepts. The answer was already the canonical Bool; a counted loop already depended on canonical Int; literals, String, and the unit type had roles beside them. An ordinary package can be omitted or replaced. These identities could not be. Calling their container ordinary did not make the dependency optional; it only hid a language dependency inside the package graph.
We briefly tried to preserve the package by pushing control flow down to the underlying primitives. That would make the package wrapper genuinely optional, at the price of writing conditions and bounds through private representation fields and tying syntax to one storage layout. The abstraction failed in the opposite direction: instead of the language depending on core, every program would depend on how core happened to wrap a bit or a word. We also no longer found the proposed omni-import persuasive as a reason to keep the package. A future convenience for importing ordinary library names should not determine the identity of types the language itself requires, and forcing fundamental types through that mechanism would make the general import feature carry a special burden rather than remove one.
The answer is not to erase the implementation package. core still gives the fundamental types ordinary source declarations, constructors, methods, and primitive-backed layouts, but it becomes part of the compiler distribution rather than the program’s package graph. Programs see Int, Float, Bool, String, and Unit as predeclared names: they neither import core nor write core$Int, and no manifest can omit or replace it. Reusable functionality remains in ordinary, specifically named packages and follows the dependency rules without privilege.
This reverses the previous chapter without turning the type implementations into compiler AST exceptions. The language fixes which declarations Bool and Int name because its control-flow contracts require those identities; core still implements their behavior through the same package machinery used to compile source. The cost is a privileged package that cannot evolve on an independent library cadence or participate in imports and dependency resolution. That is real coupling, but it is confined to implementation and release rather than leaking primitive layout into source code or special cases into every fundamental type.
core becomes an ordinary package over a primitive floor
Twice now this file has moved core, and twice a pressure from outside the file settled the move. The first time we cut it loose to protect the uniformity of packages; the chapter after that put it back, because uniformity was the wrong property to be protecting when if needed the Bool and an ordinary package can be omitted or replaced. That reversal was correct on its own terms. It also named, and rejected, the escape we have now taken — and it is worth quoting the objection rather than pretending it was never made, because the objection was sound about the design it was looking at.
The claim was that pushing control flow down to the underlying primitives would make the package wrapper optional “at the price of writing conditions and bounds through private representation fields and tying syntax to one storage layout.” That price is exactly right for the design it describes, in which a condition is written Bool(true)._v and every program is coupled to how core happens to wrap a word. What changed is not our tolerance for that price. It is that the price is no longer charged.
Branching and repetition are now verbs rather than grammar, so the rules stated over a primitive cover not the surface but the floor beneath it — branch and repeat (the control-flow story recounts how that came about). No source writes a representation field. An intrinsic’s arguments are coercion sites, so a Bool reaches one through an implicit constructor core declares, in exactly the way 20 reaches an Int; the conversion is a declaration in a package, not a compiler lowering rule, and layout stays where it was. The old chapter’s other objection has expired the same way. In that chapter we doubted the omni-import as a reason to keep the package, arguing that fundamental types forced through that mechanism “would make the general import feature carry a special burden.” The mechanism now exists and carries none: import core$ is the same form as import math$, one rule with no exception to apologize for.
So the obstacle is gone rather than overruled, and core becomes an ordinary dependency again — a deps row, a pinned commit, an import like any other (dependencies.md §14). The toolchain tag covers the compiler alone, which is now a defensible boundary rather than a convenient one: what the compiler supplies names no declaration in any package at all.
What we gain is larger than tidiness, and it is the purpose of the whole move. Backward compatibility stops being anything a package must promise. A release that changes incompatibly does not drag its consumers forward, because two versions coexist under version-prefixed symbols and a project collapses them through remaps only when their compatibility windows mark the collapse as safe. That has always been how this design handles change, and core was the one package it did not reach. It reaches it now: a program may hold two versions of Int, and a dependency graph may be a version soup down to the fundamental types.
Three costs, and the first is the cost the earlier chapter already put face-up when it made the same move for different reasons. A compiler and a core are versioned independently, so a project can pin a core that does not match what its compiler emits calls into. We do not prevent that; we make it an ordinary version incompatibility. The second is new and follows directly from the gain: the fundamental types fragment like any other dependency, so two libraries cannot exchange an Int unless their core versions coincide or remapping collapses them. For Int in particular the compatibility window will almost always mark them as interchangeable, so remapping does the work — but the default is coexistence, and Int stops being one type in the way it used to be. The third is plain: a file that writes Int imports core first. No mainstream language requires that, and the spec’s examples elide the line rather than repeat it, which is a convention papering over a real cost rather than removing it.
Two packages called math
The first chapter of this story made a promise the symbol rewrite did not keep: a package is its URL, and URLs are globally unique by construction, so two repositories at different addresses are two packages however they are named. The rewritten symbol contradicted it. It carried the version tag and then the library’s own name, the basename of its source directory, and nothing that came from the URL at all. Two repositories that each kept their code in a directory called math, and each tagged v1.0.1, both turned !math$vec into v1.0.1%math$vec. A program that depended on both got two object files defining the same symbol, and the linker kept whichever it read first. Everything upstream of the link kept them apart — two cache entries, two fetches, two rows in two lock files — and the last step quietly merged them.
The gap had been hidden rather than absent. The symbol used to carry the consumer’s manifest key where it now carries the basename, and keys are unique within a project, so the collision could not happen. But a key is a nickname one project chose, and baking it into a shared cache artifact kept two projects that nicknamed a library differently from sharing its rewritten objects, which the cache chapter had guaranteed they could. Moving to the basename fixed that and exposed this. So the key was never an option for closing the gap: it was the component whose removal opened it.
The smallest fix on paper was a rule: package names must be globally unique. That would have been a one-sentence change to the spec and a permanent one to the ecosystem, and it is a registry wearing a different coat. Someone would have to decide who owns math, which is exactly the name authority we refused to build in the first chapter. A uniqueness rule with no authority behind it is worse still, since nothing could enforce it and a collision would surface only as a mislinked program.
The direct fix was to put the URL itself into the symbol, as v1.0.1%github.com/zane-lang/math%math$vec or some escaped form of it. It is honest and readable, and it was where the thinking went first. Two arguments went against it. The first was punctuation: a host-and-path is full of / and ., and the symbol already spends % and $ as structural delimiters, so the URL would have needed its own separator or an escaping scheme. The cache chapter had already rejected an escaping layer over URLs, on the grounds that every such scheme is a second lossy namespace, and that argument did not weaken on moving from directory names to symbol names. The second was length. A URL is as long as its host and organisation make it, and it would be repeated in every exported symbol of every package. We asked whether that would bloat the binaries. It mostly would not: these are statically linked objects, so the names live in the symbol table, and stripping a release binary removes that table entirely. The cost falls on unstripped and debug builds and on the cached objects, and it grows with the URL rather than staying fixed.
So we hashed the URL instead. The rewrite now writes the first 16 hexadecimal digits of the SHA-256 digest of the UTF-8 bytes of the normalized host-and-path between two % separators, v1.0.1%3f9a1c02b7e4d6a8%math$vec (dependencies.md §6.1). Every property we needed follows from the definition of a hash. It is a fixed 17 characters per symbol whatever the URL. Its alphabet is hex digits, which contain none of the delimiters, so the second % always sits exactly 16 characters after the first and no separator story is needed. And its input is the same normalized string that names the cache directory (dependencies.md §7), so the HTTPS and SSH spellings of one repository hash alike and one cache entry corresponds to one symbol identity. We are not original here either: Rust disambiguates crates in symbol names with a hash of the crate’s identity for the same reasons.
This looks like it contradicts the cache chapter, which turned down hashing the URL into a directory name because a directory of hex is unbrowsable. The two readers differ. People browse a cache, while symbol names are read by linkers, and only occasionally by a person running nm. For that person the basename stays in the symbol after the hash. The hash does the disambiguating and the name does the explaining, so math is still there to read.
Where the hash goes was a smaller choice with one clear answer. Putting it after the version, as part of the prefix, keeps the rewrite true to its name: the ! placeholder is replaced by a prefix and nothing else in the symbol moves. It also keeps remapping simple. Every version of one package shares its hash, so collapsing one version onto another rewrites the version tag alone, and a remap cannot move a reference from one package to another.
The costs are three. The first is that identity inside a symbol is now probabilistic: 64 bits makes an accidental collision negligible at any size the ecosystem could reach, but a hash cannot rule one out, and someone could construct a colliding URL on purpose. We did not accept a silent failure for that case. The toolchain knows every URL in the resolved graph, so resolution checks that no two different normalized URLs share a hash and aborts naming both if they do. A collision becomes a loud error at zane add instead of a mislinked program. The second is that the digest algorithm is now part of the ABI. Every toolchain has to compute the same 16 digits or its objects will not link against anyone else’s, so the spec names SHA-256 and the truncation exactly rather than leaving the hash to the implementation. The third is plain: linker errors and symbol dumps now carry 16 characters of noise that carry no meaning for a person, which is the price of keeping the separators simple and the length fixed.
Release assets with committed hashes
The shipping chapter put compiled objects in Git to keep fetching host-independent and make one commit identify both source and binaries. That placement stayed on our minds afterwards. Git shows line diffs, and a diff between two compiled objects shows a reader nothing, so binaries kept in Git are versioned there only because Git can store them, not because its history is any use for them. Git LFS is the usual workaround, but it looked like a hassle to set up and never seemed right. We changed our minds on noticing that binaries can be hosted elsewhere and still be versioned, only outside Git. That is what issue #94 asked for, and it reopened the distribution choice. We considered Release assets, OCI storage such as GHCR, ordinary HTTPS hosting such as R2, Git LFS, and source builds with a binary cache. We settled on GitHub Releases for now, while keeping the repository URL as the package identity. That choice removes compiled objects from the Git tree without changing the prebuilt-first workflow.
The earlier objection to Release assets joined two problems that can be answered separately. Discovering a release through its host’s API would make the fetcher host-specific, but an explicit download URL needs only HTTPS. An asset attached to a tag can change independently of the commit, but its expected hash can live in that commit. We therefore kept a small zane-artifacts.coda file beside the source, recording one archive URL and SHA-256 per target (dependencies.md §3.1). The author chooses where the bytes live. GitHub Releases is the initial publishing host, while the fetcher follows the recorded HTTPS URL without inventing a release-discovery convention for each repository host. GHCR would add an OCI transport; R2 would change the hosting setup. Neither is needed for the chosen path.
The source commit now binds the binaries through that file rather than by containing them. A consumer verifies the source pin, reads the committed hash, and checks the downloaded archive before extracting or rewriting anything (dependencies.md §5). Replacing an asset underneath an existing URL produces a mismatch, not a new accepted binary. This recovers the byte-pinning property that putting objects in Git bought, but it does not prove the author’s build corresponds to the source. That trust remains, as does explicit source compilation for a consumer who wants to build locally.
The cost is a second fetch and a second availability dependency: having the source repository does not guarantee that the matching Release asset still exists. We also now distinguish the verified archive and original objects from the rewritten objects, and distinguish targets in the cache. Publishing requires building the archives, committing their URLs and hashes, then tagging and uploading those exact bytes. The archives contain objects rather than the manifest that names them, so their hashes can be recorded without a cycle. We accept that metadata and publishing work in exchange for keeping generated binaries and their accumulating history out of Git.
Where a dependency’s code comes from
Release assets left source compilation as an escape hatch spelled as a flag: zane add … --from-source. Once we started designing the commands that would run it, the flag turned out to have nowhere to live. It changed how one machine fetched one package, and nothing in the project recorded it. A teammate who cloned the project, or a CI run, fetched the prebuilt archive without knowing anyone had chosen otherwise. A trust decision that does not travel with the code it protects has only been made on one machine.
The same commands raised a second gap, and it turned out to have the same shape. Someone working on a library and an application that uses it had no way to see a library change from the application short of releasing it: commit, build the archives, commit their hashes, tag, upload, then zane update in the application, and do it all again if the change was wrong. Every other package manager we looked at has an answer — Cargo’s path dependencies and [patch], Go’s replace, npm link — and each is a spelling of “take this dependency’s code from a folder on this machine.” That is the question the flag was answering too. A dependency’s code can come from the verified prebuilt archive, from the verified source compiled locally, or from a directory the developer is editing. So we made the answer one column, from, in the deps table of zane.coda, holding release, source, or a path (dependencies.md §2.1).
Where that column belonged took a second look, because the project has two files and the other file is the lock file. We kept it in the manifest. The lock records what resolution found, a URL and a commit the toolchain verified, and nothing in it is a human choice. from is a human choice in the same way as picking v6.2.9. A path also has no commit for the lock to pin, since it changes with every save. And the pin has to outlive the choice: a dependency pointed at a folder keeps its tag and its lock row, so setting from back to release returns exactly to the version it was on (dependencies.md §2.2). That only works if the lock row is untouched while the path is in force.
We also considered keeping the path out of the committed manifest entirely, in an uncommitted local file or on the command line, so that it could never reach anyone else’s checkout. That is the safer default, and we gave it up for one reason: some paths are meant to be shared. Sibling checkouts that every developer has, or a repository holding several projects, want the path committed, and a mechanism that cannot be committed cannot serve them. We put two guards around the cases where committing it is a mistake. A package whose manifest names a path cannot be released (dependencies.md §3.2), so no published version depends on code nobody else can fetch. And a path that is missing on someone’s machine stops the build with an error naming the key and the path, never a fallback to the release (dependencies.md §12.2). from is read only in the project being built, in the same way as remaps, so a library cannot make its consumers compile anything from source or from a folder.
The same review renamed the lock file. zane-versions.coda held no versions: the tags live in zane.coda, and the other file holds URLs and commits. We considered deps.coda, but the deps table lives in the manifest, and the file also pins the toolchain, which is not a dependency, so that name would have pointed at the wrong file. A bare lock.coda was shorter, but in a repository that also holds a flake.lock, a devbox.lock or a package-lock.json it would not show whose lock it is. zane-resolutions.coda matched the table inside it and was long and unfamiliar. We took zane-lock.coda. The word already signals to a newcomer that the tool writes this file, that it is committed, and that nobody edits it by hand, and the prefix keeps it next to zane.coda and zane-artifacts.coda.
The costs are these. A committed path is specific to a machine, and a teammate without the sibling checkout gets an error until they create it or switch the row back. from reaches only direct dependencies: if a transitive package also uses the library someone is editing, that copy keeps the release, and the two versions link side by side.
A project records whether it is a library or an application
The first question zane init asks is whether the new project is a library or an application, and when we went to write the answer down there was nowhere to put it. The answer only selected the starter file to write. We first thought it did not need storing, because the difference seemed to show in the code: an application declares main, and a library does not. That turned out to be false. A library built on its own is the root of that build (packages.md §6.1), so it may declare a main of its own to try itself out, and then the two look identical.
Two commands needed to tell them apart. A release of a library is a set of object archives for other projects to link, and a release of an application is an executable, so zane release produces different artifacts for each. And nobody adds an application as a dependency on purpose, so zane add should refuse it with an error that explains why, rather than fail later when nothing links. We considered reading the project’s category from whether zane-artifacts.coda exists, but a library that has not been released yet has none, so that answer arrives too late. We added a required kind field to zane.coda, holding library or application, written by init (dependencies.md §2.1). Two rules follow from it. An application must declare main, so forgetting it is a compile-time error instead of a build with no entry point (packages.md §6.2). And only a library may be a dependency, so resolution names the offending package as soon as it reads its manifest (dependencies.md §9).
The cost is that a project is one or the other. A library that wants to ship a command-line tool, or an application that wants to expose its internals to other projects, has to become two projects, which a local path dependency at least makes cheap to work on together. And the field is one more setting that can be wrong: a library declared as an application cannot be added by anyone until its author changes the field and releases again.
The zane command is not pinned by zane-version
The design had long stated that zane-version selects the compiler (dependencies.md §14), and we had planned the zane command as part of the compiler repository. Writing down the first commands showed why that could not work. The program that reads zane-version cannot be the program it selects. A project pinned to one compiler, built by a zane command released with a later one, must either hand the build to the pinned compiler or ignore its own pin, and if the command is that later compiler, there is no one to hand it to. Rust reached the same split for the same reason: rustup and cargo are not versioned with rustc.
So the zane command lives in its own repository and is not pinned by any project. It reads the manifest, fetches and verifies dependencies, manages the cache, and installs and runs the compiler that the project’s tag names. The compiler keeps everything whose behavior the pin has to fix: parsing and checking, code generation, rewriting the ! placeholders, and linking with the runtime it carries inside it. Rewriting belongs on the compiler’s side because a cache entry already records the toolchain that rewrote it (dependencies.md §7), and that record only matters if that toolchain is the pinned toolchain. The lock file’s zane row therefore names the compiler’s repository, and the compiler gets a release cadence of its own, independent of the command that launches it.
The cost is a part of the build that no pin covers. One installed zane command has to drive every compiler version it can install, so the interface between the two becomes a contract we keep stable deliberately, and a change to it is the one kind of change that can break a project nobody touched. The rules the command enforces itself — the manifest format, the fetch and verification steps — are likewise not pinned, and they have to stay readable by every command a user might have installed.
zane-version becomes the oldest compiler a package builds with
Every manifest named one compiler, and the design had never stated which compiler built a dependency. The zane command answered by building the whole graph with the root project’s compiler, so a library’s own zane-version decided only how its author built and tested it. That left the field making a guarantee nobody kept, and it made every compiler release a chore for every library. core pinned v0.14. When a newer compiler shipped, langbench, which builds core from source, would have needed core to publish a release whose only change was the pin, or zane would have to keep ignoring the pin. The authors of the project that links a program know which compiler they need, so we wanted that choice to sit with that project.
Our first design kept a compiler choice per package and moved the choice to the executable. The executable would list a compiler for each major, a table with rows like 0 v0.15 and 1 v1.4, and each package would be built by the compiler of its own major, with a package needing a newer version than its row an error. That breaks on how a consumer is compiled. The compiler type-checks a package against its dependencies’ source, not against an interface file, and it emits the generic instances a consumer needs from its dependencies’ bodies, because their objects were built before the consumer’s types existed (compiler separate-compilation.md C2 and C4). So a major-1 program that imports a major-0 core is still compiled by a major-1 compiler that has to parse core’s major-0 source, and that compiler has to match the major-0 compiler on the layout of every core type the two exchange. Mixing majors would need either compatibility across majors, which is the guarantee majors exist to drop, or a format every later major reads that carries declarations, layouts and generic bodies. We did not want to design that format to save one table.
So one compiler builds a program, and a package’s zane-version becomes the oldest compiler it builds with (dependencies.md §14). The root’s own zane-version is still exact: it names the compiler for the root and everything the root reaches. In a dependency it is a floor, and resolution rejects a graph holding a package of another major or one that needs a newer compiler than the root’s. That only works if moving up a minor costs a consumer nothing, which is the compatibility a major now promises: a compiler builds whatever an earlier compiler of its major built, with the same meaning, and links the objects that compiler wrote. The second half matters because release archives arrive prebuilt. An author builds them with the compiler the floor names, so the compiler a consumer is allowed to pick is never older than the compiler that wrote them. Go settled on the same shape: since Go 1.21, a module’s go line is a minimum, and the main module builds the whole graph with one toolchain at least as new as every minimum in it.
We weighed whether a floor would push library authors into a corner, either pinning an early minor and missing what came later, or pinning a late one and shutting out older consumers. The second fear does not hold, because the consumer fixes it with one zane toolchain update that cannot break anything else in its major, and the first is just the right reading of a floor: it names the oldest compiler the code needs, not the newest compiler available.
The costs are three. The compiler now owes compatibility within a major, a promise it did not have when each project’s compiler was taken to be exact, and every release has to keep it. A new major cannot be adopted piecemeal: a project moves to it only once every package it reaches publishes a release for that major, because resolution rejects a graph that mixes them. And major 0 is exempt from the promise, since no one depends on Zane yet and we would rather break freely while the language is still settling, so until a v1.0 exists a floor is the author’s intent and nothing more — a newer minor of major 0 may reject a package whose floor it accepts.
The zane command drives only current compilers while Zane is at major 0
The compiler’s --kind application|library flag had outlived the split it was named after. A project stopped being one or the other once its packages moved into lib/, bin/ and test/ (the packages story), and the flag still determined whether a build has a root package, so we renamed it --root and --no-root. The compiler could make that change in one release, because a major-0 compiler guarantees nothing about the compilers before it. The zane command could not, because the chapter that split it from the compiler had it build projects pinned to any toolchain tag. A project pinned to v0.18 still needed --kind, so the first version of the rename in zane read each installed toolchain’s tag and passed the old spelling to the older compilers. That was the third such branch on the toolchain tag. zane already built without tiers for compilers before 0.18 and refused a library template for compilers before 0.3, each read off the tag in the same way.
Each of those branches was there for projects pinned to a compiler nobody had a reason to keep. The language is at major 0 so that it can change freely while it settles (the floor chapter exempted major 0 from the compiler’s promise for exactly that reason), and nobody depends on Zane yet. A command that keeps a branch for every change to the compiler’s interface carries the promise major 0 was meant to drop, only from the other side. We considered the other place a fallback could live, the compiler accepting --kind beside --root for a while. That is the same branch in a different file, and it would have to be taken out again by a later release.
So major 0 is exempt from the zane command’s promise too (dependencies.md §14). A zane command drives the major-0 compilers that take the interface it was written against, and nothing older. The promise that one command builds projects pinned to any tag holds from major 1 on, when the compiler’s own promise starts too.
The cost is that at major 0 a pin no longer shows by itself which compiler builds the project. It names the compiler, but only a zane command written against that compiler’s interface can drive it, so the pin and the installed command have to be kept in step until major 1. A project pinned to an older compiler either moves its pin to a compiler its zane command drives, naming that compiler’s tag to zane toolchain update, or keeps a zane command from that compiler’s time.
The manifest renames or drops a dependency’s package
The packages story left one cost standing: a project could not use two dependencies that both publish a math, and the toolchain stopped with an error naming both. That error had no remedy on the consumer’s side. The project could not change either dependency, and the only way out was to give one of them up. The more packages the ecosystem held, the likelier it became that two libraries a project wanted had both picked an obvious name.
Two shapes could resolve it. The first qualified each import by where the package came from, as from std import math and from impostor import math, with the dependency’s manifest key after from. Keys are unique within a project, so a qualified import can never collide, and every file would state which dependency each package came from. It is close to the import geometry/math form the packages story had already weighed and set aside. We rejected it not for the length of every import but for the meanings it lets a package name take. Under from, each file’s author chooses which package math is. One file reads math$pi as std’s 3.141…, a file beside it imports math from impostor and reads 2, and both are correct. A reader who knows the meaning of math in one file of the project has learned nothing about the next file, and changing one line at the top of a file silently changes the result of every use of math in it.
The second shape moves the choice into the manifest, once for the whole project. A renames row gives one dependency’s package a name of the project’s choosing, impostorMath, and that name is the only name any file can import it by (dependencies.md §2.1). We took that one, because it keeps what the packages story built: within one project, a package name denotes one package. A file may still respell a package with as, but an alias can only spell the package the project already reaches, never reach a different one (dependencies.md §8). So no single file can undo the coherence the manifest establishes, and source code still never writes a manifest key.
A rename does not reach past the project that writes it. The compiled symbols keep the package’s own name, so two projects that name one library differently still share its cached objects, as the cache chapter required. The dependency’s own packages keep importing it under the names their own manifest gives. Each project’s renames block governs that project’s imports and nothing else, which is also why, unlike from, it is read in a fetched manifest as well: a library’s renames are part of how its own source reads.
Renaming a package to _ drops it. A dropped package is importable by none of the project’s packages, and it takes no name, so it cannot collide with anything. That covers the case where the project wants one of the two maths and has no use for the other, without inventing a name nobody will write. _ was the obvious spelling: a leading _ already means hidden, on a declaration private to its package and on a library package private to its project, and a package dropped from a project is hidden from it in the same way. Dropping changes what the project can import, not what gets built. If the dependency’s other packages import the dropped package, it is still compiled and linked.
We called the row a rename rather than an alias because the two are different operations with different reach. An as alias respells a package in one file; a rename sets the name a whole project knows the package by, and the package’s own name stops being importable there. Calling both “aliases” would have hidden exactly the difference this chapter is about.
Each row is checked, and a mistake fails loudly at resolution: a key with no dependency, a package the dependency does not ship, a name that is not a package name, or a dependency whose every package is dropped. That last one is deliberate. A dependency the project can import nothing from is a row that should not be there. And because zane.coda is written by commands, zane rename writes and removes the rows and checks them before writing. zane add takes the same rows as --rename, since it is the command that meets the clash first: it rejects a library whose package’s name the project already reaches, and a rename has to arrive with the library for the library to be added at all.
The cost is that the source no longer shows where a package came from. In a file that imports impostorMath, nothing shows it is impostor’s math; a reader has to look in zane.coda. The from form would have shown that in every file, and that is what we gave up in return for every package name denoting the same package throughout the project. A rename can also drift from the package it names: if impostor renames its math in a later release, zane update fails on the row until someone fixes it, which is the loud failure we wanted but still an edit nobody requested.
A subpackage’s name stays apart from the dependencies’ packages
Writing the renames down showed a gap that was older than them. The distinct-names rule counted a project’s top-level packages and its dependencies’ packages, and the packages story had kept a subpackage’s name apart from the top-level packages of its own project, but nothing kept it apart from a dependency’s. A library gui with a subpackage lib/gui/opengl/ and a dependency that publishes opengl could import both, and import opengl in gui had two targets. A rename made the case easier to reach, since any dependency’s package could now be given the name of a subpackage, but it was there without one.
We could have let the subpackage win inside its parent, or the dependency, but either would have been the per-file shadowing the renames chapter had just refused: the same name denoting different packages depending on where a file sits. So the subpackage’s name joins the names a project keeps apart, against its dependencies’ packages, and against its test-deps only for a subpackage that a nested test package tests, the one package that imports both; a library package never sees a test-deps package (dependencies.md §8). Two subpackages of different parents may still share a package name, because no package imports both, and keeping that freedom is why the check is against the dependencies rather than among all of a project’s packages.
The cost is small. A project that meets the clash renames its subpackage’s directory or, with the remedy this story already has, the dependency’s package, and resolution names both packages so the choice is clear.
The compiler pin moves out of resolutions
The lock file had pinned the compiler with a row of its resolutions table: the key zane, the compiler’s repository as its URL, and the commit its tag resolved to. Borrowing the table’s shape saved a field, and it cost more than it saved. A key is a label the project chooses for a dependency, any package name, and this one was taken: a project could not call a dependency zane, the plain key for a library whose repository has that name, because the label belonged to the compiler, which is not a dependency. The sync rule needed the same exception, counting every deps and test-deps key plus one more. And the row’s URL gave the toolchain no information, since every compiler release comes from one repository; the commit was the only part of it that could differ between two projects.
None of this was forced on us by the file. A coda document holds as many top-level fields as it needs, and the manifest already has several, so the lock had room for the pin beside the table all along. The row was a convenience, and it spent a package’s slot on an entry that only looked like a package.
So the pin left the table. zane-commit is a field of its own in zane-lock.coda, next to resolutions, and it pairs with zane-version in zane.coda the way a row’s commit pairs with its tag (dependencies.md §2.2). resolutions holds dependencies and nothing else, the sync rule counts only their keys, and zane is a key like any other. The commit is verified against the tag exactly as before, so a moved compiler tag is still caught (dependencies.md §14).
The cost falls on lock files already written. Every package published before the change commits a lock with a zane row, and a published commit cannot be rewritten. We first had the zane command keep reading that form and rewrite it the first time a command changed the lock, and then dropped that. Zane is at major 0, whose releases guarantee nothing about the releases before them (dependencies.md §14), and a second form the command had to recognise would have been one more exception like those this change removed. A lock without zane-commit is refused, so a package whose published lock has the old row resolves again once it publishes a release whose lock has the field.