Context
#16069 measured 175 archived artifacts sitting on ordinals ADR 0004 §2.2 would not compute for them, and was deprioritised at filing: nothing is broken for a consumer, and the re-placement it contemplates is blocked behind the publisher gap (#15977 / #16002 / #15993).
Two of its acceptance criteria are not blocked, and #16069 says so in its own Fix section — "Either way, extend buildScripts/util/check-content-logical-identity.mjs with an ordinal-conformance mode". "Either way" is the load-bearing phrase: the predicate is worth having whichever way the parent's decision goes, because a decision to soften §2.2's derivability claim still wants the number it is softening.
This ticket is those two ACs and nothing else. It does not re-place an artifact, does not presume the decision, and does not promote anything to blocking.
The parent's number reproduces exactly, a month later. Measured 2026-09-16 against the committed corpus, computing §2.2's ordinal (floor(index / 100) + 1) over §2.5's ordering (ascending GitHub id) against complete per-bucket membership:
| Bucket |
Members |
ADR-correct shape |
Misplaced |
archive/issues/v13.0.0 |
1713 |
chunk-1..18 |
26 |
archive/pulls/v13.0.0 |
1445 |
chunk-1..15 |
119 |
archive/pulls/v13.1.0 |
746 |
chunk-1..8 |
30 |
|
|
|
175 across 1035 buckets |
Row for row, the same three buckets and the same three counts #16069 recorded. That is the argument for this ticket rather than against it: the number is stable and it was produced by a throwaway script that no longer exists, so the next person to ask must write it again.
Live latest-open sweep 2026-09-16T14:00Z — latest 20 open issues plus a targeted search on ordinal / chunk / archive conformance: only #16069, which this is a child of. A2A sweep of the latest 30 messages: no competing claim on corpus tooling.
The Problem
#16069's count is a hand tally in prose. It will drift with every sync, and nothing in the repository can re-derive it — so a reader a month from now cannot tell whether 175 is the current state, a historical high-water mark, or already repaired. That is the same class of defect as the baselineAtIntroduction line check-guard-ci-parity's registry calls out: "A number no predicate checks is a census."
The guard that should own the predicate already does the hard half. check-content-logical-identity.mjs derives families from disk rather than a roster, walks each bucket's complete membership, and builds a logical index keyed per family. Ordinal conformance is a second predicate over that same membership — the walk, the derivation, and the temp-corpus spec fixture all already exist.
The Architectural Reality
buildScripts/util/check-content-logical-identity.mjs — listArchiveFamilies() derives families from disk; buildLogicalIndex() walks complete membership per family. Both exported and already spec'd.
test/playwright/unit/buildScripts/checkContentLogicalIdentity.spec.mjs — builds a temp archive tree per arm, with the reasoning for it stated: the real corpus carries pre-existing damage, so a spec reading it would assert today's state and invert the moment a repair lands.
- The existing duplicate check is blocking at commit time on the staged set. An ordinal check must not be, because the corpus carries 175 known non-conformances and a blocking audit would wedge every commit — precisely the reasoning #16057 used when it wired only the duplicate half.
The Fix
- Export a pure
findOrdinalMisplacements({archiveRoot}) beside findLogicalIdentityCollisions(), computing §2.2's ordinal over §2.5's ordering against complete bucket membership, and returning the artifacts whose path disagrees.
- A report-only CLI mode that prints the per-bucket table and exits 0. Report-only is the point, not a weaker first step: the number must be obtainable without blocking anyone, and the parent's decision is what would later make it blocking.
- Spec arms on the existing temp-corpus fixture, including the 100/101 boundary, since an off-by-one in the ordinal is the defect most likely to be written into the predicate itself.
Contract Ledger
| Target Surface |
Source of Authority |
Proposed Behavior |
Fallback |
Docs |
Evidence |
| Ordinal conformance predicate |
ADR 0004 §2.2 (ordinal), §2.5 (ordering), §2.2.1 (complete membership) |
findOrdinalMisplacements() returns every artifact whose chunk disagrees with its computed ordinal |
none — pure derivation over on-disk membership |
export JSDoc naming the three ADR clauses it composes |
temp-corpus arms incl. the 100/101 boundary; the real corpus reports 175 |
| Report-only CLI mode |
check-content-logical-identity CLI |
prints the per-bucket table and exits 0 whenever it reports; refuses to share an invocation with --all or with file arguments, exiting 1 without reporting |
none — reporting cannot fail a commit by construction, and the refusal is the only non-zero exit |
CLI usage in the module docblock's ## Modes |
a run against the committed corpus reproduces 26 / 119 / 30; a planted duplicate shows --all 1 and --all --ordinals 1 |
Retirement: the report-only clause retires when #16069's decision lands — either the corpus is re-placed and this promotes to blocking, or §2.2's derivability claim is softened and the predicate is deleted with it. This ticket does not choose, and a PR closing it must not read as having chosen.
Acceptance Criteria
Out of Scope
- The decision (#16069 AC-1): whether ADR-correct ordinals are required at all, or §2.2's derivability claim is amended instead. This ticket must not presume it.
- Re-placing any artifact — blocked behind #15977 / #16002 / #15993, and #16069 owns it.
- Promoting the ordinal check to blocking, or wiring it into CI as a gate.
- The ordinal-100 rule itself and any chunk-layout redesign.
Avoided Traps
- ⛔ Do not make it blocking, or exit non-zero, "just for now". The corpus has 175 known non-conformances; a blocking audit wedges every commit in the repository, which is the exact reasoning #16057 recorded when it wired only the duplicate half.
- ⛔ Do not assert 175 in a spec. It is a property of today's corpus and will drift with every sync — the arm would then assert the damage and invert on repair. The fixture reasoning already in
checkContentLogicalIdentity.spec.mjs says this; the real-corpus number belongs in the PR body as a measurement, not in an assertion.
- ⛔ Do not read this as a step toward the re-placement. If the parent's decision goes the other way, the right outcome is deleting this predicate, and that should cost nothing.
Related
Parent: #16069 (this is its AC-3 and AC-4) · #16057 / PR #16067 (the duplicate half, done) · ADR 0004 §2.2 / §2.5 / §2.2.1 · blocked-behind, not depended-on: #15977 · #16002 · #15993
Origin Session ID: 5bf0b816-b919-40fc-9c18-fee751fd1635
Retrieval Hint: "archive ordinal conformance chunk placement report-only predicate check-content-logical-identity re-derivable count"
Context
#16069 measured 175 archived artifacts sitting on ordinals ADR 0004 §2.2 would not compute for them, and was deprioritised at filing: nothing is broken for a consumer, and the re-placement it contemplates is blocked behind the publisher gap (#15977 / #16002 / #15993).
Two of its acceptance criteria are not blocked, and #16069 says so in its own Fix section — "Either way, extend
buildScripts/util/check-content-logical-identity.mjswith an ordinal-conformance mode". "Either way" is the load-bearing phrase: the predicate is worth having whichever way the parent's decision goes, because a decision to soften §2.2's derivability claim still wants the number it is softening.This ticket is those two ACs and nothing else. It does not re-place an artifact, does not presume the decision, and does not promote anything to blocking.
The parent's number reproduces exactly, a month later. Measured 2026-09-16 against the committed corpus, computing §2.2's ordinal (
floor(index / 100) + 1) over §2.5's ordering (ascending GitHub id) against complete per-bucket membership:archive/issues/v13.0.0chunk-1..18archive/pulls/v13.0.0chunk-1..15archive/pulls/v13.1.0chunk-1..8Row for row, the same three buckets and the same three counts #16069 recorded. That is the argument for this ticket rather than against it: the number is stable and it was produced by a throwaway script that no longer exists, so the next person to ask must write it again.
Live latest-open sweep 2026-09-16T14:00Z — latest 20 open issues plus a targeted search on ordinal / chunk / archive conformance: only #16069, which this is a child of. A2A sweep of the latest 30 messages: no competing claim on corpus tooling.
The Problem
#16069's count is a hand tally in prose. It will drift with every sync, and nothing in the repository can re-derive it — so a reader a month from now cannot tell whether 175 is the current state, a historical high-water mark, or already repaired. That is the same class of defect as the
baselineAtIntroductionlinecheck-guard-ci-parity's registry calls out: "A number no predicate checks is a census."The guard that should own the predicate already does the hard half.
check-content-logical-identity.mjsderives families from disk rather than a roster, walks each bucket's complete membership, and builds a logical index keyed per family. Ordinal conformance is a second predicate over that same membership — the walk, the derivation, and the temp-corpus spec fixture all already exist.The Architectural Reality
buildScripts/util/check-content-logical-identity.mjs—listArchiveFamilies()derives families from disk;buildLogicalIndex()walks complete membership per family. Both exported and already spec'd.test/playwright/unit/buildScripts/checkContentLogicalIdentity.spec.mjs— builds a temp archive tree per arm, with the reasoning for it stated: the real corpus carries pre-existing damage, so a spec reading it would assert today's state and invert the moment a repair lands.The Fix
findOrdinalMisplacements({archiveRoot})besidefindLogicalIdentityCollisions(), computing §2.2's ordinal over §2.5's ordering against complete bucket membership, and returning the artifacts whose path disagrees.Contract Ledger
findOrdinalMisplacements()returns every artifact whose chunk disagrees with its computed ordinalcheck-content-logical-identityCLI--allor with file arguments, exiting 1 without reporting## Modes--all1 and--all --ordinals1Retirement: the report-only clause retires when #16069's decision lands — either the corpus is re-placed and this promotes to blocking, or §2.2's derivability claim is softened and the predicate is deleted with it. This ticket does not choose, and a PR closing it must not read as having chosen.
Acceptance Criteria
findOrdinalMisplacements({archiveRoot})is exported and pure, deriving families and membership from disk rather than any roster.--all --ordinalsexit 0 where--allexits 1, so a reporting flag disabled a blocking audit.Out of Scope
Avoided Traps
checkContentLogicalIdentity.spec.mjssays this; the real-corpus number belongs in the PR body as a measurement, not in an assertion.Related
Parent: #16069 (this is its AC-3 and AC-4) · #16057 / PR #16067 (the duplicate half, done) · ADR 0004 §2.2 / §2.5 / §2.2.1 · blocked-behind, not depended-on: #15977 · #16002 · #15993
Origin Session ID: 5bf0b816-b919-40fc-9c18-fee751fd1635
Retrieval Hint: "archive ordinal conformance chunk placement report-only predicate check-content-logical-identity re-derivable count"