# SINOPORT Modular Interface & Data Collaboration Specification V1.0

> Document class: B-level controlled open source (Apache-2.0 framework). Submissions require acceptance of the Contributor License Agreement (`CLA.md` at repository root); the document hash is logged in the DevLog archive.
> Aligned with the site baseline: automated assertion-script verdicts, SHA256 hash receipts, DevLog ledger, A/B/C data tiering; core principles: reproducible, verifiable, honest boundaries.

## 1 General

### 1.1 Purpose

This specification defines the mechanical interfaces, mechanical boundaries, hydrodynamic constraints and data-interchange protocols for standardized add-on modules of the SINOPORT floating port and the SINOSFT floating tunnel / floating bridge system.

It serves external developers, university teams, equipment vendors and AI agents, enabling self-developed components, materials and marine equipment to connect to the project digital-twin simulation sandbox with standardized onboarding, automated script verification and reproducible simulation.

This specification is **for theoretical simulation verification inside the sandbox only**. Its outputs do not replace class-society certification, national marine-engineering standards or ASME physical inspection, and constitute no warranty of engineering deployment.

> Aligned with the site declaration: every verdict is rendered by simulation scripts; no verbal qualification.

### 1.2 Scope

✅ Supported for onboarding:
- Floating-body composite specimens and anti-corrosion coating samples
- Marine energy sub-devices: wave, tidal and photovoltaic units
- Damper components, guide tubes, marine sensors, life-pod accessory units

❌ Not open for onboarding (A-class core assets, never exposed):
- Main pressure hulls of the floating tunnel and the core load-bearing truss structures.

### 1.3 Data tiering (fully unified with the SINOSHOP dataset system)

- A-class: internal confidential assets — outside the scope of this specification
- B-class: controlled open source, available after signing the CLA — this document belongs to this tier
- C-class: fully open — training task cards, FAQ, unit notes, sample parameters and onboarding documents

### 1.4 Terms and units

- Reference mounting base: the SINOPORT generic floating-body mounting simulation base with fixed geometry; it is the fixed simulation base of the assertion library and must not be modified
- Mounting unit: externally submitted material, device or subsystem model
- Sea-state set: predefined, version-frozen collection of sea-condition boundaries; the fixed input base of the assertion scripts
- Units: SI throughout — length m, mass kg, force N, pressure Pa, power W, time s
- Mandatory simulation-output rule: charts must carry axes, error bars, sea-state boundaries and confidence intervals, following ASME plotting standards for cross-verification and reproduction

## 2 Geometric and mechanical interface

### 2.1 Reference mounting base

The reference base is a flat-elliptic segmented float module with standardized mounting stations.

External mounting envelope per station:
- Maximum outer outline: 2.7 m (L) × 2.1 m (W) × 1.8 m (H)
- Positioning datum: 4 × M24 anchor points bound to the reference coordinate system, fixed
- Safety clearance: minimum 0.15 m around the mounting unit to avoid wave-slamming interference
- Constraint rule: the mounting unit must stay within the envelope; external users may not modify the base geometry or truss layout. Out-of-envelope submissions return `FAIL` directly from the verification script.

### 2.2 Mass and center-of-gravity constraints

- Total mass limit per station: 3500 kg
- CG offset limits relative to the station datum center: horizontal ≤ 0.25 m; vertical ≤ 0.3 m

Script logic: exceeding any limit returns `FAIL` automatically, emits a stability warning record and writes it into the results ledger.

### 2.3 Material-specimen interface (anti-corrosion / fatigue simulation)

Standard specimen size for coatings and composites: 150 mm × 150 mm × 6–20 mm, with standard clamping-tool boundary definitions, used for seawater-corrosion and fatigue assertion simulations.

## 3 Mechanical and hydrodynamic boundaries (assertion library interface)

Submissions must provide the following parameters in full as assertion-script inputs:

1. Material: elastic modulus E, Poisson ratio ν, density ρ
2. Strength: yield strength, fatigue limit (mandatory for structural members)
3. Hydrodynamics: drag coefficient Cd, lift coefficient Cl
4. Dynamics: natural frequency, for VIV resonance screening

Built-in resonance risk band (dominant wave frequency of the project sea area): 0.12 Hz – 0.45 Hz.

Rule: if the natural frequency falls inside the band, the script marks `WARNING` (high resonance risk), keeps the full record without rejecting the submission, and states the risk boundary explicitly in the report.

## 4 Data collaboration interface (JSON schema, read by sandbox scripts)

> Every submission is automatically hashed with SHA256 and written into the DevLog results ledger for end-to-end traceability, integrated with the site receipt system.

```json
{
  "unit_id": "string",
  "unit_type": "material | energy_device | damper | sensor",
  "mass_kg": 0.0,
  "center_of_gravity": {"x": 0.0, "y": 0.0, "z": 0.0},
  "mechanical": {"E": 0.0, "nu": 0.0, "rho": 0.0, "sigma_y": 0.0},
  "hydro": {"Cd": 0.0, "Cl": 0.0, "natural_freq_hz": 0.0},
  "functional_params": {},
  "submitter": {"team": "string", "cla_agreed": true},
  "version": "v1.0",
  "submit_timestamp": "string",
  "sandbox_run_id": "string"
}
```

Field notes:
- `functional_params`: open extension area; power devices carry the power-vs-wave characteristic curve, dampers the damping-coefficient-vs-displacement curve, sensors the sampling time-series parameters
- `submit_timestamp` and `sandbox_run_id` are auto-filled by the sandbox for hash receipts and log traceability

A machine-verifiable JSON Schema is provided at `schema/sandbox_submission_v1.0.schema.json`.

## 5 Standard sea states (version-frozen, part of the assertion library, not modifiable)

> Sea-state definitions are archived in the DevLog; every change bumps the version number.

- State A | Endurance sea: wave height 2.5 m, period 6 s, current 0.8 m/s
- State B | Heavy-weather reference sea: wave height 15 m, period 12 s, current 1.5 m/s (default for first-batch training tasks)
- State C | Tsunami short-duration impact: open to mid/advanced training tasks only
- Corrosion boundary: seawater salinity 35‰, temperature 25 °C, iterative electrochemical corrosion model

## 6 Verdict rules (aligned with the site EXIT=0 mechanism)

- `PASS`: geometry, CG and resonance checks all pass and performance meets thresholds; script exit code `EXIT=0`
- `WARNING`: parameters within limits but near a boundary (e.g. frequency within 0.05 Hz of the resonance band); the report states the risk boundary, the record is kept, the flow is not blocked
- `FAIL`: envelope violation, overweight, CG violation or missing mandatory parameters; script exit code `EXIT=1`

## 7 Version, hash and change management

- Current version: V1.0
- Change rule: each revision bumps the version number, generates a SHA256 hash and writes it into the DevLog ledger for traceability
- Compatibility: a major upgrade (V2.0) is announced on the open-source site in advance; old versions keep a 6-month compatibility window so existing developer results remain reproducible

## 8 Rights, citation and open-source statement (aligned with the site Apache-2.0 license)

1. Copyright of this specification belongs to the SINOSHOP / SinoSFT team; it is B-level controlled open source under the Apache-2.0 framework.
2. Citation and derivative work must attribute the source: `SINOPORT Modular Interface Specification V1.0`.
3. Stripping the provenance notice, or republishing a rewritten version as an independent engineering standard, is prohibited.
4. Rights over all results submitted to the sandbox are governed by the Contributor License Agreement (`CLA.md`); submissions are hashed (SHA256) at the same time, supporting data-intellectual-property registration.
