Skip to content

Model the wiring harnesses as buses - #24

Merged
jevontech merged 2 commits into
mainfrom
harness-buses
Nov 7, 2026
Merged

jevontech merged 2 commits into
mainfrom
harness-buses

Conversation

@jevontech

@jevontech jevontech commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

The module interconnection figure in the SDS was unreadable. Every harness signal was its own port and connection: 46 connections between the main board, the two harnesses and the base and top modules. This models each harness as a bus, the SysML equivalent of a Simulink bus.

What changed

  • Bus definitions:
    • BaseHarnessBus (18 signals) and TopHarnessBus (4 signals) are port definitions whose signals are nested ports, typed as the main board sees them.
    • Each has a module-side mate, BaseHarnessModuleBus and TopHarnessModuleBus, typed as the base and top modules see them.
    • Conjugating a bus reverses only its directed features, not its nested ports (SysML v2 7.12, via KerML conjugation), so ~BaseHarnessBus couldn't serve as the mate. Spec42 flagged that with flow_direction_incompatible.
  • Modules:
    • The main board has baseHarness and topHarness.
    • The base and top modules each have mainPcbHarness.
    • Their parts connect to the bus's nested ports, for example baseHarness.batteryRail to leftMotorDriver.supply.
  • Harnesses: each has a mainPcbEnd and a module end, and passes every signal from one end to the other. Sensor power from the base to the top stays a port of its own.
  • Robot level: six connections instead of 46.
  • Docs: the SDS prose and MODEL_GUIDE.md describe the buses.

Checked

  • With the pinned Spec42 0.59.2 and the pinned methodology, validate_model.py reports 0 errors and the four documented custom-view warnings, and the methodology checks pass. The unit tests pass.
  • generate-document-data.py: the BOM (49 items) and the mass budget (3.69 kg) are unchanged.
  • Diagrams: with Draw a closed part's bus as one port spec42#456, which draws a closed part's bus as one port, the module interconnection at depth 0 shows each harness as one line per end. Without it, each closed box still lists the nested signals as ports. The module figures show the signals leaving the bus for the parts inside.

🤖 Generated with Claude Code

Each module carried one port per harness signal, so the robot connected the
main board, harnesses, base and top modules with 46 separate connections, and
the module interconnection figure was a tangle of signal lines. The harness
signals are now nested ports of a bus port: BaseHarnessBus and TopHarnessBus as
the main board sees them, and a module-side mate of each
(BaseHarnessModuleBus, TopHarnessModuleBus) for the base and top modules and
the harness ends facing the board. Conjugation reverses only directed
features, not nested ports (SysML v2 7.12), so the mates are definitions of
their own. The robot level connects each harness end once (six connections),
inside each module the parts connect to the bus's nested ports, and inside
each harness the signals pass from one end to the other. Sensor power from the
base to the top stays a port of its own.

Validation reports 0 errors and the four documented custom-view warnings; the
BOM (49 items) and the mass budget (3.69 kg) are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The lean-model guard looked for the HMI connection to the top system's own
port. With the harness as a bus, the HMI connects to the bus port's
hmiControl signal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jevontech
jevontech merged commit 4e76e1b into main Nov 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant