Repository navigation
fix(query): a connector's Relationship::source and target answer on the query leg past the valueless source and target ends it inherits from the library — a connection, an interface, a flow and an allocation read them as the RDF writer and the pilot state them - #2172
Merged
Merged
Conversation
…he query leg past the valueless source and target ends it inherits from the library — a connection, an interface, a flow and an allocation read them as the RDF writer and the pilot state them The query leg reads an element's declared feature of a property's name before the metaclass property: for a connector, Model.LookupMember finds the library end Links::BinaryLink::source (Allocations::Allocation::source for an allocation), valueless, so the Relationship::source cell answered nothing while relatedElement, sourceFeature and targetFeature answered. A valueless member an element only inherits (LookupContributedMember finds the same symbol) no longer shadows a metaclass property of its name; an own declaration or a valued member still wins. New queryexec test fails on develop (both source cells empty), passes fixed. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
… property of its name — a stated `= null` or `= ()` keeps answering, and a member path ending in a connector's inherited end reads the metaclass property too The shadowing test keyed on the converted values being empty, which a member stating `= null` or `= ()` also is; it now asks the semantic model whether the inherited member and every feature it redefines write no value (Model.InheritsValuelessMember). A member path (`d.source`) walked its last segment through declaredFeatureValues alone, so the end it now marks absent made the path absent; it consults the metaclass property where the end is such a valueless inherited member. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 2 findings. Devin automatically fixed all 2 findings.
Fixed by Devin (2)
- Inherited empty values replaced by metadata — Real: the check keyed on the converted values being empty, which an inherited
= null/= ()also is. It now asks the semantic model whether the inherited member and every feature it redefines write no value (Model.InheritsValuelessMember); new test fails without it. - Nested connector columns reject valid paths — Real: memberPathValues read its last segment through declaredFeatureValues alone, so the end now marked absent made
d.sourceabsent. It consults the metaclass property where the end is a valueless inherited member; new test fails without it.
This was referenced Nov 12, 2026
richetl
pushed a commit
to richetl/OpenSysML
that referenced
this pull request
Nov 13, 2026
…ields to Relationship::source and target on the query leg — as an inherited library end does since Open-MBEE#2172, so an interface definition with ends named source and target answers its ends' types, as the pilot derives them Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
richetl
pushed a commit
to richetl/OpenSysML
that referenced
this pull request
Nov 13, 2026
…s-relationship-source fix(query): a definition's own valueless end named source or target yields to Relationship::source and target on the query leg — as an inherited library end does since Open-MBEE#2172, so an interface definition with ends named source and target answers its ends' types, as the pilot derives them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A
Projectover a connector read nothing forsourceandtargetwhilerelatedElement,sourceFeatureandtargetFeatureanswered:allocation observeToCluster allocate observe to telescope.instrumentClusterreturnedsource = (none), and everyconnection,interfaceandflowdid the same, so a SysML v2 query of a model's connector ends could only reach them through the redefining properties.The query leg reads an element's declared feature of a property's name before the metaclass property. Every connector inherits the library's
sourceandtargetends —Links::BinaryLink::sourcefor a connection,Allocations::Allocation::sourcefor an allocation — and they carry no value, sodeclaredFeatureValuesanswered present, empty andRelationship::sourcewas never consulted. Thethensuccessions escaped only because their impliedOccurrences::HappensBeforeis not in member lookup.executor.declaredFeatureValuesnow hands over to the metaclass property when the member found is one the element merely inherits (LookupContributedMemberreturns the same symbol asLookupMember), holds no value and shares its name with a metaclass property of the element. An element's own declaration (a redefining end, a feature it writes) and a valued inherited member keep answering as before.A chained end now answers the chain Feature on the query leg, as
sourceFeature/targetFeaturealready did; the RDF writer statessource/targetfor a plain-named end only (#2135), so a cross-leg comparison sees new, truthful disagreements there until the writer names a chain's feature in a form both readers accept.Specification basis
KerML 1.0 § 8.3.4.5.1 (Connector):
relatedFeature,sourceFeatureandtargetFeatureredefineRelationship::relatedElement,sourceandtarget. No row ofdocs/project/spec-compliance/moves.How it was verified
TestConnectorSourceAndTargetAnswerPastInheritedEnds(internal/doc/queryexec): aconnect a to band anallocate a to b.xanswersource=aand the connectiontarget=bthrough aProjectoverKerML::Kernel::Connector. Fails on develop (bothsourcecells empty), passes here.TestInheritedStatedEmptyValueKeepsShadowingMetaclassProperty: an inheritedattribute isComposite = null/= ()keeps its empty cell, not the metaclass flag — only a member writing no value along its redefinitions yields (Model.InheritsValuelessMember).TestMemberPathReadsConnectorSourcePastInheritedEnd: a member pathd.sourcereads the connector'ssourcepast the inherited end as the connector's own row does.go build ./...,go vet ./...,gofmt -l .(empty),make lint,go test -count=1 ./tests/hygiene,python3 scripts/changelog.py check,python3 scripts/check-doc-ids.py.make test-short: 133 packages ok on this head;cmd/sysml,tests/codegenandtests/exporthit the 10-minute default timeout on a cold build cache and pass run alone with-timeout 40m.DeclaredFeatureValues' other caller is the tree view's member listing, unaffected); RDF and API JSON already statesource/targetfor a plain end.Checklist
make testandmake lintpass locallychanges/unreleased/<slug>.<section>.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelog🟢 Devin fixed all 2 findings · Follow Devin's work