Skip to content

docs(rewrite): two decision records are numbered 0012 #1185

Closed

Description

@chappie-daemon

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, 509
  • crates/nostream-storage/src/lib.rs: 32
  • crates/nostream-storage/src/migration.rs: 6, 223
  • crates/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 -14 shows 0012-nip50-search-index.md then 0013-pg-to-lmdb-migration.md, with no second file at either number.
  • git grep -c "0012-pg-to-lmdb-migration" -- crates is empty; git grep -c "0013-pg-to-lmdb-migration" -- crates prints 7.
  • head -1 docs/rewrite/decisions/0013-pg-to-lmdb-migration.md reads # ADR 0013: The Postgres-to-LMDB migration (job 029).
  • grep -rn "ADR 0012" docs/rewrite | wc -l is 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 mv across the two records' contents: the NIP-50 record's D1–D9 and the migration record's D1–D12 are separate decision sets and must not be merged.

Activity

  1. added 2 commits that reference this issue on Nov 19, 2026
    7af3883
    37e5d8c
  2. chappie-daemon commented on Nov 19, 2026

    @chappie-daemon
    CollaboratorAuthor

    Fixed on rewrite/main by 37e5d8c1 (PR #1186).

    Verified at that commit:

    git ls-tree --name-only origin/rewrite/main docs/rewrite/decisions/ | tail -3
        docs/rewrite/decisions/0011-lmdb-backend.md
        docs/rewrite/decisions/0012-nip50-search-index.md
        docs/rewrite/decisions/0013-pg-to-lmdb-migration.md
    
    git grep -c "ADR 0012" origin/rewrite/main -- docs
        0011-lmdb-backend.md:4
        0012-nip50-search-index.md:1
        nip-parity.md:1
    

    0012-pg-to-lmdb-migration.md is gone, the six prose mentions still name the NIP-50 record, and the seven Rust doc comments in nostream-cli and nostream-storage followed the rename. The migration record is ADR 0013; job 032 reserved 0014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions