allocate accepts two definitions as its ends (ReferenceSubsetting::referencedFeature must be a Feature)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start by reproducing the two allocate examples from the issue, then trace allocate relationship endpoint resolution and the ReferenceSubsetting validation that types referencedFeature as Feature. Done means definition endpoints produce a diagnostic like sysml-toolkit, while the usage form remains accepted; check the neighboring perform validation for comparison.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
allocate accepts two definitions as its ends (rather than two features/usages) with no diagnostic, even though the ends resolve through ReferenceSubsetting, whose referencedFeature is typed Feature — a Definition is not a Feature. sysml-toolkit rejects the same source.
Version: OpenSysML v0.9.0. sysml-toolkit v0.9.1 with the standard library rejects the same source (see below).
Observed
package P { action def A; part def H; allocate A to H; }
Loads with ok=True and no diagnostic in OpenSysML v0.9.0.
With usages instead of definitions:
package P { part def S { action a : A; part h : H; allocate a to h; } }
loads cleanly in both tools, as expected.
sysml-toolkit v0.9.1 (check --lib <sysml.library>) rejects the definition form:
error: ReferenceSubsetting::referencedFeature must refer to a Feature [relationship-endpoint-metaclass]
OpenSysML already distinguishes definitions from usages in the neighboring perform case — perform A; naming an action definition is (correctly) rejected, since perform must reference a usage — so this looks like an inconsistency in how the same distinction is applied to allocate.
Reference
KerML 1.1 Beta 2, 8.3.3.3.9 ReferenceSubsetting: referencedFeature : Feature {redefines subsettedFeature} — the attribute's declared type is Feature. This section's own Constraints subsection is empty ("None"): there's no separate OCL rule needed, because the requirement is the attribute's own metamodel typing. A part def/action def is a Definition-kind element, not a Feature, so it cannot satisfy referencedFeature's type at all.
SysML v2.0 (formal/2026-03-02), 7.15.2 Allocation Definitions and Usages: the section's own worked example only ever allocates usages (allocate logical.component to physical.assembly inside an allocation definition, and allocate logical ::> system to physical ::> device at usage level) — never two bare definitions.
Note on #95
This is a different claim from #95 ("Subsetting type conformance is not checked"), which your team investigated and correctly closed as not-a-bug for general Subsetting (no type-conformance constraint exists there per KerML 8.3.3.3.10). ReferenceSubsetting's referencedFeature attribute is a different, more basic thing: it isn't asking whether two feature types conform to each other, it's that the referenced element must be a Feature at all, which a Definition structurally is not. We think this survives #95's reasoning, but wanted to flag the connection explicitly rather than have it look like the same question re-asked.
Request
Diagnose an allocate (or any ReferenceSubsetting-based relationship) whose ends are not features, the way sysml-toolkit already does.
- Lenguaje dominante
- Go
- Estrellas
- 39
- Forks
- 12
- Merge medio
- 14 h 14 min
- PR fusionados (30 d)
- 759
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Open-MBEE/OpenSysML
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Open-MBEE/OpenSysML#1212 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Open-MBEE/OpenSysML#1199 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug spec compliance
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Open-MBEE/OpenSysML#1125 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Renaming of OpenSysMLAbiertohelp wanted question
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Open-MBEE/OpenSysML#987 · 11 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de Open-MBEE/OpenSysML
Issues similares
-
ViewData can pair the in-flight proposal with the prepared flag of another proposalPosiblemente ocupada @HagarMeir la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hyperledger/SmartBFT#710 ·
Los mantenedores suelen responder en 1 día
-
agent-butler-finding chore
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
jordansmall/spindrift#5575 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
open-telemetry/opentelemetry-go-compile-instrumentation#1512 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
slavakurilyak/awesome-ai-agents#805 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
JakeChampion/lang#12684 ·
Los mantenedores suelen responder en 1 día