Skip to content

Second reader of -02 against the v0.8.0 test-vectors, and a dating rule that no rule compares #35

Open

Description

@ogasurfproject-jpg

Second reader of -02 against the v0.8.0 test-vectors, and a dating rule that no rule compares

This issue records in public what was sent to the author by e-mail on 7 and 8 November 2026, so that the numbers and the dating case have a public home.

Scope. A reader written only from the text of draft-izmaylov-agent-permission-receipts-02 (sha256 2f0e9348...f22d) was run against test-vectors at tag v0.8.0 (commit 38158e7). Verdicts were frozen (sha256 6c781f99...6534) before the expected fields, the README, the conformance kit or the library code were opened. The comparison is by meaning: ok/refused decision, refusal code, and for ok cases the shape and values of the answer with members matched by meaning. Message text was not compared. The conformance kit was not run.

Headline numbers. Of the 97 files (14,776 cases), 31 files (9,072 cases) are inside what -02 defines. Decision agrees in 8,961 of 9,072. Where both refuse, the code agrees in 7,907 of 8,057. Where both accept, shape and values agree in 882 of 904. 283 cases differ.

The six reasons for the 283 differences:

  • 90: rules present in FORMAT v0.8.0 but not in -02 (DER strictness, SHA-512 for Ed25519 time-stamps, covered fields, three reserved document names, issuer-origin-not-expected, FORMAT entry kinds answered as unknown-entry per 9.1).
  • 82: places where the -02 text allows more than one reading (how far time-stamp rule 1 reaches, the code for a wrong key set, DER years 0000 to 0099, empty lines and BOM in a log, and others).
  • 50: the vector's expected answer and the -02 text disagree (49 base64url cases in content members, expected bad-field where 11.1 names bad-base64url; one RSA exponent 0 case).
  • 35: function shape that -02 does not fix (argument checks, functions that do not read type, parseCanonical accepting non-objects, validateDer not checking trailing bytes).
  • 14: our own misreadings (weak Ed25519 keys as signature-invalid instead of bad-key; CertificateChoices other than Certificate rejected; a TSTInfo accuracy accepted; a constructed time missed; tag 0x00 refused).
  • 12: same decision, different answer shape (parseTime returning null where we refused).

The author's answers by e-mail (8 November): -03 will say bad-field for content members and keep bad-base64url for the envelope and time-stamps; -03 will say how far time-stamp rule 1 reaches; books.json case 36 tests more than -02 defines and goes to Open Issue 5; key sets will be bad-key; the DER year inconsistency is on the vectors' side and waits for a library release.

The dating case. A receipt's own date can be chosen by the agent. Two comparisons the agent cannot influence would catch a back-dated receipt: (1) the receipt's date falls inside the permission's window (already in -02 as outside-valid-time); (2) the receipt's date is not earlier than the latest countersigned receipt of the same permission. The author notes that within one chain time-went-backwards already holds the receipt's own date and reaches receipts written after a countersigned one, and that comparing a receipt with its own countersignature would also reach earlier countersigned ones. It goes into -03 as an open issue with the unpredictable value and the "not established" outcome; apart from validFrom, the 300 second bound stays the only bound the agent cannot choose.

Files: the frozen verdicts, the freeze record, the differences (370 rows including the 7 out-of-scope files) and the read log were sent to the author by e-mail; they can be attached here on request.

Toshikatsu Oga, The HORIZONs Co., Ltd.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions