Class BlobVectors
java.lang.Object
ai.badmonkey.agentspaces.pdt.golden.BlobVectors
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 thedczfield Java writes for them (hex each, comma separated). The base is the first 4,096 bytes of thejava.util.Random(42).nextBytesstream; the target is the base with bytes 1,000 to 1,003 replaced by the ASCIIPDT2and the ASCIIphase fourappended (4,106 bytes). The field is the format byte'd'(0x64), the RFC 9842 header (5e 2a 4d 18 20 00 00 00and 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 throughzstd-jniat level 3).content_nodes_deltas_cbor: the wire CBOR (hex) of a level-2NODES(tag 9), req 7, an emptynodeslist, nosealed,epoch, ormissing, anddeltasholding one entry{cid, base, dcz}: therawCID of the target, therawCID of the base, and the field ofpdt_dcz_frame, in that order after the six fields of level 1.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe bytes of the base chunk.static final intWhere the target replaces four bytes of the base. -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]base()The base chunk ofpdt_dcz_frame.static byte[]field()Thedczfield ofpdt_dcz_frame.static Messages.Nodesnodes()TheNODESofcontent_nodes_deltas_cbor.static byte[]target()The target chunk ofpdt_dcz_frame.vectors()The vectors in emission order.
-
Field Details
-
BASE_BYTES
public static final int BASE_BYTESThe bytes of the base chunk.- See Also:
-
EDIT_AT
public static final int EDIT_ATWhere the target replaces four bytes of the base.- See Also:
-
-
Method Details
-
vectors
-
base
public static byte[] base()The base chunk ofpdt_dcz_frame. -
target
public static byte[] target()The target chunk ofpdt_dcz_frame. -
field
public static byte[] field()Thedczfield ofpdt_dcz_frame. -
nodes
TheNODESofcontent_nodes_deltas_cbor.
-