SWCraft Discuss a trial

Architecture as Code for AUTOSAR Classic

Make architecture
reviewable like code.

Declare components and compositions as plain YAML in Git. SWCraft checks the whole hierarchy and generates AUTOSAR ARXML, local UML/SysML views and requirements from the same model.

  • YAMLdeclared hierarchy
  • ARXMLAUTOSAR exchange
  • Local-firstno service to run
Earlier workflow preview — Visual Studio Code model valid
01 Describe the change 02 Review the exact delta 03 Validate before write

01 / One source of truth

One model.
Every artefact.

Components, their hierarchy, the diagrams and the ARXML stop being documents that agree by discipline. They are derived from one model, with validation controlling the ARXML handoff.

model/compositions/VehicleControl.yamlM
01name: VehicleControl
02title: Vehicle control
03root: true
04members:
05  - name: BrakeController
06    type: BrakeController
07  - name: Diagnostics
08    composition: Diagnostics
09ports:
10  - name: pVehicleState
11    direction: provide
12    interface: IVehicleState
schema awareUTF-8YAML
</>

AUTOSAR

ARXML

hierarchy · delegations

UML / SysML

Diagrams

SVG · self-contained HTML

Sphinx-Needs

Requirements

traceable by design
±

Architecture

Change set

human-readable · JSON
01

Architecture with a shape

One explicit root contains named component and composition instances, with boundary ports delegated through the hierarchy.

02

Checked as a whole

References, interface compatibility, task mappings, resource budgets and AUTOSAR identifiers are validated across layers.

03

Downstream stays put

The existing downstream toolchain remains on the ARXML path. SWCraft moves the reviewable source of truth upstream.

02 / Deterministic gate

Invalid architecture stops here.

Model findings stop generation before it begins. The final ARXML check gives a separate verdict: if schema validation fails, the rejected file remains on disk and must not be handed downstream.

swcraft — check-model
$ swcraft check-model --project swcraft.yaml
checking architecture model...
FINDING SWC 'BrakeController' port 'rBrakeRequest'
        references interface 'IBrakeRequest' which is not declared

REFUSED model unchanged · nothing generated
A

Structure

Root composition, member placement, delegation compatibility and hierarchy cycles.

checked
B

Execution

Task mappings, runnable access points, sequences and requirement coverage.

checked
C

Resources

CPU thresholds, memory budgets and core-to-memory accessibility.

checked
D

AUTOSAR

Generated identifier legality and optional validation against a licensed XSD.

checked

03 / Constrained assistance

The LLM proposes.
SWCraft determines.
A human decides.

The assistant cannot edit files or run a terminal. It reaches the architecture through SWCraft, stages one complete change on a private copy, and asks you about the exact resulting delta.

  1. 01

    Plain-language request

    Describe the outcome, not the files.

  2. 02

    One atomic proposal

    Every related element arrives together.

  3. 03

    Shadow validation

    The real model stays untouched.

  4. 04

    Exact semantic diff

    Review what will land, not a summary.

  5. 05

    Human decision

    Approve all of it or apply nothing.

Refusedfiles untouched
Waitingfiles untouched
Appliedexactly as approved

04 / Incremental adoption

Start small.
Keep control.

Introduce Architecture as Code around a bounded slice. Keep the existing engineering flow in place and evaluate the model, checks and generated handoff on their own merits.

SCOPE

Bounded slice

Choose a contained subsystem or component group instead of committing to a broad migration.

MODEL

Separate Git model

Build the reviewable source alongside the current process, with no production repository change required.

GATE

Checked handoff

Only a validated ARXML artefact crosses the boundary into the downstream toolchain.

EVIDENCE

Decide from the result

Review the model, findings, architectural diff, impact and generated views before choosing what comes next.

No big-bang replacement. SWCraft is introduced upstream of the existing toolchain. Its value can be reviewed on a controlled scope before any wider adoption decision.

05 / The architecture workbench

Author, validate and understand the impact.

⌁

Guided authoring

Completion, hover and immediate diagnostics for every model file in VS Code.

EDITOR
Δ

Architectural diff

Compare two releases as the exact elements and properties that changed.

CLI · JSON · PANEL
◎

Impact analysis

See the blast radius of a component or interface before making the change.

READ ONLY
▧

Declared hierarchy

Nest named instances, expose boundary ports and carry the same composition structure into ARXML and internal block, overview and nesting views.

YAML · ARXML · SVG
◫

Resource report

The CPU and RAM numbers behind a refusal, visible before the design lands.

CPU · MEMORY
?

Guide that ships

Version-matched documentation and generated reference, served locally.

OFFLINE

06 / Project status

Working prototype.

The complete architecture loop is implemented. SWCraft covers authoring, deterministic validation, generated handoff and controlled AI-assisted change. It is ready to evaluate on a bounded architecture slice alongside the existing AUTOSAR toolchain.

MODEL

Reviewable source

A Git-native YAML model holds components, interfaces, connections, compositions, requirements and constraints.

VALIDATION

Deterministic gate

Model integrity, architectural rules, resources, safety, AUTOSAR identifiers and optional XSD conformance are checked before handoff.

OUTPUTS

Generated evidence

ARXML, local SVG and HTML diagrams, Sphinx-Needs requirements, semantic diffs and impact reports come from the same model.

DELIVERY

Integrated workspace

One offline workstation archive carries the CLI, VS Code extension, MCP integration, assistant, guide and required runtimes.

07 / Product demonstration

See the workflow.

Core workflow demo · 5 minutes 51 seconds · captions · no audio

This recording shows an earlier interface. Current releases generate SVG drawings and self-contained HTML pages that open directly from a file.

SWCraft product demo 05:51
  1. 01

    ModelYAML authoring and diagnostics

  2. 02

    GateValidation and AUTOSAR XSD

  3. 03

    ChangeAI proposal and exact review

  4. 04

    ViewsDiagrams, resources and impact

A bounded first step

Bring one architecture slice.
Leave with evidence.

Start from existing architecture or an empty project. Keep the model in its own Git repository; the ARXML it emits is the only thing the downstream toolchain needs to see.

Talk to Konstantin
01

Import or modelUse a representative, bounded slice.

02

Validate and deriveBuild ARXML, hierarchy-aware diagrams and reports.

03

Review the evidenceDecide what fits your engineering process.

Working engineering prototype

SWCraft is developed with a tool-qualification path in mind; it is not a qualified tool. Licensed AUTOSAR XSD schemas are not distributed with it.