Skip to content

fix(export): a then x; succession states Relationship::source and target beside the sourceFeature and targetFeature it names — the first start source, the named member before it, a plain-named target, the library's done — as a connector and a first a then b; succession do, as the pilot exports them - #2164

Merged
devin-ai-integration[bot] merged 1 commit into
developfrom
fix/then-succession-source-target
Nov 12, 2026

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

What and why

A then x; succession's Turtle stated sourceFeature and targetFeature but not the Relationship::source and target they redefine, while a connector (#2135) and a first a then b; succession state both. The QVTS reflection cross-check against the exported RDF reads the gap as eight SuccessionAsUsage::source/target disagreements on one model: the query leg answers Actions::Action::start, acquire, readout, done, idle, the RDF nothing.

edgeEnds now states source/target beside the redefining property for every end it names by a resolved IRI — the first start source, the named member before a then, a plain-named target, the library's done — under #2135's rule (a chained end keeps the redefining property alone; the readers refuse a chain's last feature named from the connector):

e.graph.Add(subject, e.sysml(end.feature), term)
if term.IsIRI() && !qualifiedNameHasChain(end.end.name) {
    e.graph.Add(subject, e.sysml(end.related), term)
}

and the then done; branch states the library end for both. A source reached by position alone — then idle after a bare entry;, whose anonymous action has no name to resolve — stays sysx:sourceMember only, so seven of the eight cells close; the eighth is named here, not fixed. Readers are unchanged: they choose the then form by sysx:endForm/sysx:sourceMember, and the Turtle reader already resolves every source/target object through referencedElement.

Baselines: eight goldens move (decision_branches and quoted_succession_ends by the added sysml:source/sysml:target lines, six others by digest only); the api-json differential reproduces unchanged — its twelve SuccessionAsUsage carriers are the named succession s first a then b; elements, which already stated both, and the anonymous then successions pair with no pilot element (the matcher gap named on #2143). Census and structure differential reproduce; TestMachineEndpointsLinkAcrossRegionsAndNesting asserted a Turtle line terminator (… warm .) that the added triple moves, and now asserts the link and the new target.

Specification basis

KerML 1.1 § 8.3.4.5.1 Connector: sourceFeature/targetFeature/relatedFeature redefine Relationship::source/target/relatedElement; SysML v2 § 7.17.4 Succession (then as a SuccessionAsUsage sequencing the member before it). No compliance row moves; the export states what the semantic model already derives (#2135).

How it was verified

  • New TestThenSuccessionStatesItsRelationshipEnds (tests/export/connector_related_features_test.go): first start; then action a; then action b; then done; states six Relationship ends matching their redefining features and none without — fails on develop's writer (all six absent).
  • go test ./tests/export/... ./internal/translate/export/... green; TestCorpusRoundTrip and TestCorpusAPIJSONRoundTrip over every corpus green; pilot-apijson-diff -check, derived-census -check, the structure differential and make docs-counts reproduce; make lint, go vet, gofmt -l . clean; the full suite with every corpus require variable set on the pushed head.

Checklist

  • make test and make lint pass locally
  • 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

Devin Review

…arget beside the sourceFeature and targetFeature it names — the `first start` source, the named member before it, a plain-named target, the library's done — as a connector and a `first a then b;` succession do, as the pilot exports them

edgeEnds states source/target for every end it names by a resolved IRI, under the connector rule of the
relationship-ends change (a chained end keeps the redefining property alone); the `then done;` branch states
the library end for both. A source reached by position alone — `then idle` after a bare `entry;` — stays
sysx:sourceMember only. Readers unchanged (they choose the `then` form by sysx:endForm/sysx:sourceMember).
New export test fails on develop's writer; eight goldens move by the added lines or their digest; the api-json
differential (whose SuccessionAsUsage carriers are the named successions, already stating both), census,
structure differential, both corpus round trips and docs-counts reproduce.

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 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

@NicolasRouquette
NicolasRouquette added this pull request to the merge queue Nov 12, 2026
@devin-ai-integration
devin-ai-integration Bot removed this pull request from the merge queue due to a manual request Nov 12, 2026
@devin-ai-integration
devin-ai-integration Bot added this pull request to the merge queue Nov 12, 2026
Merged via the queue into develop with commit 6850102 Nov 12, 2026
31 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/then-succession-source-target branch November 12, 2026 07:21
richetl pushed a commit to richetl/OpenSysML that referenced this pull request Nov 17, 2026
… states it as its sourceFeature and Relationship::source — a bare entry; or an unnamed action before it, a positional target likewise — as the pilot derives them and the native walk answers

A then x; written after a bare entry; or an unnamed action bound that member only through the
conversion's sysx:sourceMember and stated no sourceFeature or source, where a then after a named
member states both (Open-MBEE#2164). edgeEnds now states the member an unnamed end reaches by position as the
end's feature and the relationship's source or target beside the positional binding; the decoder
reads the binding first, so every round trip reproduces. New test fails on develop; five goldens
move by exactly those lines; the structure and api-json differentials do not move.

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