Living Document Notice
Published 2026-09-17. The evolving architecture, revisions, and connected notes for this dispatch live in the Stax Digital Garden.
Generating Physical SKUs from Digital Knowledge Graphs
Linking physical books and component hardware back to digital knowledge repositories requires permanent, unambiguous identifier bindings. The Bosun Press pipeline bridges the digital graph to physical print runs through deterministic Stock Keeping Unit (SKU) and GS1 DataMatrix generation.
Algorithmic SKU Construction
SKUs are synthesized deterministically from the vault namespace, realm code, and cryptographic content hash:
BSN - 07 - PRS - 1001 - A4U
│ │ │ │ └── Physical Variant (A4 Uncoated 120gsm)
│ │ │ └───────── Dispatch Base Index
│ │ └──────────────── Subsystem Realm (Press)
│ └───────────────────── Canonical Realm Number (07)
└─────────────────────────── Organization Root (Bosun PKM)
Each generated SKU maps to an exact physical manifest stored in the digital garden stock.
High-Density 2D Matrix Encoding
Rather than relying on fragile linear barcodes, Press embeds two-dimensional GS1 DataMatrix symbols directly onto colophon pages and technical broadsides:
import treepoem
def generate_colophon_datamatrix(sku_string, canonical_url):
payload = f"SKU:{sku_string}|URL:{canonical_url}"
image = treepoem.generate_barcode(
barcode_type="datamatrix",
data=payload,
options={"compact": "true"}
)
image.save("colophon_matrix.svg")The DataMatrix code includes Reed-Solomon error correction, permitting full decryption even if 30% of the printed mark suffers abrasion or ink flaking.
- Directus Target: press
- Garden Source Reference: MOC - Typography & Physical Print Specifications, MOC - Bosun PKM Tools
- Garden Source Reference: [PRS-1007 - Generating Physical SKUs from Digital Knowledge Graphs](PRS-1007 - Generating Physical SKUs from Digital Knowledge Graphs)