Skip to content

feat(grpc): GetElementProperties reads the symbol-backed metamodel structure - #2042

Merged
HuiJun merged 248 commits into
developfrom
feat/element-properties-symbol-structure
Nov 21, 2026
Merged

HuiJun merged 248 commits into
developfrom
feat/element-properties-symbol-structure

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

Stacked on #2048, merge it first.

Fixes #2199. Refs #2012 (the follow-up items 1–4, 6a, 7 and 8 of its closing comment), #2028 (item 3: parameter / result) and #2029 (the per-document read lands in #2052 on top of this PR).

Summary

GetElementProperties now reads the symbol-backed metamodel.SymbolStructure (the structure PR #2014 introduced, until now without a production caller) through the same metamodel.Evaluator the metamodel tests use, instead of the api-json element form (export.ModelElementForm, one whole-model RDF graph). Convert and the api-json export keep their path untouched; library elements keep answering through export.LibraryElementForm.

What the RPC reads

  • CachedModel.elementReader() (internal/frontend/grpc/cache.go) builds, once per model, resolve.New(index) → semantics.NewModel → metamodel.NewSymbolStructure → metamodel.New(resolver, model, Options{Structure: symbolic}).
  • GetElementProperties (internal/frontend/grpc/element_properties.go) resolves the element id to a symbol, reads each declared property through Evaluator.PropertyReadOnly, falls back to the structure's stated value for non-derived properties, and reports Evaluator.Explain as the unsupported text. Every element is addressed by the id the api-json form (Convert) writes for it, named or anonymous (P::V::c1_pend0 for the first end of connect, X_om for an owning membership), through export.SymbolIDs; the ids the answers carry read back through the RPC.
  • A model the parser could not read whole is still refused as a whole (the existing test); per-document degradation is the follow-up PR.

Structure and evaluator changes (symbol side gaps closed)

  • SymbolStructure resolves handles the evaluator makes from a model symbol (ElementOf(sym)) to that symbol's row, so connector ends and other elements the evaluator names directly read their properties; library symbols stay the semantic model's to answer, and their attributes are read from the model.

  • Implied role redefinitions: a subject, objective, actor, stakeholder or render member redefines the same role of each general without a written clause (SymbolStructure.ImpliedRedefinedFeatures, reached through the optional ImpliedRedefinitionStructure interface from structureRedefinitionTargets). The redefinition walk defers a library feature (one the structure names but whose relationships it does not serve) to Model.AllRedefinedFeatures.

  • Feature::isEnd is answered from the semantic model for a library feature the structure only names, so Type::endFeature/Connector::connectorEnd derive for connectors whose inherited ends come from the library; a multiplicity is never an end.

  • A flow's from/to ends, the payload an of clause implies and a message's event ends are symbols the builder registers (buildConnectorEnds, buildImpliedPayload): a flow end is a FlowEnd that reference-subsets the prefix of its name and owns the flow feature redefining its last segment (SysML.xtext FlowEnd/FlowFeature, as the RDF writer already wrote them); a message's ends are EventOccurrenceUsage parameters, so its connectorEnd stays the inherited source/target (SysML.xtext MessageEventMember). ElementIDs records the ends like bound connector ends so the differential harness spells them by the graph's ids.

  • Resolver: a feature subsetting a chain through itself (ref presidentOfCountry : Person :> presidentOfCountry.asPresident, the pilot's JohnIndividualExample) looked the chain's member up in its own generals and resolved the same subsetting again without end; whether that met a memoized answer first depended on resolution order, so resolving the pilot corpora whole (as GetElementProperties now does before it reads) overflowed the stack on some runs. findGeneralizationTargets reads such a chain through the feature's other generals (KerML 8.3.3.1.10: no type specializes itself); regression test in internal/semantic/resolve.

Differential (TestSymbolStructureMatchesGraphStructure)

Re-recorded in internal/translate/export/testdata/structure_differential_expected.txt. Examples root (56 models), moved rows and their adjudication:

Row Before → after Adjudication
Connector::connectorEnd equal 370, extra 12 → equal 382, different 0, missing 0 Both sides now derive ends for connectors with library-inherited ends (the 12 symbol-only answers are now shared). The 53 flows answer their own from/to ends on both sides now that the builder registers them.
Type::endFeature missing 69, extra 110 → different 2, missing 90, extra 291 181 more elements answered by the symbol side only (library-inherited ends, Feature::isEnd from the model). The added missing rows are usages the graph can now derive (see Namespace::member). The 2 different rows are end feature x references y: the symbol side lists the cross feature as an end (known gap, below).
Definition::usage, Behavior::step, Function::expression, Definition::directedUsage, Usage::usage, Usage::directedUsage, Type::feature, Type::inheritedFeature, Type::featureMembership, Type::inheritedMembership, Namespace::member, Namespace::membership different rows rise (e.g. Definition::usage 27 → 114, Behavior::step 25 → 52) Symbol side is the correct answer: a subject/objective/actor/stakeholder/render member redefines the same role of its generals (SysML v2 §8.3.21.11 SubjectMembership, §8.3.22.4 ObjectiveMembership, checkRequirementUsageObjectiveRedefinition; §8.3.21.2 ActorMembership; §8.3.26 RenderingUsage; KerML §8.3.3.3.4 checkFeatureParameterRedefinition), and a redefined feature is not inherited (KerML §8.3.3.1.10 removeRedefinedFeatures, §7.3.4.5). The graph still lists Requirements::RequirementCheck::subj, Cases::Case::obj, Views::View::viewRendering and the like as inherited members next to the role that redefines them.
Type::directedFeature, Type::input different 211 → 262 Same cause from the other side: the symbol side includes the inherited in subject (RequirementCheck::subj) of a definition that declares no subject of its own; the graph carries no direction for library features.
Namespace::member etc. missing 81 → 88 The 7 rows are usages typed by a definition with first start; then … successions; the graph now derives their members (the redefinition walk no longer fails on library targets) while the symbol side has reported them unresolved before and after. Pre-existing symbol gap, now visible.
Relationship::target, Relationship::relatedElement different 51 / 101, unchanged Harness spelling: a membership of a library element is spelled membership of lib <name> on both sides; an anonymous library membership (the target of a MembershipImport) has no name to spell, so it stays spelled by graph id as before. No row moves.

Spec-examples root (examples/spec-examples, 473 models, 38 skipped), moved rows and their adjudication:

Row Before → after Adjudication
Namespace::member, Namespace::membership, Type::feature, Type::featureMembership, Type::inheritedFeature, Type::inheritedMembership, Behavior::step, Definition::usage, Definition::directedUsage, Usage::directedUsage, Function::expression different +9 to +14 each (e.g. Behavior::step 16 → 25, Definition::usage 33 → 45) Implied role redefinitions, as on the examples root: a state's entry/do/exit action redefines States::StateAction::entryAction/doAction/exitAction (SysML §8.3.16.3 checkActionUsageStateActionRedefinition), a case's subject/objective and a requirement's subject redefine the library role (SysML §8.3.21, §8.3.22), so the symbol side omits the redefined library feature from the inherited members (KerML §8.3.3.1.10 removeRedefinedFeatures) where the graph still lists it (7.18.2, 7.21.2, 7.22.2–7.25.2). Symbol side correct.
Type::directedFeature, Type::input different 51 → 63, 56 → 68 Same cause from the other side: the symbol side lists the inherited in subject (RequirementCheck::subj) of a requirement definition that does not declare one. Symbol side correct.
Connector::connectorEnd extra 18 → equal, no row The 19 are flow usages (flow a.x to b.y, 7.4.10.3, 7.16.2, 7.17.x, 7.25.2): both sides answer the flow's own ends now that they are symbols.
Type::endFeature missing 47, extra 130 → different 2, missing 24, extra 27 Missing: 12 features whose declared end or redefinition chain names an element the fragment never declares (cousins redefines parents.siblings.children, 7.3.4.6/7.6.6; connector ends typed by unresolved chains, 7.4.7.2, 7.14.2, 8.4.11.2, 8.4.15.x, 8.4.17.3) are unsupported on the symbol side where the graph answers an empty list; the 36 rows develop had missing (accept/send/perform/terminate action usages, feature reference expressions) now answer. Different: end [1] feature owner; (7.4.5.2/8, 7.13.2/12) — the symbol side lists the end's anonymous multiplicity-carrying member as an end feature (isEnd true), the graph does not. Symbol-side gap, 2 rows, left visible.
Relationship::target, Relationship::relatedElement unchanged (21 / 40) 74 MembershipImport targets (private import Base::Anything; completions) are anonymous library memberships; spelled by graph id on both sides (see the examples-root row).

Known remaining symbol-side gaps left in the ratchet: flow ends (above); end feature x references y lists the cross feature as an end because the semantic model flags CrossFeatureMember as an end (graph: none); feature-typed library generals (Base::dataValues, Occurrence::suboccurrences) are not expanded for inherited members.

After merging develop at 4456378 (#2037: Behavior::parameter is no longer a differential row, Step::parameter derives as directedFeature), the file was re-recorded from scratch with -update-structure-differential: the only rows that moved against the previous recording are the ones #2037 moved on develop itself, with the same counts (Step::parameter examples root 3,125 equal / 145 different); no row of this PR's adjudication changed. The first re-recording after that merge ran without examples/spec-examples present and so kept develop's rows for that root unchanged; the file was then re-recorded again with all five roots present and the require variables CI sets (OPENSYSML_REQUIRE_SPEC_EXAMPLES, _TRAINING_CORPUS, _PILOT_CORPORA), which is the recording this head carries; the spec-examples rows it moved are adjudicated above.

Tests

  • gRPC: existing TestElementProperties* pass; value of a bound feature is read from its FeatureValue (FeatureValue::value, where the metamodel declares it) and the connector-end test addresses the unnamed connector by position. The Python client test follows the same FeatureValue traversal.
  • tests/grpc conformance cases unchanged and passing.
  • TestElementPropertiesAgreeWithTheAPIJSONExport is green: see "Agreement test and its ratchet" below (the former per-row adjudicated file is retired; its ten rows are the RequirementUsage::input class there).

Reporter-visible changes (model of issue #2012's follow-up comment, through the Python client)

Gains against develop: chained connector ends answer relatedFeature, sourceFeature and targetFeature (P::V::c1); P::Link endFeature lists a and b; instantiatedType of new Sig(); isReference derives (P::V::r true, P::V::comp false); Function::result (P::Calc::r).

Ids that change spelling: none against the api-json form — an anonymous connector end answers as P::V::c1_pend0/P::V::c1_pend1, the id Convert writes for it, where develop's RPC wrote P::V::c1::a and P::V::c1::b; every id an answer carries reads back through the RPC.

Library memberships: all 113 entries of P::a inheritedMembership carry an id (103 FeatureMembership, 10 OwningMembership) that reads back, the owning-membership id the library document's own form writes (identity.Catalog, identity.AnonymousMemberOf for unnamed members), so the symbol path and the graph path spell one membership one way.

Flow and message ends: a flow's from/to ends and of payload, and a message's event ends, are now symbols the builder registers (buildConnectorEnds, buildImpliedPayload), so P::V::f1 connectorEnd/flowEnd answer two FlowEnds, relatedFeature/sourceFeature/targetFeature the occurrences the ends attach to (tank, engine), P::V::msg ownedFeature its PayloadFeature and two EventOccurrenceUsage ends, and P::V::msg connectorEnd the inherited source/target (a message's ends are parameters, SysML.xtext MessageEventMember). A flow end reference-subsets the prefix of its name and owns a flow feature redefining the last segment (SysML.xtext FlowEnd, FlowFeature), which is what the RDF writer writes; this also removes the disjoint-feature-types false positives a whole-chain reference would raise on the pilot corpora.

Differential re-record after the flow-end symbols

Matched rows rise on every root (examples 28,930 → 29,659; tests/testdata 1,462 → 1,474; sysml-v2-training 7,175 → 7,537; pilot-corpora 43,996 → 45,208). Connector::connectorEnd symbol-missing rows close (examples 53 → 0, training 30 → 0, pilot 94 → 0). Rows left different, adjudicated: Type::ownedFeature/ownedMember/ownedRelationship list the payload before the ends on the symbol side (SysML.xtext FlowDeclaration writes of before from/to; the graph appends the payload after the ends), symbol side correct; Feature::ownedReferenceSubsetting of a flow end whose prefix is a chain (a.p.o) is a ReferenceSubsetting of the chain on the symbol side where the graph mints a chain Feature, a spelling gap; Element::name of an implied payload is payload on the graph side and null on the symbol side (the payload's implied redefinition of Transfer::payload is not modeled), a symbol-side gap left visible.

Agreement test and its ratchet

TestElementPropertiesAgreeWithTheAPIJSONExport (PR #2050) is green on this branch. One id generator serves both surfaces: export.SymbolIDs spells every symbol by the id Convert writes (identity for named elements, the form's anonymous rules for _om, _p<role><n>, _ft/_rd/_ss/_rs, _ns) and resolves such an id back; SymbolStructure.SetIdentities reads it and GetElementProperties resolves and answers the form's ids, as the structure differential matches through the same mapping. Unresolved ids over the 56 committed examples fell 46,438 → 2,806 at the first ratchet and → 106 now (see the gap-closing steps below).

The test compares only metamodel properties (ontology.Properties on the export's metaclass; the export's reader keys redefines, specializes, subsets, references are no properties) and asserts every property the structure answers is a metamodel property of the answered metaclass. Disagreements are counted per class (Metaclass::property, kind) and ratcheted in tests/grpc/testdata/element_properties_agreement/: clauses.txt holds each adjudication once (key, the side that is correct, the KerML/SysML clause), <kind>.txt the counted classes with their clause key. A class not recorded, a count above the recorded one, a stale row or a row without a clause fails; -update-agreement-ratchet re-records counts keeping the keys. 1,782 classes (from 2,047 at the first ratchet):

kind classes symbol-correct disagreements classes export-correct disagreements
unresolved-id 1 4 20 102
metaclass 18 977 6 77
value 542 11,047 198 2,162
exported-not-answered 48 1,823 16 34
answered-not-exported 987 47,901 0 0
total 1,596 61,752 240 2,375

Symbol-correct classes are the structure deriving where the export has no rule or writes empty (implied library typing, inherited and implied memberships, stated properties of elements the export writes as id and type only, isConstant false) and the exporter-side kinds below. Export-correct classes (274, from 358) are the structure gaps still open on the symbol side, by cause: isComposite/isVariable/mayTimeVary of anonymous succession, flow and binding ends (13 classes, 1,688); owningNamespace of an expression wrapper or filter condition (14, 729); Feature::type through a conjugated or chained endpoint (10, 587) and the conjugated-port typing's target/relatedElement/general (19, 256); properties the structure answers with a different value (54, 412) or none/unsupported/positional (48, 310 — among them Connector::relatedFeature of a flow whose other end does not resolve, spec 7.17.10 example 3); a send payload's InstantiationExpression::argument (3, 325); visibility of implied memberships (8, 225); a metadata usage's literal value, itemDefinition and metadataDefinition (3, 666); sourceFeature/targetFeature of a transition succession the structure does not resolve (6, 353); _ss0 spelling of a written specialization (9, 54); the remaining unresolved ids (_om of elements without a symbol 24, _prs 24, a feature value's referent membership 13, filter-condition parameter/typing/result 12, send-body feature values 4, the rest annotations and single elements); and the metaclass kinds the structure does not yet state (PerformActionUsage 47, ExhibitStateUsage 18, conjugated-type Specialization 17, IncludeUseCaseUsage 11, ::> ReferenceSubsetting 10, LibraryPackage 2, Subclassification 1).

Gap-closing steps (one commit each, add-only, ratchet and differential re-recorded by tool)

A namespace owns its #M prefix metadata (SysML.xtext PrefixMetadataMember); a relationship's chain target is a chain Feature whether or not its segments resolve, owning one FeatureChaining per written segment (KerML 8.3.3.3.9); an expression owns its referent, function or target-feature Membership even when the name does not resolve; a filtered import or expose imports the unnamed Package it owns (KerML 8.2.5.4, SysML.xtext FilterPackage); a type argument's parameter owns its FeatureTyping; connector ends, cross features and named multiplicity declarations own their ranges and bounds; a state's entry/do/exit members are StateSubactionMemberships; a transition's when condition, a bodiless first a then b; succession with its ends, an accept action's via receiver, a conjugated port definition's PortConjugation, an expression's referent Membership, a guarded succession's parts, a loop … until condition, a transition's dotted first a.b source chain and a body's parameters ({ in a; in b; … }) spell the ids the form writes. An action node written as its statement (action a if …, action a for x in xs { … }) owns the statement's members, and a for loop's variable is a ReferenceUsage (SysML 8.3.16.7). A structure fault found on the way is fixed: rows were filed by declaration node, so a body's parameters after the first answered as the first.

Develop merges

origin/develop merged with --no-ff at ea6d78e, 6631fea, 0395d7c and 227e88e (make stdlib-snapshot first each time; ratchet and differential re-recorded by tool after). After 227e88e (#2051, connector related features by end position), TestReflectiveConnectorRelatedFeaturesCoverEndForms expected flow byFlow of Integer from a.x to b.y; to relate A::x and A::y; the merged tree answers Host::a and Host::b, and that expectation is changed in its own commit (155c270): KerML Beta 2 deriveConnectorRelatedFeature derives relatedFeature = connectorEnd.ownedReferenceSubsetting->select(s | s <> null).subsettedFeature, a FlowEnd's one ownedFeature redefines the flow feature of the related element (KerML 8.3.4.9.3; 8.4.4.10 "two FlowEnds, one referencing f1 with an owned Feature redefining f1_out"), and the pilot 0.63.0 exporter writes for this fixture relatedFeature [P::Host::a, P::Host::b], sourceFeature a, targetFeature [b], sourceOutputFeature byFlow::source::x, targetInputFeature byFlow::target::y. byMessage's expectation ([A::x, A::y]) is left as #2051 wrote it; the pilot answers [] for a message, a follow-up for #2051's owner, not widened here.

Exporter-side kinds (follow-ups, not fixed here)

Recorded symbol-correct under metaclass:

  • AttributeUsage::@type (333), ReferenceUsage::@type (174), Class::@type (55), ClassUsage::@type (37), StructureUsage::@type (31), BehaviorUsage::@type (24), BindingConnectorAsUsage::@type (16), AssociationUsage::@type (12), MetadataUsage::@type (10), SuccessionAsUsage::@type (9), FlowUsage::@type (6), PredicateUsage::@type (5), BooleanUsage::@type (4), InteractionUsage::@type (1): a KerML declaration (in t1 : Transfer, class, struct, behavior, assoc, binding, succession, flow, predicate, interaction) is of its KerML metaclass (KerML 8.3.3, 8.3.4); the export classifies it as a SysML usage or definition kind, and writes SysML usage properties for it (attributeDefinition, nestedUsage, usage, isIndividual, portionKind, … — 27 exported-not-answered classes, 371 rows).
  • FeatureMembership::@type (178): an end feature is owned through an EndFeatureMembership (KerML 8.3.3.1.5); the export writes FeatureMembership.
  • OwningMembership::@type (47): a feature a type owns is owned through a FeatureMembership (KerML 8.3.3.1.9); the export writes OwningMembership.
  • RequirementUsage::@type (24): satisfy requirement is a SatisfyRequirementUsage (SysML 8.3.15.11); the export writes RequirementUsage.
  • ConcernUsage::declaredName and 7 more classes (191): declaredName of a quoted name is written empty by the export (KerML 8.3.2.1 Element::declaredName).
  • Subsetting::subsettingFeature (1): the export writes the written text laterOccurrence.successors where the property is element-valued (KerML 8.3.3.3.8).
  • Multiplicity::@id (4, unresolved-id) and ReferenceUsage::multiplicity (4): the export writes an implied Multiplicity on a transition trigger's declared payload parameter (accept request : Request via port); a ReferenceUsage states no implied [1..1] (SysML 7.6.3; the export writes none for any other ReferenceUsage). defaultMultiplicity asks the rule of the symbol the builder recorded for the payload, an item usage, not of the ReferenceUsage it writes.
  • AssignmentActionUsage::owner (4): the export writes a statement a state's subaction performs (entry assign x := true;) with its StateSubactionMembership as its owner; the owner is the state, the membership's owningRelatedElement (KerML 8.3.2.1), as the structure answers.
  • SuccessionAsUsage::ownedEndFeature and 8 more collections (4 each): first action1 then join1; owns the two ends it is written with (SysML.xtext SourceSuccessionMember) whether or not action1 resolves; the export writes no end when the source resolves to nothing.
  • FeatureChaining::target, chainingFeature, relatedElement and Feature::chainingFeature (7): the first segment of perform 'provide power'.'generate torque' in vehicle_c1::engine_v1 is vehicle_c1's unnamed perform usage, which bears the performed action's name (KerML Feature::effectiveName) and is the nearest binding (KerML 8.2.3.5); the export resolves a head clause's chain from the outermost scope.
  • Prefix metadata on a namespace is owned through an OwningMembership and annotates its owner with no Annotation (KerML 8.3.2.3.2); the export writes an Annotation for it.
  • A comment written in a relationship's body annotates and is owned by that relationship (KerML 8.3.2.3.2, 8.3.2.5.1); the export writes no annotation and the relationship's owning namespace as its owner.
  • A namespace's filter condition is among its ownedMember (KerML 8.3.2.4.2 ElementFilterMembership is an OwningMembership); the export omits it.
  • The parameters a send action's body declares (in payload;) are its parameter (KerML 8.3.4.8.3 Step::parameter); the export writes only the implied one.
  • A for loop's variable is a ReferenceUsage the loop owns (SysML 8.3.16.7 ForLoopActionUsage::loopVariable); the export writes only its name (sysx:loopVariable) and no element.

wasm size

After the bd58fde merge the wasm tests are develop's (its overlay build with a generated snapshot). Measured on the merged tree: browser REPL 16,061,964 gzipped bytes, under develop's 16,100,000 (kept); sysml-core.wasm 7,406,662 over develop's 7,400,000 and sysml-engine.wasm 9,502,209 over 9,500,000 — this branch's reflective structure paths (constructor results, metadata typing, the served-rule readers) are the growth, no legitimate trim found in them, so the two budgets move to 7,410,000 and 9,510,000 in the dedicated commit test(wasm): raise the core and engine size budgets to the measured sizes (the same raises this branch carried before the merge took develop's files).

Export movement (library-type step)

The member rule is shared by both structures (structureLibraryBase, one decision for the graph and the symbol structure), so the API JSON / RDF export moves with the library-type step: a succession end that subsets a library feature, an attribute typed by a library type and a constructor's result now write the memberships they inherit through the recovered library symbol (feature, featureMembership, inheritedFeature, inheritedMembership, member, membership) and the library stubs they reference. Verified against the pinned pilot exporter on tests/export action_nodes: the pilot writes inheritedFeature 99–102 and member 135–157 on the same ends, Documentation members included. symbol-51 ("inherited library memberships the export omits") closes from the export side, add-only: goldens +121/+12/+49/+260/+219/+12 lines (sha256 goldens re-pinned), conformance library table 218 → 262, API JSON differential present-different +22,505 / ours-missing −25,205 / present-equal +1,994 (present-equal stays 0 for these list properties, as before: implied-membership ids are keyed differently from the pilot's), corpus round-trip and API JSON round-trip verdicts unchanged.

Develop merges

Stack and develop merges (lane)

  • 31ab1247c7 (feat(self-model): model the QVTS query path and use it in the architecture document #2048's earlier head, on feat(export): an expression's implied base completes its type and inherited family in the element form #2002 and feat(check): NPR 7123.1D library support — NPR7123Pass, demo and design page #1928): merge commit 31a8e2a84d. Source conflict in then_succession_member_test.go resolved to the lane's expectation (a then <statement> succession relates the statement's anonymous action; the builder declares the two-ended first…then succession), so this branch's reflective synthesis of initial-node successions and bare statements was dropped where the builder now declares them (IsStatementNode, statementNodes, synthesizedSuccessionEnds); generated conflicts taken from the lane and regenerated by tool; the gRPC library-reference fixture regenerated (314 rows).
  • 058ddec6f2 (develop): merge commit bbefa5a31b; develop's cleanup removed IsDeclaredMultiplicityRange and Evaluator.PropertyReadOnly, which this branch still calls — the check is inlined and the read-only accessor restored with its caller (839ffe0d71).
  • Root fixes the stack exposed, each with a test: an untyped expression is typed through the symbol structure by its implied evaluations (c9e3fd27e7); a satisfy subject's by a.b chain owns one FeatureChaining per written link at referent.fcN (acff50ea95); the api-json record adjudicates the seven gap rows the re-record ranked (5b66269fca).
  • 9262570133 (feat(self-model): model the QVTS query path and use it in the architecture document #2048's pushed head, with feat(export): an expression's implied base completes its type and inherited family in the element form #2002 62f1891914, fix(check,queryexec): end the NPR7123 SEMP walk on recursive structures and refuse over-full property paths #2400 3726dc8156 and develop 455ed37cbb): merge commit 7ddeb53516, no conflicting file; make stdlib-snapshot unchanged; pilot-apijson-diff -check, derived-census -check, pilot-diff -check, the structure differential, the conversion goldens and the examples sweep all pass unchanged, so no baseline moved on this merge.
  • Post-push round on 7ddeb53516: the cross-MDK suite (hideo-suite -check) caught two regressions of the symbol-backed reader, fixed at the root with tests — the symbol structure derived Connector::relatedFeature from each end's owned ReferenceSubsetting alone, so the implied source end of a then x; succession or of a transition's succession dropped out and sourceFeature/targetFeature shifted (d93a1ac11b: an end owning no subsetting relates the feature the semantic model says it references, as the conversion writes it); a state's entry onEntry; / exit action a {} was read as a plain ActionUsage where SysML.xtext PerformedActionUsage makes it a PerformActionUsage (d9602ec4c4). The suite's two property readers then pass 114 more cases each (B10 8, B13 76, B20 3, C01 15, C21 12), recorded by hideo-suite -update with the structure differential (8df8c375bd) and the derived census records (bc54d51677: the Usage::usage and Type::inheritedMembership rows move with the PerformActionUsage classification). Devin Review's findings on that head: the root Namespace of a document opening with an alias or an import is now spelled off that first element, as rootNamespaceIDs does (ce5740e60b); a parity test's constructor branch had narrowed the comparison; the genuine difference was in the conversion, which wrote a constructor's arguments as its own ParameterMemberships where KerML 1.1 §8.3.4.8.3 (KerML.xtext ConstructorResultMember → ArgumentMember) and the semantic model own them as features of the constructor's result — the export now writes them so, the parts keeping their ids, and the test compares live again (0738fe6d02, test 057135157d); a comment shortened (4f41df6962). The api-json differential, structure differential, conversion goldens and agreement ratchet moved by these fixes are re-recorded by tool (e71a88cc26, 16489759ee): 1,736 more elements match the pilot; the ratchet falls on 20 classes (ConstructorExpression and ParameterMembership rows close; SuccessionAsUsage::target 458 → 67).

Follow-up

Known gaps recorded in the element-properties agreement ratchet (tests/corpus/testdata/element_properties_agreement), all by tool,
every row adjudicated by a clause. On the #2048 stack the ratchet rose on 210 rows and fell on 4 (206 fewer disagreements);
the largest rises are Membership::membershipOwningNamespace 2495→2648, Multiplicity::type 2743→2848, and the builder-declared
succession ends' ReferenceSubsetting::@id 10→111, ReferenceUsage::ownedReferenceSubsetting 6→107, ::ownedRelationship 66→167,
::ownedSpecialization 17→118 (the stack's two-ended first…then successions spell their ends' subsettings by ids the structure
does not yet share). One new export-side class: ReferenceUsage::input 7 / ::output 2 (export-67: a succession end inherits its
referenced action's parameters through its ReferenceSubsetting, KerML 8.3.3.3.4; the structure does not inherit through an
implied end). Closed here: Expression::type/function/behavior (an untyped expression is typed by its implied evaluations) and
FeatureMembership::visibility. Fixing the remaining rows at the root means sharing the stack's succession-end ids and the
inherited parameters with SymbolStructure — a follow-up, no new issue filed.

Served rules and omissions (#2073's census test on the symbol-backed reader)

TestElementPropertiesServeEveryRuleAndExplainEveryOmission (#2073) asks every served rule of some carrier and every registry omission for its reason; written against the element-form reader, it found seven served rules no carrier answered through this reader and 53 omissions worded no-rule. Each fixed where it belongs, the test untouched:

  • The reader keys a property by the most specific served rule the element's metaclass specializes (ruleDefiningClass): FeatureChainExpression::operator answers "." instead of OperatorExpression's no-rule. A property the registry omits is explained with the registry's reason (is not derived by OpenSysML: Requires the … engine fact …), as the element-form path already did.
  • Flow::sourceOutputFeature/targetInputFeature and Import::importedElement read the symbol a structure handle projects (structureSymbolOf; an import is the ImplicitImport symbol's declaration) instead of a Symbol/Node the handle never carries.
  • Function::result falls back to the one output feature for every structure: a calc def without a written return answers the result it inherits from its library base (KerML 8.3.4.7.4, result subsets output) — the same Type::output reading, no separate library lookup. The shared rule moves the export too: 14 api-json rows (RequirementUsage.result 362, ConstraintUsage.result 204, … and feat(grpc,clients): census every served and omitted metamodel property through GetElementProperties, per-family conformance cases, Julia and MATLAB bindings #2073's Documentation.documentedElement 387) go ours-missing → present-equal; one CalculationUsage.result is newly present-different (the pilot answers the nearest declared result, we the inherited one) and is adjudicated as our gap in docs/project/api-json-differential.md.
  • Behavior::parameter: a library member's membership answers its member (structureMembershipMembers), as the member itself stays the model's to answer.
  • UseCaseDefinition::includedUseCase (SysML 8.3.25.3): the use case each owned IncludeUseCaseUsage references, else the include itself. UseCaseUsage::includedUseCase stays the registry omission it is.
  • The semantic model classifies exhibit state s : S; / exhibit s; as ExhibitStateUsage and include use case u : U; / include u; as IncludeUseCaseUsage, as the export's kinds.go already did (TestMetaclassOfExhibitAndIncludeUsages); the metaclass and value ratchet rows those two metaclasses carried are gone.

Agreement ratchet: the new export-side classes (*Definition::parameter, *::result, the four importedElement metaclasses, the flow ends, FeatureChainExpression::operator, Documentation::documentedElement) are recorded under clauses symbol-73…symbol-78 with the KerML clause each rests on.

Derived census (derived-census -update): served 293, answering 287, empty everywhere 5, never derived 1, silent 5 — against develop's record (293 / 275 / 10 / 7 / 16 silent) Flow::flowEnd, both flow ends, Import::importedElement, the three MultiplicityRange bounds, the three TransitionUsage rules, Documentation::documentedElement and UseCaseDefinition::includedUseCase left the silent list; against this PR's previous head (297 / 285 / 5 / 7 / 10) the four rules #2073 withdrew are gone and the five above left.

Issue #2012: #2073 satisfies its acceptance text on its own; this PR and #2052 own the symbol-backed mechanism and hideo67's follow-ups 1–4, 6a, 7 and 8.

Closes #2012

Self-review gate (develop's §10)

  • Every comment this branch adds fits two lines (72 blocks shortened; the wasm budget comments keep the last measured size and leave the history to git).
  • docs/project/api-json-differential.md restates the baseline's scorecard headline and gap table (TestRecordStatesTheBaselinesFigures); the ranking now reaches FeatureReferenceExpression::function and LiteralInteger::behavior/directedFeature/feature, adjudicated as the result-feature family of step 5.
  • Gates on c88efe494b (the 11bf2f67f5 merge): gofmt, build, vet, make lint, tools vet, check-doc-ids, changelog check, hygiene, referee apijson, make build-grpc, go test -count=1 ./... with the training and pilot corpora required, go test ./tests/wasm, pilot-apijson-diff -check, derived-census -check, and the four client suites as CI runs them: Node and Java green; Rust library_members_are_listed_on_request and Python's four TestUnnamedMetaobjectsAgainstTheService tests fail locally, also on develop locally, green in CI. The cd95e326ee merge on top (REPL-only, no conflict) reran gofmt, build, vet, lint, tools vet, docs checks, hygiene, make build-grpc and go test -count=1 ./... on the pushed head; the wasm, api-json, census and client gates read nothing the delta touches.

Unnamed library members

  • Named only by redefinition: develop's TestGRPCRedefinedLibraryParametersAgreeAcrossSurfaces found BooleanEvaluation's return : Boolean; answered as Performances::BooleanEvaluation:: (owner name + empty segment). The effective-name reading (Element::name of a nameless feature is the redefined feature's, KerML 8.2.4 / 8.3.3.3) keys that member in the library catalog by its effective name, but the symbol-id table minted it from the index's declared-name FQN and the reader's catalog lookup only tried the anonymous-member path. Fixed at the root: the symbol-id table does not mint an unnamed library member, the reader asks the catalog first (ElementForSymbol, then AnonymousMemberOf, never the index FQN) and spells the qualified name by the effective name — the bundled library's id bca3d873-… and Performances::BooleanEvaluation::result, as develop answers. Identity gate (TestPilotLibraryXMI) and library round trips unchanged.
  • Taking no name from a redefinition (Parts::Part's inherited connectors and invariants): ElementIdentity.qualified_name promises such a member its library path (owner/Metaclass[i]); the effective-name reading answered "" and the shared client conformance scenario element_properties/inherited_features_are_read_by_spec_name failed over every protocol (Node, Java). The reader now carries the catalogued path; regression test TestGetElementPropertiesNamesAnUnnamedLibraryMemberByItsLibraryPath.

Race shard

"Go race tests (rest)" hit the job's one-hour limit on this PR's run 42703499773 and on #2073's: TestElementPropertiesAgreeWithTheAPIJSONExport (1,558 s) and TestSymbolStructureMatchesGraphStructure (1,434 s) each take 24–26 minutes under -race over the corpora, more than the shard holds beside the rest (next slowest test 409 s). Neither hangs or crawls; both are corpus-scale differentials the race detector slows about tenfold. They now run unchanged, race-free, as the Run element-form differential gates step of the static-and-integrity job (a skip there fails the step), and RACE_SHARD_SKIP leaves them out of the rest shard, as the other corpus gates already are.

Client suites (run as CI does)

  • Rust (1.83 pin): cargo fmt --check, cargo clippy --all-targets -D warnings clean; cargo test --workspace 152 pass. library_members_are_listed_on_request (capable_model.rs) fails locally, also on develop locally, green in CI.
  • Node: build / typecheck / lint clean; npm test 482 pass, 0 fail; conformance 198 passed / 8 skipped over grpc, connect and connect-json.
  • Java (Temurin 17): mvn install -Dopensysml.requireService=true BUILD SUCCESS, conformance included.
  • Python: 1771 passed, 5 skipped; the four unnamed-metaobject identity tests fail locally, also on develop locally, green in CI.

Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/e543991fdf9549d7b1dd87e0695bae23
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/e543991fdf9549d7b1dd87e0695bae23?variant=devin
Requested by: @HuiJun


🟢 Devin fixed all 3 findings · Follow Devin's work

Devin Review

…ructure

The RPC evaluates an element's properties over metamodel.SymbolStructure fed to the metamodel evaluator instead of the API element form converted from the whole-model RDF graph; Convert keeps its path. Elements no symbol id names are addressed by a path from their nearest addressed owner. The structure accepts the evaluator's own symbol handles and the evaluator reads a library type's members from the semantic model when the structure names the type without carrying its relationships, which closes connectorEnd and endFeature on the symbol side.

Refs #2029.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@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 7, 2026 19:57
Add examples/self-model/queries.sysml (OpenSysMLQueries): the DocumentQueries library and the plan operations the compiler binds its calc defs to, the executor and its outcome record (step kinds, constraints, StepOutcome), the surfaces a query is run from, the QVTS recordings as a conformance oracle, the outcomesAreDistinct invariant and the toolchain's satisfactions. Move QueryCompiler/QueryExecutor there from surfaces.sysml, append a "Queries and outcomes" section of real Tree/Differ/Verdicts/RelatedElements/WhereType queries to document.sysml with three views, and read every stated fact back from the implementation in examples/self_model_queries_test.go. Describe the path in docs/internals/architecture.md and re-record both pilot differential baselines for the new file under examples/.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ary ends

A subject, objective, actor, stakeholder or render member redefines the
same role of each general without a written clause, so the symbol-backed
structure no longer inherits the role it replaces. The redefinition walk
defers library features to the semantic model, Feature::isEnd of a
library feature is read from the model so connector ends derive, a flow
whose ends have no symbols reports endFeature unsupported, and the
structure differential is re-recorded with each moved row adjudicated.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
devin-ai-integration Bot and others added 2 commits November 8, 2026 00:09
…rties-symbol-structure

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	internal/translate/export/testdata/structure_differential_expected.txt
…tion examples present

The merge of develop was re-recorded without examples/spec-examples, which left
that root at develop's rows. Spell an anonymous library membership by graph id,
since it has no name to spell, and record every root with the corpora present.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
devin-ai-integration Bot and others added 3 commits November 8, 2026 01:37
… carry their written ids

GetElementProperties on the symbol structure now answers connectorEnd, flowEnd,
relatedFeature, sourceFeature and targetFeature for a flow and ownedFeature for a
message: the builder registers a flow's from/to ends and the payload an of clause
implies, a flow end reference-subsets the prefix of its name and owns the flow
feature redefining its last segment, and a message's event ends are parameters.
An unnamed library member's membership is spelled with the identity table's id,
the one the library document's own form writes. The structure differential is
re-recorded with every corpus present; ElementIDs records flow ends like bound
connector ends.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…semantics

The element form leaves out a completed property whose value is empty or null and one
it has no rule for, so an omitted key agrees with an empty or unsupported answer; a key
omitted against a value is a disagreement, and the ten there are (Step::parameter and
ViewUsage::viewDefinition, which the completion table lacks, and Type::input on a
requirement usage, whose inherited subject parameter the graph side reads without a
direction) are listed with their clauses in an adjudicated file the test checks both ways.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 8, 2026 04:56
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration Bot and others added 13 commits November 8, 2026 05:53
…ts of the symbol structure

The body of an action writes if, while, for, assign, terminate and perform as statements the symbol table scopes but registers no symbol for. The reflective layer now synthesizes one action node per statement (never in a scope or index), its branches and body, and the expressions it writes at its own slots (condition, target, value, payload, receiver, collection, while/until condition), with the memberships the conversion writes (ParameterMembership for a condition and a branch, FeatureValue for an assigned value). Members of a statement body are owned by the statement's node, and a body-parameter action is composite as declared.

`action a assign x := y;` is one AssignmentActionUsage: NodeStatementOf and PlainNodeHead move to semantics so the exporter and the structure read it alike.

Structure differential re-recorded with all corpora present: matched rises on every root (examples 29,659 -> 31,787; pilot 45,208 -> 46,507; spec 7,653 -> 8,390; training 7,537 -> 7,815; tests/testdata 1,474 -> 1,596); no equal row moves.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…rties-symbol-structure

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	internal/translate/export/rdf_out.go
#	internal/translate/export/testdata/structure_differential_expected.txt
…pressions and filters are elements of the symbol structure

A decision's branch (`if g then b;`, `else b;`) is a TransitionUsage synthesized in the reflective layer, owning its guard through a TransitionFeatureMembership; every transition owns the SuccessionAsUsage of its `then` clause with an empty source end and an end reference-subsetting the target (SysML.xtext TransitionSuccessionMember), so TransitionUsage::succession, source and target answer over the symbol structure. A function-like type's own body expression is the member of a ResultExpressionMembership (calc, constraint, requirement bodies, `require constraint { … }`), and a namespace's `filter <cond>;` an ElementFilterMembership owning its condition, so the arguments inside them are reached. The metamodel evaluator reads a symbol-backed Structure's symbol for transition endpoints (structureSymbolOf), and the structure differential maps the conversion's ids for these parts.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ng memberships

Namespace::ownedMember on the reflective path is the members of
OwnedMemberships' OwningMemberships (KerML 8.3.2.4.5), so the result
expressions, filter conditions, statement nodes and transition parts step 2
added to ownedMembership are owned members too; the FeatureValue's expression
stays out as before. A Descendants over a transition now reaches the
succession's OwningMembership (SysML.xtext TransitionSuccessionMember), which
has no kind, so the guard query tolerates it like the after query.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…gger's payload parameter

A triggered TransitionUsage owns the transitionLinkSource and trigger payload
parameters SysML v2 §8.3.16.15 (checkTransitionUsageParameters) implies, each
an in ReferenceUsage under a ParameterMembership, and a named trigger payload
(`accept s : Sig`) is the payload parameter the trigger's accept action owns
(SysML.xtext TriggerActionMember) rather than a feature of the transition;
references to it from the guard and effect resolve to that parameter.
Namespace::ownedMember reads the members of the synthesized owning memberships.
The structure differential is re-recorded with the movements adjudicated.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…rties-symbol-structure

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	internal/translate/export/testdata/structure_differential_expected.txt
…d, unowned Namespace owning the top-level elements through OwningMemberships (KerML 8.2.3.2), as the pilot serializes a document; a root-level element answers owner, owningNamespace and owningMembership, and a root-level membership import its importedMembership

Co-Authored-By: jason.han <hanhuijun@gmail.com>
….SymbolIDs spells each symbol by the elementId Convert writes for its element (declared elements, reflected memberships, relationships, expression parts and the root namespace) and resolves such an id back; SymbolStructure.SetIdentities reads it, so GetElementProperties answers and resolves the API element form's ids; the structure differential matches through the same mapping; Usage::mayTimeVary and isVariable read the symbol behind a symbol-backed element

Co-Authored-By: jason.han <hanhuijun@gmail.com>
….3.2.1 declaredName); a connector's implied end and a flow end's flow feature are not variable, as the conversion writes them; a symbol-backed expression resolves its instantiated type and arguments from the node its symbol reflects, in its owning feature's namespace

Co-Authored-By: jason.han <hanhuijun@gmail.com>
… named arguments, multiplicity bounds and body parts; `:>> x`, succession ends and unbound invocations answer as written

A named argument `f(x = v)` is minted at `n<i>` (rdf_expr.go), so the argument symbol keeps its slot; a written `[lo..hi]` is a MultiplicityRange owning its bounds through OwningMemberships at `lowerBound`/`upperBound` (KerML 8.3.4.11); an expression body's parameters, members and result keep the ids minted off the reference wrapping it, and a bare body expression (ConstraintMember with no keyword, name or body) registers its parts in the id table like a feature value does. A `:>> x` feature declares no name but is named x by its redefinition (KerML 8.3.2.1 Element::declaredName, 8.3.3.3.5 Feature::name); a succession's implied end is named by the HappensBefore end it redefines; an invocation whose instantiated type is unknown answers its arguments from the owned input values. The differential builds the symbol structure through the same SetIdentities the served structure uses, and is re-recorded: matched 41,525 → 44,329 examples, 52,196 → 56,370 pilot, 10,302 → 11,153 spec, 9,579 → 10,220 training, 1,932 → 2,008 tests/testdata; symbol-missing memberElementId falls to 0 on every root.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ng its two ends, as the conversion writes it

A bodiless `then target` written in a body (SysML.xtext TargetSuccession) is an element of the symbol structure, synthesized in the reflective layer like the other statements; a succession with a body already is one. Either owns an empty source end carrying the source multiplicity and an end referring to the target, under the condition encodeSuccessionEdge writes them (a source implied by position, or a positional source with a multiplicity), so their ids, memberships, reference subsettings and names follow from the existing end machinery. A statement's membership now stands where the statement is written among the body's declared members, so a `first start;` marker keeps its place ahead of the successions that follow it. Differential re-recorded: matched 44,329 → 44,850 examples, 56,370 → 57,203 pilot, 11,153 → 11,404 spec, 10,220 → 10,566 training, 2,008 → 2,046 tests/testdata; no equal row falls. The new successions land in existing classes: Connector::sourceFeature/targetFeature the graph derives from the positional source and the library's done while the symbol side answers null, isComposite/isReference where the symbol side still reads a connector as composite, and chain targets (`then a.b`) the structure has no chain feature for.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…efer to done and the member they introduce, and a declared end's reference subsetting shares the conversion's id

A SuccessionAsUsage written as `then target` is never composite (usageIsAlwaysReferential), as `succession` is and as the conversion writes it. Its target end refers to the action's inherited done for `then done;` and to the member a `then action x` introduces, so Connector::targetFeature, the end's ReferenceSubsetting and its id follow. The ReferenceSubsetting of an end the builder declares (`connector a to b`) is minted off the end like a synthesized end's, so `_pend<i>_prs` resolves on the symbol path. Differential re-recorded: unmatched falls 1,719 → 1,679 examples, 3,602 → 3,516 pilot, 974 → 962 spec, 682 → 674 training; no equal row falls. One new disagreement class: for `then done;` in a use case the symbol side resolves done to UseCases::UseCase::done, the feature in scope, where the conversion writes Actions::Action::done.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…s before it answers

GetElementProperties built its resolver fresh and never resolved the cached documents, so a reference the reflective layer reads through the resolver's record (referencedSymbol: the referent of a FeatureReferenceExpression, the member of its referent Membership) came back empty on the served path while the conversion, which resolves every document before it writes (modelToRDF), derived it. The reader now resolves each document the way the conversion does, so FeatureReferenceExpression::referent answers and the `_preferent` memberships resolve. The structure differential already read a resolved model and does not move.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
devin-ai-integration Bot and others added 15 commits November 20, 2026 18:08
…rties-symbol-structure

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	internal/semantic/metamodel/derived_census_records.tsv
#	internal/semantic/semantics/annotations.go
#	internal/semantic/semantics/model.go
#	internal/semantic/semantics/reflective_expression_parts.go
#	internal/semantic/semantics/reflective_feature_value.go
#	internal/semantic/semantics/reflective_memberships.go
#	internal/semantic/semantics/relationship_reflection.go
#	internal/semantic/symbols/expression.go
#	internal/translate/export/api_json_symbol_structure_test.go
#	internal/translate/export/testdata/structure_differential_expected.txt
…onversion writes

The symbol structure states a namespace's filter conditions and a body's result
expressions once, through the synthesized members, and the id reader records a
result expression's referent Membership beside the result as the conversion
mints it.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
…the merged tree

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ry-result-view

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ucture

Co-Authored-By: jason.han <hanhuijun@gmail.com>

# Conflicts:
#	docs/project/api-json-differential.md
#	docs/project/api-json-differential/examples/self-model/document.sysml.json
#	docs/project/api-json-differential/examples/self-model/queries.sysml.json
#	docs/project/api-json-differential/examples/self-model/surfaces.sysml.json
#	docs/project/api-json-differential/examples/self-model/views.sysml.json
#	docs/project/api-json-differential/index.json
#	docs/project/api-json-differential/pilot-examples/Cause and Effect Examples/CauseAndEffectExample.sysml.json
#	docs/project/api-json-differential/training/20. Assignment Actions/Assignment Example.sysml.json
#	docs/project/pilot-differential-baseline.json
#	internal/doc/queryexec/elementids.go
#	internal/semantic/metamodel/derived_census_baseline.json
#	internal/semantic/semantics/annotations.go
#	internal/semantic/semantics/flow_ends.go
#	internal/semantic/semantics/reflective_annotations.go
#	internal/semantic/semantics/reflective_memberships.go
#	internal/semantic/semantics/reflective_memberships_test.go
#	internal/translate/export/api_json_symbol_structure_test.go
#	internal/translate/export/testdata/structure_differential_expected.txt
#	tests/export/testdata/convert/irregular_layout.golden.ttl.sha256
…orts as the graph does

The imported-membership derivation reads the annotations of a candidate, the library member a
library membership names and a KerML type's isAbstract; the symbol structure now states all three.
The structure differential spells a library alias Membership the graph references by its symbol.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…eader

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…by its Membership id

Co-Authored-By: jason.han <hanhuijun@gmail.com>
… the view rendering and flow payload order rows

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
… gaps now LiteralString.result is closed

Co-Authored-By: jason.han <hanhuijun@gmail.com>
devin-ai-integration[bot]

This comment was marked as resolved.

…ids cannot be minted

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun added this pull request to the merge queue Nov 21, 2026
Merged via the queue into develop with commit 2d8bbc7 Nov 21, 2026
32 checks passed
@HuiJun
HuiJun deleted the feat/element-properties-symbol-structure branch November 21, 2026 05:59
@hideo67

hideo67 commented Nov 21, 2026

Copy link
Copy Markdown

This comment was written with AI help. The results below were measured against the version given.

As promised, we reran our suite (sysmlv2-tests, 1813 cases) on develop at 2d8bbc7a96: both element-properties readers pass 106 more cases (B13 76, C01 15, C21 12, B20 3), with no regressions in any suite. Thanks for seeing this through. What's left we've put in #2199 (the flow half) and #2495.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants