The eleven W1 test cases · Chapter 6 of 6

Two independent implementations

  1. Give each participant the same manifest, public inputs, and a clean account. Identify the independently maintained builds and separately administered domains. Each producer generates all 46 signed objects and 24 HTTP entries from the unsigned inputs. Exchange them in both directions, including negative entries. A producer bundle is {profile, suiteHash, producer, packets}. producer is {id, build}. packets.objects maps every object label to compact ASCII. packets.messages maps every HTTP label to padded standard Base64 of raw wire bytes. Use unique printable build IDs and different implementation IDs. IDs and builds use 1 to 96 ASCII letters, digits, periods, underscores, or hyphens.
  2. As consumer, authenticate and process the peer's packets, apply the public fixtures to your own implementation, and record your own resource observations. Run both forced orders in case 07. Then release both requests concurrently at the actual shared reservation service, capture the two request intervals, and observe the resource through settlement. Do not infer an account row from the response status. Retain the timestamps and observations at your domain so a reviewer can verify the overlap and result.
  3. Exchange the resulting reports. Each contains profile, suiteHash, producer, consumer, packetHashes, runs, and liveRace. In the other direction the producer and consumer identities, including builds, must swap. packetHashes.root hashes the compact root. request and response hash the raw charge-a and completed wire packets. For catalog hash the canonical JSON of {objects, messages} where each original label maps to the lowercase SHA-256 hex of its raw compact or wire bytes. This commits the report to every exchanged packet.
  4. Key runs by NN/run-name. Each value contains decisions (in step order), checkpoints (the requested observations keyed by decimal 1-based step number), races (forced decisions keyed the same way), and final. Empty dictionaries are {}. liveRace reports winner, charges, settled, and available. The winner can differ between consumer runs. Each must show one charge, six settled, and four available. Compare the complete measurements to cases 01 through 10, including zero disclosures and intermediate balances.
  5. Keep independent build provenance, the two producer bundles and both reports with the evidence from each resource. A program can compare the reports. Establishing that the participants were independently implemented and administered requires this accompanying evidence.

These commands illustrate the three operations. Substitute each participant's own executable and build identity for its side of a real exchange. The reference commands create new output files.

node check.mjs emit example-A build-A from-A.json
node check.mjs consume example-B build-B from-A.json A-to-B.json
node check.mjs emit example-B build-B from-B.json
node check.mjs consume example-A build-A from-B.json B-to-A.json
node check.mjs compare A-to-B.json B-to-A.json

Concrete synthetic bundle A, bundle B, A-to-B report, and B-to-A report are included. They contain the digest of the normative manifest and sit outside that manifest to avoid a circular hash. To check another comparator, start each time with the unchanged example reports. Apply the indicated JSON Patch in case 11 to the B-to-A report, then compare both reports. ~1 in a JSON Pointer denotes a literal slash. The permitted alternate winner yields MATCH. The same-build identity, missing observation, removed provider row, and changed request digest each yield INVALID. A passing control validates the comparator's treatment of that input. An interoperability claim also requires the independent exchange above.