open-standards/wai/wai-rs/tests/vectors/generate
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.json wai.generate.spectral/3: shape grammar (radial / mirror / gradient) + vocabulary 2026-06-27 04:36:16 -04:00
generate_spectral_model.json wai.generate.spectral/4: angular (rays) + spiral synthesis primitives 2026-06-27 06:15:35 -04:00
instr-v0.json wai generate.spectral form v0: accepted objects at every bound, and each refusal's reason 2026-10-09 17:01:04 -04:00
sha256.json wai: the parameter-set pin, component identity, pin-aware selection 2026-10-01 05:51:50 -04:00
sizes.json wai: wai generate and wai score build|render, with native pins a sink checks against 2026-10-09 10:01:31 -04:00