Repository navigation
fix(semantics,export): a transition owns its transitionLink on the native walk and in the RDF conversion — a ReferenceUsage through a FeatureMembership after its succession, however the transition is written, as the pilot exports TransitionUsage::transitionLink - #2242
Conversation
…tive walk and in the RDF conversion — a ReferenceUsage through a FeatureMembership after its succession, however the transition is written, as the pilot exports TransitionUsage::transitionLink; the query leg reads its ids and the import reads it back as implied Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
…the minted transitionLink — the import reads the transitionLink by the conversion's minted id, not by its bare shape Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…oo — a bare ReferenceUsage a transition's FeatureMembership owns with no place among the body's members, where the minted suffix is gone Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…ver its graph addresses it — the transitionLink is never one the transition links as body or effect Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…n imports as the member it is linked as Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
|
Two small requests, neither of them blocking:
#2228 (pilot pin to 2026-09.1) re-records the same census files and the api-json differential, and is planned to land first. After it does, this branch will need one merge of |
…a referenced element without an address before the transitionLink rule reads it Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
|
Gate ( |
|
#2228 merged; develop is now 99e4dcd. Running
When you next update this branch, do one |
…k-feature-membership Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov> # Conflicts: # docs/project/api-json-differential.md # docs/project/api-json-differential/index.json # internal/semantic/metamodel/derived_census_baseline.json # internal/semantic/metamodel/derived_census_records.tsv
…ial on develop at the 2026-09.1 pilot pin After merging develop (the pilot pin at 2026-09.1 and the census recorded under JDK 21), the transitionLink change re-records to 55 moved fragments (64 TransitionUsage.ownedFeatureMembership different → equal) and the census moves only the elements and implied columns; the record paragraph states the new counts. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…s precede the transitionLink After merging develop at #2242 (a transition owns its transitionLink last), a state body's `then x;` and a decision's branch own their source Membership and link parameter ahead of the succession and the transitionLink after it, on both legs — the pilot's order. The goldens, structure differential, derived census and api-json differential re-record to develop plus this change's own movement, with six census rows more: the state-body link parameters become Type::ownedFeature, Type::ownedFeatureMembership and Usage::nestedReference carriers (2 in pilot-examples, 4 in pilot-validation) deriving the empty value the pilot has, now that the transition parts cover the SuccessionEdge form. The api-json record states the new counts (unkeyableElements.ours 19987 → 20381). Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
What and why
The pilot exports, last among a
TransitionUsage'sownedRelationship, aFeatureMembershipowning aReferenceUsagenamedtransitionLink(isVariablefalse,isReferencetrue, no direction, owning nothing) — for atransition … first a then b, one with a trigger, a state body'sthen x;, a guardedtransition if g then xand a decision'sif g then a2;alike. Neither leg had it: the RDF writer minted none and the native walk owned none, so the transitions'ownedRelationshipdisagreed with the pilot on every form (the next cross cell after #2222 and #2234).Now both legs own it, in one shape:
transitionLinkMember):<transition id>_transitionlinktypedReferenceUsage, owned through<id>_transitionlink_omtypedFeatureMembership, emitted after the succession inencodeTransition,encodeGuardedTargetandencodeTargetTransition; no direction, noisVariable/mayTimeVary(the pilot's answer).recordTransitionSuccessionfiles it at the slottransitionlink;SynthesizedElementIDspells it andSynthesizedElementOwnerdecodes it, so a metaobject naming it crosses gRPC.ExpressionTransitionLink):transitionPartsOfsynthesizes the part for every transition with a target (theSuccessionEdgeform too), spanning the transition's end so it sorts last; its membership kind isFeatureMembership, its metaclassReferenceUsage, its variability false on every reader; the query leg reads_transitionlink/_transitionlink_om.transitionImpliedreads a bare directionlessReferenceUsageaFeatureMembershipowns under a transition as implied;bodiedOwnerscounts it to the head, not a body;mappingTransitionLinkkeeps the api-json route from addressing it positionally — so every round trip reproduces.Left as the pilot states it and we do not: the member's name (
transitionLink, by the library feature it implicitly redefines) — the same family astransitionLinkSourceon the link parameters. A state body'sthen x;and a decision's branch also own the sourceMembershipandtransitionLinkSourceon the pilot; that is the next PR.Specification basis
SysML v2.1 §8.3.18.9
TransitionUsage(transitionLink, SysML.xtext TransitionUsage); the pilot's export is the reference for the member's shape and order. No compliance row moves.How it was verified
TestTransitionOwnsItsSourceMembershipAndLinkParameters(every form owns theFeatureMembership:ReferenceUsagelast, the state body'sthen x;that alone),TestTransitionHeadMembershipsReadTheConversionIDs(_transitionlink,_transitionlink_om),TestSynthesizedElementIDOfTransitionLinkParameters(+SynthesizedElementOwnerdecodes all three),TestTransitionSuccessionFollowsEffectAndPrecedesBody(the membership order ends with it),TestMintedUsagesStateTheirDerivedMayTimeVary(it states neither), the descendants query count; each fails on develop.equalgrows (+2 per transition: 112 examples, 3 testdata, 28 training, 81 pilot corpora, 17 spec examples) and the three systematic rows (Feature::isConstantsymbol-extra,Membership::memberElementId/OwningMembership::ownedMemberElementIdsymbol-missing) by the same counts; nodifferentrow moves.elements/impliedper root only, no rule column.docs/project/api-json-differential.md: 55 fragments on develop at the 2026-09.1 pilot pin;TransitionUsage.ownedFeatureMembership64 different → equal (ownedMembership/ownedRelationship63); the new memberships'memberNameours-missing andmemberElementdifferent are the unnamed-minted-member familyParameterMembership.memberNamealready holds.make docs-countscurrent.decision_branches.golden.ttlcrossed 200 KiB and is a digest now (the golden rule); its full output differs from develop's only by the_transitionlinkblocks and the owners' membership lists.make lint,go vet,gofmt, changelog check, doc-ids, hygiene, the two-line comment gate: clean.make test-shortrunning; result in a gate comment.Checklist
make testandmake lintpass locally (make test-shortresult follows in a gate comment)changes/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