On This Page (2)
Schematic Contract TypeSpec Sources
These files are the published wire-shape source for altium-monkey's versioned schematic transport contracts (see Why TypeSpec? for the design rationale and boundary between generated wire shapes and handwritten Python adapters).
Entry Points
main.tspimports the established Design/Netlist/BOM/Hierarchy/Compiled-Grapha0/a1/b0roots and the checkedc0/b0compilation family (structural-graph-c0.tsp,compiled-view-c0.tsp, andcompilation-c0.tsp).sch_paint_ir/main.tspdefines the separately versioned Schematic Paint IRa0display list (altium_monkey.sch_paint_ir.a0).
Usage & Stability Rules
- Generated language DTOs are internal implementation details. Public Python callers should use the handwritten facades and helpers (
AltiumDesign,AltiumCompilation,AltiumCompiledView,SchPaintIR,SchematicBomPayload,SchematicContractLimits, andSchematicContractError). - Handwritten adapters own JSON framing, resource limits, and semantic validation beyond structural schema constraints.
- Already-published JSON Schema artifacts are immutable compatibility records. In particular,
../design_b0.schema.jsonand../netlist_a0.schema.jsonretain their originally published bytes even if compiling these sources with a newer toolchain would change formatting, definition fragment names, descriptions, or validation detail. A semantic payload change requires a new schema ID and a new schema file.