DEV Community

Umar Bilal
Umar Bilal

Posted on Originally published at codeatoms.ai

System design for physical AI: one berth question over eight terminal systems

Originally published at codeatoms.ai. An open reference architecture in physical AI, one of the CodeNinja Atoms worked examples of physical AI system design. The paper, its object model as JSON and the model register are free to reuse under CC BY 4.0.

1. The operation

A container terminal operator in Saudi Arabia is expanding while the terminal keeps running: a longer quay, deeper berths, new ship to shore cranes and a new yard block.

Berth productivity drops on a working vessel call and nobody can say why. Was it the crane's hydraulic fault, the yard block that could not keep up, the vessel's stowage or the berth window the authority granted?

Every system holds one slice of the answer, and each names the same crane differently. The design joins the moves, fault codes, yard occupancy, stowage plan, granted window, work orders and commissioning records into one argument, so the operations manager sees which of the four causes it was within the shift.

2. The data sources

The design reads eight systems of record and replaces none of them: the terminal operating system, the vessel scheduling and berth planning tool, the crane and equipment control systems, the maintenance management system, equipment telematics, the port authority's vessel traffic and berth window data, the civil works and commissioning records, and the safety incident register.

Two adapter families carry them in. The integration adapter serves the operating system, the planning tool, the maintenance system, the commissioning records and the incident register over APIs and read only views. The telemetry adapter serves the control systems' fault logs and the equipment telematics into the time series store, through Lidi over a hardware data diode, so fault logs leave the control zone and nothing can return.

Every event is stamped with its source, provenance class and read time. Apache Kafka 4.3.x in KRaft mode keys moves by vessel call and faults by crane, with at least once delivery made safe by idempotent upserts. Chrony with linuxptp under an OCP Time Card grandmaster puts every source on one clock, because a fault joined to the wrong shift is worse than a fault not joined at all.

3. The object model

The model holds 16 typed objects in six kinds with 13 typed links on Hyper Ontology v0.9, a projection over the sources and never a copy. Each object is anchored in exactly one system of record.

A few of them: the Berth (anchored in the berth planning tool), the Ship to Shore Crane (the control systems), the Vessel Call, Move and Box (the terminal operating system), the Fault, the Berth Window (the port authority feed), the Work Order (the maintenance system) and the Productivity Measure.

The links are the join the systems never made. A Fault slows a Vessel Call, a Move carries a Box and uses an Equipment Component, and a Work Order affects both a Berth and a Berth Window. One traversal walks from a berth's productivity measure through the call and its moves to the crane, its faults, their work orders, and the window the authority granted.

4. The models

GLM 5.3, filed at 753 billion parameters and served at FP8 with vLLM, carries the three drafting agents (productivity, equipment, commissioning), the command centre and ontology maintenance. The operator named it, and its licence permits commercial use and redistribution with attribution.

GLM-5.3-Flash (MIT, 320 billion total, 18 billion active, natively multimodal) reads the builders' scanned commissioning drawings on the terminal tier. BGE-M3 (MIT, about 1.1 GB at FP16) handles retrieval, and its sparse leg keeps container numbers and fault codes exactly retrievable.

No third party model service is called, and nothing is trained into weights. Improvement comes from a kept record of confirmed outcomes that the next decision reads.

5. Compute

The central tier is one node of eight 141 GB HBM cards, 1,128 GB, in the operator's own machine room in the Kingdom. The sizing rule is one byte per FP8 parameter times a 1.2 planning factor: 753 GB of weights becomes 904 GB, leaving 375 GB beside the bare weights. That fixes the node count at one.

The terminal tier is a two socket air cooled server class for GLM-5.3-Flash. Continuous crane sensing is offered and priced separately, not committed. Model artifacts arrive through Harbor, an air gapped registry, on the operator's schedule.

6. Three year cost

Appendix A prices owning the node at about 570,000 US dollars over three years (542,000 to 594,000), covering server, support and power at the Saudi commercial electricity tariff.

Renting the same eight cards on the deepest three year commitment in AWS Middle East (UAE) is about 751,000, so ownership costs about three quarters of it. On demand is about 2.00 million, against which ownership costs a little over a quarter.

Renting is a price reference only. AWS listed no Saudi region on the day the prices were read, and every rented option would carry cargo, vessel and equipment data across the border.

7. Who approves

Agents draft and people decide, by name. The operations manager confirms the productivity agent's ranked causes. The engineering manager approves the equipment agent's work order and its berth plan effect. The expansion project engineer approves the commissioning agent's objects.

The single write path back is a named approval into the maintenance system or the berth plan, never into a control system. Approval latency is instrumented, known answer probes sit in the draft queue from day one, and every confirmation is kept as memory the next trace reads.

Made with CodeNinja Praxis, the CodeNinja Atoms platform for designing physical AI systems. The object model imports into Hyper Ontology.

Design page: https://codeatoms.ai/port-equipment-berth-ontology-saudi-arabia/

Learn more at https://codeatoms.ai

Top comments (0)