Generators as plugins with drift checking: interface stubs and ARXML from the model

Abierto
#373 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, rust
Área
devtools, tooling

Línea de trabajo

Read issue #363 item 12 and the existing build-config, export-sysml, and structured export entry points to understand the current model outputs. Then review the import plugin contract and symbol drift check referenced as A. Done means a documented generator contract and manifest schema, plus one reference generator whose --check fails when a model operation changes and generated output is stale.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Part of #363 (item 12). Largest payoff, largest cost.

Current state

build-config generates build-system artifacts from a Configuration; export-sysml and the structured export give the model graph. Nothing generates interface stubs, glue or ARXML.

Proposal

  • A generator contract, symmetric to import plugins: syscribe generate <alias> [--config C] [--out <dir>] runs [generators.<alias>] (a subprocess reading the structured model JSON on stdin, writing files and a manifest), so generators live outside the core.
  • Drift check. The manifest records, per generated file, the hash of the model elements it came from and the hash of the content; generate --check and validate report a generated file edited by hand or a model change not reflected in the output (traceBaselines:-style).
  • Reference generators (examples): interface stubs for AIDL or C++ from operations:; ARXML from ports and interfaces.
  • Ownership rule: the model is the source of truth for the interface, the code for the implementation; generated files are marked and never hand-edited (a // GENERATED header with the element ids).

Acceptance

  • One reference generator with --check that fails when a model operation changes and the output is stale.
  • The contract is documented with the manifest schema.

Risks

Round-tripping (code edits that should flow back) is out of scope; the import plugins plus the symbol drift check (A) cover the reverse direction.

Part of #272 (executable MBSE / software design).


Generated by Claude Code

Lenguaje dominante
Rust
Estrellas
8
Forks
1
Merge medio
3 h 35 min
PR fusionados (30 d)
69

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sjames/syscribe

Todos los issues de sjames/syscribe

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.