Skip to content

fix(semantics,export): a connector's Relationship::relatedElement, source and target are the features its relatedFeature, sourceFeature and targetFeature redefine them as — the query leg answers them for a connection, a flow and a then succession, and the RDF writer states them for a plain end, as the pilot exports them - #2135

Merged
HuiJun merged 3 commits into
developfrom
fix/succession-source-target
Nov 11, 2026

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

What and why

On the query leg a connector derived none of Relationship::relatedElement, source and target: a ConnectionUsage, a FlowUsage and — since #2121 made every bodiless then x; a SuccessionAsUsage — a succession answered relatedFeature, sourceFeature and targetFeature, and left the three they redefine (KerML 1.1 §8.3.4.5.1) as properties OpenSysML does not derive. A query projecting a succession's source failed with a path error, which the QVTS reflection mirrors over the observatory now hit (Mirror_SuccessionAsUsage unresolved) where before the population was empty.

ReflectiveElements now answers relatedElement, source and target for a Connector-conforming symbol through the same collector as the redefining properties — one table names the redefinition — and is unanswered exactly where those are: a succession whose end names a member no element stands for yet (an entry action, an assign statement).

The RDF writer states the three beside relatedFeature/sourceFeature/targetFeature for an end written as a plain feature name, as the pilot exports them; api-json follows the graph. A chained end (connect a.b.c to …) keeps the three redefining properties alone: both readers (Turtle and api-json) refuse a graph that names a chain's last feature directly from the connector ("no spelling of the segment reads as the element the graph names"), failing the corpus round trip on three files, so the chained rows stay ours-missing in the differential — a reader-side follow-up.

Specification basis

KerML 1.1 §8.3.4.5.1 Connector: relatedFeature redefines Relationship::relatedElement, sourceFeature redefines source, targetFeature redefines target. No compliance row moves.

How it was verified

  • internal/semantic/semantics TestConnectorRelationshipEndsAreItsRelatedFeatures fails on develop (every cell unanswered): observe's three successions and its flow answer relatedElement/source/target as start acquire, acquire readout, readout done, image image; the state's entry; then idle; succession stays unanswered.
  • tests/export TestConnectorRelatedFeaturesAreTheEndsReferencedFeatures extended: the plain connector states the three on the RDF and api-json sides, the chained ones state none of them.
  • Golden Turtle re-recorded (-update): the diff is the trio on plain ends only (source ×10, relatedElement ×12, target ×5).
  • API-JSON differential re-recorded (-update) and its record paragraph added: present-equal 2045864 → 2046101, ours-missing 308343 → 308095, present-different 143898 → 143909 (each moved row lands in the bucket its redefining property already holds), pilot-missing 81606 → 81608 (AHFSequences.sysml message with a plain end, as for relatedFeature).
  • TestCorpusRoundTrip and TestCorpusAPIJSONRoundTrip with the training, pilot and specification-example corpora: unchanged (the narrowing to plain ends is what keeps them so).
  • Derived census, structure differential, stdlib snapshot and make docs-counts reproduce; build/vet/gofmt/lint/changelog/doc-ids green; the full suite with every corpus variable runs 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 fixed all 2 findings · Follow Devin's work

Devin Review

…urce and target are the features its relatedFeature, sourceFeature and targetFeature redefine them as — the query leg answers them for a connection, a flow and a then succession, and the RDF writer states them for a plain end, as the pilot exports them

On the query leg the three were derived for no connector, so a query reading a then succession's source failed as a property OpenSysML does not derive; now they answer through the connector's related features (KerML 8.3.4.5.1), unanswered where a succession's end names a member no element stands for. The RDF writer states the three beside the redefining properties for an end written as a plain feature name; a chained end keeps relatedFeature/sourceFeature/targetFeature alone, since both readers refuse a graph naming a chain's last feature from the connector. Golden Turtle, the api-json differential (present-equal 2045864 → 2046101, every moved row in the bucket its redefining property holds) re-recorded; census, structure differential, snapshot 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 Bot and others added 2 commits November 11, 2026 16:00
… in two comment lines

Co-Authored-By: Nicolas Rouquette <nicolas.f.rouquette@jpl.nasa.gov>
…ce and target beside the sourceFeature and targetFeature that redefine them, as a connector with plain ends does

The initial-node succession writes its ends itself rather than through connectorEnd, so the redefined properties the connector path states were absent from its Turtle and api-json; golden Turtle re-recorded (the pair on the three fixtures that write one), the api-json differential and corpus round trips reproduce unchanged.

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 2 findings. Devin automatically fixed all 2 findings.

Fixed by Devin (2)
  • Plain successions lose relationship ends in exports — The initial-node succession writes its own ends, so first a then b; now states source and target beside sourceFeature and targetFeature for a plain-named end (a chained successor keeps the redefining property alone, as the connector path does); a new export test fails without it, golden Turtle re-recorded, round trips and the api-json differential reproduce.
  • Three-line test comment violates comment limit — The test's comment is two lines.

View findings in Devin Review · Follow Devin's work

Devin Review

@devin-ai-integration devin-ai-integration Bot added the ci:full Run the full CI tier on this pull request, draft or not label Nov 11, 2026
@HuiJun
HuiJun merged commit 2de8ae3 into develop Nov 11, 2026
57 of 107 checks passed
@HuiJun
HuiJun deleted the fix/succession-source-target branch November 11, 2026 19:06
devin-ai-integration Bot added a commit that referenced this pull request Nov 11, 2026
…tial and two golden digests on the develop merge — the bare-subaction growth over #2135's connector-end rows, as the tools record them

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

ci:full Run the full CI tier on this pull request, draft or not

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants