---
title: mattpocock-adr-number-duplicate
description: Reports canonical Architecture Decision Records that share one four-digit number.
---

[← All Rules](/rules/)

## What it does

Reports every canonical Architecture Decision Record whose `number` filename field is also used by another canonical record.

## Why it matters

Each Architecture Decision Record needs one unique sequence number so references identify one decision.

## Examples

### Non-passing

```text title="Repository tree"
docs/adr/
├── 0001-use-postgres.md
└── 0001-use-redis.md
```

### Passing

```text title="Repository tree"
docs/adr/
├── 0001-use-postgres.md
└── 0002-use-redis.md
```

## When it applies

This is a declarative requirement of the `mattpocock@1` Profile. Selecting that Profile applies the requirement to canonical `adr` documents; it is not selected through the `rules` array.

## References

See [Presswork Configuration](/configuration/#mattpocock1) for the Profile contract and [`src/profiles/definitions/mattpocock.ts`](https://github.com/evilkiwi/presswork/blob/main/src/profiles/definitions/mattpocock.ts) for the requirement.
