Repository navigation
fix(semantics,export): a then succession reaching its source by position owns its two end features — a bare entry; or an unnamed action before it, with or without a multiplicity — on the native walk and in the RDF conversion, as the notation grammar's TargetSuccession declares them and the pilot exports them - #2278
Merged
NicolasRouquette merged 11 commits intoNov 17, 2026
Merged
NicolasRouquette merged 11 commits into
NicolasRouquette merged 11 commits into
Conversation
…ition owns its two end features — a bare `entry;` or an unnamed action before it, with or without a multiplicity — on the native walk and in the RDF conversion, as the notation grammar's TargetSuccession declares them and the pilot exports them A positional `then x;` whose source carried no multiplicity owned no ends on either leg, so Type::endFeature, Connector::relatedFeature and SuccessionAsUsage::ownedRelationship answered one way for `first a then b;` and another for `then b;`. SuccessionMintsEnds and the writer now mint the two EndFeatureMemberships for every `then` succession however its source is reached. The state-machine compliance row for a state body's succession ends moves to Faithful; four Turtle goldens, the structure differential, the derived census and the api-json differential are re-recorded and adjudicated (no pilot column moves; the rows that grow are pre-existing families on the new carriers). Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…urce end comes from 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)".
|
… the owned ends; relatedFeature derivation stays on its own approximate row Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
Contributor
Author
|
Gate results on this head (0c77f02; the last two commits are comment/docs-only, the code is that of the opened head):
|
…tional succession owns no ends Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
NicolasRouquette
approved these changes
Nov 15, 2026
6 tasks done
Brings in #2259 (positional then source in the RDF conversion); the four Turtle golden digests both sides moved are re-recorded by tool (go test ./tests/export -update); census, structure and api-json differentials reproduce. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
NicolasRouquette
added this pull request to the merge queue
Nov 16, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 16, 2026
Generated paths in conflict took develop's side; re-recorded by the ci:rebaseline workflow.
- `internal/semantic/metamodel/derived_census_records.tsv`: 854 record(s) moved; 854 moved by both sides (the merge's verdict, adjudicate) - ours.carriers: 5681228 → 5707923 (+26695) - ours.empty: 3431759 → 3447662 (+15903) - ours.notDerived: 164530 → 165126 (+596) - ours.value: 2084939 → 2095135 (+10196) - `internal/translate/export/testdata/structure_differential_expected.txt`: 401 record(s) moved; 247 moved by this branch; 154 moved by both sides (the merge's verdict, adjudicate) - examples matched: 36647 → 36792 (+145) - examples unmatched: 11560 → 11570 (+10) - examples/pilot-corpora matched: 51298 → 51488 (+190) - examples/pilot-corpora unmatched: 10041 → 10061 (+20) - examples/spec-examples matched: 8354 → 8409 (+55) - examples/spec-examples unmatched: 3257 → 3262 (+5) - examples/sysml-v2-training matched: 9271 → 9316 (+45) - examples/sysml-v2-training unmatched: 1965 → 1975 (+10) - tests/testdata matched: 1559 → 1584 (+25)
Contributor
|
ci:rebaseline merged
|
Contributor
|
ci:rebaseline stopped without pushing (run, failure). Movement seen so far: (no movement summary was produced; see the run log) |
…sitional-then-succession-ends-native Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…mbership-native The structure differential and four Turtle golden digests (endpoint_scopes, imported_references, irregular_layout, state_machine) are the baselines the merge moves; the derived census (-check -recorded-pilot), the api-json differential, the corpus ratchets and the parser goldens reproduce as merged. rebaseline-movement.py: 398 structure-differential records moved, every one moved by both sides (#2268's FeatureMembership-owned declared ends and #2266's flow ends under the same roots as this branch's positional succession ends), nothing unexplained. Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…sitional-then-succession-ends-native Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
devin-ai-integration
Bot
changed the base branch from
develop
to
fix/declared-end-feature-membership-native
November 17, 2026 00:02
NicolasRouquette
approved these changes
Nov 17, 2026
NicolasRouquette
merged commit Nov 17, 2026
c0d7366
into
fix/declared-end-feature-membership-native
30 of 31 checks passed
NicolasRouquette
deleted the
fix/positional-then-succession-ends-native
branch
November 17, 2026 00:19
6 tasks done
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 17, 2026
…merging fix/positional-then-succession-ends-native B13-013, B13-014 and B13-015 (endCount B13::NodeEnds, 0 -> 2) go fail -> pass on the opensysml-go-props and opensysml-py-props arms: the two unnamed `then` successions of NodeEnds reach their source by position (`first a1; then accept Sig; then action a3;`) and own their two end features since #2278. The opensysml-go and opensysml-py arms still fail them, not listing an unnamed SuccessionAsUsage, which this change does not touch. Recorded with `go run -C tools ./cmd/hideo-suite -update`; `-check` reproduces. 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
A⚠️ → ✅ (its parenthetical also dropped the clauses about a transition's succession and a state body's
then x;succession whose source is reached by position and carries no multiplicity —entry; then idle;in a state body, an unnamed action followed bythen a2;— owned no end features on the native walk:SuccessionMintsEndsminted the two ends only for a named source or a positional one with a multiplicity, and the RDF writer followed the same rule, soType::endFeature,Connector::relatedFeatureandSuccessionAsUsage::ownedRelationshipanswered one way forfirst a then b;and another forthen b;. Both legs now mint the two ends for everythensuccession however its source is reached, and the state-machine compliance row for a state body's succession ends movesthen x;source, closed earlier).Specification basis
SysML.xtext(pinned):TargetSuccession returns SysML::SuccessionAsUsage : ownedRelationship += MultiplicitySourceEndMember 'then' ownedRelationship += ConnectorEndMember— a positionalthensuccession owns a source end and a target end, each anEndFeatureMembership(MultiplicitySourceEndMemberandConnectorEndMemberboth return one); the source end's multiplicity is optional, so a barethen x;owns the same two ends asthen [1] x;.Connector::connectorEndare itsendFeatures): the ends are the succession's owned end features whether the source is named or positional.EndFeatureMemberships for everyTargetSuccession(probed onstate def S { entry; then idle; state idle; }); it corroborates the grammar, it is not the basis.docs/project/spec-compliance/02-detailed-semantic-compliance-map/15-state-machine.md"A state body's successions own their two end features…"How it was verified
semantics/state_then_transition_test.goandthen_succession_member_test.gonow expectEndFeatureMembership:ReferenceUsage ×2forentry; then idle;and for the positional and chained forms (fail on develop).endpoint_scopes,imported_references,irregular_layout,state_machinere-recorded: the diff is the two end usages (_pend0/_pend1), their memberships and the target end's reference subsetting on each positional succession, nothing else.StructuredControlTest.sysml,ServerSequenceRealization-3.sysml), checked one by one on fixtures where both legs agree.Feature::isVariable,Usage::mayTimeVary,Membership::memberElementId,OwningMembership::ownedMemberElementId,Type::endFeature,Feature::type,Usage::definition) are the census's existing family for succession-endReferenceUsages: a probe file withthen [1] a2;andfirst a then b;forms grows the same rows by the same shape on develop, so the positional ends only add carriers to a gap that predates them — tracked as a follow-up, not changed here.unkeyableElements.oursgrows by 520 across 43 files — the minted endReferenceUsages,EndFeatureMemberships andReferenceSubsettings of positional successions, which are unkeyable on both sides already (an unnamed member is keyed from its owner), so they are counted and left out of matching as the pilot's own ends are; recorded indocs/project/api-json-differential.md.-checkreproduces.gofmt -l .,go vet ./...,go build ./...,go test ./internal/semantic/semantics ./internal/translate/export,go test ./tests/export,go test ./tests/corpus -run 'TestExamplesSweep|TestCorpusRoundTrip',make lint,make changelog-check,tests/hygiene,scripts/check-doc-ids.py,make docs-counts,derived-census -check,pilot-apijson-diff -checkall green.Merged develop
81402f1af2merges develop (with #2259, the RDF conversion's positionalthensource) by--no-ff. The four Turtle golden digests both sides moved (endpoint_scopes,imported_references,irregular_layout,state_machine) are re-recorded by tool (go test ./tests/export -update); the derived census, the structure differential and the api-json differential reproduce unchanged under the merged code, so no baseline line moves that one side did not move alone.Stack
This PR sits above #2268 (
fix/declared-end-feature-membership-native), which sits above #2266 (fix/flow-end-native-memberships), per the semantics-stack arrangement.7c08ffc807isgit merge --no-ffof #2268's head26d8db8ca4(#2266's93403f5313and developacb1944b7bthrough it);16302627ebre-records the baselines that merge moved — the structure differential and four Turtle golden digests (endpoint_scopes,imported_references,irregular_layout,state_machine), all by tool;rebaseline-movement.py: 398 structure-differential records moved, every one moved by both sides (#2268's FeatureMembership-owned declared ends and #2266's flow ends under the same roots as this branch's positional succession ends), nothing unexplained.0fb47d00deisgit merge --no-ffof #2268's current head6b694f8ad0(#2266's362df35f82with develop's #2279, #2322, #2307); two textual conflicts — the structure differential, merged cell by cell by the baseline driver, and this file's and #2279's re-record notes indocs/project/api-json-differential.md, both kept — and every recorder (census, api-json differential, structure differential, Turtle goldens, corpus ratchets, parser goldens) reproduces the merged tree unchanged, so no re-record commit follows it. No rebase, no force-push. Full gate green on0fb47d00de.Checklist
make testandmake lintpass locally (make test-shortresult in a gate comment)changes/unreleased/positional-then-succession-ends.fixed.mdmake docs-countsrun if a gate count movedLink 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