open-standards/wai/wai-rs/tests/vectors
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science f0107b07b8 wai generate.spectral form v0: accepted objects at every bound, and each refusal's reason
instr-v0.json had one accepted object and 28 refused ones, none at an inclusive
bound, so a second sink stricter by one passed every vector; and the CLI test held
only that each object was refused, not why, so a rule relaxed (a quotation mark let
into the prompt) stayed green while the canonical-bytes check refused the object
in its place.

- The reader (wai_cli/instr.rs) refuses with a reason code, the first rule broken
  in a stated order; a member given twice is refused as such (strict_json).
- The vector gains twelve accepted objects (seed 0 and 2^32 - 1, steps 1 and 64,
  an empty prompt, 256 bytes, 0x20 and 0x7e, JSON's structural characters, a side of
  1, a side of 4096 and 2^23 pixels, 16 sizes, the w-then-h order), each with the
  SHA-256 of its first listed size made natively; eight more refused objects (types,
  a fraction in a size, a negative side, an escaped line feed, a backslash, cut-short
  JSON); and a reason for every refused object.
- tests/cli_generate_score.rs asserts each refusal's reason through `wai generate
  --instr` and `wai wrap`, and makes and wraps every accepted object.
- tests/generate.rs states form v0 a second time, independently of the reader, and
  holds the object, the accepted and the refused lists to it, making each accepted
  object's output with the library.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 17:01:04 -04:00
..
generate wai generate.spectral form v0: accepted objects at every bound, and each refusal's reason 2026-10-09 17:01:04 -04:00
int_audio wai: the int_codec vector's README, and the statements about what it was trained on 2026-10-07 10:09:20 -04:00
int_hyper wai-rs: int_payload — the WIV1, WIH1, WIA1 and WIS1 payloads, and decode_int 2026-10-01 12:20:06 -04:00
int_mlicpp wai: the parameter-set pin, component identity, pin-aware selection 2026-10-01 05:51:50 -04:00
int_splat wai-rs: int_payload — the WIV1, WIH1, WIA1 and WIS1 payloads, and decode_int 2026-10-01 12:20:06 -04:00
int_video wai-rs: int_payload — the WIV1, WIH1, WIA1 and WIS1 payloads, and decode_int 2026-10-01 12:20:06 -04:00
int_world wai: the parameter-set pin, component identity, pin-aware selection 2026-10-01 05:51:50 -04:00
int_world2 wai: the parameter-set pin, component identity, pin-aware selection 2026-10-01 05:51:50 -04:00
jpegai wai: state what each determinism tier guarantees, and make replicate mean it 2026-09-28 18:25:52 -04:00
staged_bounds wai stage, wai_stage_bench: every layer and chain held to the stated limits 2026-10-05 10:47:38 -04:00
README.md wai: every corpus states the provenance of its content 2026-10-07 10:09:21 -04:00

Committed vectors

The vectors the reference implementation's tests decode, and the conformance corpora under wai/*-conformance/ and the cross-architecture goldens are built on. A vector changes only through its generator (CONTRIBUTING, Vectors).

Provenance. Each directory's row names the generator that writes it and the generator's input. tests/corpus_provenance.rs requires a row for every directory.

directory provenance
generate/ Generated: tools/wai_generate_model.py writes the spectral model from an integer sine table and a word list.
int_audio/ Generated: tools/wai_int_audio_export.py trains the codec on a signal it generates from seed 1 and codes another signal from the same seed; it reads no audio file (int_audio/README.md).
int_hyper/ Generated: tools/wai_int_hyper_tiny_vector.py draws the tiny conditional codec's integer weights from a seeded generator. No image.
int_mlicpp/ Generated: tools/wai_int_mlicpp_export.py (seed 20260929) codes an integer pattern of ramps, an xor texture and a disc with seeded weights; tools/wai_int_mlicpp_set_form.py writes its set-form twin.
int_splat/ Generated: tools/wai_int_splat_export.py trains on a seeded procedural cloud.
int_video/ int_video.* is generated by tools/wai_int_video_encode.py (a disc over a gradient), and video_nk.* by tools/wai_int_video_keyframe_encode.py (the int_hyper tiny keyframe, panned). video_real.* is not generated: tools/wai_int_video_real_encode.py pans over a third-party picture that was not made for this repository and has no recorded licence for redistribution. It is to be replaced by generated content.
int_world/ Generated: tools/wai_int_world_export.py trains on a seeded procedural world.
int_world2/ Generated: tools/wai_int_world2_export.py trains on seeded procedural backgrounds.
jpegai/ test256.bin is the output of the ISO/IEC 6048-1 reference encoder (BSD-3) for a 256×256 generated test image of gradients and blocks (jpegai/README.md).
staged_bounds/ Constructed here for the bound tests: grey frames from a residual stream of zeros, and envelopes whose capability is refinement-only or companion-only (staged_bounds/README.md). No image.