roadmap

Take, fork, vendor or write

Appendix to 784. Reuse what the tree wrote: the rules 784 applies to a crate we cannot take unmodified.

Codebase rule 6, from §46 (thin primitives or whole subsystems), sets the order: take or adapt existing code first, write only with a recorded reason, and vendor only what needs a patch. Two criteria weigh a crate we cannot take unmodified. Both are calef's, from 2026-10-22 (UTC), and the live candidates are measured against them in an appendix.

The fork test

It sits beside rule 6 and does not replace it. calef, 2026-10-22 at about 21:06 (UTC): "a fork wins over our own crate when all three of these hold: 1. Our changes are small and likely to stay small, measured as changed lines as a share of the crate. 2. Upstream is active (commits and releases in the last year). 3. The crate isn't one we release or prove. Those must meet our standards, so the fork would diverge."

calef refined it the same day, for a patch that is our proofs and quality mechanisms. He asked whether the test holds then, and said "yes" at 21:43 (UTC) to reading it this way:

A fork is carried as vendor/ carries talc: the published package, pinned by checksum, plus a divergence patch that script/vendor-verify checks and script/vendor-watch compares with upstream. It merges upstream by moving the pin to a new release and reapplying the patch, so a dormant upstream leaves it nothing to merge. The cases read this way:

The exception a fork carries

This is a deliberate exception to the style gates, and a reader extending it should know that. Upstream's lines in a fork are exempt from three style gates. They are function length under §283 (a function is held to 100 code lines by a lint ratchet), the comment style of §267 (a comment states the constraint as it is now), and missing_docs. Today that holds by construction. The function-length and comment-block ratchets and helpers/house_style.py skip vendor/, and a vendored crate is outside the workspace, so the workspace's lints, clippy and cargo fmt never reach it.

Proof, fuzz and mutation gates apply in full to what a fork carries of ours. Kani runs only the harnesses script/verify's table names, and fuzzing reaches vendored code only through our own targets. script/mutation does not reach vendor/ today, since cargo mutants --workspace sees only workspace members. No fork carries our proofs yet. The first that does extends script/verify, a fuzz target and script/mutation to its crate in the same change.

The AI-submissions criterion

Whether nife contributes to a project is ruled by fork 8 of milestone 857 (crates released on their own). Offers go only to projects whose policy admits disclosed AI work. Where AI is banned, nife sends no code or proofs. calef, 2026-10-22 (UTC), carries the same question into choosing a dependency: "I think AI submissions is likely to be a key criteria for evaluating our dependencies unless we can take them unmodified." This tree's patches are written by agents, so for a dependency an upstream's written policy on agent-written contributions weighs this way: