Overview
Vaults outgrow their designs: a domain expands, a second framework becomes necessary, a note type goes dormant. The failure mode is the rebuild, which severs the link network and discards provenance. The rule is add, deprecate, migrate, never rebuild, and four moves cover every legitimate case. The structure being evolved is in vault-architecture.
Add a note type instead of repurposing one
When a new kind of note appears (an experiment, a vendor, a lesson), declare a new type. Redefining an existing one corrupts the audit meaning of every note already carrying it.
- Add the type to the spec with folder, filename pattern, and required fields (vault-frontmatter-schema).
- Add a template and schema reference, and create the folder.
- Run the auditor.
Required fields apply per type, so no existing note changes, and deleting the spec block reverses the move.
Migrate when a field becomes required
Making an optional field required is the only move that touches existing notes: every note lacking it fails the audit as soon as the spec changes. Run it like a database migration, where it is not done until the data is (migrations).
- Change the spec, then take the worklist from the auditor. Add the field to
requiredand run the audit; the JSON report lists every note failing C008. Never build the list by hand. - Scope-freeze the backfill. More than a handful of notes is a bulk write: state the exact paths and that the edit is reversible, and get sign-off (vault-audit). Write one honest value per note, by hand or by a reviewed script.
- Never fabricate a value. Today’s date in
last_verifiedon a two-year-old claim, a guessedconfidence, or an inventedsourcemakes the vault lie about provenance. When the honest value is unknown, leave the field empty and the finding open (source-verification). - Let autofix fill only what it can derive:
idfrom the filename,createdandmodifiedfrom mtime, the defaultstatus, and structural tags. Run dry first, then apply. It stops at semantic fields on purpose. - Re-run and treat the delta as proof. The missing-field count should return to zero with nothing new introduced. Keep both reports in the log.
In a shared vault the spec change and backfill share one branch, with both audit reports in the description (vault-pull-request-review). To stop requiring a field, remove it from required and leave it in the notes.
Layer a second framework instead of forking
When the domain genuinely splits (a strategy vault starts hosting engineering decisions), declare both frameworks in the spec, add the second one’s note types additively, and bridge them with explicit link conventions. Framework rules trigger on prefixes, so they enforce only on notes that opt in. A forked second vault loses the cross-domain links. Selection criteria: rigor-frameworks.
Deprecate to the archive; never delete
Move a dormant type’s notes to 99-Archive/ (excluded from audit and graph), then remove the type from the spec. Order matters: removing the type first leaves active notes typeless and trips C015. Record why the layer was retired in one line so the next reader, often an agent, need not reverse-engineer it from an empty folder.
Scaling down is a legitimate evolution. When the maintenance budget is exceeded, retire a layer instead of adding structure (vault-maintenance).
Read the audit trend to see evolution coming
- A folder outgrowing its design, or a map indexing about 50 atoms: split into sub-maps.
- A violation cluster the current rules cannot express: add a custom rule (
Uprefix) to the spec. - Notes hand-shaped like a second framework: formalize with the layering move before the informal practice drifts.
- A note type with no new notes in a quarter: a deprecation candidate.
Refuse the rebuild
A rebuild severs backlinks, resets the version history that defends decision notes against hindsight bias, and erases the audit log. One of the four moves meets each need a rebuild seems to serve, additively and reversibly. If a rebuild happens anyway, carry the archive and history forward. In a shared vault every move is a pull request with the auditor as a check (team-vaults).