Skip to content

Latest commit

 

History

History
1603 lines (1402 loc) · 96.9 KB

format-stability.md

File metadata and controls

1603 lines (1402 loc) · 96.9 KB

Format stability: what can change, and what says so

Portrayal has six version numbers, and each answers a different question. This page says what each one covers, what raises it, and what the project promises about it while the package is at 0.x.

Number Where it appears What it versions
format every device manifest, component contract, listing and lab (format: 1) the file format a manifest is written in
schema v1 the schema $ids and titles in spec/schemas/ (device, component, listing and lab; the marked-up drawing; and the rack file) for the manifest schemas, the same thing, named: schema v1 is format 1. marks.schema.json is v1 of the marked-up drawing, whose own key is v (1). rack.schema.json was first published under /v1/, describing rack file version 2, then under /v2/ for version 3; it now describes version 4 and is published under /v3/, the next unused label, never under its rack version number (below)
package version in pyproject.toml (0.2.0) the tools: the linter, the compiler, the indexers and the exporter
rack catalogue format rack.json (format: 1) the catalogue a rack tool reads in one fetch; its own number, apart from the manifests' format
rack file version the Rack Builder's file (format: "portrayal-rack", version: 4) the rack file a user saves; parseDoc migrates an older one on load
contract devices.json (contract: 2 at 0.1.0 and at 0.2.0) the published build a consumer reads from library/dist/; CHANGELOG.md records each one

Each schema's $id is a URL under https://portrayal.dev/schemas/, one file per schema: device.schema.json, component.schema.json, listing.schema.json, lab.schema.json and marks.schema.json under /v1/, and rack.schema.json under /v3/. A schema is served at its $id once the site has published it, so an editor or a validator that follows the $id finds the schema it names. The device, component, listing and rack schemas are served there. The lab and marks schemas are new in 0.2.0 and are served from the site publish that follows the 0.2.0 tag; until then their $ids do not resolve. rack.schema.json describes the Rack Builder's own file (format: "portrayal-rack", its own version, now 4), not a manifest, so it is published as a schema of this repository but does not carry format 1. Its label is a publication label only; the rack file's own version is migrated on load by parseDoc, so each rack version is published under the next unused label rather than overwriting the one before: version 2 under /v1/, which stays as published, version 3 (#921) under /schemas/v2/rack.schema.json, since no manifest format had taken /v2/, and version 4 under /schemas/v3/rack.schema.json. The label is never a rack version number, and a label once published is not reused. A new manifest format number is published beside the old one under the next label no schema has taken (/schemas/v4/ now that the rack file holds /v3/); a published label is never reused for a different format.

Rack file version 4

One version for everything that had waited for one (rack-file-v4-design.md). The migration from 3 changes nothing but the number: a version-3 file opens as it was and is saved as version 4. A page or kit that reads version 3 refuses a version-4 file whole, with its sentence, and does not open it in part.

  • Additive keys. Frame: startU, setback, width, options, holes.style: round. Item: setback, heldBy, roll, states, readings. Zero-U entry: channel, heldBy: {parts}, swaps, fields, states, readings. Cable: slack, lay, straps; a routed length holds need where it held measured. Bundle: straps takes breakout and anchors beside every.
  • A position is a number in steps of 0.5. ru: 12.5 is the upper half of U12. This is the change an older reader cannot read past, and why the version is bumped.
  • A reader keeps what it does not know. An unknown key on the document, a rack, the frame, an item, a cable, a zero-U entry and a bundle is read, kept and written back, so a later additive key needs no version.
  • What was written and could not be used is kept beside what could: slackAsWritten, readingsAsWritten, and a cable length as written.
  • The exports. The cable schedule has three more columns after notes: spare, stored and straps. A NetBox device row carries a half position; a Nautobot one is written at the whole unit with a comment. Neither import takes a starting unit, so both count from 1. The comment of a device row also says that it is mounted upside down or rotated, what a PDU hangs on, and which outlets are off. The BOM strap line counts each kind and width of strap, and the BOM notes gain one line that totals the spare cable. A draw.io edge label states the spare after the length. describe gains a Spare: line.

Added since, with no new version (a reader keeps a cable key it does not know, so none was needed):

  • color on a cable (#1028, kit 0.31.0): the cable's own colour, # and six lower-case hex digits. Absent, the cable is drawn in the jacket colour its two ends agree on, else its named type's, else its media's. A value the reader cannot use as a colour moves to colorAsWritten. A kit before 0.31.0 keeps the key and draws the cable by its media. The schema under /schemas/v3/ describes both keys; color is the first key of that schema with a pattern. The order and the color key were decided 2026-10-18; the other rulings in rack-file-v4-design.md section 14 still wait to be confirmed.

Each device and component also carries its own semantic version and lock, which records what changed in that hardware's drawing. That is a separate system, and DESIGN §9 covers it: art is a patch, an addition is a minor, and geometry or ids are a major.

What is a breaking change

To the format (which raises format, and the schema label with it):

  • a key is removed or renamed;
  • a key's meaning changes, for example a unit, a frame or what a value refers to;
  • validation starts rejecting a file that used to be valid.

Adding an optional key does not raise format. A file written without it stays valid, and a reader that ignores it is unaffected.

To the published build (which raises contract): the same rule applied to the files under library/dist/. A field a consumer reads is removed or renamed, or its meaning changes. A new field does not raise it.

The two move independently. A format change can leave the build's shape alone, and a change to the build can happen without any change to the files authors write.

A new file in library/dist/ is a new field in the same sense. It does not raise contract; from the release that adds it, its shape is under contract like every other file there. The elements file below was added this way, at contract: 2.

The elements file

Beside every compiled face, under the same name, is <device>[.<config>].<view>.elements.json. It lists each element the face draws, so a reader gets the face's tree without parsing the SVG or laying it out. Everything in it is read from the SVG it sits beside; nothing is added.

{
  "device": "agr110", "device-version": "8.2.8",
  "view": "front", "config": "ac", "configs": ["ac"],
  "viewBox": [0.0, 0.0, 438.4, 44.0],
  "source-sha256": "…", "components": {"std/sfp-ganged@1": "1.1.1"},
  "generator": {"tool": "portrayal-render", "version": "0.2.0"},
  "elements": [
    {"path": "chassis", "parent": null, "id": "chassis-faceplate", "class": "chassis",
     "box": {"x": 0.0, "y": 0.0, "w": 438.4, "h": 44.0}},
    {"path": "cutout:port-0", "parent": "port-0", "id": "cutout--port-0", "class": "cutout",
     "box": {"x": 14.39, "y": 2.47, "w": 14.25, "h": 10.4}},
    {"path": "port-0", "parent": null, "id": "port-0", "class": "port",
     "ref": "std/sfp-ganged@1:1.1.1", "media": "sfp-plus", "speed": "10g",
     "group": "sfp-plus", "group-role": "traffic", "rel-pos": "0",
     "box": {"x": 14.39, "y": 2.47, "w": 14.25, "h": 10.4},
     "connection-points": {"mate": {"at": [7.125, 5.2], "face": [21.515, 7.67], "dir": "front"}}}
  ]
}

The header. device is the face's data-device. config is the configuration the file is named after, and configs is every configuration that draws this face: a drawing is written once and shared (configs[].files in <device>.configs.json says which file each configuration's face is). viewBox is the SVG's, as four numbers. source-sha256, components (the resolved component versions), device-version and generator are copied from the SVG's <metadata>. The default configuration's unqualified copy, <device>.<view>.elements.json, is the same bytes as the file it copies.

One row per element, in document order, one per address: a row has either path (its data-path) or, for a part this face only sees as a projection, of (its data-of). The two never collide; a projection of a part the face also draws is that part's row. Each row may carry:

key from value
id id the CSS-safe id
class data-class string
ref data-ref <component>:<resolved version>, as the SVG writes it
media, speed, group, group-role, rel-pos the data- attribute of the same name string
speeds data-speeds list: every native rate of a multi-rate cage, ascending, ending at speed (["1g","10g","25g"]); absent on a single-rate port. Written per group from the vendor's figure; native rates only, no breakout
states data-states list: the lamp vocabulary
programmable, programmable-note data-programmable, data-programmable-note true on a lamp the maker lets the user colour, and the maker's own name for it as a string; both absent on every other row (A port light the user can colour)
for data-for list: the owners, local paths or device-absolute /<view>/<path>
inner data-inner true for a port inside another port's housing
covered-by data-covered-by on a bay a card wider than one slot covers: the path of the bay the card is seated in (pcie-two-slot-bays-design.md)
hides data-hides list: on a cover, the paths of the placements and bays on this face that it hides; a row with it is a cover. Written from the placement's hides: and checked by L196
connection-points data-cp, data-cp-at, data-cp-dir, data-cp-on on the part's markers {name: {at, face, dir?, on?}}: at as written, in the part's own frame; face, the same point in the face's frame
seat the path the bay or cage this row's part is seated in, innermost first; absent on the chassis's own rows
moves-with, moves-by data-moves-with, data-moves-by on the row's element, or on the nearest element it sits inside the adjustment that moves this row's box, and [dx, dy, dz]: the mm it moves for each mm of position (see A part that slides); absent on a row nothing moves
parent the tree the key of the row this one lists under, or null
box the geometry {x, y, w, h} in the face's millimetres, or null

A key whose attribute is absent is left out, except parent and box, which are always present.

parent is the nesting the Explorer shows, by the same rule (faceTree in kit/swap.js): the path's prefix, else for a projection the nearest drawn element it sits inside, else for a cutout:<id> the row <id>, else for a row with data-for its single local owner (a placed component naming several owners does not nest under the first) or, when it has none here (a lamp whose targets are all in another view), chassis. Anything else is a root. A test runs the kit's function over every face in the build and compares.

seat says which rows came from what the configuration seats and which are the chassis's own. A bay's occupant is <bay>/module and everything under it; a cage's is the element whose data-behaviour is occupies, and its seat is the cage it names. It does not say whether the configuration named that occupant or the bay or slot shipped it by default: one file serves every configuration that draws the face, and two of them can seat the same part for those two different reasons.

box is the union of the shapes under the row - rect, circle, ellipse, line, polygon, polyline and path - each taken through the full transform stack, with curves and arcs at their true extremes, so a rotated circle's box is its own and not its square's. It leaves out three things, because without a layout pass there is nothing exact to give: the extent of <text> (it depends on the reader's fonts, so a legend that is only text has box: null), stroke width (the box is the shape's, not its paint's), and clipping and masking. A zero-sized shape is not drawn and adds nothing. Numbers are rounded to 4 decimals (0.1 µm).

The bytes are deterministic: keys sorted, rows in document order, no whitespace, a final newline. The build writes the file whenever it writes the face, --if-stale included.

The labs file

labs.json is every lab under library/labs/, each with name, title, description, rack, devices and links. A lab names devices by name and ports by placement id, and holds no geometry: a viewer finds port positions in the compiled drawings. What it does resolve is where each device is. Every placement keeps every key its lab wrote, and carries six more:

{"id": "mgr-a", "ref": "fhd-cmp5dr", "on": "enc-4u", "face": "front", "unit": 3,
 "ru": 12, "mount": "rack-face", "host": "enc-4u", "side": null}
{"id": "duct-l", "ref": "cmv-sfd45u5w", "side": "left",
 "ru": 1, "face": "front", "mount": "rack-side", "host": null, "unit": null}
  • ru: the lowest rack unit the device takes, counted from U1 at the bottom of the rack. A placement on a host has no ru of its own and is given one: the host's ru plus unit less one.
  • face: front or rear. A rack device is always front; a rack-face part says which rail face it bolts to, and defaults to front.
  • mount: the device's chassis.mount, rack, rack-face or rack-side. A rack-side part stands beside the rack on the side of an upright and takes no rack unit; its ru is the unit it starts beside, default 1.
  • host: for a rack-face part, the id of the rack device on the unit behind it, whether the lab placed it on that device or by ru; otherwise null.
  • unit: which of the host's rack units, from 1 at the host's bottom; null without a host.
  • side: for a rack-side part, the attachment point it stands at, as the lab wrote it: left or right on a two-post frame, or left-front, left-rear, right-front or right-rear on a four-post one (#934). For a rack-face part narrower than the rack opening that states one, the rail it bolts to, left or right, seen from the front. Otherwise null. The four four-post names are new with #934 and did not raise contract: a reader that knows only left and right can read the side of the rack as the word before the hyphen.

They are new fields and did not raise contract, which is still 2. A reader that knows none of them still finds ru, and draws a rack-face part as an ordinary device on its rack unit; one that knows mount but not rack-side or side draws a rack-side part across its 45 units, which is wrong and visible, as the rack-face case was. A lab that fails its schema or a check (lint L139 to L142, L153, L154) is not written, and the build stops.

Rack PDUs

A rack PDU (#934, pdu-model-design.md) adds keys in five places. None raised contract, which is still 2: each is new, and a reader that does not know it finds every field it read before.

  • pdu-class, at the top of <device>.configs.json and on each entry of devices.json: one of basic, switched, metered-input, switched-metered-input, metered-branch, switched-metered-branch, metered-outlet and managed, or null where the device is no PDU. It is DERIVED from attrs.management.metering-scope (none, input, branch, outlet) and outlet-switching (a boolean), and never stated. The names and the two keys are published for filtering, so renaming one is a format change.

  • configs[].mount-points in <device>.configs.json: each mount point a configuration draws, {"mates": "pdu-button", "at": 72.0}, ascending by at, which is millimetres from the bottom of its view to the point's mate. A mount point is a placement of a class: mount part that declares mates. The pitch is the difference of two ats and is stated nowhere else. Always a list; [] on a device with none. mates is published as the part states it: one interface, or a list of interfaces for a part that mates more than one (#1045). No mount part states a list today.

  • configs[].slots in <device>.configs.json (rack-file-v4-design.md section 5): the other side of a mount point. Each slot a configuration offers a hanging part, {"interface": "pdu-button", "at": 26.0}, ascending by at, read as a mount point is: a placement of a class: mount part that declares interface, with at in millimetres from the bottom of its view to the point where the button seats. A bracket whose mounting options differ states each under its own configuration. Always a list; [] on a device that offers none. Additive: contract is still 2.

  • configs[].states in <device>.configs.json (the same note, section 4): what each placed part of a configuration can ITSELF be set to, {"outlet-a1": ["on", "off"]}, keyed by placement id in sorted order. The names are the ones the part declares as a list: the placement's own states, else its group's, else its part's. Since P-0041 it also lists every lamp and display the drawing declares, which a rack file keys states by: each data-states on a data-path of the faces the configuration draws, at the path the drawing gives it (led-sys, psu-0/module/status-led for a seated module, led-port-0/lamp, status-display/digit-1 with the digit glyphs as its states, breaker-a/rocker, led-a1). A placement's own answer wins for its path; a path on two faces takes the union. A part that declares none has no entry, so an outlet that cannot be switched is not listed, and a module the rack's own swaps put in a bay is not listed. A display's readings (data-messages) are not states. Always an object; {} on a device that declares none. Additive.

  • bays[view][].only-in and cages[view][].only-in in <device>.configs.json (#1022): the configurations that have this bay or cage, a list of configuration names exactly as device.yaml states it on the bay or the placement. Absent where the device states none, which is a bay of every configuration; an empty list is never written. A configuration not in the list has no such bay: the drawing leaves it out, and a reader must not take it for a bay holding its default. (configs[].bays need not list a bay the configuration has, which then holds its default, and may name one it lacks.) The kit reads it so (slotEnv, holdsAt). Additive: contract is still 2.

  • A slot id of the form <placement id>/<part id> in cages[view][] of <device>.configs.json (#1382): a part placed on a face that composes two or more connector parts gives one entry for each of them, such as ground-studs-rear/stud-tr. Until then a slot's id was always a placement id, so a reader that takes an id for a placement id should allow the /. Additive: contract is still 2.

  • configs[].names beside it: the name a DCIM knows each of those parts by, {"outlet-a1": "A1"}, where that is not the placement id. It is read from the device's own interfaces: through the function that names the outlets of the device-type export, so the two cannot disagree. A part no rule names has no entry. Always an object. Additive.

  • attrs.power gains input-plug (now a PART_POWER slug, which on the one device that wrote it was prose), input-cord, input-phase, input-wiring, input-voltage-v, input-current-a, plug-rating-a and capacity-kw; attrs are flattened to data-* on every drawing, so these names are held as attribute names too.

  • attrs.power gains poe-pd-standard and poe-pd-standard-min (802.3af, 802.3at or 802.3bt), poe-pd-class (an integer from 0 to 8) and poe-pd-max-w (a number above 0), all optional and all about a device's own PoE input. poe-pd-max-w is the whole intake, what the device hands on included, so a figure printed 'excluding PoE output' stays in power-self-max-w. Every file valid before stays valid and format is still 1. From the first device on main that states them, the names, the three spellings and the meaning of poe-pd-max-w cannot change without a format change, and neither can the mount value ceiling. The served copy of the device schema is republished in the same release as the first device that states ceiling, or a reader validating against the older copy refuses that device.

  • The DCIM export of a device that states poe-pd-standard gains one sentence in the comments: PoE powered device: 802.3at (runs on 802.3af), at most 25 W at the PD input. A device with a ceiling mount reads Ceiling-mounted; not rack-mounted.

  • chassis.mount gains strand (a box that clamps to the support strand or cable of an aerial plant) and pedestal (one that mounts on a pedestal or rod), and keeps wall. Every file valid before stays valid and format is still 1. Both values are additive and one-way: from the first device on main that states one, it cannot be renamed or removed without a format change, and the served copy of the device schema is republished in the same release as that device. A device with a strand mount reads Strand-mounted; not rack-mounted. and one with a pedestal mount Pedestal-mounted; not rack-mounted.

  • The DCIM export writes the input rating on the input power port's description and in the comments, with the derived class; an outlet's description names the breaker it runs through and its lines (Through breaker A, lines L1-L2); and feed_leg is written only for a line-to-neutral outlet on a three-phase wye input (L1 A, L2 B, L3 C). A DCIM that imported a leg holds it.

  • A fixed breaker is named as the unit prints it (decided 2026-10-09): the description reads Through breaker <name>, where the name is the first of the breaker placement's attrs.label and attrs.section (the letter on the Eaton G4 section tile) that is set, and the placement id only when neither is (dcim_export.breaker_name). A field's contract default is never read: an unset letter is unstated. The name is part of an imported description, so changing the rule moves every PDU's outlets.

  • Outlet state in the drawing and the kit (the kit half, section 3.2 of the note). An element a lamp is bound to by for: - where the lamp and the element both declare data-states, a switched outlet - carries data-lamped="true"; the base stylesheet dims a power outlet (data-class='inlet') that declares off, is state-off and is not data-lamped. In the kit a state set on such an element's path is applied to its bound lamps too (@portrayal/kit/states boundLamps and expandStates, in marks.js apply, the Explorer chips and the 3D scene), and off is a state that can be lit, not only the absence of one: the Explorer's off chip sets state-off on an outlet and on an element that declares a colour for off, and clears anything else. The attribute name and that meaning of off are held as format: a saved state set as off reads differently after the change.

The placement key lines, and through naming a fixed breaker placement, are manifest keys: stating either is a minor version of the device, and changing one a major. pdu-button is a mounting interface in spec/schemas/connectors.yaml; a slot that presents it and the fit check are #939's and #935's.

DC ports

A part that takes or hands on direct current states its DC ports in a dc block (dc-power-design.md section 5.2), and a device placement may override what differs. The build publishes them under one key, dc-ports, in two files. It is a new key and did not raise contract, which is still 2: a reader that does not know it finds every field it read before. No library part states a port yet, so today no published file carries the key.

dc-ports in components.json, on the component's entry beside cages: a list with one entry per port, in the order the part states them. Omitted when the part states none. It is the part as it is stated, in the part's own frame.

configs[].dc-ports in <device>.configs.json: the ports one configuration presents, ascending by path, with each placement's dc override applied. Omitted on a configuration that presents none, and so absent from the whole file for a device with none. It is not a view-level list like cages: a part in a bay is in the configurations that seat it and in no other, so a list on the file or on a view would be true of one build and false of another. A reader holding a configuration reads that configuration's list, as it reads slots and states. A part in a bay's nested bay is found the same way; the placement override applies to a placed part and not to a bay's occupant, which is what lint reads.

Both lists hold the same entry:

key holds
id the port's id on its part (input)
path the end a feed lands on. Always <part path>/<port id>, whether the part has one port or several, so a port added later moves no other's path. In components.json the part is the frame, so the path is the id alone (input); in configs.json it is the path the drawing gives the part with the id after it: the placement id (feed-a/input) or <bay>/module for a part in a bay (psu-0/module/input)
ref configs.json only: the component that presents it, so a reader can fetch its entry
direction input or output
voltage {nominal, range?}, signed (a -48 V plant is -48), or null where neither the part nor the placement states one
rating-a amperes, or null
awg the conductor sizes the end takes, a list, or null
side a or b, or null
poles one per conductor, in the order the cable lists its conductors: {role, slot}, and stand-in ({order}) where the part states one

A pole's role is one of the closed list in spec/schemas/dc.yaml, or unstated where no source says; an unstated pole is published as it is and never as a guess. A pole's slot is what the conductor lands on: in components.json its id inside the part (terminal-48v), in configs.json the full path (psu-0/module/terminal-48v). It is always under the part, not under the port, so a feed to one conductor addresses the pole's slot. A figure the part and the placement leave unstated is null, not absent, so "the part does not say" can be told from a key that is not a question the entry answers. The part's source, which names a provenance note, is not published: the note is in components-detail.json, no check reads where a figure came from, and a key added later is additive where one removed is not.

What is promised, and what a change costs. Renaming dc-ports, a key of an entry, or a role, or changing what a path or a slot refers to, is a format change, and so is moving the poles' order. Adding a key to an entry is not. The lock reads a published port as an export fact, as it reads fed-by and through, because whatever lands a feed on it holds what is above:

  • a device that gains a port, or whose port reaches another configuration, is a minor;
  • a port that goes, or loses a configuration, or whose id (and so its path), direction, poles, a pole's slot or role change, is a major. A second port on a part that had one is only a minor: the first port's path is the part's and its id, and does not move;
  • a figure (voltage, rating-a, awg, side) stated where there was none is a minor, and one that is changed or dropped is a major. The figures are what a feed is judged by, and the placement dc override that sets the same four already takes a major to change. Choosing the strict side is deliberate: a major can be relaxed to a minor for one figure later, and a promise a consumer holds cannot be tightened;
  • a device that presents no port records nothing: no key is added to its lock, and a lock written before the field existed reads as presenting none, so the first port a device gains is a minor and no device is reported for the lock learning the key.

The kits file

kits.json is every rail, bracket and slide kit in the library: each component contract with kind: kit, the kind added beside component and module in #905. A kit is a set of ordinary components that a device names from chassis.kits and never places, so it is never an entry of components.json, and components_index.py writes it here instead, on every build. While the library holds no kit the file is {"kits": []}.

{"kits": [{"ref": "acme/slide@1", "ns": "acme", "name": "slide", "major": "v1",
  "version": "1.0.0", "kind": "kit", "description": "...",
  "motion": "sliding", "travel": "full", "install": "drop-in",
  "parts": [{"ref": "acme/inner@1", "id": "inner", "count": 2}],
  "configurations": [{"id": "four-post", "racks": ["4-post"], "parts": ["inner"],
                      "depth": {"square": [631, 868]}, "rail-depth": 714}],
  "accessories": [{"kind": "cma", "ref": "acme/cma@1", "rail-depth": 845}],
  "superseded-by": null, "provenance": {"depth": "..."}, "gaps": []}]}

Rows are sorted by ref, and every row carries every key above. A key the contract leaves out is null (travel, install, superseded-by), an empty string (description), an empty list (accessories, gaps) or an empty object (provenance). parts, configurations and accessories are as the contract writes them; the component schema describes each key. A part is a ref, not geometry: the geometry of a kit's parts is read from components.json by their refs.

The file is new, and did not raise contract, which is still 2. Removing or renaming a key, or changing what one means, is a contract change; adding a key is not.

A kit configuration may state a preset and no depth. One-way, decided 2026-10-18. A configuration states at least one of the two. One with a preset alone is published as the contract writes it, with the preset and no depth key: not null, and not [preset, preset]. It means "factory setting known, range unknown", so a reader that takes depth to be always present must now handle its absence, and a kits.json or <device>.configs.json that holds such a configuration cannot be taken back to a reader that cannot. The kit's gaps row says which configurations have no range (what: depth, the ids in scope; always present, [] where the kit has none), and a telescoping kit states a preset on at least one configuration. Lint L157 and L158 hold both; the row for gaps is additive. No kit in the library uses this yet.

Ears and kits on a device

A device manifest names its kits under chassis.kits and says where its ears can put the faceplate under chassis.ears (#906). Both keys are optional and both are additive to format 1: chassis.ears was the string behind (#865), which stays valid with its meaning unchanged, and it may now also be an object.

chassis:
  ears:
    behind: true            # optional; the same statement as the bare string
    none: true              # optional; a part with no ears at all
    h: 43.5                 # optional; mm the ears span, when not the chassis height
    y: 0.15                 # optional; mm from the bottom of the chassis to the ears
    color: "#1b1e21"        # optional; the ears' colour, when they are not silver
    positions:
      - {name: flush, at: 0, default: true}
      - {name: mid, at: 228, racks: [2-post], part: {kit: acme/slide@1, part: mid}}
    rolled:                 # optional; the brackets that hold it rolled a quarter turn
      - {id: below, side: below, bar-h: 25.4, length: 486.41, ear-h: 92.44, ear-w: 28.0,
         color: "#c8cacc",  # `color` optional
         strip: {count: 17, pitch: 25.4, size: [5, 5]},      # optional; holes along the bar
         ear-slots: {count: 2, pitch: 60, size: [6, 14]}}    # optional; slots in each ear
  kits:
    - {ref: acme/slide@1, supply: in-box,
       depth: {config: four-post, range: {square: [685, 868]}}}
  • A position's name is one of flush, recessed, mid, rear and proud, and is required. label is the vendor's word for it. at is millimetres from the front of the faceplate back to the plane the ears bolt to, positive when the ears are behind the faceplate, and is written only when a source gives it. At most one position is default (L160). racks takes the words a kit configuration's racks takes. part names a kit the device lists and the id of one of that kit's parts (L162).
  • rolled is one-way (a new optional key, added with the drawing of a quarter turn in the rack elevation). Each entry is a bracket that holds the device when a rack file rolls it 90 or 270: side (below or above) says which edge of the turned body its bar lies against, bar-h is the bar's height, length its span from the outer edge of one ear to the other (at least the distance between the rail hole columns, 465.1 mm, to reach both posts), ear-h the height of each ear standing on the bar's lower edge, ear-w how far an ear stands in from the end, and color its fill. All lengths are millimetres. Only the rack elevation reads it; an older reader ignores the key and draws a quarter turn as before. The brackets are the rack's: they are drawn alike at 90 and at 270 and a device that states none draws none.
  • strip and ear-slots on a rolled entry are one-way (two new optional objects). strip is one row on the bar's middle line, centred between the ears. It takes count, pitch (centre to centre) and size ([width, height], millimetres), and shape: round (the default) or slot. ear-slots is one column of count slots on each ear's middle line, centred on its height, with pitch and size. The row is drawn on the bar's front face; the sheet does not say which face carries the holes. The rack elevation draws them and configs.json publishes them as stated, count an integer and every length a float. An older reader ignores them, and an older schema refuses them. A device that states neither builds byte for byte as before.
  • none is one-way (a new optional boolean, added beside rolled). none: true says the part has no ears: it is not bolted to the posts and carries no flange, because it stands between them on another part's brackets, as the tray and the top baffle of a vertical shelf mount kit do. The rack elevation and the 3D scene then draw no generic ear for it, and the elevation draws no screw heads at the rails. Absent or false, the device draws as before. Unlike behind, it does not say the face is as wide as the rack. An older reader ignores the key and draws the generic ear as before.
  • A kit entry's ref is a kind: kit (L161), listed once. supply is in-box or optional, and variant: reversed marks a reverse-mount kit. depth replaces the depth of one configuration of the kit for this device: config names the configuration and range has the shape that configuration's depth has (L163).
  • Both keys are for a rack device only (L125). A kit is never placed, composed or seated in a bay (L5, L10).

In the device lock both keys are chassis surface, so stating either is a patch, and a listed kit, its parts and its accessories join the composed digest, so a kit edited in place asks each device that lists it for a patch. Those are the refs <device>.configs.json reads to resolve each kit, below. h, y and color stay surface now that the generic ear (below) is drawn from them: that ear is drawn only when asked for and never in a published face, an elements file or an export, so changing either moves nothing a consumer caches a coordinate from. If the ears ever join the default build, h and y become geometry, and moving them is itself a major for each device that states them.

The generic ear

A rack device that places no ears of its own has a generic L-bracket ear (#909): a flange each side reaching from the body out to the 482.6 mm rack face, with a slot over each rail hole, and a 30 mm leg back along the body. It is chassis.ears.h tall, its bottom chassis.ears.y above the chassis's (the chassis's full height from y, and 0, where they are absent), and its flange's back face is on the plane the default position's at names (0, flush, where there is none). It is silver (#c8cacc, SILVER in ears.py, EAR.SILVER in relief.js) unless chassis.ears.color states another, because most network gear has bare or plated steel ears even when its faceplate is black; the plan carries the colour as color. The library still draws devices without their ears, so the default build is unchanged:

  • render.py --with ears draws it on all six faces, as the groups ear-left and ear-right (data-class="ear", data-generic="ear"), the ids and the tag common/rack-ear@1 is drawn under; the viewBox grows round it and the root carries data-face-w and data-face-h, as for any part beyond its face.
  • The kit's viewer builds it when a host asks: createViewer(el, {ears: true}) or viewer.setEars(true); viewer.ears() returns the plan drawn, or null. relief.js genericEars(chassis, faceW) makes the plan from configs.json.
  • A page draws it over a published face in 2D with the kit's ears2d.js (drawEars, clearEars): the shapes, ids and colours render.py --with ears writes, in a <g data-overlay="ears" pointer-events="none"> that is no part (no data-path), with the viewBox grown the same way. The Explorer offers it as a toggle, off by default.

A device gets none when it is not a rack device, states ears: behind, has a front as wide as the rack face (its ears are in the drawing), or still places common/rack-ear@1 or anything under optional: ears. That last check is 2D only: those ears are never in a published face, so the 3D scene, which is built from the published faces, gives such a device the generic pair. L164 warns when y + h is above the chassis, and L165 when two positions have the same name and label.

Ears and kits in configs.json

<device>.configs.json carries both under chassis, absent where the device states neither (#907):

{"chassis": {"...": "...",
  "ears": {"h": 43.5, "y": 0.15, "positions": [
    {"name": "flush", "at": 0.0, "default": true},
    {"name": "mid", "at": 228.0, "racks": ["2-post"],
     "part": {"kit": "acme/slide@1", "part": "mid"}}]},
  "kits": [{"ref": "acme/slide@1", "supply": "in-box", "variant": null,
    "depth": {"config": "four-post", "range": {"square": [685, 868]}},
    "version": "1.0.0", "description": "...",
    "motion": "sliding", "travel": "full", "install": "drop-in",
    "configurations": [{"id": "four-post", "racks": ["4-post"],
                        "parts": ["inner"], "depth": {"square": [685, 868]}}],
    "parts": [{"ref": "acme/inner@1", "id": "inner", "count": 2, "version": "1.0.0",
               "class": "bracket", "size": {"w": 20, "h": 40}, "body": null}],
    "accessories": [{"kind": "cma", "ref": "acme/cma@1", "version": "1.0.0",
                     "class": "bracket", "size": {"w": 30, "h": 40}, "body": null}]}]}}
  • ears is an object, always. The bare string ears: behind is published as {"behind": true}; an object is published with the keys it states (behind, none, h, y, color, positions, rolled) and no others, so a reader asks ears.behind === true and reads ears.positions || []. rolled is the list the manifest writes, its lengths floats. color is the string the manifest writes, and absent means silver. h, y and each position's at are floats. A position keeps every key the manifest writes. From #865 to #907 the bare string was published as the string, on main only; no release carried it, though the site once vendored a build that did. The one device that states it, fs/uscmh-sfdabsb2u, now publishes the object.
  • Each listed kit is resolved inline, in the order the device lists them. A row carries every key above: the device's ref, supply, variant and depth override (null where absent), then the kit's version, description, motion, travel, install (null where the kit leaves them out; description is an empty string where the kit has none), configurations, parts and accessories. A part keeps ref, id and count, and an accessory every key the kit writes; each gains its contract's version, class, size and body (null where absent).
  • The override is applied. A depth override replaces the depth of the configuration it names, so configurations are what this device can do; the row's depth says that one was overridden. The kit's own figures are in kits.json.

Neither raised contract, which is still 2: kits is a new key, and ears changed shape before any release published it, with nothing in the kit reading it. From the next release both are under contract like every other key.

The rack file: parts beside the rack and on one rail

Two keys were added to rack file version 2 in #926, and neither raised it:

  • zeroU entries. The record every rack has always carried, which the schema called reserved, now holds the parts that stand beside the rack: {id, ref, cfg, label, at, offsetMm, between?}. at is an attachment point of the frame, offsetMm the part's bottom above the bottom of the rails (a whole number of U as the kit writes it), and between: true a part that serves the next rack too. parseDoc keeps the record as written, and gives an entry with no id, or a repeated one, an id of its own.
  • side on an item: left or right, the rail a part narrower than the rack opening is on. parseDoc keeps it; a reader that drops it puts the part across both rails, which is visible and is what it was before.

The schema describes the new keys and does not constrain them, so every file that validated before still validates: an entry of zeroU is an object, as it always had to be, and the kit places only the entries it can read (id, ref and at as non-empty strings) and keeps the others as written. Constraining their types, so that a validator refuses at: 5, would reject a file that validates today, and so would be a format change.

The version stayed 2 because both keys are optional and an older reader of version 2 reads the rest of the rack whole: it keeps zeroU as written and draws nothing beside the rack, and it drops side, so its next save puts a bracket back across both rails. The 1 to 2 bump made an older page refuse a file rather than draw a manager as a device over its host. Here it was decided (2026-10-08) to accept the older reader's loss, because no @portrayal/kit release older than these keys was ever published: the one reader that existed, portrayal-site's, already kept both.

side on an item of a mount: rack device

The meaning of side widened, and no key or type changed. A mount: rack device that states a width of 225 mm or less may now say left or right. Twice that width fits the 450 mm opening, so two of them fill it. The limit comes from the width a device already states, and no device key says it.

This is one-way. A reader older than the change drops side from a rack device on its next save and puts both devices back across both rails. Fit refuses that, so the second device no longer fits its unit. The schema descriptions of rack and lab side say so. A later change to the limit re-reads every saved rack, and a lab publishes side as written.

A narrow rack device on a rail is judged by its rail. The elevation, the 3D view and the cable guides draw it upright and centred across the opening, not on the rail. Its port points are placed the same way. The DCIM files state no rail. Nothing is turned, and the page's frame notices say it does not stand on its rail yet.

The rack file: bundles, version 3

Cable bundles (#921, cable-bundles-design.md) raised the rack file to version 3, and its schema is published under /schemas/v2/ (above). A rack gains an optional bundles array, each bundle {id, number, label, members: [{cable, a?, b?}], route, straps?}, described by $defs bundle, member and strapSpacing; member.a, member.b and bundle.route are $defs/waypoint. A rack that was never given a bundle has no bundles key and saves as it was.

  • Migration. 2 to 3 is the identity, as 1 to 2 was: every version-2 file is a valid version-3 file. parseDoc migrates whatever it opens and serialize writes 3, so a page with this kit saves every document it opens as version 3.
  • An older reader refuses a version-3 file. Every page and kit from before #921 reads up to version 2, so it refuses the file with its "this page reads up to version 2" sentence rather than opening it. That is the point of the bump: an older parseDoc rebuilds a rack from the keys it names, so it would drop bundles and erase them on its next save, and an older page would edit a member's route alone. The refusal also protects side (#926), which a version-2 page drops. This is a one-way door: there is no way back to version 2 for a file a newer page has saved, and the /v2/ label is never reused.
  • The repairs are parseDoc's, so every reader gets the same rack. The shapes are repaired silently, as a cable's are: a bundle with no usable id or a repeated one gets a fresh id, a member that is not {cable} and a peel point that is no waypoint are dropped, and a number that is not a whole number from 1 is renumbered. The references are repaired with a note: a bundle whose id another thing in the rack has, a member naming no cable, a cable in two bundles and a number used twice are each repaired, and parseDoc(input, {notes}) says so, one sentence per repair naming its rack. No note is kept in the file.

Power and ground cables (kit 0.30.0)

Added to the rack file without raising its version, since each is a new value or a new optional key and nothing that was valid reads differently (cable-ends-design.md):

  • a cable's media may be power (an AC cord or a DC feed) or ground (a bonding wire). A reader that does not know a media keeps it and draws the cable as one with no media;
  • an end may carry plug, a component ref: the plug or lug the cable has there, stated only where the port takes more than one. A reader that does not know the key keeps it on load;
  • an end's path may be the path of a connector slot that is no part of class port: a power inlet, an outlet, a DC terminal's screw, a ground stud. A reader older than 0.30.0 reads such an end as loose.

A device's attrs.performance.cable-capacity-media does not take the two new words: a capacity is a count of data cords.

Three more values of a cable's media are added the same way (no new key, no raised version): stack, the cable between two switches' stacking ports; usb; and console. A cable of a StackPower or redundant-power link is power, a type of it. A reader that does not know one of the three keeps it, and draws the cable as one with no media, as for any media it does not know. cable-capacity-media does not take them. The DCIM cables file writes the three with a blank CABLE_TYPE, and its generic note for a blank type says so ("its media (stack) has no ... cable type, so its type is blank").

The cable types file

cable-types.json names the cable types a rack tool can lay: each one's media, a typical outside diameter and its minimum bend radius, every figure with its source. cable_types_index.py writes it from spec/schemas/cable-types.yaml and refuses a table that fails its checks, so the build stops. It is new at contract: 2 and did not raise it.

{"format": 1, "version": "1.0.0", "generated-from": "spec/schemas/cable-types.yaml",
 "sources": {"foa-tia568": {"title": "...", "url": "https://..."}},
 "types": {"cat6a": {"id": "cat6a", "label": "Cat 6A U/UTP", "media": "cat6a",
   "family": "copper", "shield": "U/UTP", "od_mm": 7.5, "od_sources": ["portrayal-estimate"],
   "min_bend_radius": {
     "installed": {"xOD": 4, "basis": "standard", "sources": ["elliott-min-bend"]},
     "loaded": {"xOD": 8, "basis": "standard", "sources": ["elliott-min-bend"]}}}}}

format is 1 and versions the shape: a removed or renamed key raises it, a new key does not. version versions the table's contents, so a changed figure is deliberate: a corrected value or a new type is a minor, a removed type or a changed id is a major.

Each type, keyed by its id, always carries:

  • id, label, and media: the Rack Builder cable media it is a kind of. The bare ids os2, om3, om4, om5, cat6, cat6a, dac, aoc, ground, stack, usb and console are those media values themselves, so a rack cable's media names its type. A refinement (cat6a-ftp, os2-g657a2, dac-26awg, ground-12awg) has its own id and names the media it refines. power is the media of the power cords, and since kit 0.30.0 a Rack Builder media too; it has no bare type, so a cable of media power that names no type is drawn and measured as the power-c13 cord.
  • family: fiber, copper, dac, aoc, power, ground, stack, usb or console.
  • od_mm and od_sources: a typical outside diameter, a sketch and not a measurement of any one cable.
  • min_bend_radius: {installed, loaded}. Installed is the radius once the cable is in place and unloaded, which a route or a bundle is checked against; loaded is the radius while it is pulled, and is data only. Each is {mm}, a fixed radius, or {xOD}, a multiple of od_mm, with basis (standard or convention), sources (keys of sources), and optionally note and unverified: true, which marks a placeholder. loaded is null where no source gives one; installed is always present.

A type may also carry jacket (#1028, table version 1.1.0): {color, basis, sources, note}, the colour of its sheath as # and six lower-case hex digits. basis is standard, convention or photo (counted on the maker's photograph; the note says what was counted). A bare media type never carries one, and the build refuses a table where one does: the colour a media is drawn in is the kit's COLORS. aoc-siemon-q1q28f is the first type with a jacket, and the first that names one maker's product.

A type may also carry fiber (mode, grade, core_um, and for a named class class and its own min_bend), shield or awg. A power type always carries conductor, the cord it is made of (H05VV-F 3G1.0), so the same connector pair on another cord (a North American SJT) is a type of its own; a DC feed carries conductors instead. A fibre type's installed radius is the cord's cable rule; fiber.min_bend is the fibre class's macrobend test radius, kept as data for a consumer that knows the cord allows the tighter figure.

A type may carry sources (table version 1.2.0): the documents that name the cable, as keys of sources. It says nothing of a figure, which has its own sources. A type may carry note, which says what is not known of it.

A DC feed (table version 1.2.0) is a power type with three more keys. dc is true. conductors lists the conductors in the order they land on a port's poles, each {role, awg}: role is a role of dc.yaml (unstated where no source gives a polarity, and never gnd), awg a positive number. ampacity-a is the current in amperes the conductors carry, with ampacity-sources beside it, keys of sources; where it is Portrayal's own estimate the source is portrayal-estimate and the type states unverified: true. A reader that does not know a key ignores it. The build refuses a dc that is not a boolean, a conductors that is not a list of mappings or whose role is not dc.yaml's, an ampacity-a that is not a positive number, and a DC feed that lacks conductors or ampacity-a.

The kit's rack/cable-types.js reads it: radiusMm(type) turns a radius into millimetres, bendLookup(types) gives a cable's installed radius from its type when the table has that type, else from its media, jacketLookup(types) gives the jacket colour of the type a cable names in its own type (never its media's), and loadCableTypes(dist) fetches the file and refuses any format but 1.

The DIN rail profiles file

din-rails.json names the DIN rail profiles, each figure with the document and the page it is read from. din_rails_index.py writes it from spec/schemas/din-rails.yaml and refuses a table that fails its checks, so the build stops. It is new at contract: 2 and did not raise it. It states one profile, ts35x7.5; the others are added as minors once every figure of one has a page behind it.

{"format": 1, "version": "1.0.0", "generated-from": "spec/schemas/din-rails.yaml",
 "sources": {"automationdirect": {"title": "...", "url": "https://...", "pages": 6}},
 "profiles": {"ts35x7.5": {"id": "ts35x7.5", "label": "TS 35 x 7.5, symmetrical top hat",
   "section": {"width": {"mm": 35.0, "sources": [{"id": "automationdirect", "page": 1}]}},
   "slot": {"pitch": {"mm": 25.0, "sources": [{"id": "itc", "page": 2}]}}}}}

format is 1 and versions the shape: a removed or renamed key raises it, a new key does not. version versions the table's contents: a corrected figure or a new profile is a minor, a removed profile or a changed id is a major, and a published profile id is addressing from the release that carries it.

Each profile, keyed by its id, always carries label; standards, the names the makers give (each with its sources); section: width, height, thickness, crown-outer, crown-inner and flange, each {mm, sources}; slot: width, length, pitch, end-to-arc-centre and first-centre; mass-kg-per-m: plain and slotted; stock: slotted and unslotted, the variants real rails come in; and finishes, named and not coloured. Every sources entry is {id, page}: a key of sources and a page of that PDF, and the build refuses an id the table does not name or a page the document does not have. A figure the makers' drawings do not agree on is not stated. first-centre is a derived figure (basis: derived), half the pitch, and says so. din_rails_index.slot_centres(profile, length) is the slot rule: centres from first-centre, one pitch each, a slot present only if the whole of it lies inside the length. It is sourced for a length that is a multiple of the pitch, and the table's header says the rest is proposed. Nothing reads the file yet: no device, lab or lint rule names a profile.

The lint rules file

lint-rules.json is the linter's rule table, for a page that lists the rules. lint.py --list-rules --json writes it from the same table as docs/lint-rules.md, so the two always list the same codes. It is new at contract: 2 and did not raise it.

{"format": 1,
 "severities": ["error", "warning", "at-verified", "mixed", "mixed-at-verified"],
 "rules": [{"code": "L53", "scope": "device", "rule": "...", "why": "...", "fix": "...",
            "severity": "at-verified",
            "fails": false, "warns": true, "fails-at-verified": true}],
 "retired": [{"code": "L..", "note": "..."}]}

format is 1 and versions the shape: a removed or renamed key raises it, a new key does not. rules is in code order. severity is one of the tokens in severities:

  • error: every finding fails the lint.
  • warning: every finding warns, and the lint passes.
  • at-verified: a finding warns on a device still being drawn and fails on a device that claims maturity: verified.
  • mixed: some findings fail and others only warn; the finding's own message, in the lint run, says which.
  • mixed-at-verified: some findings always fail, and others warn until the device claims maturity: verified.

The token describes the rule, not each finding. A rule is at-verified when any of its warnings becomes an error at verified, and it may raise other findings that stay warnings there: L37's group with no members is one. A consumer that needs a finding's own severity reads it from the lint run, not from this file.

The three booleans say the same thing for a reader that only filters: fails when some finding fails the lint at any maturity, warns when some finding only warns, and fails-at-verified when a warning becomes an error on a device that claims maturity: verified. retired lists codes whose rule is gone; a code is never reissued. A new token is a new key's worth of change and does not raise format; a token renamed or removed does. A consumer should treat a token it does not know as it would an unknown key: show the rule and its booleans, and not fail on it.

The rack catalogue

rack.json is the catalogue a rack tool reads in one fetch, so it need not open every device's index. It is written by rack_index.py after the compiled faces exist, from devices.json, each <name>.configs.json and the default configuration's front, rear and top views.

{"format": 1, "generated-from": "...", "devices": {"fhd-cmp5dr": {"...": "..."}}}

format is 1. Each device, keyed by name, always carries manufacturer, model, family, ru, h, w, d, airflow, default, configs (the names of its configurations) and kind. Eight keys appear only when the device has them:

  • ears: {"default": {"name", "at"}}, the default position of chassis.ears.positions that states an at, in mm from the front of the part back to the plane its ears bolt to (docs/rack-mounting-design.md section 3). The kit's setbackOf stands the part at mm in front of the rail. A device whose default position states no at, or that has none, has no ears key, and the kit places its front on the rail.
  • kit: {"ref", "motion", "depth"?, "preset"?}, the kit the site defaults to, so a rack tool need not open the device's configs.json. It is the in-box kit of chassis.kits, else the first listed (docs/rack-mounting-design.md section 5), read from the row configs.json resolves inline. ref is the kit's ref and motion is fixed, telescoping, sliding or shelf. depth is the rack depth the kit fits, front flange to rear flange in mm, and preset its factory setting, each written as the kit's configuration writes it, with the device's own depth override applied: depth is one [min, max] or one range for each hole type the source gives, and is absent where the configuration states none (a preset and no range: factory setting known, range unknown), never null and never [preset, preset]. A kit with more than one configuration has no default one, so its entry has ref and motion and neither depth nor preset. A device that lists no kit, or whose default kit does not resolve, has no kit key. A reader that does not know kit is unaffected, and format is still 1.
  • mount: the device's chassis.mount, present only when it is not rack. It can be ceiling, strand or pedestal, added to the schema's values without moving format; a reader that does not know a value treats the device as not racked, as it does any other.
  • shell: chassis.shell, sheet for a body that is a sheet and not a box.
  • capacity: {"count", "basis", "media"}, the cable capacity the vendor states. media is the kind of cable the count is of, in a rack file's media words (the device's attrs.performance.cable-capacity-media), or null where no source names the cable. A count is compared with the cables at least as thick as that kind; one whose media is null is never compared. A catalogue built before media was written has no such key, and a reader takes that as a cable of 6 mm. A reader takes a kind it does not know the same way, and never as null: a kind may be added (cable-managers-design.md section 14).
  • guides and passes: per view (top, front, rear), the sorted ids a cable route can pass through on the default configuration's drawing.
  • solids: what a cable may not pass through, where that is not the device's envelope (docs/cable-lay-design.md section 1.1): a list of {"part", "box": {"x", "y", "z", "w", "h", "d"}, "holes"?}, in mm, x from the device's left as seen from its front, y up from its bottom, z back from its front. Each hole is {"via", "box", "size": [w, h]}, a declared pass-through that cuts that box. Derived from the same faces (rack_solids.py), never stated in a manifest. A device without it is its envelope, w by h by d, unless it is a sheet part or a zero-U part that carries a lane, which is then open. A sheet part's solids include the loop of each ring on its plan whose contract says what of it is solid (docs/cable-lay-design.md section 3.3): up to five boxes a ring, part ring/<id>/<name> with <id> the placement's id and <name> one of rear-leg, front-leg, left-leg, right-leg, hook, bar and seat. A reader that routes cables meets these with the cable's tube, not its centre line.
  • trays: the floors a cable lies on (docs/cable-lay-design.md section 2.1), read from the default configuration's plan, a list of {"id", "top", "thickness", "lip", "run", "floor", "ties"?, "slack"?, "rings"?} in the frame of solids. id is the placement's id (or the view's tray id), which a route names as it names a ring. top is the height of the floor's surface above the device's bottom and thickness its plate's, so the underside is top - thickness; run is x (across the device) or z (front to back); lip is in mm. floor and ties are boxes through the plate, {"x", "y", "z", "w", "h", "d"}, a tie slot being where a strap passes and never an opening. slack is {"kind": "area"} or {"kind": "spool", "x", "z", "diameter"}. rings are the rings standing on the floor whose contracts place their openings, {"via", "run", "box"}, the box the clear opening, so a cable resting in one lies on its bottom. Derived from the compiled plan (rack_solids.trays), never restated.

ru is chassis.ru when stated (0 included, for a zero-U part), else the height over 44.45 mm, at least 1. Removing or renaming a key, or changing what one means, is a contract change and raises format; adding a key is not.

kind is an advisory word for what the device is, for searching a catalogue, read from the manifest's profile and the vendor's own words. Today its words are switch, router, network device, server, pdu, patch panel, optical, cable manager, and device when the profile says no more. The key is part of the format; its vocabulary is not. A word may be added, split or refined, and a device may move from one word to another, without a format change, so a reader should not treat the list above as closed.

devices.json gained profile, the manifest's device class. It mirrors the profiles in spec/schemas/profiles.yaml and follows that file. It is a new field, so contract stays 2: a reader that does not know it still finds every field it read before.

A port light the user can colour

A lamp can be marked as a light whose colour the user chooses: programmable: true on a device's group or placement (a placement's own word wins over its group's), with programmable-note naming the maker's own feature as text. One-way once a release carries it: from that release the two key names, the boolean and the note's being text cannot change without a format change. Adding an optional key raises none of the three numbers (the rule under "What is a breaking change" above: "Adding an optional key does not raise format", and for the published build "A new field does not raise it"), so format is still 1, the elements file's contract and the device index's CONTRACT stay 2, and a reader that ignores the keys finds everything it read before.

  • A compiled face draws a rect with data-class="programmable-ring", data-programmable="true" and data-ring-of="<placement id>" round each port a marked lamp's for names (round the lamp itself when it names none on the face), in #9aa0a8, drawn before the port so it covers none of its parts. It has no data-path, so it is no row of the elements file. The marked placement's own element gains data-programmable="true" and, when a note is stated, data-programmable-note. A face with no mark is drawn as before.
  • The elements file: the row of a marked placement gains programmable: true and programmable-note (a string); both are absent on every other row.
  • devices.json: an entry gains programmable-light: true when any lamp on any face of the device is marked; the build derives it, no manifest states it, and the key is absent otherwise.
  • The DCIM export: the comments of such a device gain one sentence, Lamps with a programmable colour, set by the user (Etherlighting)., with the notes the model states in the brackets and no brackets when it states none.

What a compiled face says about airflow

A page that filters by airflow reads these attributes of the compiled faces, so they are part of the format too:

  • The root <svg> carries data-airflow, the configuration's airflow, where the configuration states one (configs[].airflow is the same value).
  • A fan or supply <g> (data-class fan or psu) carries data-airflow when the part or the build states one: the part's own word, which a configuration's component-attrs can restate for that build. The word may be a vendor's (exhaust, intake); library/components/README.md, "Airflow", says how to read them.
  • The same <g> carries data-config-airflow, always the configuration's airflow, and nothing where the configuration states none. Nothing else carries it.

data-config-airflow is a new field, so contract stays 2: a reader that does not know it still finds every field it read before. It says what the configuration is, not that a unit's art was checked: a build that draws like its default carries the default's art, with the gap its device declares.

What a configuration can state of its own

A configuration takes two optional keys beside power:

  • attrs: the device's own sections and types (attrs at the top of the manifest), holding only what this build states differently. A key it names wins; the rest of its section, and every section it does not name, stays the device's; it cannot remove a key the device states. manifest.config_attrs is the one answer, and the DCIM export's list of facts in comments reads it.
  • export-description: a string of at most 200 characters, the description a DCIM shows for that build's device type in place of the first sentence of the device's. 200 is the exporter's own limit, so it is never cut.

Neither is legal on a configuration whose kind is example, which never exports. A manifest without them is valid as it was, resolves to the device's attrs and exports the description it always did, so adding the keys to the format moves no existing export. They are new optional keys, so format is not raised.

configs[].attrs in <device>.configs.json publishes a configuration's own keys, always an object and {} where it has none. The device's attrs stay at the top of the file for the rest. The drawing does not read it: a face is shared by every configuration that draws it, so a face's data-* values stay the device's. configs[].attrs is a new field, so contract stays 2: a reader that does not know it still finds every field it read before. devices.json and the comparable facts read the device only.

What a compiled face says about rings and trays

rack.json is derived from these attributes of the compiled faces, and a page that routes cables may read them itself, so they are part of the format too:

  • A ring, on every instance of a part whose contract declares guide:: data-guide (ring), data-guide-run, data-guide-aperture ("w h"), and, where the contract states them, data-guide-depth (mm along the run), data-guide-sill (mm from the base it stands on to the opening's lowest inside edge) and data-guide-aperture-at ("x y", the opening's corner in the part's frame); and data-guide-wall (mm, each leg's thickness beside the opening), data-guide-height (mm from the base to the top of the loop) and data-guide-slit ("from to", mm from the base, the gap in the far leg), from which rack.json derives the ring's solids.
  • A tray (docs/cable-lay-design.md section 2.1): one unpainted <rect data-class="tray"> per floor rectangle and one <rect data-class="tie"> per tie slot, each naming its tray by data-tray (the placement's id, or the view tray's). A part's tray is under its instance, in the part's frame; a view's trays are under a root <g data-class="trays">. A floor rect carries data-tray-height, data-tray-lip, data-tray-run and, where stated, data-tray-slack (area, or spool x y diameter). The rects carry no id, data-path, data-ref or data-z-*: they are not elements, the elements file does not list them, and nothing is built of them in 3D. Only the plan (top) carries them.

Renaming one, or changing what it means, is a format change as a rack.json key is; adding one is not.

What a compiled face says about a pocket

A relief pocket compiles to data-depth on its node (mm to the pocket's floor), which the kit builds as a recess with walls and a floor. A pocket written pocket: {depth, wall} is a window cut through a thin plate and also publishes data-wall-depth (mm from the face to the plate's back face): the kit's walls stop there, and below it the pocket is open to the inside of the part. data-wall is the walls' colour and is unrelated.

  • A plain number publishes data-depth alone, with walls all the way to the floor, exactly as before. A node without data-wall-depth builds as it always did.
  • data-wall-depth is new, and a consumer that does not read it builds the pocket with full-depth walls: the older picture, not a broken one. A library that writes {depth, wall} is therefore read correctly only by a kit that knows the attribute, which is why a pocket's schema type widened from a number to a number or an object. Once published, the object form and the attribute's name cannot be taken back without breaking a library that uses them.
  • The wall is shallower than the depth (L117 checks it). A wall at or past the floor is ignored by the kit and builds as a plain pocket.

A part that slides

A device may declare a part that slides: a rail panel bolted through slots in its side brackets, a support on a row of tapped holes. adjustable-positions-design.md is the design. The format gains two optional keys, so format stays 1, and the build gains the fields below, so contract is not raised. A device that declares no adjustment gains no key and no attribute: its build is byte for byte what it was. The FS DINRAIL2U and DINRAIL4U are the first that declare one, rail-setback.

In a manifest. A top-level adjustments: map, the key being the id of the adjustment, each entry with label, carrier, axis (x, y or z), range ([min, max]) or stops ({name: mm}) or both, default and datum. A placement, a bay and a decor entry may say moves-with: <id>.

What a value means. A position is a number in millimetres: the coordinate of the datum along the axis, in the frame of the device. x runs from the left of the device as seen from its front, y up from its bottom and z back from its front. It is absolute, not an offset from the default. Both ends of a range are positions. With stops and no range, only the stop values are.

Where a value is held. As a field, at the path of the carrier, under the id of the adjustment. A configuration sets one with component-attrs: {<carrier>: {<id>: <value>}}, the kit with setFields(<carrier>, {<id>: <value>}), and a link with fields=<carrier>~<id>~<value>. The value kept is a string with one spelling: the number rounded to 0.1 mm, in decimal, with no exponent, no sign and no trailing .0 (120, 271.2). A stop name is accepted as input and is never what is kept.

In a compiled face, of a device that declares any:

where attribute value
the root <svg> data-adjustments the map as JSON, keys sorted: for each id its axis, carrier, range, default, stops, label and datum as the manifest states them, and at, the position this file was built at
each member (the group of a placement or a bay, a decor shape) data-moves-with the id of the adjustment
the same node data-moves-by dx dy dz: the mm the node moves for each mm of position. dx and dy are in the frame of the face, and dz is the change in its depth behind that face
the carrier data-<id> the position, only where the configuration set one

A reader moves a member by (value - at) times its data-moves-by. For dz, a member that carries data-depth (a well) changes that depth; any other member changes its data-z-lift, the sign reversed, and each data-z-out and profile height inside it by the same amount. A part seated on a member, and the plan or rear projection of a member bay, are marked as members by the build. A member is never drawn inside another member, so a reader that moves every marked node moves each part once.

A configuration that sets a position is built moved: its members are drawn where that value puts them, and at says the value. A face that cannot show the motion (a slide along the depth of that face) is drawn the same at every position, and still carries data-adjustments.

In <device>.configs.json, of a device that declares any: adjustments at the top, the same map with no at, and positions on each entry of configs: {<id>: <mm>} for each position that configuration sets, {} for one that sets none.

In the elements file, a row that moves carries moves-with and moves-by, as the table above lists them.

Renaming one of these keys or attributes, or changing what a value means (the unit, the frame, the datum, the sign of an axis), is a breaking change: every saved link and every saved rack that holds a position would move with no edit to it.

A box that opens

A device may be a box that opens in two halves, a base and a lid (modelling-a-device.md has a worked example). The format gains two optional keys and the build gains the fields below, so format stays 1 and contract stays 2. A device that states neither gains no key and no attribute: its build is byte for byte what it was.

In a manifest. chassis.halves, a map of exactly two entries: base: {outer, stands} and lid: {hinge, angle, stands}. outer and hinge are face names (front, rear, left, right, top, bottom), angle is degrees and stands millimetres, all bare numbers where they are numbers. And half on a region, naming a key of chassis.halves.

Which half a bay is in is derived: the half of the one region, among those of a view that states a half, whose box holds the centre of the bay's box.

In a compiled face, of a view whose regions state a half: data-half on the group of each bay, base or lid. No other node carries it.

In <device>.configs.json, of such a device: chassis.halves, the two entries as written, and half on each entry of bays[<view>] whose bay is in a half. Both are left out for every other device.

In the DCIM exports, the description of a module bay starts with In the base. or In the lid.; a bay of any other device reads as it did.

What the lock asks for. Stating chassis.halves on a device that was released without it is a minor. Changing the outer of the base or the hinge of the lid, taking the halves away, or moving a bay into the other half (by changing a region's half or the box of a region or a bay) is a major. A corrected angle or stands, and a half stated on a region that holds no bay, are a patch. Renaming a key, or changing what an outer, a hinge or a stands refers to, is a breaking change.

An older validator holding the schema from before this change refuses a file that states either key, because chassis and a region accept no key the schema does not list. Files written without them are read as before. A consumer that validates a manifest with a copy of the schema updates the copy before it reads a device that opens.

A housing with a stepped end

A device may be a housing that is one end profile extruded along its length (modelling-a-device.md has a worked example). The format gains one optional key and the build gains one field, so format stays 1 and contract stays 2. A device that states no section gains no key and no attribute: its build is byte for byte what it was.

In a manifest. chassis.section, a list of at least four [x, y] points in millimetres, the closed outline of the housing's end seen as the right face is drawn: x across the depth from the front, y down the height from the top. It is the envelope, so the top and bottom edges run along the tips of anything that stands up from the casting. It is clockwise with y down, every edge is horizontal or vertical, and it touches all four sides of the depth by height box with exactly one edge on the top side and one on the bottom. The left face is its mirror in x. Lint L204 to L207 check it.

In a compiled face. On the left and right faces the element with the id chassis-faceplate is a <path> of the polygon (the left face mirrored in x with the winding reversed) and not a <rect>; the rest of the face is unpainted. The front, rear, top and bottom faces are drawn as before. A reader that finds the faceplate by its id reads either element.

In <device>.configs.json, of such a device: chassis.section, the points as written. It is left out for every other device. The box stays the bounding box, and chassis.w, h and d, the rack fit and the exports read it as before.

What the lock asks for. section is shape, as bevel and rounded are: it sets the outline of a face and what a part may stand on. Stating it on a device that was released without it, moving a point of it, or taking it away is a major. Renaming the key, or changing the frame or the winding it is read in, is a breaking change.

An older validator holding the schema from before this change refuses a file that states section, because chassis accepts no key the schema does not list; this is the situation halves is in. Files written without it are read as before. A consumer that validates a manifest with a copy of the schema updates the copy before it reads a device that states a section.

Opening. A housing with a section may state halves; see "A housing with a stepped end that opens" below.

Ribs on a stepped housing

A housing that states a chassis.section may also state its ribs. The format gains one optional key and the build gains no new file, so format stays 1 and contract stays 2. A device that states no fins gains no key and no element: its build is byte for byte what it was.

In a manifest. chassis.fins, a list of rib fields. Each is {on, span, rib, gap} and either core (an inside field) or outside: true with a height (an outside field), and optionally steps, a list of {span, height}. on is top or bottom, naming the one edge of the section on that side of the box; write it quoted in YAML ('on': top), because a bare on is read as true. span is where the field runs along the length, in millimetres from the left end. rib and gap are a rib's thickness and the gap after it; the first rib starts at span[0]. core is the height of the tallest rib: the distance from the section's edge in to the casting's own surface. The steps tile the span, and a rib takes the height of the step whose half-open span holds its centre. An outside field has no core: the section's edge is the casting's surface and the ribs stand out of it by their step heights (or by height), at most 60 mm beyond the box. Lint L208 to L216 check it. A device has at most 400 ribs.

In a compiled face. The front and rear faceplate (the chassis-faceplate element, a <path> now) is the silhouette: at the core outside every span, at the step's tip line within one, so the gaps are filled; for an outside field it stands out of the casting's edge and the drawing's viewBox grows past the face as it does for a part beyond it, with data-face-w and data-face-h naming the face. The top and bottom faces stay full rectangles. A group with the id chassis-fins holds a rect for each rib on the front and rear, a stripe for each rib on the top or bottom, and on an end face a band in a rib tone where the casting is cut back to its core. It is painted last and takes no click. A device with no fins has no such group.

In <device>.configs.json, of such a device: chassis.fins, the fields as written. It is left out for every other device. The box stays the bounding box and chassis.w, h and d, the rack fit and the exports read it as before, so ribs that stand outside it count in none of them; the 3D scene and its export include them.

What the lock asks for. fins is surface, as mount and kits are: the ribs stand on a casting whose outline section already fixes, and no size changes. Stating it, retuning a rib's height or a step, or taking it away on a released device is a patch. Renaming the key or a field, or changing what core or a step means, is a breaking change.

An older validator holding the schema from before this change refuses a file that states fins, because chassis accepts no key the schema does not list; this is the situation section and halves are in. A consumer that validates a manifest with a copy of the schema updates the copy before it reads a device that states ribs.

Not in this change. Relief taken from a rib is a later change. A housing with ribs may state halves; see "A housing with a stepped end that opens" below.

The plan outline of a housing

A housing that states a chassis.section may also state the outline it has seen from above. The format gains one optional key and the build gains no new file, so format stays 1 and contract stays 2. A device that states no plan-outline gains no key: its build is byte for byte what it was. Nothing is drawn from the key yet. The faces and the 3D body do not follow it, so no device states it yet; a test fails if a library device does.

In a manifest. chassis.plan-outline, a list of bands. Each band is {heights: [from, to], points: [[x, y], ...]}. heights is a range of heights in millimetres down from the top of the box; the bands tile [0, height] exactly (to 0.01 mm), listed from the top, and a range includes its from and not its to. One band [0, height] is a housing with one outline at every height. points is a closed polygon in millimetres in the top face's frame: x along the width from the left, y down the drawing with the rear at the top and the front at the bottom, so a point at depth sx from the front is at y = depth - sx. The bottom face is its mirror in x with the points in reverse order. Each polygon is the outer envelope of the housing at those heights seen from above. It is clockwise with y down by the sign of its area; slanted edges are allowed (a rounded corner is its arc in short straight steps, a lobe is its points); it has no self-crossing, no repeated point and no edge shorter than 0.1 mm; and it lies inside the width by depth box (to 0.01 mm). A band has at most 512 points, a device at most 16 bands and 2048 points in all. Lint L220 to L225 check it.

What it means. The section is the most the housing can be and the plan only removes: a band's polygon is cut against the section for those heights, and a plan point outside the section there is clipped away, never added. A later change defines the cut, and with it a rule that a point or an edge within 0.5 mm of an edge of the section or of a side of the box is read as lying on it. The box stays the bounding box, and chassis.w, h and d, the rack fit and the exports read it as before. A housing with a plan outline may state halves and fins; each half takes the band on its own side of the seam. It is not stated on a rack device or together with bevel, rounded, shell: sheet, ears, overhang or kits (L221).

In <device>.configs.json, of such a device: chassis.plan-outline, the bands as written. It is left out for every other device.

In the compiled faces, of such a device only (a device that states no plan-outline is compiled byte for byte as before). The top and bottom faceplate, and the front and rear faceplate where the body is narrower than the box, are a <path> with the id chassis-faceplate and the corners unpainted, where they were a <rect>. The group chassis-plan holds the step lines between bands and, on an end face, the shading of the region with no cap. A rib stripe is a <path> in chassis-fins with an id fin-N (fin-N-a, fin-N-b where the plan leaves it in several pieces) where it was a <rect> with none. All of it is additive, so contract stays 2, and none of it is one-way: the drawn shapes can be refined while the key's meaning stays.

What the lock asks for. plan-outline is shape, as section is: it sets the outline of the top and bottom faces and the body. Stating it on a device that was released without it, moving a point, changing a band or taking it away is a major.

One way. Once a device on the main branch states the key, these cannot be taken back or reinterpreted without a break: the key's name; the band shape (heights, points); the frame (the top face's, the bottom its mirror in x); the clockwise winding; the meaning "the outer envelope from above, the section the maximum, the plan only removes"; the caps (512 points a band, 16 bands, 2048 points in all; raising one later is compatible, lowering one is not); the half-open [from, to) band convention; the 0.5 mm rule above; and each half's own seam outline, the polygon of the band on that half's side of the seam.

An older validator holding the schema from before this change refuses a file that states plan-outline, because chassis accepts no key the schema does not list; this is the situation section and halves are in. A consumer that validates a manifest with a copy of the schema updates the copy before it reads a device that states one.

A housing with a stepped end that opens

A housing that states a chassis.section may also state chassis.halves. No key is added and no file changes, so format stays 1 and contract stays 2; what changes is which statements are allowed and what they mean. A device that states no section is read as before: every rule for its halves, and its open state of two plain boxes, are unchanged.

Stating halves with section is a one-way change. Once a device on the main branch states both, these cannot be taken back or reinterpreted without a break:

  • the combination itself, which the earlier rule refused;
  • base.outer is top or bottom, so the seam is parallel to the length the section is extruded along and each half is a cut of the section (L217);
  • lid.hinge is front or rear, the long face the seam meets (L217);
  • the seam is the plane base.stands from the base's outer face: stands stays the one authority, and the lid's stands is still stated and still checked against the height as before (L203);
  • the lid turns about the line where the seam plane meets the hinge face's outline: parallel to the length, at the seam, at the section's foremost (front) or rearmost (rear) edge in that row, which in a flange is the flange's edge;
  • the open state is cut from the section: each half is the stepped body on its side of the seam, with its ribs.

A seam that lies outside the section, exactly on a horizontal edge of it, or in a stretch the ribs have cut away is refused (L219). A seam where the section is not at its widest is a warning (L218), because a flange is expected there.

What the lock asks for. Nothing new. The lock records and hashes the halves exactly as before, so the hash of halves.stands is unchanged, and stating halves on a released housing with a section is a minor like stating them on any other device. A change to section that moves the widest line relative to base.stands, or any other change to it, is already a major by the shape class section is in. Changing outer or hinge is a major as before.

In <device>.configs.json nothing is added: chassis.section, chassis.fins and chassis.halves are carried as written, and a viewer cuts the body from them.

An older viewer that does not know the combination builds the housing as a plain box, without its section, and opens it as two plain boxes. A validator holding the schema from before refuses nothing new, because the keys already existed.

What else a consumer holds

Three more things reach a consumer outside this repository, and none of them has a number of its own.

A component major. A manifest pins a component by name and major (name@2), so removing a major breaks a manifest that pins it. While the package is at 0.x, a superseded major may be removed, and every removal is listed in CHANGELOG.md with the ref that replaces it. From 1.0, a retired major is deprecated for at least one release before it is removed. The deprecation is the superseded-by: key the schema already has, on the retired major's contract, naming the ref that replaces it. L89 now tells a superseded major that still ships (it says superseded-by: with a ref that exists) from a dead one (it says nothing, and fails). The whole mechanism is required before 1.0: the marker, a stated support window, and the L89 distinction; the marker and the distinction are in place, and the window, at least one release, is not yet a number of releases or a date. DESIGN §9 has the reasoning, and component-retirement-design.md lays out what is left to decide.

A removed ref that a saved rack names (#1049). A rack file names parts by ref, and removing a major leaves its refs dangling there. The replacement can say which removed refs it stands in for, supersedes: on its contract, only where it is a drop-in (the same part ids, port paths and names); the build publishes the list on the replacement's components.json entry as supersedes, [{"ref", "signature", "from"}], and [] on every other row. The signature is a hash of the removed part's published form, recorded once and recomputed from the replacement at every build, so a replacement that stops being a drop-in stops the build. A consumer that reads a rack follows the redirect when it reads a swap (kit 0.32.0, kit/redirects.js), never rewrites a file on load, and writes the new ref only when the rack is saved after an edit. A removed ref with no redirect is reported as no longer in the library and kept as written.

A card seats by its interface (cards-by-interface-design.md). A component bay may state interface, beside accepts or instead of it, and a card states mates; the two interface keys pcie-fh and pcie-lp are in spec/schemas/connectors.yaml. These are held as format, because a contract outside the library writes them and a rename breaks it: the two spellings; the union (a bay that states both takes the list and every part that mates the interface); the width rule (a part slot-width: n is taken through an interface only by a bay whose span names at least n - 1 bays); and that a part that fills a bay is not asked for a mate point for its mates (L11). The published accepts of a bay in components.json and <device>.configs.json is every ref the bay takes, and an interface is published beside it; for a bay that states none it is the list the contract states, as it was. contract does not rise, since both are additive. No library part states either key yet.

A lint code. A device manifest waives a rule by its code (lint.waive), so lint codes are never renumbered or reused. A rule that is deleted keeps its code, listed as retired, and a new rule always takes a new code. A test pins every code ever issued, so a code that moves or is handed to another rule fails the suite.

The DCIM exports under library/exports/ (NetBox and Nautobot device and module types, and the fibre maps) are generated from the manifests and are not covered by the contract number, which versions library/dist/ only. They follow the DCIM's own schema, and what can break is what an already-imported record is called: a model name, a port name, a bay position. Before 1.0 such a change is allowed, and it is announced in CHANGELOG.md, marked BREAKING for DCIM data already imported, with what it renames. From 1.0 it is treated as a contract change is. Which NetBox and Nautobot the exports need, and which features need NetBox 4.6 or later, is in library/README.md.

A component's part-numbers. A component contract may carry the map a device configuration carries, {<model>: {part: <part number>}} with no power-cord, and it is an optional key, so it does not raise format. Each key is one exported module type, named by the key, with part_number from part; a contract with two keys exports two module types with the same ports, and one without the key exports under attrs.model or its name as before. The schema refuses a contract that carries both part-numbers and attrs.model, so the name has one source. The build publishes the map on the contract's components.json entry as part-numbers, with its keys sorted like every key in that file, and leaves the key out of every entry that has none. The rack kit opens the module type file of the first key in sorted order. Moving a module from attrs.model to part-numbers renames its module type, which is a DCIM-data change in the sense above.

A bay's seen-through. A device bay may carry a list of drawn items, the same boxes a panel decor item takes (at, size, fill, rx, shape of rect or slot, kind, source), for what the maker's picture shows through the opening when the bay is empty. It is an optional key, so it does not raise format: a file written without it stays valid, and a reader that ignores it draws the bay as before. The compiled face writes a group data-class="seen-through" inside the bay's group, after the opening and before the module, clipped to the opening, and hides it with display="none" where the configuration seats the bay; kit/swap.js sets and removes the same attribute when a bay is swapped. It is a 2D drawing only, and contract does not rise, since the group is new and nothing that was read changes. The key is part of the published format from the release that carries it: renaming it or changing what it holds after that is a breaking change.

Packs of a built dist. spec/tools/dev/dist_packs.py writes, into a folder of its own, a derived form of library/dist/ for a file server that limits the number of files: devices/<device>.json ({"more", "files"}, the faces the default configuration names), devices/<device>.more.json ({"files"}, every other face a configuration names), components/<namespace>.<k>.json ({"files"}, a namespace's skins in chunks whose file is at most 1 MB, by byte order of the file name) and components/index.json ({<namespace>: [first skin of each chunk after the first]}). They are not part of dist/ or of the npm packages, and contract does not rise, since nothing in dist/ changes. The tool is run by a consumer, never by the build. A consumer that makes packs holds them as its own format, and reads them with kit/dist.js packedDist and fetchDist, which are new exports and change none that was there.

What is promised before 1.0

The package is at 0.x, and at 0.x the promise is deliberately small:

  • The tools read the current format only. When format goes up, files are migrated in the same change. Older files are not read side by side.
  • Every breaking change is announced. A format or contract change, a DCIM export change that re-files imported data, and a removed component major are each listed in CHANGELOG.md, with what to change in a file or a consumer to move across.
  • The version says so. A change that raises format or contract also raises the package's minor version, so 0.1 to 0.2 is where to look.

What 1.0 will promise

From 1.0, a change that raises format or contract is a major version of the package. The previous format stays readable, and the previous contract stays documented, for one release after the change, so a consumer has a release in which to move.