# SILCARP Virtual Assembly Line & Interface Compatibility Audit

**Document ID:** `SILCARP-VAL-012`  
**Version:** 1.0 (Cubit `silcarp-l7e-v1` Verified Baseline)  
**Date:** October 2026  
**Simulator Engine:** Cubit (`cubit-design` — Generic `assembly` + `vehicle` Tool Areas)  
**Target Spec:** `/opt/eidos/Cubit/design/projects/silcarp-l7e/design_spec.json`

---

## 1. Executive Summary: Why a Virtual Assembly Line?

When designing an open-source vehicle from off-the-shelf donor parts (VW Golf III, Fiat Seicento, Citroen C1, QS Motor, VESC, EVE LFP), **80% of first-build failures happen at the interfaces between parts**:
- A brake disc whose bolt circle (`4×98 mm`) is 2 mm off the wheel hub (`4×100 mm`).
- A brake caliper with an `M10×1.0` DIN bubble flare connected to a master cylinder with a `3/8"-24 UNF` SAE inverted flare.
- A caliper housing whose outer radius (`146 mm`) scrapes the inside barrel of a 13" steel wheel (`142 mm`).
- A front tire that clears the frame rails straight ahead, but rubs the lower chassis rail at $38.5^\circ$ full steering lock.
- A "complete" BOM that leaves a required electrical or mechanical port dangling (unmated) or a component ungrounded in 3D space.

To catch every one of these traps **before cutting a single millimeter of steel in Smiřice**, we extended **Cubit** (`/opt/eidos/Cubit`) with a **100% generic, product-agnostic Virtual Assembly Line (`assembly` area)** and ran the entire 14-subsystem SILCARP vehicle through a 10-station automated verification pipeline.

---

## 2. Modular Cubit Architecture: Generic & Pluggable by Construction

In strict compliance with Cubit's `STRATEGY-JIT-GENERIC-TOOLS.md` and `TOOL_AREAS.md`, the new Virtual Assembly Line extensions were built with **zero vehicle-specific constants or domain bias in the core engine**:

```
┌──────────────────────────────────────────────────────────────────────────────┐
│                   DesignSpec JSON (Project Phenotype/Params)                 │
│  intent.areas: ["assembly", "vehicle"]                                       │
│  params: { assembly_parts: [...], assembly_mates: [...], clearance_rules }   │
└──────────────────────────────────────┬───────────────────────────────────────┘
                                       │
                                       ▼
┌──────────────────────────────────────────────────────────────────────────────┐
│            Cubit Capability Resolver (crates/cubit-design/src/spine)         │
│  Pluggable Slot Activation — ONLY loads stations requested by intent.areas:  │
│   • "assembly" ──► eval.assembly: [port-mate, swept-envelope,                │
│                                    system-budget, assembly-gap-audit]        │
│   • "vehicle"  ──► eval.vehicle:  [cg-roll, shell-egg-profile, shell-energy, │
│                                    door-cut, cage-weld, seat-anchor]         │
└──────────────────────────────────────┬───────────────────────────────────────┘
                                       │
         ┌─────────────────────────────┼─────────────────────────────┐
         ▼                             ▼                             ▼
┌─────────────────┐         ┌───────────────────┐         ┌────────────────────┐
│   Station 1:    │         │    Station 2:     │         │  Stations 3 & 4:   │
│   port-mate     │         │  swept-envelope   │         │  system-budget &   │
│ Typed Flange,   │         │ 3D AABB + DOF     │         │ assembly-gap-audit │
│ Thread, Taper,  │         │ Kinematic Sweep   │         │ Mass/CG/Power/Cost │
│ Radial & Bus    │         │ Clash & Keep-Out  │         │ & BFS Graph Oracle │
└─────────────────┘         └───────────────────┘         └────────────────────┘
```

### 2.1 The Four Generic Virtual Assembly Line Stations (`crates/cubit-design/src/tools/assembly_line.rs`)

Because these four tools operate purely on typed geometric/physical schemas in `params`, the exact same Rust stations can verify **an L7e electric micro-car, a CNC router gantry, a humanoid robot arm, or an industrial heat-pump skid**:

| Station Tool ID | Area | Generic Verification Responsibility |
| :--- | :--- | :--- |
| **`port-mate`** | `assembly` | Verifies pairwise compatibility across 7 physical interface kinds: **`bolt_circle`** ($N$, PCD, bolt $\varnothing$, center bore pilot fit), **`thread_flare`** ($d$, pitch, flare standard `din_bubble` vs `sae_inverted`), **`taper_cone`** ($D_{\text{major}}$, taper ratio), **`spline`** (teeth $Z$, module $m$), **`radial_nesting`** ($R_{\text{outer}} + c_{\text{min}} \le R_{\text{inner}}$), **`electrical_bus`** (voltage window + protocol), and **`planar_bolted`** (hole spacing + fastener $\varnothing$). |
| **`swept-envelope`** | `assembly` | Computes the 3D swept bounding volume of every part across its declared degrees of freedom (`yaw_deg` rotation + `travel_x/y/z_m` linear stroke) and checks pairwise minimum clearance against `clearance_rules` ($d_{\text{actual}} \ge d_{\text{required}}$). |
| **`system-budget`** | `assembly` | Performs bottom-up physical accounting across all assembled parts: total mass ($\sum m_i$), unladen structural mass (excluding `energy_storage`), emergent 3D Center of Gravity $\vec{r}_{\text{CG}} = \frac{\sum m_i \vec{r}_i}{\sum m_i}$, longitudinal axle split, continuous electrical power balance ($\sum P_{\text{gen}} + \sum P_{\text{draw}} \ge 0$), and total BOM cost. |
| **`assembly-gap-audit`** | `assembly` | Builds the undirected assembly graph $G = (V_{\text{parts}}, E_{\text{mates}})$ and flags three classes of "holes" in a paper design: **(1) Dangling Ports** (any port marked `required: true` with no mate), **(2) Floating Parts** (parts unreachable via BFS from a `grounded: true` datum structure), and **(3) Missing Functional Roles** (roles listed in `required_roles` not satisfied by any part). |

---

## 3. BOM Interface Traps Caught & Resolved by `port-mate`

During the initial assembly specification of SILCARP, `port-mate` exposed three classic cross-brand donor-part mismatches that would have stalled workshop assembly:

### 3.1 Trap #1: Front Hub vs. Brake Rotor PCD & Center Bore (`4×100` vs `4×98`)
* **The Trap:** Our earlier brake specification paired the **VW Golf III front wheel hub (`SKF VKBA 3596`)**—which has a **`4×100 mm` PCD** and **`57.1 mm` center bore**—with a **Fiat 500 vented front brake rotor (`Brembo 08.5085.14`)**, which uses Fiat's **`4×98 mm` PCD** and **`58.1 mm` center bore**.
* **Why It Fails:** A `4×98 mm` rotor will not slip over `4×100 mm` M12 wheel bolts without dangerous eccentric drilling, and the `58.1 mm` bore leaves a `1.0 mm` radial slop on the `57.1 mm` VW hub spigot, causing severe brake judder.
* **The Fix (Verified in `port-mate`):** Replaced the Fiat rotor with the **OEM VW Lupo 1.4 16V / Polo 6N2 GTI $\varnothing 240\times 20\text{ mm}$ vented brake disc (`Brembo 08.4177.10` / `VW 6N0 615 301 D`)**:
  * **Bolt Circle:** Native **`4×100 mm` PCD** (`M12` holes) — `0.00 mm` delta to `SKF VKBA 3596`.
  * **Center Bore:** Native **`57.1 mm` H7/h6 spigot fit** — `0.00 mm` delta to `SKF VKBA 3596`.
  * **Caliper Carrier Compatibility:** Directly fits the `TRW BHN317` (Lucas/Girling 54) caliper carrier (`94.0 mm` bolt spacing, `M10×1.25`).
  * **Wheel Barrel Nesting:** Combined rotor (`R = 120 mm`) + caliper bridge (`R_outer = 146 mm`) nests inside the 14" steel wheel inner rim barrel (`R_inner = 159 mm`) with **`13.0 mm` radial clearance** (`>= 8.0 mm` required).

### 3.2 Trap #2: Hydraulic Brake Line Thread & Flare Standard
* **The Trap:** Motorsport dual master cylinders (Wilwood/Girling style) often ship with `3/8"-24 UNF` SAE $45^\circ$ inverted flares, whereas European OEM calipers (`TRW BHN317`) use `M10×1.0` DIN 74234 bubble flares. Mixing bubble and inverted flares on `4.75 mm` CuNiFer hardlines causes immediate high-pressure weepage under a `500 N` panic stop.
* **The Fix (Verified in `port-mate`):** Standardized the entire hydraulic architecture on **Metric Dual Master Cylinders (`ATE 24.2119-1708.3` / metric bias bar cylinders with `M10×1.0` DIN 74234 bubble flare ports)** so every hardline flare on the vehicle uses a single `4.75 mm` DIN bubble flaring die.

### 3.3 Trap #3: Steering Rack Tie-Rod Taper vs. Upright Steering Arm
* **The Trap:** The Fiat Seicento manual steering rack (`TRW JRM124`) uses an `M12×1.5` inner axial rod and a `1:10` taper (`12.5 mm` major diameter), while the stock VW Golf III cast knuckle uses a larger `13.4 mm` taper.
* **The Fix (Verified in `port-mate`):** Standardized the front upright steering arm interface on the `12.5 mm` (`1:10` cone) taper using a pressed 42CrMo4 taper bush (`SIL-STR-04`) in the upright arm (or optionally threading a VW Golf III `M12×1.5` outer tie-rod end `Lemförder 10203 02` directly onto the Seicento inner tie rod).

---

## 4. 3D Swept-Envelope Packaging Clashes Caught & Resolved by `swept-envelope`

On the first virtual assembly run of `design/projects/silcarp-l7e/design_spec.json`, `swept-envelope` rotated the tires through their $\pm 38.5^\circ$ steering lock and stroked the front door and suspension, immediately flagging **4 spatial packaging collisions**:

| Clash # | Interacting Subsystem Pair | Initial Run Result | Root Cause | Architectural Fix Applied in `silcarp-l7e-v1` | Final Verified Clearance |
| :---: | :--- | :--- | :--- | :--- | :---: |
| **1** | `wheel_14in_4x100_155_65r14` $\leftrightarrow$ `spaceframe_cage` | **FAIL (`-49.3 mm` clash $\rightarrow$ `+10.7 mm`)** | At $38.5^\circ$ inner steering lock, the $\varnothing 558\times 155\text{ mm}$ tire sweeps inward to $Y_{\min} = 390.7\text{ mm}$, hitting an $880\text{ mm}$ wide front frame rail ($Y = \pm 440\text{ mm}$). | Narrowed the front footwell bulkhead pinch-waist of the S235 spaceframe to **`740 mm` ($Y = \pm 370\text{ mm}$)**, matching the $\pm 360\text{ mm}$ double-wishbone inner pivot spacing. | **`+20.7 mm`** *(Req: `15.0 mm`)* **PASS** |
| **2** | `front_refrigerator_door` $\leftrightarrow$ `steering_pedestal_seicento` | **FAIL (`+60.0 mm` < `80.0 mm`)** | Steering column pedestal at $X = 220\text{ mm}$ placed the steering wheel rim within `60 mm` of the closed front door inner liner (knuckle-scrape hazard). | Shifted the floor-bolted steering pedestal rearward by `40 mm` to **$X = 260\text{ mm}$** (matching ergonomic buck reach). | **`+100.0 mm`** *(Req: `80.0 mm`)* **PASS** |
| **3** | `steering_pedestal_seicento` $\leftrightarrow$ `master_cylinder_dual_metric` | **FAIL (`-35.0 mm` collision)** | Mounting the dual brake master cylinders directly ahead of the driver's left foot ($Y = -220\text{ mm}$) collided with the rigid floor pedestal base flange. | Relocated the dual master cylinders into the forward nose of the **Central Service Spine ($X = 350\text{ mm}, Y = 0\text{ mm}, Z = 240\text{ mm}$)** driven by a pedal rockershaft. | **`+82.0 mm`** *(Req: `25.0 mm`)* **PASS** |
| **4** | `battery_cassette_24s_lfp` $\leftrightarrow$ `motor_transaxle_qs138_15kw` | **FAIL (`-80.0 mm` collision)** | Placing the $860\text{ mm}$ long 24S EVE LF105 cassette at $X = 850\text{ mm}$ caused its rear Anderson HV bulkhead to overlap the forward housing of the QS138 70H V3 motor. | Shifted the under-seat battery cassette forward by `90 mm` to **$X = 760\text{ mm}$** (centered directly under the occupant H-point). | **`+80.0 mm`** *(Req: `40.0 mm`)* **PASS** |

---

## 5. Complete 20-Mate Interface Verification Matrix (`port-mate`)

Every mechanical, fluid, and electrical connection across the 14 SILCARP subsystems is formally declared and verified in `design/projects/silcarp-l7e/design_spec.json`:

| Mate # | Subsystem A (`part.port`) | Subsystem B (`part.port`) | Interface Type | Physical Specification | Status |
| :---: | :--- | :--- | :--- | :--- | :---: |
| **01** | `spaceframe_cage.a_pillar_hinge` | `front_refrigerator_door.hinge_knuckle` | `planar_bolted` | `680.0 mm` span, `M12` twin hinge pins | **PASS** |
| **02** | `spaceframe_cage.rack_mount` | `steering_pedestal_seicento.chassis_clamp` | `planar_bolted` | `420.0 mm` span, `M10` rack clamp bolts | **PASS** |
| **03** | `spaceframe_cage.wishbone_knuckle_mount` | `knuckle_upright_golf3.ball_joint_lower` | `taper_cone` | $\varnothing 15.0\text{ mm}$ major, `1:10` ball-joint taper | **PASS** |
| **04** | `steering_pedestal_seicento.tie_rod_taper` | `knuckle_upright_golf3.steering_arm_taper` | `taper_cone` | $\varnothing 12.5\text{ mm}$ major, `1:10` tie-rod taper | **PASS** |
| **05** | `knuckle_upright_golf3.bearing_housing` | `hub_bearing_vw_4x100.knuckle_press_fit` | `radial_nesting` | $\varnothing 68.0\text{ mm}$ (`R = 34.0 mm`) H7/p6 press fit | **PASS** |
| **06** | `hub_bearing_vw_4x100.wheel_flange` | `brake_disc_240mm_4x100.hub_hat_mount` | `bolt_circle` | `4×100.0 mm` PCD, `M12`, `57.1 mm` spigot bore | **PASS** |
| **07** | `hub_bearing_vw_4x100.wheel_flange` | `wheel_14in_4x100_155_65r14.lug_mount` | `bolt_circle` | `4×100.0 mm` PCD, `M12×1.5`, `57.1 mm` bore | **PASS** |
| **08** | `knuckle_upright_golf3.caliper_ears` | `brake_caliper_trw_bhn317.carrier_mount` | `planar_bolted` | `94.0 mm` Lucas 54 carrier spacing, `M10×1.25` | **PASS** |
| **09** | `brake_disc_240mm_4x100.rotor_outer_envelope` | `brake_caliper_trw_bhn317.rotor_throat` | `radial_nesting` | Rotor `R = 120.0 mm` inside `R = 123.0 mm` throat (`3.0 mm` gap) | **PASS** |
| **10** | `brake_caliper_trw_bhn317.wheel_barrel_envelope` | `wheel_14in_4x100_155_65r14.inner_rim_barrel` | `radial_nesting` | Caliper `R = 146.0 mm` inside `R = 159.0 mm` 14" rim (`13.0 mm` gap) | **PASS** |
| **11** | `spaceframe_cage.spine_tunnel_mount` | `master_cylinder_dual_metric.pedal_box_flange` | `planar_bolted` | `700.0 mm` spine tunnel datum, `M8` bolts | **PASS** |
| **12** | `master_cylinder_dual_metric.front_circuit_out` | `brake_caliper_trw_bhn317.fluid_inlet` | `thread_flare` | `M10×1.0` female/male **DIN 74234 bubble flare** | **PASS** |
| **13** | `spaceframe_cage.rear_subframe_mount` | `motor_transaxle_qs138_15kw.subframe_bushings` | `planar_bolted` | `480.0 mm` rear cradle span, `M12` Shore 85A mounts | **PASS** |
| **14** | `motor_transaxle_qs138_15kw.halfshaft_spline` | `hub_bearing_vw_4x100.cv_spline` | `spline` | `22 teeth`, `1.25 mm` module (`VW 100 mm` CV spline) | **PASS** |
| **15** | `motor_transaxle_qs138_15kw.phase_u_v_w` | `inverter_vesc_100_250.phase_out` | `electrical_bus` | `3-Phase AC` (`0–92 V`), `35 mm²` M8 ring lugs | **PASS** |
| **16** | `spaceframe_cage.battery_tray_mount` | `battery_cassette_24s_lfp.skid_rail_locks` | `planar_bolted` | `600.0 mm` span, `4× M10` captive cassette locks | **PASS** |
| **17** | `battery_cassette_24s_lfp.hv_anderson_out` | `inverter_vesc_100_250.hv_dc_in` | `electrical_bus` | `72V HV DC` (`60–90 V`), Anderson SB175 | **PASS** |
| **18** | `battery_cassette_24s_lfp.hv_aux_branch` | `hvac_ptc_defroster_72v.hv_in` | `electrical_bus` | `72V HV DC` (`60–90 V`), Deutsch DT04-2P (25A fused) | **PASS** |
| **19** | `inverter_vesc_100_250.can_bus` | `vcu_zombieverter_dcdc.can_bus` | `electrical_bus` | `CAN 2.0B 500 kbps` (`silcarp_can_v1.dbc`) | **PASS** |
| **20** | `front_refrigerator_door.interlock_harness` | `vcu_zombieverter_dcdc.door_interlock_in` | `electrical_bus` | `12V Discrete` dual microswitch drive-inhibit loop | **PASS** |

---

## 6. Full Cubit Virtual Assembly Line Output Scorecard (`silcarp-l7e-v1`)

Running the one-shot pipeline in `/opt/eidos/Cubit`:

```bash
cargo run -p cubit-design --bin cubit-design -- run design/projects/silcarp-l7e/design_spec.json
```

produces **`"ok": true`** across all 10 active stations (`4 assembly` + `6 vehicle`):

| Station / Metric Key | Computed Value | Regulatory / Engineering Target | Status |
| :--- | :---: | :---: | :---: |
| **`port_mate_ok`** | **`1` (`20/20` passed)** | 100% interface compatibility (`0` failed) | **PASS** |
| **`swept_envelope_ok`** | **`1` (`0` clashes)** | `>= 15–80 mm` dynamic clearance across all 4 pairs | **PASS** (`min = 20.7 mm`) |
| **`budget_unladen_mass_kg`** | **`412.0 kg`** | $\le 450.0\text{ kg}$ EU L7e-CP legal limit (excl. battery) | **PASS** (`38.0 kg` margin) |
| **`budget_total_mass_kg`** | **`530.0 kg`** | Curb weight incl. `118.0 kg` 15.3 kWh LFP cassette | **PASS** |
| **`budget_cg_x_m / y_m / z_m`** | **`(0.663, 0.095, 0.379) m`** | Low CG ($Z = 379\text{ mm}$) well inside `1.25 m` track | **PASS** |
| **`budget_net_power_w`** | **`+1,740.0 W`** | Continuous power surplus with 1.2 kW PTC defroster ON | **PASS** |
| **`budget_total_cost_eur`** | **`€6,326.0`** | Target $\le €6,500$ complete single-unit BOM | **PASS** |
| **`assembly_gap_ok`** | **`1` (`100.0%`)** | `0` unmated ports, `0` floating parts, `13/13` roles | **PASS** |
| **`cg_roll_ok`** | **`1` (`0.979 rad` / $56.1^\circ$)** | Static tip angle $> 45^\circ$; slides before tipping ($\mu = 0.85 < 1.49$) | **PASS** |
| **`shell_energy_ok`** | **`1` (`49.97 kJ` absorbed)** | `350 mm` front crush stroke at $50\text{ km/h}$ ($28.1\text{g}$ mean decel) | **PASS** |
| **`door_cut_ok`** | **`1`** | Front door ring frame torsion knockdown accounted via sill pyramid | **PASS** |
| **`cage_weld_ok`** | **`1` (`28.3%` utilization)** | S235JR `3 mm` fillet weld under `18 kN` axial + `6 kN` shear | **PASS** |
| **`seat_anchor_ok`** | **`1` (`6` nodes, `6.75 kN`)** | EU Reg. 3/2014 Annex XII 3-point belt anchor equilibrium | **PASS** |
