Skip to content

fix(export): the RDF writer states a connector's Relationship::relatedElement, source and target for a chained end too — the chain Feature its end's ReferenceSubsetting references, the element relatedFeature, sourceFeature and targetFeature already name, as the pilot exports it - #2190

Merged
devin-ai-integration[bot] merged 9 commits into
developfrom
fix/chained-end-rdf-relationship-ends
Nov 13, 2026

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

What and why

A connector's end written as a feature chain (connect a.inner.p to b.p, an interface or allocation the same) states only relatedFeature, sourceFeature and targetFeature in the RDF the writer produces; Relationship::relatedElement, source and target were stated for a plain-named end alone — the rule #2135 introduced. The pilot exports all six for a chained end, naming the chain Feature its end's ReferenceSubsetting references, and since #2172 the query leg answers the same, so the QVTS cross (opticalPath, dataPath, observeToCluster.target, the flow) and the api-json differential (ConnectionUsage.source ours-missing while sourceFeature is equal) both read the gap.

Specification basis

KerML 1.0 8.3.4.5.3 (Connector::relatedFeature is the feature a ConnectorEnd's ReferenceSubsetting references), 8.3.4.5.1 (relatedElement, source, target redefined by relatedFeature, sourceFeature, targetFeature), 8.3.4.4.2 (Association's by relatedType, sourceType, targetType). No compliance row moves.

How it was verified

  • TestConnectorRelatedFeaturesAreTheEndsReferencedFeatures flips from "want none for a chained end" to the chain Feature for the three on chained and chainedIf; fails on develop, passes here.
  • Goldens re-recorded: the chained connectors gain the three lines (connector_ends, feature_chains, feature_chains_repeated, feature_chains_unresolved, and the two digests).
  • api-json differential re-recorded on the merged tree: 104 rows move vs develop, every one in lockstep — each relatedElement/source/target row takes exactly the verdict its relatedFeature/sourceFeature/targetFeature row already had (ConnectionUsage, InterfaceUsage, AllocationUsage, Connector, BindingConnector(AsUsage), SuccessionAsUsage). The four BindingConnector rows now present-different mirror the existing sourceFeature/relatedFeature verdict there (the anonymous chain Feature of binding edgeBinding [1] of [0..*] base.edges = … is paired with the pilot's other one), not a new disagreement.
  • Structure differential and derived census reproduce unchanged; TestCorpusRoundTrip with both require variables set reproduces; make docs-counts reproduces.
  • tests/export, internal/translate/export, tests/corpus pass; go vet, gofmt -l, make changelog-check clean; make test-short and make lint results in a comment.

Left for later, one PR each: a repeated object value (connect (a, b, b)) collapsing to one triple (mapping-level); a recorded end keeping its redefined general's type; the 3-ended connector typed by a 2-end definition.

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 · Follow Devin's work

Devin Review

devin-ai-integration Bot and others added 4 commits November 13, 2026 02:34
…dElement, source and target for a chained end too — the chain Feature its end's ReferenceSubsetting references, as relatedFeature, sourceFeature and targetFeature name it and the pilot exports it

A chained end's three were omitted since the plain-end rule; the pilot states the chain Feature for all six. The decoder treats the three as the connector's derived end statements like the Feature ones, so the end path alone spells the chain, and the verbatim check tolerates a Connector's or Association's omitted ends on a graph written before they were stated. Goldens and the api-json differential re-recorded: every moved relatedElement, source and target row now carries the verdict its relatedFeature, sourceFeature or targetFeature row already had.

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…f-relationship-ends

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

# Conflicts:
#	docs/project/api-json-differential/examples/disposal-robot-demo/robot.sysml.json
#	docs/project/api-json-differential/examples/mosa-demo/mosa-demo.sysml.json
#	docs/project/api-json-differential/examples/parser_features_demo_connectors.sysml.json
#	docs/project/api-json-differential/examples/self-model/pipeline.sysml.json
#	docs/project/api-json-differential/examples/views-demo.sysml.json
#	docs/project/api-json-differential/index.json
#	docs/project/api-json-differential/pilot-examples/Simple Tests/InterfaceTest.sysml.json
#	docs/project/api-json-differential/pilot-examples/Vehicle Example/Annex_A_VehicleViews.sysml.json
#	docs/project/api-json-differential/pilot-examples/Vehicle Example/SysML v2 Spec Annex A SimpleVehicleModel.sysml.json
… the chained-end relatedElement, source and target rows beside #2180's association rows

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
… ends it covers; comments to two lines

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

Copy link
Copy Markdown
Contributor Author

Full gate on f1a6a5e (develop at #2180 merged): make test-short 134 packages ok; cmd/sysml (519s), internal/exec/runtime (243s), internal/exec/smt (392s), tests/codegen (530s), tests/export (464s) and tests/corpus (260s, with OPENSYSML_REQUIRE_TRAINING_CORPUS, OPENSYSML_REQUIRE_PILOT_CORPORA, OPENSYSML_REQUIRE_SPEC_EXAMPLES set) pass re-run alone after hitting Go's 10-minute package default under whole-suite load; make lint, go vet, gofmt -l, make changelog-check, make docs-counts, derived-census -check, pilot-apijson-diff -check clean.

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 found 1 finding. Devin automatically fixed it.

Fixed by Devin (1)
  • Three-line comment violates repository limit — The connectorRelatedFeature comment is back to two lines.

View findings in Devin Review · Follow Devin's work

Devin Review

devin-ai-integration Bot and others added 4 commits November 13, 2026 04:59
…ationship-end movements in the api-json differential record

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…f-relationship-ends

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

# Conflicts:
#	docs/project/api-json-differential/index.json
…ree (pilot-apijson-diff -reindex)

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
@HuiJun
HuiJun enabled auto-merge November 13, 2026 17:10
@HuiJun
HuiJun added this pull request to the merge queue Nov 13, 2026
@devin-ai-integration
devin-ai-integration Bot removed this pull request from the merge queue due to a manual request Nov 13, 2026
@devin-ai-integration
devin-ai-integration Bot added this pull request to the merge queue Nov 13, 2026
Merged via the queue into develop with commit 66a75c0 Nov 13, 2026
30 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the fix/chained-end-rdf-relationship-ends branch November 13, 2026 18:24
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