Repository navigation
fix(semantics,export): the ReferenceUsage a flow's end owns is named by the feature it redefines in the RDF conversion and answers isVariable true on the native walk — image in flow from telescope.image to …, owned by an Occurrence-typed FlowEnd — as KerML 1.1 § 8.3.3.3.4 names it, SysML v2.1 § 8.3.16.6 types its owner and the pilot exports both - #2369
Merged
Merged
Conversation
…by the feature it redefines in the RDF conversion and answers isVariable true on the native walk — `image` in `flow from telescope.image to …`, owned by an Occurrence-typed FlowEnd — as KerML 1.1 § 8.3.3.3.4 names it, SysML v2.1 § 8.3.16.6 types its owner and the pilot exports both The two legs disagreed on four cells of a flow end's redefining ReferenceUsage (the QVTS reflection cross at the #2266 pin): the native walk answered isVariable false where the conversion stated true, and the conversion stated no memberName on its FeatureMembership (nor a name on the usage) where the native walk derived the redefined feature's. The pilot exports memberName and name "image", isVariable and mayTimeVary true. - semantics/usage.go: synthesizedUsageMayTimeVary answers for the implied flow-end feature as for the other synthesized referential parts — its owning type is the FlowEnd, redefining Flows::Flow::source/target, an Occurrence-typed feature (UsageMayTimeVaryUnderLibraryFeature), never in a KerML document. - export/rdf_out.go: flowEndReferences states sysml:name on the usage and sysml:memberName on its membership from the model's effective name (flowEndFeatureName); nothing when the end resolves to nothing. - export/mapping_shape.go: a nameless feature its FeatureMembership names under a positional owner stays positional for the decoder, as the end itself is, so the round trip holds. - Tests: TestFlowEndFeatureVariesInTime (library-backed), TestElementFormFlowEndFeatureIsNamedByItsRedefinedFeatureAndVaries. - Re-recorded by tool: tests/export goldens (4 files: two name and two memberName triples); structure differential (name/qualifiedName/memberName/ownedMemberName symbol-extra 5 -> 2 and 4 -> 1, both roots, all toward agreement); api-json differential (FeatureMembership.memberName oursMissing -> presentEqual in 11 fragments, 92 values; presentEqual 2105606 -> 2105698, oursMissing 303083 -> 302991), adjudicated in docs/project/api-json-differential.md; derived census and the corpus round-trip sweep reproduce. 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)".
|
Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 1 finding. Devin automatically fixed it.
Fixed by Devin (1)
- Code comment exceeds repository limit — The test's header comment is two lines now (the repository's comment gate passes on the diff).
Contributor
Author
|
Local gate on d939853 (code unchanged since 0049993; the second commit shortens a test comment):
CI: the first two runs were cancelled at zero steps by the platform (every |
NicolasRouquette
approved these changes
Nov 17, 2026
…ow-end-feature-name-variable Conflicts: the api-json differential (index and six fragments both PRs re-recorded), one Turtle golden digest, the adjudication prose and the api-json form test file, where #2359 and this branch each appended a paragraph and a test — both kept, develop's first. Re-recorded by tool on the merged tree: tests/export goldens (-update), the structure differential (-update-structure-differential), the api-json differential (pilot-apijson-diff -update; -check reproduces). The movement against develop is this branch's alone: FeatureMembership.memberName oursMissing -> presentEqual in the same 11 fragments, 92 values (presentEqual 2106153 -> 2106245, oursMissing 302536 -> 302444), restated in docs/project/api-json-differential.md. derived-census -check reproduces. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 18, 2026
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 19, 2026
develop's native FlowEnds (#2266, #2268, #2369) supersede this branch's synthesized ones, so the synthesis, its ExpressionFlowEnd role, ids and tests are dropped; the filter-condition and body-result synthesis stays and wraps develop's withFlowEndFeature. kinds.go keeps this branch's ExtendedUsage branch ahead of #2279's narrowed ReferenceUsage test. Two gaps the merge exposed are fixed at the root: a flow's FlowEnds are now also its ownedMember/ownedElement/member (withSynthesizedMembers places FlowEndMembers at their clause) and the element form answers an implied end, its ReferenceUsage and its ReferenceSubsetting from the conversion's slots; and a usage declared by prefix metadata alone (`#M x;`, a plain Usage) is composite by default on the symbol side as the RDF writer already states it, instead of referential. Generated artifacts re-recorded by tool only: structure differential (FlowEnds listed as members, Usage::isReference back to develop's figures), derived census (elements/implied fall where the duplicate FlowEnd synthesis went away). Co-Authored-By: jason.han <hanhuijun@gmail.com>
6 tasks done
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 flow's end (
from telescope.image) owns a namelessReferenceUsageredefining the last feature it names. The two legs of this implementation disagreed on four of its cells, which the QVTS reflection cross surfaced at the pin on #2266: the native semantic walk answeredisVariablefalse where the RDF conversion stated true, and the conversion stated nomemberNameon the usage'sFeatureMembership(nor anameon the usage) where the native walk derived the redefined feature's name. The pilot exportsmemberNameandname"image",isVariableandmayTimeVarytrue, so each leg takes the other's answer:internal/semantic/semantics/usage.go:synthesizedUsageMayTimeVaryanswers for the implied flow-end feature as for the other synthesized referential parts — its owning type is the FlowEnd, redefiningFlows::Flow::source/target, an Occurrence-typed feature (UsageMayTimeVaryUnderLibraryFeature); never in a KerML document, where a Feature has noUsage::mayTimeVary.internal/translate/export/rdf_out.go:flowEndReferencesstatessysml:nameon the usage andsysml:memberNameon its membership from the model's effective name (flowEndFeatureName), derived, so stated bynamealone; nothing when the end resolves to nothing.internal/translate/export/mapping_shape.go: a nameless feature itsFeatureMembershipnames under a positional owner stays positional for the decoder, as the end itself is, so the Turtle → notation round trip holds.Specification basis
KerML 1.1 § 8.3.3.3.4 (
Feature::namingFeature): a feature declaring no name takes the name of the feature it redefines, whichMembership::memberNamederives. SysML v2.1 § 8.3.16.6: aFlowEndredefinesFlows::Flow::sourceortarget, typed byOccurrence, so the usage it owns varies in time (deriveUsageMayTimeVary). No spec-compliance row moves: each leg already derived one of the two; this aligns them.How it was verified
TestFlowEndFeatureVariesInTime(internal/semantic/semantics, library-backed): both ends' usages answerisVariableandmayTimeVarytrue, the ends themselves false.TestElementFormFlowEndFeatureIsNamedByItsRedefinedFeatureAndVaries(internal/translate/export):flow f from a.x to b.y— each FlowEnd'sFeatureMembershipnames itsReferenceUsagex/y, equal to the usage'sname, nodeclaredName,isVariableandmayTimeVarytrue.tests/exportgoldens re-recorded by-update: 4 files, twonameand twomemberNametriples, nothing else.TestSymbolStructureMatchesGraphStructure) re-recorded:Element::name,Element::qualifiedName,Membership::memberName,OwningMembership::ownedMemberNamesymbol-extra 5 → 2 (training) and 4 → 1 (pilot corpora), every movement toward agreement;differentcounts unchanged.pilot-apijson-diff -update,-checkreproduces: one row moves,FeatureMembership.memberName,oursMissing→presentEqualin 11 fragments, 92 values (presentEqual2105606 → 2105698,oursMissing303083 → 302991); adjudicated indocs/project/api-json-differential.md;make docs-countsrun.derived-census -check -recorded-pilot: reproduces (no movement).TestExamplesSweepwithOPENSYSML_REQUIRE_TRAINING_CORPUS=1 OPENSYSML_REQUIRE_PILOT_CORPORA=1 OPENSYSML_REQUIRE_SPEC_EXAMPLES=1: ok, no round-trip verdict moves.-convert ttl, then-from ttl -convert sysml): an end resolving to nothing (to b.zz) states no name; a bare end (from a) namesa; a KerML flow states the name and noisVariable; all three round-trip.go build ./...,go vet ./...,gofmt -l .(empty),make lint,tests/hygiene,tools/referee/apijson,scripts/changelog.py check,scripts/check-doc-ids.py: clean.make test-short: ok, with the packages that hit the 10 m default or a full local disk under concurrent load (cmd/sysml,internal/exec/{runtime,smt},tests/{codegen,export,model,wasm}) rerun alone with-timeout 40m, all ok.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 changelogLink to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/18ad47adf36f44e9b6824a4472f9678d
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/18ad47adf36f44e9b6824a4472f9678d?variant=devin
Requested by: @NicolasRouquette
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work