On This Page (13)
- Why TypeSpec?
- Wire Shape vs. Adapter Boundary
- Benefits for Downstream Consumers
- Revision Scheme
- Contract Files
- altium_monkey.design.b0
- altium_monkey.netlist.b0
- altium_monkey.schematic_bom.a0
- altium_monkey.compilation.c0, compiled_view.c0, and structural_graph.c0
- Why Both compiled_schematic_graph.a0 And b0 Exist
- altium_monkey.pcb.svg.enrichment.a0
- altium_monkey.extractable_assets.a0
- altium_monkey.pcb.embedded_assets.a0
JSON Schemas & TypeSpec
altium-monkey publishes versioned JSON wire contracts for compiled schematics, netlists, Paint IR display lists, multi-board system netlists, PCB SVG enrichment, and asset inventories. The schema string in each payload is the contract version; the Python package version is release metadata and is intentionally separate from these schema IDs.
Any payload-shape change requires a new schema ID unless the existing schema already permits it without changing field meaning.
Why TypeSpec?
Every new or revised wire contract is authored in TypeSpec (.tsp) and compiled to standard JSON Schema Draft 2020-12 (.schema.json), instead of hand-writing verbose JSON Schema files.
When a library emits structured JSON for downstream tools (viewers, BOM pipelines, DRC checkers, diff utilities, or web apps), maintaining raw JSON Schema alongside Python serializers and docs leads to drift: fields flip between optional and nullable, integer widths or tagged-union discriminators diverge, and raw $defs/anyOf/unevaluatedProperties boilerplate becomes hard to review. Authoring the wire shape once in TypeSpec avoids that drift.
Wire Shape vs. Adapter Boundary
altium-monkey separates wire shape from runtime behavior:
TypeSpec (.tsp): single source for wire shape
├── generated JSON Schema (.schema.json, Draft 2020-12)
└── internal typed transport structs (strict decoding/encoding)
│
▼
Handwritten Python adapters
├── JSON framing & safety limits (UTF-8/BOM, byte & nesting limits, duplicate keys)
├── semantic validation & schema migrations
└── public Python APIs (AltiumDesign, AltiumCompilation, SchPaintIR, ...)- What TypeSpec owns: exact JSON structure, field presence vs. nullability, literal schema version strings (
altium_monkey.compilation.c0,altium_monkey.sch_paint_ir.a0, etc.), discriminated unions, integer ranges (such as signed 64-bit bounds), and open vs. closed objects. - What handwritten adapters own: raw byte/UTF-8 framing, pre-materialization resource limits (
SchematicContractLimits), duplicate-key rejection, cross-field semantic invariants, and query methods. - What TypeSpec does not model: raw Altium binary/OLE record structures, mutable
SchDoc/SchLib/PcbDoc/PcbLibobject trees, compiler internals, or live rendering state. Those stay handwritten Python models built for interactive editing and queries.
Benefits for Downstream Consumers
- Readable specs: The published
.tspsources read like concise typed interfaces instead of thousands of lines of raw JSON Schema boilerplate. - Standard JSON Schema for any language: Every compiled
.schema.jsonworks with standard Draft 2020-12 validators and code generators in Python, TypeScript, Go, Java, or any other language — no TypeSpec compiler needed. - Immutable published contracts: Once a schema ID (such as
altium_monkey.design.b0oraltium_monkey.netlist.a0) is published, its.schema.jsonfile is frozen byte-for-byte. Breaking semantic changes get a new schema ID (a0->b0->c0). - Stable public Python API: Generated transport structs stay internal; public Python callers work with handwritten classes (
AltiumDesign,AltiumCompilation,AltiumCompiledView,SchPaintIR,MbsSystemNetlist,FabView).
Revision Scheme
The leading letter is the major revision and changes for a breaking contract change. Moving from a to b therefore marks an incompatible root shape. The trailing number identifies an additive minor revision within that major family: existing fields retain their meaning and required shape. Consumers should still match a supported schema ID exactly unless they implement an explicit migration or compatibility range.
- Moving from
a0toa1added project-analysis fields without removing the established Design fields. - Moving from
a1toa2introduced the compiled physical-page projection. - Moving from
a2tob0removes that duplicated projection and requires the source-neutral compiled schematic graph. Because this is breaking, the major revision advances fromatob. - The
c0compilation family (compilation.c0,compiled_view.c0,structural_graph.c0, andpaint_bindings.c0) together withcompiled_schematic_graph.b0introduces the checked recursive Design/System electrical and source-binding model alongside the existingdesign.b0payload. - Current public contracts use
a0,a1,a2,b0, andc0depending on payload family.
Contract Files
The explicit contract bundle is maintained under docs/schemas/altium_monkey.
Machine-readable entry points:
design_b0.schema.jsoncompiled_schematic_graph_a0.schema.jsoncompiled_schematic_graph_b0.schema.jsoncompilation_c0.schema.jsoncompiled_view_c0.schema.jsonstructural_graph_c0.schema.jsonsource_selection_c0.schema.jsonrealized_source_selection_c0.schema.jsonnet_explanation_c0.schema.jsonnet_sources_c0.schema.jsonrealized_net_sources_c0.schema.jsonpaint_bindings_c0.schema.jsonpaint_occurrence_selection_c0.schema.jsonpaint_occurrences_for_net_c0.schema.jsonschematic_hierarchy_a1.schema.jsonnetlist_b0.schema.jsonschematic_bom_a0.schema.jsonschdoc_interop_a0.schema.jsonschlib_interop_a0.schema.jsoncompiled_design_model_b0.schema.jsonnetlist_a0.schema.json, frozen predecessordesign_a2.schema.json, frozen predecessordesign_a1.schema.json, frozen predecessordesign_a0.schema.json, frozen predecessorpcb_svg_enrichment_a0.schema.jsonembedded_assets_a0.schema.jsonextractable_assets_a0.schema.jsonsch_paint_ir_a0.schema.json
The reviewed TypeSpec sources are published with the schema bundle (see Why TypeSpec? above for the rationale behind authoring wire contracts in TypeSpec and how generated schemas sit alongside handwritten Python adapters). They define both the established schematic transport roots (Design b0, compiled-graph a0, hierarchy a1, Netlist a0, Netlist b0, and schematic-BOM a0) and the new checked C0 / B0 contract family (structural-graph-c0.tsp, compiled-view-c0.tsp, and compilation-c0.tsp). Previously published schema artifacts, including Design b0 and Netlist a0, are kept byte-for-byte stable even when a newer generator would format equivalent definitions differently. A semantic shape change requires a new schema ID.
The separately versioned schematic Paint IR a0 sources are published under typespec/sch_paint_ir. This source-faithful analytic display list preserves final paint order, styles, text, and self-contained image resources for portable adapters.
The compiled-design diagnostic schema is handwritten and versioned because it describes the compiler-native model. Older Design and Netlist schemas remain bundled only for consumers pinned to earlier contracts. Generated Python DTOs are internal implementation details; public Python code should use the handwritten emitters, wrappers, limits, and errors documented below.
The standalone roots use markers altium_monkey.compiled_schematic_graph.a0, altium_monkey.schematic_hierarchy.a1, altium_monkey.netlist.b0, altium_monkey.schematic_bom.a0, and altium_monkey.sch.compiled_design_model.b0. The diagnostic contract is a strict, lower-level AltiumCompiledDesign.to_dict() transport with no generated runtime DTO. validate_compiled_design_payload(...) validates this diagnostic payload against its strict handwritten contract.
The low-level schematic document and library interchange contracts use altium_monkey.schdoc.interop.a0 and altium_monkey.schlib.interop.a0.
altium_monkey.design.b0
Emitter: AltiumDesign.to_json(...)
Generator: altium_monkey
This is the full project/design analysis contract. It combines project metadata, schematic sheet metadata, variant metadata, enriched schematic components, compiled nets, the source-neutral compiled schematic graph, narrow Altium page presentation metadata, and resolved hierarchy data.
Root field order:
schema
generator
project
variants
options
compile
diagnostics
sheets
components
schematic_hierarchy
compiled_schematic_graph
physical_page_metadata
pnp
nets
indexesindexes is optional and is controlled by AltiumDesign.to_json(include_indexes=...).
pnp is optional and appears only when include_pnp=True and the design has a referenced PcbDoc that can provide pick-and-place placements. Use include_pnp=False to keep Design JSON schematic-only and avoid parsing the board.
compile and diagnostics are optional and appear only when AltiumDesign.to_json(include_compile_metadata=True) is requested.
compiled_schematic_graph and physical_page_metadata are always present.
Important fields:
schema: alwaysaltium_monkey.design.b0.generator: alwaysaltium_monkey.project: project name, path-derived metadata, document paths, and project parameters.variants: project variant definitions, including DNP lists and parameter overrides when available.options: netlist and hierarchy-resolution options used to generate the payload.sheets: reachable schematic documents and sheet-level metadata. Canonical decimalSheetNumbervalues are emitted as JSON numbers for compatibility; non-canonical Altium values such as part-number strings are emitted exactly as JSON strings.components: schematic components enriched with sheet, pin-count, parameters, andsvg_idwhere available.schematic_hierarchy: resolved documents, sheet symbols, channels, hierarchy paths, sheet-entry links, harness bundle links, and unresolved hierarchy diagnostics.pnp: optional PCB-backed pick-and-place data in millimeters.compile: optional compact compiled-model metadata, including compiled schema, summary, compile options, annotation metadata, and statistics.diagnostics: optional compile, annotation, document, sheet-symbol, component, and net diagnostics.compiled_schematic_graph: authoritative variant-neutral graph with ten source-neutral definition, occurrence, topology, binding, and drawing-link collections.physical_page_metadata: Altium channel, room, path, and document facts keyed by canonical graph page occurrence ids; it does not repeat graph components or nets.nets: the established Design b0 embedded-net projection, using filename-onlysource_sheetsplus aliases and optional name-source provenance. These rows are not standalone Netlist b0 rows, which use structuredsource_pagesand additional component identity.indexes: optional compatibility lookup maps for components, nets, pins, and unambiguous SVG IDs.
Compiled graph and drawing identity:
- The graph schema is
altium_monkey.compiled_schematic_graph.a0and the identity namespace issch.compiled_schematic_graph.a0. - Its ten collections are
unit_definitions,page_definitions,unit_occurrences,page_occurrences,hierarchy_occurrences,component_occurrences,local_net_occurrences,terminal_occurrences,hierarchy_terminal_bindings, andgraphical_artifact_links. - A review-safe graphical identity is the tuple
(page_occurrence_ref, artifact_key, element_id). - Current schematic SVG/IR links use
artifact_key="sch.dwg_scene". - A bare SVG element id is not a realized identity in reused hierarchy.
The predecessor altium_monkey.design.a2 design_a2.schema.json is retained for archived physical-page payloads. altium_monkey.design.a1 design_a1.schema.json is still bundled for strict validators pinned to the pre-compiled-design project contract. The first public design contract, altium_monkey.design.a0 design_a0.schema.json, is also bundled. Current AltiumDesign.to_json(...) output uses altium_monkey.design.b0. Graph-absent or unsupported-graph-schema schematic payloads must be rejected with a migration error rather than reconstructed from Design a2 physical_pages.
PNP fields:
units: currentlymmin the design JSON contract.position_mode: selected coordinate algorithm. Current design JSON emitsaltium-pick-place.source_pcbdoc: source PcbDoc filename used for placements.placements: list of component placements.
altium-pick-place matches Altium's Pick Place export by using the center of the bounding box of component-owned pad anchor points, with component-origin fallback for components that have no owned pads. Direct API callers can request component-origin from AltiumDesign.to_pnp(...) when they need the footprint placement origin instead.
PNP placement fields:
designator: component designator.comment: schematic value/comment when available.layer: normalized PCB layer, usuallytoporbottom.footprint: PCB footprint name.center_x: selected PnP position X inpnp.units.center_y: selected PnP position Y inpnp.units.rotation: rotation in degrees.description: schematic or PCB component description.parameters: component parameters.
The design contract does not contain a root version field. The schema field is the contract version.
The design contract also does not contain components_enriched. The enriched component list is the canonical components field.
altium_monkey.netlist.b0
Emitter: Netlist.to_json(...) and AltiumDesign.to_netlist().to_json(...)
Generator: altium_monkey
This is the current compiled schematic connectivity contract. It is smaller than the full Design payload and supplies stable physical component and source page identity for electrical-connectivity consumers.
Root fields:
schema
generator
components
netsComponent fields:
component_id: nonempty stable compiled-component identity.designator: resolved display designator.logical_designator: required nullable source designator.physical_designator: required nullable compiled annotation.source_page: required nullable{physical_document_id, source_sheet_file}.value,footprint,library_ref, anddescription: component metadata.parameters: string-valued schematic component parameters.
Net fields:
uid: stable net identity within the emitted payload.name: compiled net name.auto_named: true when the compiler generated the net name.source_pages: structured physical-document/source-sheet identities that contributed to the net. Python exposes each identity as an immutableNetlistSourcePage.terminals: connected component pins.graphical: related schematic SVG IDs grouped by record type.aliases: alternate names discovered while merging connectivity.endpoints: source-owned semantic trace endpoints for visualization.hierarchy_paths: optional hierarchy provenance for hierarchical or repeated-channel designs.
Terminal fields:
component_id: owning compiled-component identity.designator: owning component display designator.pin: pin designator.pin_name: pin display name.pin_type: closed electrical pin-type value.
Graphical net fields:
wiresjunctionslabelspower_portsportssheet_entriespins
Endpoint rows always contain their full key set. Non-pin fields such as component_id, designator, pin, pin_name, pin_type, and connection_point use JSON null when they do not apply. Pin endpoints and graphical pin references carry component_id. When a connection point is present for a sheet or harness entry, its units are altium_coord.
altium_monkey.netlist.a0 is retained as a frozen predecessor schema for stored payloads. It used filename-only source_sheets and did not carry the b0 component identity fields. This release has no Netlist a0 emitter or compatibility switch.
altium_monkey.schematic_bom.a0
Emitter: AltiumDesign.to_bom_payload()
The immutable SchematicBomPayload wrapper exposes rows, selected_variant, to_json(), to_json_text(), and to_json_bytes(). Its from_json*() class methods validate stored payloads. Each component row carries stable component, logical/physical designator, and structured source-page identity together with metadata, string parameters, and inverse fitted/dnp flags. The established list-returning AltiumDesign.to_bom() API remains available.
SchematicContractLimits lets callers lower JSON resource ceilings (all count and byte ceilings default to uncapped 2^63 - 1, matching Altium, while max_recursion_depth stays 128 for stack safety); SchematicContractError reports a stable code, JSON Pointer path, and detail when an input violates schema, type, resource, or semantic invariants.
altium_monkey.compilation.c0, compiled_view.c0, and structural_graph.c0
Emitters: AltiumCompilation (from_file, from_json, to_json), AltiumCompiledView (from_json, to_json), and AltiumStructuralGraph.
The C0 compilation contract family provides one shared checked electrical and source-evidence model across single-board projects (.PrjPcb / .SchDoc) and composed multiboard systems (.PrjMbd):
altium_monkey.structural_graph.c0(structural_graph_c0.schema.json): recursive electrical membership (definitions,instances,terminals,nets,net_bridgesfor Altium Net Tie components of kinds 3 and 4, transitivebridged_groups, andgaps). Net bridges record deliberate shorts beside the nets without merging them.altium_monkey.compiled_view.c0(compiled_view_c0.schema.json): detached checked electrical and source relationship view over the structural graph, embeddingaltium_monkey.compiled_schematic_graph.b0for Design definitions and supportingselect_source(...)(altium_monkey.source_selection.c0),explain_net(...)(altium_monkey.net_explanation.c0),sources_for_net(...)(altium_monkey.net_sources.c0), andimpacts_for_field(...).altium_monkey.compiled_schematic_graph.b0(compiled_schematic_graph_b0.schema.json): the B0 schematic graph embedded inCompiledViewC0'sDesignSource.schematic_graph. Unlikea0, it holds realizedpages, authored namingfieldswith physical contexts, exactsource_bindingskeyed by persisted UID or file-slot ordinal (SchematicSourceKey),naming_gaps, andissues, leaving Paint IR drawing linkage topaint_bindings.c0.altium_monkey.compilation.c0(compilation_c0.schema.json): complete checked Design or System compilation adding engineering component metadata, variants, realized schematic pages/bodies/contacts/local islands/hierarchy links, board placements, and realized-page queries (select_source→altium_monkey.realized_source_selection.c0,realized_sources_for_net→altium_monkey.realized_net_sources.c0).altium_monkey.paint_bindings.c0(paint_bindings_c0.schema.json): live drawing-to-source proof produced byAltiumCompilation.schematic_graphicsandschematic_graphics_with_options, binding every Paint IR groupoccurrence_id(verified bypaint_sha256) to exactsource_keysand supportingselect_occurrence(...)(altium_monkey.paint_occurrence_selection.c0) andoccurrences_for_net(...)(altium_monkey.paint_occurrences_for_net.c0).
Why Both compiled_schematic_graph.a0 And b0 Exist
Both schemas are actively generated from TypeSpec and emitted by two distinct surfaces — compiled_schematic_graph.b0 is not a drop-in v2 of a0. b0 is a narrower source-incidence sub-schema inside CompiledViewC0 (while electrical topology lives in structural_graph.c0, realized pages/bodies/contacts live in CompilationC0.definitions[].schematic, and drawing links live in paint_bindings.c0):
| Schema ID & TypeSpec | Emitted By | Role |
|---|---|---|
altium_monkey.compiled_schematic_graph.a0 (compiled-graph-a0.tsp) | AltiumDesign.to_json() (embedded in design.b0) and AltiumCompiledSchematicGraph.to_json() | Legacy self-contained occurrence graph (pages, components, local_nets, terminals, hierarchy_terminal_bindings, graphical_artifact_links) kept schema-stable in 2026.11.26 for existing design.b0 consumers. |
altium_monkey.compiled_schematic_graph.b0 (compiled-view-c0.tsp) | AltiumCompiledView (compiled_view.c0) and AltiumCompilation (compilation.c0) for single-board and multi-board AltiumSystem designs | Checked C0 source-binding and authored-field sub-schema (pages, authored fields with FieldContext, source_bindings, naming_gaps, issues) pairing with structural_graph.c0 and paint_bindings.c0. |
Removal Warning (
2026.12.25/ "santy claws"):altium_monkey.design.b0(AltiumDesign.to_json()) andaltium_monkey.compiled_schematic_graph.a0(AltiumCompiledSchematicGraph) are kept as a compatibility surface in2026.11.26and will be removed in the next release (targeting2026.12.25, codename "santy claws"). New and migrating consumers should targetAltiumCompilation(altium_monkey.compilation.c0) andAltiumCompiledView(altium_monkey.compiled_view.c0).
altium_monkey.pcb.svg.enrichment.a0
Emitter: Altium Cruncher's pcb-svg and toon, with global.include_metadata.
This is document-level PCB SVG enrichment metadata. It exists so downstream tools can inspect layer, net, net-class, component, board-outline, and drill relationships without reparsing the PcbDoc.
The schema appears in three places:
- root SVG attribute
data-enrichment-schema="altium_monkey.pcb.svg.enrichment.a0" - metadata attribute
<metadata id="pcb-enrichment-a0" data-schema="altium_monkey.pcb.svg.enrichment.a0"> - JSON payload field
"schema": "altium_monkey.pcb.svg.enrichment.a0"
The metadata element id remains pcb-enrichment-a0. That id is a DOM lookup anchor, not the schema namespace.
Payload root fields:
schema
source
board
view
layers
lookup
componentsImportant fields:
source.pcbdoc_file: source PcbDoc filename when known.board.centroid_mils: board centroid in mils when known.board.centroid_relative_to_origin_mils: centroid relative to the board origin in mils when known.view.kind: view type such asboard,layer_set, orboard_outline_only.view.included_layer_ids: renderer layer IDs for layer groups actually emitted in this SVG. These are legacy source IDs for native legacy layers and renderer-assigned IDs for derived layers, not serialized V7 saved layer IDs.view.includes_board_outline: true when board-outline geometry is actually emitted.layers.all_layer_ids: all known renderer layer IDs in the rendered board context; this is a discovery registry, not proof that each layer is emitted in the current SVG. These IDs use the same legacy/native or renderer-assigned derived-layer convention asview.included_layer_ids.layers.layer_id_to_key: stable layer keys such asL1,L32, orDRILLS.layers.layer_id_to_name: stable layer tokens such asTOP,BOTTOM, orDRILLS.layers.render_layers: optional render-layer registry emitted wheninclude_render_layer_metadata=True; entries classify native Altium layers and renderer-derived layers such asDRILLS.lookup.net_index_to_name: net-index lookup table.lookup.net_name_to_classes: net-class membership by net name.lookup.component_index_to_designator: component-index lookup table.lookup.component_index_to_uid: component unique IDs by component index.components: component placement and parameter summaries used by SVG viewers.
layers.render_layers entries contain id, key, name, display_name, role, kind, and source. Native source-backed entries use kind="native" and source="altium". Renderer-derived entries use kind="derived" and source="renderer" and may include derived_from; the current derived entry is DRILLS with id 9001, role drill, and derived_from=["pad-hole", "via-hole"].
Element-level SVG metadata uses ordinary data-* attributes. Common attributes include:
data-layer-id,data-layer-key,data-layer-name,data-layer-display-name, anddata-layer-roledata-net-index,data-net,data-net-class, anddata-net-classesdata-component-index,data-component, anddata-component-uiddata-feature="board-outline"anddata-feature="board-cutout"data-primitive="pad-hole"ordata-primitive="via-hole"for drill geometrydata-hole-kind,data-hole-plating, anddata-hole-renderdata-overlay-kind="pad-designator"anddata-overlay-kind="origin-datum"for optional review overlays
altium_monkey.extractable_assets.a0
Emitter: AltiumAssetInventory.to_dict(...)
This is the JSON-ready inventory contract for assets that can be selected from one source document or library. The public Python containers that currently emit it are AltiumPcbDoc.asset_inventory(...), AltiumPcbLib.asset_inventory(...), AltiumSchDoc.asset_inventory(...), and AltiumSchLib.asset_inventory(...).
Payload root fields:
schema
source_kind
source_path
assetsImportant fields:
schema: alwaysaltium_monkey.extractable_assets.a0.source_kind: source container kind such aspcbdoc,pcblib,schdoc, orschlib.source_path: source file path when the inventory came from a file-backed container; live unsaved containers may emitnull.assets: selectable asset summaries.
Each asset contains:
ref: theAltiumAssetRefhandle to pass back toextract_asset(...)or a kind-specific extraction helper.kind: A0 acceptsembedded_model,embedded_font,opaque_embedded,pcb_footprint, andsch_symbol. The in-process API reservessch_imagefor future image inventory work, but it is not valid in this A0 JSON schema until a future schema revision adds a matching typed details branch.name: public display and exact-name selection value.extraction_filename: suggested output filename, ornullwhen no stable filename is available.native_extension: native file extension without a leading dot, ornull.can_extract: true when this API can extract the asset from the current source.payload_available: true when the selected asset has direct byte payload access. Footprint and symbol assets extract as library objects instead.payload_sha256: optional SHA-256 over extracted payload bytes when hashes were requested and a byte payload is available.details: typed per-kind detail object. Numeric counts remain JSON numbers, booleans remain booleans, and designator/index lists remain arrays.extras: reserved extension object for non-contract annotations. A0 requires{}.
File-backed refs are durable through normalized source_path identity. Refs from live unsaved containers carry an opaque process-local source_instance_id; they are valid only for that live source instance in the current process and are not durable across reloads or serialization boundaries.
altium_monkey.pcb.embedded_assets.a0
Emitter: EmbeddedAssetInventory.to_dict(...) from AltiumPcbDoc.embedded_asset_inventory(...) and AltiumPcbLib.embedded_asset_inventory(...).
This is the focused PCB/PcbLib embedded-binary inventory contract for preview, dedupe, import dry-run, and extraction-planning consumers. Use it when the consumer only needs embedded model/font/opaque payload metadata. Use altium_monkey.extractable_assets.a0 when the consumer also needs selectable logical assets such as footprints or schematic symbols.
Payload root fields:
schema
source_kind
source_path
models
fonts
opaque_assetsImportant fields:
schema: alwaysaltium_monkey.pcb.embedded_assets.a0.source_kind:pcbdocorpcblib.source_path: source file path when file-backed, otherwisenullfor live unsaved containers.models: embedded 3D model summaries.fonts: embedded TrueType font summaries. A0 currently emits typed fonts for PcbDoc only.opaque_assets: preserved embedded streams that are not parsed as typed assets. A0 currently uses this for PcbLibLibrary/EmbeddedFonts.
Model summaries include index, name, id, extraction_filename, model_format, is_embedded, compressed/decompressed sizes, payload availability, optional SHA-256, optional Altium checksum, and PCB object references. Font summaries include family/style names, extraction filename, sizes, payload availability, optional SHA-256, and support status. Opaque summaries include stream name, raw size, payload availability, optional SHA-256, support status, and reason.
Hashes are only present when requested and when a payload is available. Corrupt or unsupported payloads report payload_available=false and payload_sha256=null.