Repository navigation
feat(grpc): GetElementProperties reads the symbol-backed metamodel structure - #2042
Merged
Merged
Conversation
…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>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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>
This was referenced Nov 7, 2026
…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>
…rties-symbol-structure
… 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>
…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>
…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>
…ids cannot be minted Co-Authored-By: jason.han <hanhuijun@gmail.com>
5 of 6 tasks
As promised, we reran our suite (sysmlv2-tests, 1813 cases) on |
5 of 6 tasks
5 of 6 tasks
6 tasks done
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.
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
GetElementPropertiesnow reads the symbol-backedmetamodel.SymbolStructure(the structure PR #2014 introduced, until now without a production caller) through the samemetamodel.Evaluatorthe metamodel tests use, instead of the api-json element form (export.ModelElementForm, one whole-model RDF graph).Convertand the api-json export keep their path untouched; library elements keep answering throughexport.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 throughEvaluator.PropertyReadOnly, falls back to the structure's stated value for non-derived properties, and reportsEvaluator.Explainas theunsupportedtext. Every element is addressed by the id the api-json form (Convert) writes for it, named or anonymous (P::V::c1_pend0for the first end ofconnect,X_omfor an owning membership), throughexport.SymbolIDs; the ids the answers carry read back through the RPC.Structure and evaluator changes (symbol side gaps closed)
SymbolStructureresolves 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,stakeholderorrendermember redefines the same role of each general without a written clause (SymbolStructure.ImpliedRedefinedFeatures, reached through the optionalImpliedRedefinitionStructureinterface fromstructureRedefinitionTargets). The redefinition walk defers a library feature (one the structure names but whose relationships it does not serve) toModel.AllRedefinedFeatures.Feature::isEndis answered from the semantic model for a library feature the structure only names, soType::endFeature/Connector::connectorEndderive for connectors whose inherited ends come from the library; a multiplicity is never an end.A flow's
from/toends, the payload anofclause implies and a message's event ends are symbols the builder registers (buildConnectorEnds,buildImpliedPayload): a flow end is aFlowEndthat 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 areEventOccurrenceUsageparameters, so itsconnectorEndstays the inheritedsource/target(SysML.xtext MessageEventMember).ElementIDsrecords 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.findGeneralizationTargetsreads 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:Connector::connectorEndfrom/toends on both sides now that the builder registers them.Type::endFeatureFeature::isEndfrom the model). The added missing rows are usages the graph can now derive (seeNamespace::member). The 2 different rows areend 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::membershipDefinition::usage27 → 114,Behavior::step25 → 52)subject/objective/actor/stakeholder/rendermember 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.4checkFeatureParameterRedefinition), and a redefined feature is not inherited (KerML §8.3.3.1.10removeRedefinedFeatures, §7.3.4.5). The graph still listsRequirements::RequirementCheck::subj,Cases::Case::obj,Views::View::viewRenderingand the like as inherited members next to the role that redefines them.Type::directedFeature,Type::inputinsubject (RequirementCheck::subj) of a definition that declares no subject of its own; the graph carries no direction for library features.Namespace::memberetc.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::relatedElementmembership of lib <name>on both sides; an anonymous library membership (the target of aMembershipImport) 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:Namespace::member,Namespace::membership,Type::feature,Type::featureMembership,Type::inheritedFeature,Type::inheritedMembership,Behavior::step,Definition::usage,Definition::directedUsage,Usage::directedUsage,Function::expressionBehavior::step16 → 25,Definition::usage33 → 45)entry/do/exitaction redefinesStates::StateAction::entryAction/doAction/exitAction(SysML §8.3.16.3 checkActionUsageStateActionRedefinition), a case'ssubject/objectiveand a requirement'ssubjectredefine 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::inputinsubject (RequirementCheck::subj) of a requirement definition that does not declare one. Symbol side correct.Connector::connectorEndflow 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::endFeaturecousins 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 (isEndtrue), the graph does not. Symbol-side gap, 2 rows, left visible.Relationship::target,Relationship::relatedElementMembershipImporttargets (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 ylists the cross feature as an end because the semantic model flagsCrossFeatureMemberas an end (graph: none); feature-typed library generals (Base::dataValues,Occurrence::suboccurrences) are not expanded for inherited members.After merging
developat 4456378 (#2037:Behavior::parameteris no longer a differential row,Step::parameterderives asdirectedFeature), 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 ondevelopitself, with the same counts (Step::parameterexamples root 3,125 equal / 145 different); no row of this PR's adjudication changed. The first re-recording after that merge ran withoutexamples/spec-examplespresent 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
TestElementProperties*pass;valueof a bound feature is read from itsFeatureValue(FeatureValue::value, where the metamodel declares it) and the connector-end test addresses the unnamed connector by position. The Python client test follows the sameFeatureValuetraversal.tests/grpcconformance cases unchanged and passing.TestElementPropertiesAgreeWithTheAPIJSONExportis green: see "Agreement test and its ratchet" below (the former per-row adjudicated file is retired; its ten rows are theRequirementUsage::inputclass there).Reporter-visible changes (model of issue #2012's follow-up comment, through the Python client)
Gains against develop: chained connector ends answer
relatedFeature,sourceFeatureandtargetFeature(P::V::c1);P::Link endFeaturelistsaandb;instantiatedTypeofnew Sig();isReferencederives (P::V::rtrue,P::V::compfalse);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 idConvertwrites for it, where develop's RPC wroteP::V::c1::aandP::V::c1::b; every id an answer carries reads back through the RPC.Library memberships: all 113 entries of
P::a inheritedMembershipcarry an id (103FeatureMembership, 10OwningMembership) that reads back, the owning-membership id the library document's own form writes (identity.Catalog,identity.AnonymousMemberOffor unnamed members), so the symbol path and the graph path spell one membership one way.Flow and message ends: a flow's
from/toends andofpayload, and a message's event ends, are now symbols the builder registers (buildConnectorEnds,buildImpliedPayload), soP::V::f1 connectorEnd/flowEndanswer twoFlowEnds,relatedFeature/sourceFeature/targetFeaturethe occurrences the ends attach to (tank,engine),P::V::msg ownedFeatureitsPayloadFeatureand twoEventOccurrenceUsageends, andP::V::msg connectorEndthe inheritedsource/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 thedisjoint-feature-typesfalse 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::connectorEndsymbol-missing rows close (examples 53 → 0, training 30 → 0, pilot 94 → 0). Rows left different, adjudicated:Type::ownedFeature/ownedMember/ownedRelationshiplist the payload before the ends on the symbol side (SysML.xtext FlowDeclaration writesofbeforefrom/to; the graph appends the payload after the ends), symbol side correct;Feature::ownedReferenceSubsettingof 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::nameof an implied payload ispayloadon the graph side and null on the symbol side (the payload's implied redefinition ofTransfer::payloadis 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.SymbolIDsspells every symbol by the idConvertwrites (identityfor named elements, the form's anonymous rules for_om,_p<role><n>,_ft/_rd/_ss/_rs,_ns) and resolves such an id back;SymbolStructure.SetIdentitiesreads it andGetElementPropertiesresolves 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.Propertieson the export's metaclass; the export's reader keysredefines,specializes,subsets,referencesare 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 intests/grpc/testdata/element_properties_agreement/:clauses.txtholds each adjudication once (key, the side that is correct, the KerML/SysML clause),<kind>.txtthe 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-ratchetre-records counts keeping the keys. 1,782 classes (from 2,047 at the first ratchet):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,
isConstantfalse) 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/mayTimeVaryof anonymous succession, flow and binding ends (13 classes, 1,688);owningNamespaceof an expression wrapper or filter condition (14, 729);Feature::typethrough a conjugated or chained endpoint (10, 587) and the conjugated-port typing'starget/relatedElement/general(19, 256); properties the structure answers with a different value (54, 412) or none/unsupported/positional (48, 310 — among themConnector::relatedFeatureof a flow whose other end does not resolve, spec 7.17.10 example 3); a send payload'sInstantiationExpression::argument(3, 325);visibilityof implied memberships (8, 225); a metadata usage's literal value,itemDefinitionandmetadataDefinition(3, 666);sourceFeature/targetFeatureof a transition succession the structure does not resolve (6, 353);_ss0spelling of a written specialization (9, 54); the remaining unresolved ids (_omof elements without a symbol 24,_prs24, 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 (PerformActionUsage47,ExhibitStateUsage18, conjugated-typeSpecialization17,IncludeUseCaseUsage11,::>ReferenceSubsetting 10,LibraryPackage2,Subclassification1).Gap-closing steps (one commit each, add-only, ratchet and differential re-recorded by tool)
A namespace owns its
#Mprefix 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'sentry/do/exitmembers are StateSubactionMemberships; a transition'swhencondition, a bodilessfirst a then b;succession with its ends, an accept action'sviareceiver, a conjugated port definition's PortConjugation, an expression's referent Membership, a guarded succession's parts, aloop … untilcondition, a transition's dottedfirst a.bsource 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/developmerged with--no-ffat ea6d78e, 6631fea, 0395d7c and 227e88e (make stdlib-snapshotfirst each time; ratchet and differential re-recorded by tool after). After 227e88e (#2051, connector related features by end position),TestReflectiveConnectorRelatedFeaturesCoverEndFormsexpectedflow byFlow of Integer from a.x to b.y;to relateA::xandA::y; the merged tree answersHost::aandHost::b, and that expectation is changed in its own commit (155c270): KerML Beta 2 deriveConnectorRelatedFeature derivesrelatedFeature = 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], sourceFeaturea, targetFeature[b], sourceOutputFeaturebyFlow::source::x, targetInputFeaturebyFlow::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, … — 27exported-not-answeredclasses, 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 requirementis a SatisfyRequirementUsage (SysML 8.3.15.11); the export writes RequirementUsage.ConcernUsage::declaredNameand 7 more classes (191):declaredNameof a quoted name is written empty by the export (KerML 8.3.2.1 Element::declaredName).Subsetting::subsettingFeature(1): the export writes the written textlaterOccurrence.successorswhere the property is element-valued (KerML 8.3.3.3.8).Multiplicity::@id(4, unresolved-id) andReferenceUsage::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).defaultMultiplicityasks 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 itsowner; the owner is the state, the membership's owningRelatedElement (KerML 8.3.2.1), as the structure answers.SuccessionAsUsage::ownedEndFeatureand 8 more collections (4 each):first action1 then join1;owns the two ends it is written with (SysML.xtext SourceSuccessionMember) whether or notaction1resolves; the export writes no end when the source resolves to nothing.FeatureChaining::target,chainingFeature,relatedElementandFeature::chainingFeature(7): the first segment ofperform 'provide power'.'generate torque'invehicle_c1::engine_v1isvehicle_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.ownedMember(KerML 8.3.2.4.2 ElementFilterMembership is an OwningMembership); the export omits it.in payload;) are itsparameter(KerML 8.3.4.8.3 Step::parameter); the export writes only the implied one.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
1556ade (fix(metamodel): a feature typed by a library type inherits that type's memberships in the symbol structure — a stated library base is read from the inheritance table as an implied one is #2063): its
structureLibraryBaseis kept as the single decision; this branch's recovered-symbol / defers-to-model condition folded in. Structure differential root counts identical to the pre-merge record; 53 rows move because the graph structure now derives the implicitBase::thingssubsetting of anonymous filter references (Base::things::that, the pilot writes it) while the symbol structure does not yet — graph-correct, symbol follow-up.8de8455 (fix(semantics,repl): Element::qualifiedName is derived through a role-taken effective name — a nameless objective is T::obj, the requirement it verifies T::obj::massRequirement — and the query table spells an element by the address the conversion stated for it, a positional one by elementId #2070, qualifiedName through a role-taken effective name; query-table identity): merged clean. API JSON differential moved on five HSUV requirement usages whose
FunctionalRequirementChecksubject now carries the role-taken nameRequirements::FunctionalRequirementCheck::subj, which the library catalog does not represent, somember/membership/usageare omitted (RequirementUsage.member 361 → 356 present-different, 9 → 14 ours-missing; membership the same; usage 254 → 249 / 8 → 13). develop's own baseline records the same omission class (ours-missing 28 for RequirementUsage.member), so this is develop-side movement, adjudicated in docs/project/api-json-differential.md; baseline re-recorded by tool.e074d3f (feat(export): keep the notes of an element's lines as addressable sysx:Note nodes #2071,
sysx:Noteexport nodes; feat(query): translate OSLC text and the API Query into document-query plans #2027, OSLC query plans): conflicts ininternal/frontend/grpc/cache.go(the reader's fields kept beside the newpropertyTable; the element-form fields this PR removed stay removed), the GetElementProperties compliance row (this PR's row, develop's Query row) and the API JSON baseline, re-recorded by tool over the merged tree: no row moved against this branch's record.e074d3f40c(feat(export): keep the notes of an element's lines as addressable sysx:Note nodes #2071sysx:Noteexport nodes, feat(query): translate OSLC text and the API Query into document-query plans #2027 OSLC query plans): conflicts ininternal/frontend/grpc/cache.go(the element reader beside develop's query table; the removedelementFormfields stay removed),docs/project/spec-compliance/08-grpc-service-layer.md(this PR's GetElementProperties row beside develop's Query row) anddocs/project/api-json-differential-baseline.json(re-recorded bypilot-apijson-diff -updateover the merged tree; zero scorecard rows moved against the branch's previous record). The agreement test skipssysx:export-only nodes, which reflect no metamodel element.480c3f4f5e(docs: add REVIEW.md and a reviewing-pull-requests skill so a branch is reviewed before it is pushed #2075 review guideline): docs only, no conflict.ddc4a547fe(feat(query): inline document-query text on every run-query surface #2026 inline document query, fix(metamodel): derive ConjugatedPortTyping::conjugatedPortDefinition as the typing target #2072 ConjugatedPortTyping derivation): merged clean, no conflicting file. fix(metamodel): derive ConjugatedPortTyping::conjugatedPortDefinition as the typing target #2072'sTestGRPCConjugatedPortTypingDefinitionswants a referenced element'squalified_nameas the metamodel spells it (P::Cmd::'~Cmd', the segment quoted because~Cmdis no identifier) where the reader answered the index's unquoted spelling; the reader now readsElement::qualifiedNamethrough the shared evaluator and keeps the index spelling only where the metamodel answers none. Baselines re-recorded by tool on the merged tree:derived-census -update(served 297; answering 277 → 285, empty everywhere 10 → 5, never derived 9 → 7, carried by no element 1 → 0; silent 17 → 10 — the seven rules that left the silent list are this branch's symbol-side fixes,Flow::flowEnd,MultiplicityRange::bound/lowerBound/upperBound,TransitionUsage::source/succession/target; none joined; per-root element counts rise with the implied elements the structure now carries, training 7926 → 11093, examples 31524 → 46437;docs/project/derived-property-census.mdrestates the figures),-update-agreement-ratchet(theConjugatedPortTyping::conjugatedPortDefinitionexport-correct row, 6 disagreements, no longer differs and is gone — the table above counts it out),pilot-apijson-diff -checkreproduces its baseline unchanged, structure differential unchanged.c010f23d7a(feat(grpc,clients): census every served and omitted metamodel property through GetElementProperties, per-family conformance cases, Julia and MATLAB bindings #2073 element-properties closeout: registry corrections, derived census, Julia/MATLAB bindings): merge commit917ac6d692. Conflicts indocs/project/api-json-differential-baseline.json,docs/project/api-json-differential.md(scorecard),internal/semantic/metamodel/derived_census_baseline.jsonandinternal/translate/export/testdata/structure_differential_expected.txt— develop's side taken, then every one re-recorded with its tool (pilot-apijson-diff -update,derived-census -update,-update-structure-differential,-update-agreement-ratchet);make stdlib-snapshotrun right after the merge.evaluator.go,structure_rules.goandapi_json_derived.goauto-merged: feat(grpc,clients): census every served and omitted metamodel property through GetElementProperties, per-family conformance cases, Julia and MATLAB bindings #2073'sDocumentation::documentedElementandMetadataAccessExpression::referencedElementrules are single, its five withdrawn registry rows are gone here too. feat(grpc,clients): census every served and omitted metamodel property through GetElementProperties, per-family conformance cases, Julia and MATLAB bindings #2073'sTestElementPropertiesServeEveryRuleAndExplainEveryOmissionwas red on the symbol-backed reader — fixed at the root, see "Served rules and omissions" below.browser_repl_test.goauto-merged at develop's 16,100,000.ade067f837(fix(grpc): bound the QueryOutcome detail to what a status trailer holds #2077 bounded QueryOutcome detail, proto + regenerated stubs): merge commita323fd2c49, no conflicting file;sysml.protois untouched on this branch, develop's stubs are the merged ones;make stdlib-snapshotunchanged.bd58fde160(fix(tests): the WebAssembly gate embeds a library snapshot it generates, so its size budgets bound the artifact that ships whatever the tree holds #2074 wasm gate builds through a Go overlay with a generated stdlib snapshot): merge commit8547c0f69f. Conflicts intests/wasm/browser_repl_test.go,tests/wasm/core_test.goandtests/wasm/engine_test.go— develop's side taken wholesale (this PR changes no wasm test deliberately), then re-measured through the overlay build on the merged tree: the browser REPL holds develop's budget (16,061,964 bytes under 16,100,000),sysml-core.wasm(7,406,662) andsysml-engine.wasm(9,502,209) exceed develop's 7,400,000 and 9,500,000, so a dedicated commit raises those two to 7,410,000 and 9,510,000 with the measurement in the constant's comment; the growth is the symbol-backed element reader's structure paths (constructor results, metadata typing, served-rule readers) the core and engine builds now carry.make stdlib-snapshotunchanged.c4f55e0318(fix(query): a metamodel property no row carries is absent, not unknown, and OSLC descending order puts missing keys last #2085 OSLC descending query fix, feat(java): decode the QueryOutcome status detail of a failed query #2082 Java QueryOutcome detail): merge commitbaf03e1963, no conflicting file, no proto change;make stdlib-snapshotunchanged.11bf2f67f5(feat(mdk): run QVTS document queries from Cameo and MDK DocGen #2083 MDK run-query, chore(deps): bump the maven-minor-and-patch group across 3 directories with 3 updates #2079 pom updates): merge commitc88efe494b, no conflicting file, no proto change;make stdlib-snapshotunchanged.cd95e326ee(fix(repl): the query table spells a reserved-word name as the conversion's qualifiedName does — an allocation end 'function' reads P::FunctionToPart::function, bare, as the pilot spells it #2088 query table spells a reserved-word name bare): merge commit462dde206d, no conflicting file (REPL-only delta);make stdlib-snapshotunchanged.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 commit31a8e2a84d. Source conflict inthen_succession_member_test.goresolved to the lane's expectation (athen <statement>succession relates the statement's anonymous action; the builder declares the two-endedfirst…thensuccession), 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 commitbbefa5a31b; develop's cleanup removedIsDeclaredMultiplicityRangeandEvaluator.PropertyReadOnly, which this branch still calls — the check is inlined and the read-only accessor restored with its caller (839ffe0d71).c9e3fd27e7); a satisfy subject'sby a.bchain owns one FeatureChaining per written link atreferent.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 #200262f1891914, fix(check,queryexec): end the NPR7123 SEMP walk on recursive structures and refuse over-full property paths #24003726dc8156and develop455ed37cbb): merge commit7ddeb53516, no conflicting file;make stdlib-snapshotunchanged;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.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 derivedConnector::relatedFeaturefrom each end's owned ReferenceSubsetting alone, so the implied source end of athen x;succession or of a transition's succession dropped out andsourceFeature/targetFeatureshifted (d93a1ac11b: an end owning no subsetting relates the feature the semantic model says it references, as the conversion writes it); a state'sentry 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 byhideo-suite -updatewith the structure differential (8df8c375bd) and the derived census records (bc54d51677: theUsage::usageandType::inheritedMembershiprows 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, asrootNamespaceIDsdoes (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, test057135157d); 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::target458 → 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…thensuccessions spell their ends' subsettings by ids the structuredoes 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 wordedno-rule. Each fixed where it belongs, the test untouched:ruleDefiningClass):FeatureChainExpression::operatoranswers"."instead ofOperatorExpression'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/targetInputFeatureandImport::importedElementread the symbol a structure handle projects (structureSymbolOf; an import is theImplicitImportsymbol's declaration) instead of aSymbol/Nodethe handle never carries.Function::resultfalls back to the one output feature for every structure: a calc def without a writtenreturnanswers theresultit inherits from its library base (KerML 8.3.4.7.4,resultsubsetsoutput) — the sameType::outputreading, no separate library lookup. The shared rule moves the export too: 14 api-json rows (RequirementUsage.result362,ConstraintUsage.result204, … and feat(grpc,clients): census every served and omitted metamodel property through GetElementProperties, per-family conformance cases, Julia and MATLAB bindings #2073'sDocumentation.documentedElement387) go ours-missing → present-equal; oneCalculationUsage.resultis newly present-different (the pilot answers the nearest declaredresult, we the inherited one) and is adjudicated as our gap indocs/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 ownedIncludeUseCaseUsagereferences, else the include itself.UseCaseUsage::includedUseCasestays the registry omission it is.exhibit state s : S;/exhibit s;asExhibitStateUsageandinclude use case u : U;/include u;asIncludeUseCaseUsage, as the export'skinds.goalready 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 fourimportedElementmetaclasses, the flow ends,FeatureChainExpression::operator,Documentation::documentedElement) are recorded under clausessymbol-73…symbol-78with 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 threeMultiplicityRangebounds, the threeTransitionUsagerules,Documentation::documentedElementandUseCaseDefinition::includedUseCaseleft 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)
docs/project/api-json-differential.mdrestates the baseline's scorecard headline and gap table (TestRecordStatesTheBaselinesFigures); the ranking now reachesFeatureReferenceExpression::functionandLiteralInteger::behavior/directedFeature/feature, adjudicated as the result-feature family of step 5.c88efe494b(the11bf2f67f5merge): 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; Rustlibrary_members_are_listed_on_requestand Python's fourTestUnnamedMetaobjectsAgainstTheServicetests fail locally, also on develop locally, green in CI. Thecd95e326eemerge on top (REPL-only, no conflict) reran gofmt, build, vet, lint, tools vet, docs checks, hygiene,make build-grpcandgo test -count=1 ./...on the pushed head; the wasm, api-json, census and client gates read nothing the delta touches.Unnamed library members
TestGRPCRedefinedLibraryParametersAgreeAcrossSurfacesfound BooleanEvaluation'sreturn : Boolean;answered asPerformances::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, thenAnonymousMemberOf, never the index FQN) and spells the qualified name by the effective name — the bundled library's idbca3d873-…andPerformances::BooleanEvaluation::result, as develop answers. Identity gate (TestPilotLibraryXMI) and library round trips unchanged.ElementIdentity.qualified_namepromises such a member its library path (owner/Metaclass[i]); the effective-name reading answered "" and the shared client conformance scenarioelement_properties/inherited_features_are_read_by_spec_namefailed over every protocol (Node, Java). The reader now carries the catalogued path; regression testTestGetElementPropertiesNamesAnUnnamedLibraryMemberByItsLibraryPath.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) andTestSymbolStructureMatchesGraphStructure(1,434 s) each take 24–26 minutes under-raceover 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 theRun element-form differential gatesstep of the static-and-integrity job (a skip there fails the step), andRACE_SHARD_SKIPleaves them out of the rest shard, as the other corpus gates already are.Client suites (run as CI does)
cargo fmt --check,cargo clippy --all-targets -D warningsclean;cargo test --workspace152 pass.library_members_are_listed_on_request(capable_model.rs) fails locally, also on develop locally, green in CI.npm test482 pass, 0 fail; conformance 198 passed / 8 skipped over grpc, connect and connect-json.mvn install -Dopensysml.requireService=trueBUILD SUCCESS, conformance included.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