Skip to content

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

Merged
NicolasRouquette merged 8 commits into
developfrom
fix/transition-link-feature-membership
Nov 14, 2026

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The pilot exports, last among a TransitionUsage's ownedRelationship, a FeatureMembership owning a ReferenceUsage named transitionLink (isVariable false, isReference true, no direction, owning nothing) — for a transition … first a then b, one with a trigger, a state body's then x;, a guarded transition if g then x and a decision's if g then a2; alike. Neither leg had it: the RDF writer minted none and the native walk owned none, so the transitions' ownedRelationship disagreed with the pilot on every form (the next cross cell after #2222 and #2234).

Now both legs own it, in one shape:

  • writer (transitionLinkMember): <transition id>_transitionlink typed ReferenceUsage, owned through <id>_transitionlink_om typed FeatureMembership, emitted after the succession in encodeTransition, encodeGuardedTarget and encodeTargetTransition; no direction, no isVariable/mayTimeVary (the pilot's answer). recordTransitionSuccession files it at the slot transitionlink; SynthesizedElementID spells it and SynthesizedElementOwner decodes it, so a metaobject naming it crosses gRPC.
  • native walk (ExpressionTransitionLink): transitionPartsOf synthesizes the part for every transition with a target (the SuccessionEdge form too), spanning the transition's end so it sorts last; its membership kind is FeatureMembership, its metaclass ReferenceUsage, its variability false on every reader; the query leg reads _transitionlink/_transitionlink_om.
  • import: transitionImplied reads a bare directionless ReferenceUsage a FeatureMembership owns under a transition as implied; bodiedOwners counts it to the head, not a body; mappingTransitionLink keeps 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 as transitionLinkSource on the link parameters. A state body's then x; and a decision's branch also own the source Membership and transitionLinkSource on 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

  • New/extended coverage: TestTransitionOwnsItsSourceMembershipAndLinkParameters (every form owns the FeatureMembership:ReferenceUsage last, the state body's then x; that alone), TestTransitionHeadMembershipsReadTheConversionIDs (_transitionlink, _transitionlink_om), TestSynthesizedElementIDOfTransitionLinkParameters (+ SynthesizedElementOwner decodes all three), TestTransitionSuccessionFollowsEffectAndPrecedesBody (the membership order ends with it), TestMintedUsagesStateTheirDerivedMayTimeVary (it states neither), the descendants query count; each fails on develop.
  • Structure differential re-recorded: only equal grows (+2 per transition: 112 examples, 3 testdata, 28 training, 81 pilot corpora, 17 spec examples) and the three systematic rows (Feature::isConstant symbol-extra, Membership::memberElementId/OwningMembership::ownedMemberElementId symbol-missing) by the same counts; no different row moves.
  • Derived census re-recorded under JDK 21 on develop at the 2026-09.1 pilot pin: elements/implied per root only, no rule column.
  • api-json differential re-recorded, adjudicated in docs/project/api-json-differential.md: 55 fragments on develop at the 2026-09.1 pilot pin; TransitionUsage.ownedFeatureMembership 64 different → equal (ownedMembership/ownedRelationship 63); the new memberships' memberName ours-missing and memberElement different are the unnamed-minted-member family ParameterMembership.memberName already holds. make docs-counts current.
  • Goldens re-recorded; decision_branches.golden.ttl crossed 200 KiB and is a digest now (the golden rule); its full output differs from develop's only by the _transitionlink blocks and the owners' membership lists.
  • Export, tests/export, semantics, queryexec, symbolfacts suites; make lint, go vet, gofmt, changelog check, doc-ids, hygiene, the two-line comment gate: clean. make test-short running; result in a gate comment.

Checklist

  • make test and make lint pass locally (make test-short result follows in a gate comment)
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/<slug>.<section>.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

Link 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

Devin Review

…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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration Bot and others added 4 commits November 14, 2026 13:41
…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>

@devin-ai-integration devin-ai-integration Bot left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Two small requests, neither of them blocking:

  • Could the description carry a tracking-issue line near the top (Fixes #N / Refs #N), or "No tracking issue." if there is none?
  • Which JDK (java -version) produced the derived_census_baseline.json / derived_census_records.tsv re-record on this branch?

#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 develop. We'll then run derived-census -check -require-exporter under JDK 21 on the new head, so a re-record may be needed at that point.

…a referenced element without an address before the transitionLink rule reads it

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Gate (make test-short on the branch, code as at 080dbb0): 137 packages ok; cmd/sysml (265 s), tests/codegen (334 s) and tests/export (183 s) hit the 10-minute default timeout under the parallel run and pass alone with -timeout 30m. The CI export-shard failure on 3bee071 was the new test's third sub-case building a uuid-form graph with no address for a referenced element, which the import refuses before the transitionLink rule reads it (order-dependent locally); the sub-case is dropped at 080dbb0, the import's body/effect guard stays. Lint, vet, gofmt, changelog, doc-ids, hygiene, the two-line comment gate, structure differential, derived census, api-json differential and docs-counts reproduce.

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

#2228 merged; develop is now 99e4dcd. Running git merge-tree --write-tree of this head (080dbb0) against develop gives rc 1, with content conflicts in four generated baselines:

  • 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

When you next update this branch, do one --no-ff merge of develop. Take develop's side of those files, then re-record them by tool under JDK 21, attributing every moved cell to this change. derived-census -check -require-exporter, pilot-apijson-diff -check and the full gate should then pass. #2240 is the last batch entry still in the merge queue; it changes no baseline file.

…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>
@NicolasRouquette
NicolasRouquette added this pull request to the merge queue Nov 14, 2026
Merged via the queue into develop with commit 5202cb2 Nov 14, 2026
30 checks passed
@NicolasRouquette
NicolasRouquette deleted the fix/transition-link-feature-membership branch November 14, 2026 21:51
devin-ai-integration Bot added a commit that referenced this pull request Nov 14, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant