VAMReview class

Signed binary-backed review decision over a specific candidate. This table exists only for a submitted decision; DECISION NONE and APPROVE_METADATA_ONLY are not accepted VAMReview evidence. The review-envelope projection contains these uppercase schema field names in schema declaration order: REVIEWER_ID; CAPABILITY_ID when present; DECISION encoded as its unsigned enum integer; CANDIDATE_ID; CANDIDATE_CID when present; CANDIDATE_SHA256; DECIDED_AT; REASONS; COMMENT when present; SIGNATURE_TYPE; PREVIOUS_DECISION_SHA256 when present; REVIEWER_ROLE encoded as its unsigned enum integer; REPOSITORY; ISSUE_NUMBER; ENTITY_ID; VAM_ID; NONCE; REVIEWED_TRANSFORM when present; CANONICAL_VARIANT_ID when present; ALTERNATE_VARIANT_IDS; ANNOTATIONS; and APPROVED_ALTERNATES. Projection order is descriptive; RFC 8785 sorts object keys during canonicalization. Absent optional fields are omitted and arrays preserve order; nested VAMTransform and VAMAnnotation use uppercase schema field names and numeric enums. Nested VAMApprovedAlternate uses uppercase schema field names, numeric RANK, and transforms normalized by decoding schema defaults. A verifier reconstructs exactly this projection, applies RFC 8785 JSON Canonicalization Scheme (JCS), hashes the UTF-8 serialization bytes, compares the digest, then verifies SIGNATURE over the raw 32-byte digest. Before trusting DECISION, a verifier must enforce binary decision invariants; repository, issue, entity, and VAM equality; nonce single use; role authorization; and exact candidate binding. CAPABILITY_ID, REPOSITORY, ISSUE_NUMBER, ENTITY_ID, VAM_ID, and NONCE MUST be present and nonempty for any new binary-backed signed decision and are required by the binary validation profile; their wire slots are optional only for backward compatibility. Legacy buffers lacking those six fields remain decodable but are not valid new publication approvals. For these compatibility fields, the projection omits absent optionals only when decoding legacy records; the new validation profile rejects absence before signature trust. APPROVE requires CANDIDATE_CID; every binary decision requires exact CANDIDATE_SHA256. Under the validation profile, when DECISION is APPROVE, CANDIDATE_CID MUST be present; REVIEWED_TRANSFORM and CANONICAL_VARIANT_ID MUST be present; and CANONICAL_VARIANT_ID MUST equal CANDIDATE_ID. These fields remain optional on the wire for compatibility. The enclosing VAM.ID MUST equal VAM_ID; the enclosing VAM.ENTITY_ID MUST equal review ENTITY_ID; and the enclosing VAM.CANONICAL_VARIANT_ID MUST equal review CANONICAL_VARIANT_ID. The referenced VAMVariant.ID MUST equal CANDIDATE_ID; that variant CID and BYTE_SHA256 MUST equal signed CANDIDATE_CID and CANDIDATE_SHA256; and its TRANSFORM MUST be field-for-field equal to REVIEWED_TRANSFORM after decoding schema defaults. The enclosing VAM.ALTERNATE_VARIANT_IDS MUST exactly equal signed review ALTERNATE_VARIANT_IDS, with the same IDs in the same order; empty equals empty. Each alternate ID MUST resolve to an existing VAMVariant; alternate IDs MUST be distinct and MUST NOT equal CANONICAL_VARIANT_ID. The referenced alternates retain their signed canonical rank ordering as represented by the manifest list. APPROVED_ALTERNATES MUST correspond one-for-one with ALTERNATE_VARIANT_IDS in the same order; each descriptor VARIANT_ID MUST equal the corresponding alternate ID. Empty ALTERNATE_VARIANT_IDS requires empty APPROVED_ALTERNATES. Each descriptor CID, BYTE_SHA256, REVIEWED_TRANSFORM, and RANK MUST be field-for-field equal to the resolved VAMVariant. BYTE_SHA256 MUST be 64 lowercase hexadecimal characters and CID MUST be nonempty. The publication validator rejects any omission or mismatch before signature trust or publication. Any alternate byte, CID, BYTE_SHA256, transform, or rank change requires a new signed review and envelope.

Constructors

VAMReview(List<int> bytes)
factory

Properties

ALTERNATE_VARIANT_IDS → List<String>?
no setter
alternateVariantIds → List<String>?
no setter
ANNOTATIONS → List<VAMAnnotation>?
no setter
APPROVED_ALTERNATES → List<VAMApprovedAlternate>?
no setter
approvedAlternates → List<VAMApprovedAlternate>?
no setter
CANDIDATE_CID → String?
Optional CIDv1 containing a multihash of exact candidate bytes; metadata-only candidates may not have a CID.
no setter
CANDIDATE_ID → String?
no setter
CANDIDATE_SHA256 → String?
64 lowercase hexadecimal SHA-256 of exact candidate bytes, required for every binary-backed decision.
no setter
candidateCid → String?
no setter
candidateId → String?
no setter
candidateSha256 → String?
no setter
CANONICAL_VARIANT_ID → String?
no setter
canonicalVariantId → String?
no setter
CAPABILITY_ID → String?
no setter
capabilityId → String?
no setter
COMMENT → String?
no setter
DECIDED_AT → String?
RFC 3339 UTC fixed-millisecond timestamp (YYYY-MM-DDTHH:mm:ss.sssZ) when the decision was made.
no setter
decidedAt → String?
no setter
DECISION → visualAssetDecisionKind
no setter
ENTITY_ID → String?
no setter
entityId → String?
no setter
ENVELOPE_SHA256 → String?
64 lowercase hexadecimal characters encoding SHA-256 of the RFC 8785 JCS serialization of the projected review object, excluding ENVELOPE_SHA256 and SIGNATURE.
no setter
envelopeSha256 → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
ISSUE_NUMBER → String?
Positive base-10 issue number digits with no leading zero.
no setter
issueNumber → String?
no setter
NONCE → String?
Unique opaque identifier containing at least 128 bits of entropy.
no setter
PREVIOUS_DECISION_SHA256 → String?
64 lowercase hexadecimal characters encoding SHA-256 of the prior projected review object's RFC 8785 JCS serialization, excluding its ENVELOPE_SHA256 and SIGNATURE.
no setter
previousDecisionSha256 → String?
no setter
REASONS → List<String>?
no setter
REPOSITORY → String?
Canonical repository identifier in owner/name form.
no setter
REVIEWED_TRANSFORM → VAMTransform?
no setter
reviewedTransform → VAMTransform?
no setter
REVIEWER_ID → String?
no setter
REVIEWER_ROLE → visualAssetReviewerRole
no setter
reviewerId → String?
no setter
reviewerRole → visualAssetReviewerRole
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
SIGNATURE → List<int>?
Signature over the raw 32-byte SHA-256 digest represented by ENVELOPE_SHA256.
no setter
SIGNATURE_TYPE → String?
Signature algorithm and profile; initially Ed25519.
no setter
signatureType → String?
no setter
VAM_ID → String?
no setter
vamId → String?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reader → const Reader<VAMReview>