Repository navigation
fix(query,export): the succession a transition owns reads the elementId the conversion writes for it on the query leg — <transition id>_succession, its owning membership <transition id>_succession_om — where it read the transition's own id, two elements under one identity - #2216
Merged
Merged
Conversation
…Id the conversion writes for it on the query leg — `<transition id>_succession`, its owning membership `<transition id>_succession_om` — where it read the transition's own id, two elements under one identity The query leg had no route for an ExpressionTransitionSuccession part: ElementIDOf fell to the transition's own declaration and answered its id, and `<id>_om` for the succession's OwningMembership, where the RDF writer mints `<id>_succession` and `<id>_succession_om` (transitionSuccession). The conversion now files the succession under the transition's node at the slot "succession" beside the `then` succession's ends, and the query leg reads that part; a `transition`, a state body's `then x;` written as a transition and a guarded target follow the same rule. 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)".
|
… recordSuccessionEnds' — two lines each 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)
- Four-line comment exceeds repository limit — Real: the new two-line comment followed recordSuccessionEnds' two-line comment with no blank line, so the gate read one four-line block (lines 203-206). A blank line now separates them; the comment gate prints nothing.
Contributor
Author
|
Local gate on 2ffc9d3 (e98ffb8 only adds a blank line between two comments):
|
…ion succession recorder sits above both, where the earlier blank line had left the comment orphaned Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
6 tasks done
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 14, 2026
… elements — `<transition>_succession`, `_linkparam` and `_triggerparam` decode to the transition they are minted off, so a metaobject naming one crosses back over gRPC The element form's Owner decoder read expression ids and encoded names only, so an id the conversion mints with a suffix of its own — the transition's succession since #2216, its link parameters here — named no element on the way back (ErrMetaobjectUnbound). SynthesizedElementOwner decodes those suffixes off the owner's encoded name, and Owner reads it as one element below that owner; the identity round-trip test covers the three and refuses the suffix on a state that owns no succession. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
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
The succession a transition owns for its
thenclause (synthesized since #2133) read the transition's ownelementIdon the query leg — two elements under one identity — and<transition id>_omfor itsOwningMembership, where the RDF writer mints<transition id>_successionand<transition id>_succession_om(transitionSuccession,synthesized_ids.go). The query leg had no route for anExpressionTransitionSuccessionpart:queryexec.ElementIDOffell to the transition's own declaration.internal/translate/export/element_ids.go:recordTransitionSuccessionfiles the succession under the transition's node at the slotsuccession(beside thethensuccession's ends), with the ids the conversion writes — for atransition, a state body'sthen x;written as a transition (encodeTargetTransition) and a guarded target (encodeGuardedTarget).internal/doc/queryexec/elementids.go:expressionPartSlotreads that part for anExpressionTransitionSuccession.No triple changes: the writer already stated these ids.
Specification basis
SysML v2.1 §8.3.18.9 TransitionUsage (
succession: the SuccessionAsUsage the transition owns). No compliance row moves; this aligns the query leg's identity of an element with the conversion's.How it was verified
TestTransitionSuccessionReadsTheConversionIDs(internal/doc/queryexec) fails on develop (Observatory__S__gofor the succession'selementId;Observatory__S__go_omamong the owned relationships) and passes here (Observatory__S__go_succession,Observatory__S__go_succession_om).examples/observatory.sysml: everySuccessionAsUsagethe state machine's transitions own answers…_idle_to_slewing_successionetc. on the query leg.internal/doc/queryexec,internal/translate/export,internal/semantic/semanticspass;go run -C tools ./cmd/pilot-apijson-diff -check,go run -C tools ./cmd/derived-census -check,TestExamplesSweepandTestStructureDifferentialwith the three corpora required,make docs-countsreproduce;go test -C tools ./referee/apijson,tests/hygiene,make lint,go vet ./...,gofmt -l .,make changelog-check,scripts/check-doc-ids.pyclean.Checklist
make testandmake lintpass locally (focused packages and gates above;make test-shortresult in a comment)changes/unreleased/transition-succession-reflective-ids.fixed.mdmake docs-countsrun if a gate count moved (none moved)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