Class BlobVectors

java.lang.Object
ai.badmonkey.agentspaces.pdt.golden.BlobVectors

public final class BlobVectors extends Object
The golden vectors of PDT 2 phase 4 (srad/agentspaces-pdt2.md §8; P2-Z-01, P2-Z-04, P2-F-02, rule 14 of §6.10.3), which PdtVectors.pdt2Vectors() lists after the phase 6 ones:
  • pdt_dcz_frame: the base chunk, the target chunk, and the dcz field Java writes for them (hex each, comma separated). The base is the first 4,096 bytes of the java.util.Random(42).nextBytes stream; the target is the base with bytes 1,000 to 1,003 replaced by the ASCII PDT2 and the ASCII phase four appended (4,106 bytes). The field is the format byte 'd' (0x64), the RFC 9842 header (5e 2a 4d 18 20 00 00 00 and the base's sha-256), and one zstd frame with the base as its raw dictionary, a declared content size, and no dictionary id or checksum. A port opens the frame over the base and gets the target byte for byte; it need not reproduce the frame, since zstd's compressed bytes depend on the encoder (Java's are zstd 1.5.7 through zstd-jni at level 3).
  • content_nodes_deltas_cbor: the wire CBOR (hex) of a level-2 NODES (tag 9), req 7, an empty nodes list, no sealed, epoch, or missing, and deltas holding one entry {cid, base, dcz}: the raw CID of the target, the raw CID of the base, and the field of pdt_dcz_frame, in that order after the six fields of level 1.
  • Field Details

    • BASE_BYTES

      public static final int BASE_BYTES
      The bytes of the base chunk.
      See Also:
    • EDIT_AT

      public static final int EDIT_AT
      Where the target replaces four bytes of the base.
      See Also:
  • Method Details

    • vectors

      public static Map<String,String> vectors()
      The vectors in emission order.
    • base

      public static byte[] base()
      The base chunk of pdt_dcz_frame.
    • target

      public static byte[] target()
      The target chunk of pdt_dcz_frame.
    • field

      public static byte[] field()
      The dcz field of pdt_dcz_frame.
    • nodes

      public static Messages.Nodes nodes()
      The NODES of content_nodes_deltas_cbor.