tokenizen .nl NL EN GitHub
Blog

8 min read Tools

How to commission a second implementation of a spec: pin, allow, record, decide

The OxDeAI maintainer set up issue 426 so that a second implementation could disagree with the reference and the disagreement would have a place to go. We worked from that brief: this is what it asked for, where we fell short of it, what we would add, and what we offer if you want one for your spec.

Our Go verifier for the OxDeAI spec matched the four AuthorizationV1 corpora on 47 of 48 cases, on verdict and on determining code. The OxDeAI maintainer traced the one case that did not match to a conflict inside the spec text and wrote that it was "resolved in the spec, not in either implementation" (comment).

A reference implementation tells you what its author meant. A second implementation written from the text tells you what the text says. Issue 426 is a brief for the second thing, and it is the brief we worked from. This post goes through it item by item, then lists where we fell short of it, what we would add and what we offer. If you maintain a payment, receipt or authorization spec, you can copy the brief.

We start with our own mistakes. We did not declare our track before we started, and the brief asks for that. We restricted our inputs by instruction and did not enforce it, and the brief asks for a restricted workspace. And our verifier accepted a boundary that it should have refused. Each is written down in public, and the last one is fixed.

The brief, in four verbs

The four verbs are our grouping. The items under them are the maintainer's.

  • Pin. The base is pinned at commit e288167.
  • Allow. The implementer may read docs/spec, one section of SPEC.md and four vector corpora. A do-not-read list names what stays closed. The workspace holds only those files, never a full clone of the repository, and web access is disabled or cannot reach the closed paths.
  • Record. Each corpus gets a table: case id, verdict, determining code, step, match or mismatch. The implementer publishes a declaration of independence from the reference code, with a public commit history. The declaration says how the workspace was restricted, including whether that was enforced or only instructed. A differential against the reference counts as extra evidence, nothing more. The brief also names a known limit: a model may have seen the reference in training. It cannot be excluded, and it is declared, not disqualifying.
  • Decide. A spec-gap register (issue 430) takes whatever the text does not settle. A gap there is a valid result and not a failure. Each mismatch is classified as an implementation bug, a reference bug or a spec gap.

What the pin and the allow list bought

A number belongs to a text and a commit. Our 47 of 48 is about the text at e288167, not about the spec as it reads on some later day.

The allow list says which files to compare. The pin says what to compare them with. So the maintainer could check our run, and did: from a clean clone of our repository at a31fc1f, go run ./cmd/verify-vectors gave 47 of 48 and the one mismatch was that case. go test passed. The eight pinned input files were byte-identical to e288167 (comment). You can repeat the run:

git clone https://github.com/holistis/oxdeai-go-verifier
cd oxdeai-go-verifier
git checkout a31fc1f
go run ./cmd/verify-vectors

An unpinned number goes stale. The maintainer has announced that section 14 will name this vector as an exception (comment). On 2 December 2026 that change had not landed. When it does, the text will differ from the pin, and our count will still be true, because it names its commit.

47 of 48 is what the text at e288167 gave us. Under the maintainer's ruling Go is 48 of 48. Both numbers stand.

What the table and the classification bought

The tables hold the numbers: precedence 15 of 15, wire encoding 10 of 10, canonicalization 11 of 11, authorization 11 of 12. A table has a column for the step. In our view, that column is why the one mismatch was easy to place.

The case is auth-expiry-wins-over-expires-at . At the pinned commit, rule 5 under Expiry field resolution in authorization-v1.md rejects an artifact whose expiry and expires_at both exist and differ, with AUTH_SIGNATURE_INVALID. Section 14 of the same file maps the corpus value EXPIRED to AUTH_EXPIRED. Section 9.1 of verification-v1.md takes the earliest failing step as the determining code, and step 5 comes before step 11. So the text gives two codes for one case.

The maintainer had written earlier that two verifiers giving two determining codes for one case is the falsification condition of the issue. That is a spec conflict, to be resolved in the spec (comment). So the question became which sentence of the spec governs, not whose code was right. Two readings, one decision.

The maintainer made the decision in the register as SG-013: "Decided: reading A. The determining code is AUTH_SIGNATURE_INVALID at step 5. AUTH_EXPIRED is an additional code." (comment) That is the reading our verifier implements. We had classified the case as a spec gap, and the maintainer called it a spec conflict.

What the register bought

Our repository has a gap list, SPEC-GAPS.md, with entries G-01 to G-15. A list like that, alone in an implementer's repository, is a set of notes nobody has to answer. On 2 December 2026 the maintainer went through it in issue 430. Our G-05, on the public key format, became SG-022. The second part of our G-11, on key order above U+FFFF and the Unicode version for NFC, became SG-023. G-15, a stale cross reference, was confirmed as an editorial fix. G-03 was mapped to SG-008 with the section 9.3 point added. Most of the other entries were mapped to ones that already existed.

The maintainer wrote: "Two independent tracks filing against the same register is exactly what #430 is for." (comment) The word independent is the maintainer's. For our track it means independent of the reference code, by instruction and not by enforcement.

A second track, in Java, is by kawal393. The maintainer credits both tracks by handle and thanks both (comment). We do not compare them. Each is one reading, and the register is where readings meet.

Where we fell short, and what we would add

Two things the brief already asks for. We did not fully meet them.

  • Declare the track before starting. The brief asks the implementer to comment on the issue first, so that two people do not duplicate the work, and its table of tracks has a column for the implementer. We did not, and the maintainer noted it (comment). So a reader must take our word for what we set out to do.
  • Enforce the input restriction. The brief asks for a workspace that holds only the allowed inputs and for web access that is disabled or cannot reach the closed paths. It also has the declaration say whether the restriction was enforced or only instructed. Ours was an instruction, and the maintainer recorded it: "Go fetched the inputs file by file at e288167; the restriction on other paths was an instruction and was not enforced." (comment) A workspace that holds the allowed files and cannot reach the reference repository needs no one's word.

Two things we would add.

  • Ask the implementer to hunt its own gaps against the register after the run. The brief already has the implementer check the register and add an entry for each gap, so this is a second pass. By our own account, we found our mistake by comparing our gap entries with the register: our verifier allowed, and consumed the auth_id of, a boundary that presented neither an action nor a state snapshot. Section 9.3 of verification-v1.md says a missing input fails closed. We fixed it in pull request 1: a boundary must now present at least one of the two. Two locked vectors, sb-auth-allow-valid and sb-auth-state-mismatch, present a state snapshot and no action, so requiring an action would have broken them. No corpus result changed, so the pass rate could not have shown the hole.
  • Reproduce from a clean clone yourself, as the maintainer did. The brief makes that possible: it asks for one command that runs every in-scope corpus from a clean clone. An implementer's table is a statement. Your own run is evidence.

What you get from us, and what you do not

If you want a second implementation of your spec, this is what we would put in the proposal:

  • A public repository under an open license, like our Go track, which is Apache-2.0.
  • A table per corpus, in the form the brief asks for.
  • A gap list filed against your register. If you have none yet, open one issue for it before the run starts.
  • Our own mistakes, in the open.

You do not get a rating, an endorsement or an approval. We would publish what we find, whatever it says, including where we read the text wrongly.

A reading in our receipt matrix is a different thing: it comes from public files, and nobody has paid for it. A commissioned second implementation is a match table and a gap list for the spec you hand us, not a judgment of your format's quality.

What you can check

Each card links to the place where a stranger can look.

  • Issue 426

    The brief: a pinned base, allowed and do-not-read lists, a table per corpus, a declaration, a register, and a class for every mismatch.

    OxDeAI issue 426
  • SG-013

    The register comment where the maintainer decided the one mismatch (reading A) and mapped our gap entries, including SG-022 and SG-023.

    Issue 430, the register
  • 47 of 48

    Cases that matched when the maintainer ran go run ./cmd/verify-vectors from a clean clone at a31fc1f. Under the maintainer's ruling Go is 48 of 48.

    The reproduction comment
  • Apache-2.0

    The license of our Go track, which uses the Go standard library and no external modules. One command runs the 48 cases.

    holistis/oxdeai-go-verifier
  • Pull request 1

    Our own gap, fixed: the verifier let a boundary with neither an action nor a state snapshot pass, against section 9.3. No corpus result changed.

    Pull request 1
  • INDEPENDENCE.md

    What we declared about our inputs, including that the restriction to them was an instruction and was not enforced.

    INDEPENDENCE.md

What we do not claim

  • A second implementation does not prove a spec correct. It shows where one reading of the text agrees with the corpora, and where the text says two things.
  • Our independence is of the reference code. It is not independence of the spec: we worked from the text the maintainer pinned.
  • One track in one language is one reading.
  • We did not run the differential against the reference that the brief lists as extra evidence. Our result comment on issue 426 lists it, and other things we did not do (comment).
  • 47 of 48 is a statement about the text at e288167. 48 of 48 holds under the maintainer's ruling.
  • Comments can be edited. The quotes here are as they read on 2 December 2026.
  • We have no paying customers yet.

We are Tokenizen (tokenizen.nl) and we build these tools ourselves, so we are not neutral here.

Tell us the hardest part

Tell us the hardest part of your spec to verify: info@tokenizen.nl. Send a link to your spec, its test vectors and, if you have one, its gap register. We reply within two working days with a scoped proposal and a fixed price. No paying customers yet, we say so, and we show our work.