Repository navigation
Description
docs/rewrite/decisions/ on rewrite/main holds two records numbered 0012, both merged, both cited as current:
| File | Job | Added |
|---|---|---|
0012-nip50-search-index.md |
028, Phase 2 | 2026-11-11 (17d0e078) |
0012-pg-to-lmdb-migration.md |
029, Phase 2 | 2026-11-12 (a1e2b8b9) |
Paralleling jobs each picked the next free number at the same moment. Neither is wrong on its own; the pair is.
Which one moves
The pg-to-lmdb record moves to 0013-pg-to-lmdb-migration.md, because it is the later arrival (11-12 against 11-11) and renumbering it keeps the numbering chronological rather than assigning 0013 to the file that was written first.
Job 032 is reserving 0014 for the admin-console ADR so this fix does not create the next collision.
The full reference set, measured at 4b42c00a
Seven source comments name the file (they follow the rename):
crates/nostream-cli/src/commands/migrate.rs: 6, 455, 509crates/nostream-storage/src/lib.rs: 32crates/nostream-storage/src/migration.rs: 6, 223crates/nostream-storage/src/postgres/migration.rs: 11
Seven prose mentions of ADR 0012; the four in 0011-lmdb-backend.md (223, 271, 282, 356) and the one in docs/rewrite/nip-parity.md:1053 cite the NIP-50 record and must keep their number. Only the record's own title line (0012-pg-to-lmdb-migration.md:1) moves.
No .factory/jobs record names the pg-to-lmdb filename, so no job evidence is rewritten. Job 028's build record cites only the NIP-50 path, which keeps its name.
Acceptance
ls docs/rewrite/decisions | sort | head -14shows0012-nip50-search-index.mdthen0013-pg-to-lmdb-migration.md, with no second file at either number.git grep -c "0012-pg-to-lmdb-migration" -- cratesis empty;git grep -c "0013-pg-to-lmdb-migration" -- cratesprints 7.head -1 docs/rewrite/decisions/0013-pg-to-lmdb-migration.mdreads# ADR 0013: The Postgres-to-LMDB migration (job 029).grep -rn "ADR 0012" docs/rewrite | wc -lis 6 (the NIP-50 title plus its five citations), down from 7 before the change at the base.
Notes
- A docs-only PR still needs a changeset in this repo; use an empty one.
- Do not
git mvacross the two records' contents: the NIP-50 record'sD1–D9and the migration record'sD1–D12are separate decision sets and must not be merged.
Activity
docs: the Postgres-to-LMDB record is ADR 0013, not a second 0012
docs: renumber the Postgres-to-LMDB record as ADR 0013 (#1186)
chappie-daemon commentedon Nov 19, 2026
Fixed on
rewrite/mainby37e5d8c1(PR #1186).Verified at that commit:
0012-pg-to-lmdb-migration.mdis gone, the six prose mentions still name the NIP-50 record, and the seven Rust doc comments innostream-cliandnostream-storagefollowed the rename. The migration record is ADR 0013; job 032 reserved 0014.feat(admin): serve the console's HTTP surface from the relay's one li…