Repository navigation
feat(export): an expression's implied base completes its type and inherited family in the element form - #2002
Merged
Merged
Conversation
…erited family in the element form One side table (semantics/implicit.go impliedExpressionBases) names the evaluations feature each expression metaclass implicitly subsets (KerML 1.1 §8.4.4.7, §8.4.4.8), read for an expression symbol and for a graph element known by metaclass alone, so the inherited-member family completes for every expression; a feature declaring no typing takes its types from what it implicitly specializes — the function an operator, chain, select, collect or trigger invokes or a stated callee resolves to, else the implied base's type — so type, function and behavior follow (metamodel/structure_implied_types.go). Goldens by -update (two cross 200 KiB into digest form), baseline by pilot-apijson-diff -update, every moved row adjudicated in docs/project/api-json-differential.md. Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # docs/project/api-json-differential-baseline.json # docs/project/api-json-differential.md
pilot-apijson-diff -update on the merged tree; the expression paragraph and its rows restate the movement against develop's record (present-equal +16848, present-different +52488, ours-missing −69933, indeterminate +597). Co-Authored-By: jason.han <hanhuijun@gmail.com>
…e element form now reaches An expression's implied evaluation base brings its function and the inherited members of Performances::Evaluation into the Turtle as library stubs, so the convert_library_references case's table grows by 54 rows (DataFunctions::*, BaseFunctions::[, Performances::LiteralIntegerEvaluation and the memberships and features they reach); nothing it listed before moved. Co-Authored-By: jason.han <hanhuijun@gmail.com>
Co-Authored-By: jason.han <hanhuijun@gmail.com>
…aluations, as the table and the pilot do 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)".
|
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # docs/project/api-json-differential-baseline.json # docs/project/api-json-differential.md # internal/semantic/semantics/implicit.go # internal/semantic/semantics/implicit_metaclass_test.go # tests/export/testdata/convert/accept.golden.ttl # tests/export/testdata/convert/action_nodes.golden.ttl.sha256 # tests/export/testdata/convert/anonymous_assertions.golden.ttl.sha256 # tests/export/testdata/convert/anonymous_portions.golden.ttl # tests/export/testdata/convert/bounds.golden.ttl # tests/export/testdata/convert/chain_scopes.golden.ttl # tests/export/testdata/convert/composite_multiplicity.golden.ttl # tests/export/testdata/convert/condition_references.golden.ttl.sha256 # tests/export/testdata/convert/connector_ends.golden.ttl # tests/export/testdata/convert/constraints.golden.ttl.sha256 # tests/export/testdata/convert/decision_branches.golden.ttl # tests/export/testdata/convert/declaration_head_order.golden.ttl # tests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256 # tests/export/testdata/convert/end_prefix_metadata.golden.ttl # tests/export/testdata/convert/feature_chains.golden.ttl # tests/export/testdata/convert/feature_chains_repeated.golden.ttl # tests/export/testdata/convert/feature_prefixes.golden.ttl # tests/export/testdata/convert/imported_references.golden.ttl.sha256 # tests/export/testdata/convert/individual_definitions.golden.ttl # tests/export/testdata/convert/invariant_references.golden.ttl # tests/export/testdata/convert/irregular_layout.golden.ttl.sha256 # tests/export/testdata/convert/loop_scopes.golden.ttl # tests/export/testdata/convert/loops_conditionals.golden.ttl.sha256 # tests/export/testdata/convert/metadata_bodies.golden.ttl # tests/export/testdata/convert/metadata_prefixes.golden.ttl # tests/export/testdata/convert/multiplicity_decl.golden.ttl # tests/export/testdata/convert/parts.golden.ttl # tests/export/testdata/convert/payload_declaration_bodies.golden.ttl # tests/export/testdata/convert/quoted_names.golden.ttl # tests/export/testdata/convert/ref_subsets.golden.ttl # tests/export/testdata/convert/result_expressions.golden.ttl.sha256 # tests/export/testdata/convert/send_new.golden.ttl # tests/export/testdata/convert/shadowed_references.golden.ttl.sha256 # tests/export/testdata/convert/shadowing_parameters.golden.ttl.sha256 # tests/export/testdata/convert/state_machine.golden.ttl.sha256 # tests/export/testdata/convert/then_after_members.golden.ttl.sha256 # tests/export/testdata/convert/values.golden.ttl # tests/export/testdata/convert/views_flows_parameters.golden.ttl.sha256 # tests/grpc/testdata/conformance/convert_library_references.expected.json
…ession-implied-bases
…ry reader; re-record the baselines over develop Develop's symbol-backed structure gives an IndexExpression its node, so the # form reached structureExpressionFunction, which resolved the bracket form alone and fell back to Performances::Evaluation where the pilot states BaseFunctions::'#'. Model.IndexFunction now resolves '#' and '[' by the form for the implied types, Expression::function and InstantiationExpression::instantiatedType, and the graph-only reading takes an IndexExpression's stated operator as it does an OperatorExpression's. Re-recorded by tool over develop at 1556ade: the API JSON differential baseline and record (three LiteralInteger rows enter the gap table), the derived census baseline, the structure differential, the convert goldens and the gRPC library-references table. Co-Authored-By: jason.han <hanhuijun@gmail.com>
…on's alone; a cast invokes BaseFunctions::as on the symbol reader kindBaseFQN read the implied expression base for every symbol carrying an expression element, so the input and result parameters synthesized over an operator's node took Performances::Evaluation as a general; it now reads it for an expression symbol alone (TestExpressionImpliedBaseIsNotGivenToItsParameters). structureExpressionFunction gains the cast arm the graph-only reading already had, so an AST-backed (as T) types by BaseFunctions::as on both readers. New comments kept to two lines. Re-recorded by tool: the API JSON and derived-census baselines, the structure differential, the convert goldens and the gRPC library table are unchanged by this. Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # docs/project/api-json-differential-baseline.json # docs/project/api-json-differential.md # tests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256
… digest over develop's source notes Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases
Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # tests/wasm/browser_repl_test.go
…ession-implied-bases
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # docs/project/api-json-differential-baseline.json # docs/project/api-json-differential.md
…nt-properties closeout Documentation.documentedElement moves ours-missing → present-equal (387) as on develop; the branch's own movement against develop's record is unchanged. Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com>
…tructure differential and convert goldens on develop's implied-generalization audit Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases
…ession-implied-bases Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # docs/project/api-json-differential.md # tests/export/testdata/convert/action_nodes.golden.ttl.sha256 # tests/export/testdata/convert/condition_references.golden.ttl.sha256 # tests/export/testdata/convert/connector_ends.golden.ttl # tests/export/testdata/convert/constraints.golden.ttl.sha256 # tests/export/testdata/convert/decision_branches.golden.ttl.sha256 # tests/export/testdata/convert/empty_names_behavior.golden.ttl.sha256 # tests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256 # tests/export/testdata/convert/imported_references.golden.ttl.sha256 # tests/export/testdata/convert/invariant_references.golden.ttl # tests/export/testdata/convert/irregular_layout.golden.ttl.sha256 # tests/export/testdata/convert/metadata_prefixes.golden.ttl.sha256 # tests/export/testdata/convert/parts.golden.ttl # tests/export/testdata/convert/result_expressions.golden.ttl.sha256 # tests/export/testdata/convert/shadowed_references.golden.ttl.sha256 # tests/export/testdata/convert/shadowing_parameters.golden.ttl.sha256 # tests/export/testdata/convert/state_machine.golden.ttl.sha256 # tests/export/testdata/convert/then_after_members.golden.ttl.sha256 # tests/export/testdata/convert/views_flows_parameters.golden.ttl.sha256 # tests/grpc/testdata/conformance/convert_library_references.expected.json
…baselines after develop 313b12d pilot-apijson-diff -update, derived-census -update, -update-structure-differential and the convert goldens' -update reproduce the merged tree; the gRPC library-reference table is the Convert answer; docs/project/api-json-differential.md adjudicates the gaps that entered the top 25. Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases
…ession-implied-bases-real Co-Authored-By: jason.han <hanhuijun@gmail.com> # Conflicts: # tests/export/testdata/convert/action_nodes.golden.ttl.sha256 # tests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256 # tests/export/testdata/convert/state_machine.golden.ttl.sha256 # tests/export/testdata/convert/then_after_members.golden.ttl.sha256 # tests/export/testdata/convert/views_flows_parameters.golden.ttl.sha256
…erential after merging develop b5d1dff and the chain head Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ession-implied-bases-real
6 tasks done
Contributor
6 tasks done
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 20, 2026
The cell-wise merge kept #2002's derived counts on this branch's larger element totals; the tool records the measured values of the 80 rows (our-side columns only, each with at least as many derived as before). Co-Authored-By: jason.han <hanhuijun@gmail.com>
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.
Chained behind #2414. This branch contains
refs/pull/2414/heada221238 (the predecessor in the baseline lane: it already carries #2416 andorigin/develop33457bb) and #2400 3726dc8, which has merged (the root fix for the twonpr7123.gofindings Review raised here on the lines inherited from #1928).What and why
The API JSON element form completes a type's derived properties from the semantic side tables (the inherited-member family,
type,function,behavior, …). For expressions it saw nothing: anOperatorExpression,LiteralInteger,FeatureReferenceExpression,NullExpression, … declares no typing and no general, and the structure evaluator inherited through the metaclass's kind base alone, which no expression metaclass had. So1 + 2carried notype, nofunction, and emptyinheritedMembership/inheritedFeature/feature/member/behaviorlists, while the pilot's element form types it byDataFunctions::+and inheritsPerformances::Evaluation's members.This PR records what an expression implicitly specializes in one semantic side table and lets both completion paths read it:
internal/semantic/semantics/implicit.go—impliedExpressionBasesmaps each expression metaclass to the library feature it implicitly subsets:Expression,OperatorExpression,InvocationExpression,FeatureReferenceExpression,FeatureChainExpression,IndexExpression,CollectExpression,SelectExpression,TriggerInvocationExpression,InstantiationExpression→Performances::evaluations;ConstructorExpression→constructorEvaluations;BooleanExpression→booleanEvaluations;Invariant→trueEvaluations;LiteralExpression→literalEvaluations;LiteralBoolean/LiteralInteger/LiteralRational/LiteralString→ the literal evaluations of their kind;LiteralInfinity→literalIntegerEvaluations(the pilot reads*as an integer literal);NullExpression→nullEvaluations;MetadataAccessExpression→metadataAccessEvaluations.kindBaseFQNreads it for a symbol,ImpliedBaseFQNsForMetaclassfor a graph element known by metaclass alone, so the inherited families follow from the same table that already serves the other kinds.internal/semantic/metamodel/structure_implied_types.go— a feature declaring no typing, no type source and no chaining takes its types from what it implicitly specializes (KerML 1.1 §8.4.4.7): the function it invokes first (§8.4.4.7.3 — the operator'sDataFunctions/BaseFunctionsfunction,.for a chain,ControlFunctions::select/collect,Triggers::TriggerAt/TriggerAfter/TriggerWhen, a stated callee, or the graph'sfunctiontargets for an element without a declaration), else the type of the evaluations feature its metaclass implies.Feature::type,Expression::functionandStep::behaviorfollow in the element form, for notation-backed and graph-only elements alike. The fallback is confined to expression metaclasses: an untyped usage or definition is not given an evaluation type.Nothing is re-derived in the exporter and nothing is stated in Turtle beyond the additive
isLibraryElementstubs the element form already uses for library memberships. Scope notes: the expression's anonymousresultparameter redefinesPerformances::Evaluation::result(§8.4.4.7.1); deriving that redefinition in structure mode needs the positional-redefinition helpers of #1994, so the inherited lists here still carry the inheritedresultbeside the own one — recorded as the remaining cause indocs/project/api-json-differential.md, to be closed once #1994 lands.Multiplicity → Base::naturalsis #1941's and is not touched here; thetypefallback being general, #1941'sMultiplicity.typerow should close once both land.Specification basis
KerML 1.1 Beta 2 §8.4.4.7 Expressions:
and §8.4.4.8 Literal Expressions: a
LiteralExpressionspecializesPerformances::literalEvaluations, and aLiteralBoolean,LiteralInteger,LiteralRational,LiteralStringtheliteralBooleanEvaluations,literalIntegerEvaluations,literalRationalEvaluations,literalStringEvaluationsfeature respectively;NullExpressionnullEvaluations,ConstructorExpressionconstructorEvaluations,MetadataAccessExpressionmetadataAccessEvaluations,BooleanExpressionbooleanEvaluations,InvarianttrueEvaluations. The inherited lists then follow §8.3.3.1.10 (inheritedMemberships,nonPrivateMemberships,removeRedefinedFeatures).One row is added to
docs/project/spec-compliance/02-detailed-semantic-compliance-map/28-name-resolution.md(✅ faithful): an expression implicitly specializes the evaluations of its kind and, declaring no typing, is typed by the function it invokes or else by the evaluation of the base feature.Pilot probe evidence
Probed with the pinned pilot JSON exporter (
build/pilot-json-exporter) onattribute a = 1 + 2; attribute n = null;and the training corpus:1 + 2(OperatorExpression): pilottype=function=DataFunctions::+;inheritedMembershipthe members ofPerformances::EvaluationviaPerformances::evaluations; ours now identical ids.1,2(LiteralInteger): pilottype=Performances::LiteralIntegerEvaluation;null(NullExpression):Performances::NullEvaluation;*(LiteralInfinity): the pilot types it byLiteralIntegerEvaluation, notLiteralEvaluation— the table follows the pilot.FeatureChainExpression→BaseFunctions::'.';SelectExpression/CollectExpression→ControlFunctions::select/collect;TriggerInvocationExpression→Triggers::TriggerAt/TriggerAfter/TriggerWhen;InvocationExpression→ the invokedFunction, as the pilot'sfunctionandtype.Referee (API JSON differential)
Re-recorded with
go run -C tools ./cmd/pilot-apijson-diff -update(935 files, 99,783 elements matched, unchanged). Against develop's record: present-equal 1,924,974 → 1,941,822 (+16,848), present-different 125,097 → 177,585 (+52,488), ours-missing 322,318 → 252,385 (−69,933), indeterminate 32,769 → 33,366 (+597), pilot-missing unchanged; no row grew in ours-missing, no new row.type,functionandbehaviormove ours-missing → equal for every expression metaclass (FeatureReferenceExpression2161,LiteralInteger2010,LiteralString1230,FeatureChainExpression516,LiteralBoolean400,LiteralRational329,LiteralInfinity310,OperatorExpression1333, …); the inherited families move ours-missing → present-different for the same metaclasses — the pilot's lists also carry the typing function's documentation memberships andself, and ours the inheritedPerformances::Evaluation::resultthe own result redefines (the #1994 follow-up above). The 290 indeterminateInvocationExpression.typerows are callees of the model's own Functions the bridge keys differently on the two sides. Every movement is adjudicated indocs/project/api-json-differential.md§ Results;go test -C tools ./referee/apijsongreen. The unkeyed library references rise by 27,732 (the stubs these families name); two conversion goldens cross 200 KiB into digest form; the gRPC conformance tableconvert_library_references.expected.jsongains the 54 expression-related library stubs the element form now reaches.Develop merges (1556ade, e074d3f, 480c3f4, 91f9680, ddc4a54) and re-recorded baselines
Merged
origin/developtwice (at bb3e651, then at 1556ade after #2063 landed) with merge commits,make stdlib-snapshotafter each. Conflicts:internal/semantic/semantics/implicit.goandimplicit_metaclass_test.gokeep both the expression implied bases of this branch and develop's action-node bases; the generated files (API JSON baseline and record, convert goldens and their.sha256digests, the gRPCconvert_library_referencestable) took develop's side and were re-recorded by tool.One root-cause fix the merge surfaced: develop's symbol-backed structure now gives an
IndexExpressionits node, so the#(…)form reachedstructureExpressionFunction, which resolved the bracket form alone and fell back toPerformances::Evaluationwhere the pilot statesBaseFunctions::'#'(47IndexExpression.type/function/behaviorrows had turned present-different).Model.IndexFunctionnow resolves'#'for the#form and'['for the bracket form on every reader (structureExpressionFunction,Expression::function,InstantiationExpression::instantiatedType, and the graph-only reading by the statedoperator), withIndexExpr.OperatorSpellingas the one spelling; covered byTestInstantiationExpressionResolvesBracketAndSequenceOperators(the#row) andTestAPIJSONExpressionsInheritThroughTheirImpliedBase(x#(1)).Re-recorded by tool, against develop's record at 1556ade:
pilot-apijson-diff -update: 935 files, 104414 elements matched (unchanged); present-equal 2024264 → 2050225 (+25961), present-different 142934 → 187753 (+44819), ours-missing 306820 → 235432 (−71388), indeterminate 35107 → 35715 (+608), pilot-missing unchanged; 139 rows moved, no row grew in ours-missing, no new row. The record (docs/project/api-json-differential.md, step 6 paragraph, headline, per-root table and gap table) restates every figure; the gap table gains the threeLiteralIntegerrows (isModelLevelEvaluable,parameter,result) that enter the top 25 by ours-missing now that the literals' other rows are closed.go test -C tools ./referee/apijsongreen.derived-census -update(develop's gate, new since this branch was cut):Expression::functionvalue 597 → 7058,Step::behavior696 → 7433,Feature::type8050 → 14789, theType::inheritedFeature/inheritedMembership/feature/featureMembership/member/membership/directedFeature/outputvalues up by the expressions' inherited families;Type::endFeaturenot-derived 23157 → 29914 — the expressions join every other type with library-inherited features, whoseFeature::isEndthe symbol structure does not read (missing-structure … inherited Feature::isEnd attribute is unavailable), a limitation that predates this branch;silentlist unchanged.TestSymbolStructureMatchesGraphStructure -update-structure-differential:Type::endFeaturesymbol-missing 36 → 26, the inherited families gain equal rows; two KerML invariants (JohnIndividualExample::UnitedStates::presidentOfUS,TextualRepresentation::C::x_constraint, exported asConstraintUsage) the symbol reader types byPerformances::BooleanEvaluationthrough the implied base while the graph reader, knowing them by metaclass alone, states nothing — the two-element movement onExpression::function,Step::behavior,Feature::type,Usage::definition,ConstraintUsage::constraintDefinitionandOccurrenceUsage::occurrenceDefinition.tests/exportgoldens (-update) and the gRPCconvert_library_referencestable (sysml -convert api-json -library-references): the 54 expression stubs as before, over develop's current goldens.Merged
origin/developagain at e074d3f (#2027 OSLC query plans, #2071 source notes) and at 480c3f4 (#2075 review guidelines), each a merge commit withmake stdlib-snapshotafter it. Conflicts, all in generated files taken from develop and re-recorded by tool:docs/project/api-json-differential-baseline.jsonand its record, andtests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256(TestGoldenConversions -update). Against develop's record at e074d3f the api-json movement is the same as before (present-equal +25961, present-different +44819, ours-missing −71388, indeterminate +608; 104414 matched, 18080 ours-only with develop'ssysx:Noteentries); the derived census, the structure differential and the docs counts did not move. One gate moved: the gzipped browser REPL module measures 16,006,036 bytes on this head against develop's 16,000,000 budget (develop itself is within 1 KB of it), sotests/wasmraises the budget to 16,100,000 as the previous raises did.Merged
origin/developagain at 91f9680 (#2026 inline document query) and ddc4a54 (#2072ConjugatedPortTyping::conjugatedPortDefinition),make stdlib-snapshotafter each. One conflict,tests/wasm/browser_repl_test.go: develop raised the same budget to 16,100,000 in #2026, so its side is taken; the merged tree's module still measures under it. Every generated baseline checks clean on the merged tree (pilot-apijson-diff -checkidentical,derived-census -check,make docs-counts), so nothing was re-recorded.Merged
origin/developagain at 13038ee (the api-json baseline as a fragment directory, the derived census records, the implied-generalization audit's feature typing, the opt-in inherited families of the element form), a merge commit withmake stdlib-snapshotafter it. Conflicts:internal/semantic/metamodel/structure_rules.gowas the import block alone (this branch'sfmt, develop'smapsandslices; both sides' behaviour kept);docs/project/api-json-differential.mdtook develop's doc-counts blocks and keeps this branch's keyed gap rows; every generated file (the deletedapi-json-differential-baseline.json,derived_census_baseline.json,structure_differential_expected.txt, the convert goldens and.sha256digests) took develop's side and was re-recorded by tool. Against develop's record at 13038ee: present-equal 2106876 → 2143571 (+36687), present-different 148373 → 184193 (+35812), ours-missing 301823 → 227097 (−74710), indeterminate 36020 → 38231 (+2211), pilot-missing and elements unchanged; 128 rows moved, no row grew in ours-missing, no row went present-equal → present-different, no new row — the present-different growth is the inherited families of the expression metaclasses leaving ours-missing (FeatureReferenceExpression.inheritedMembership2368,LiteralInteger.member2051,OperatorExpression.inheritedMembership1445,LiteralString.feature1385, …).FeatureReferenceExpression::featuringType(1861 ours-missing) enters the top 25 and is adjudicated in the gap table. The derived census moves on 12 rules (108 records):Expression::function+8399 valued,Feature::type+8722,Step::behavior+8720,Type::inheritedFeature/inheritedMembership+8685,Type::feature/featureMembership/member/membership/directedFeature/output+2839…2847,Type::endFeature8685 empty → not derived;pilot-differential-baseline.jsondoes not move. The structure differential moves on the same 13 rows as before (Type::endFeaturesymbol-missing 29 → 19, 6 → 4, 30 → 16, 7 → 3; the two-element KerML invariant movement). Two test expectations follow develop: the element-form test asks forInheritedMembers: true, which develop made opt-in, and the gRPC library table spellsDataFunctions::'*'andBaseFunctions::'['quoted.Stacked on #1928 (
refs/pull/1928/headdec1678, the NPR7123 library pin and its example) andorigin/develope664a37, each a merge commit with the cell-wise baseline driver andmake stdlib-snapshotafter it. Conflicts:docs/project/api-json-differential.md— #1928 had added aFeatureReferenceExpression::functiongap row as not completed, which this branch completes, so the row is kept in this branch's wording beside its sibling rows;docs/project/api-json-differential/examples/self-model/pipeline.sysml.jsonandtests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256took #1928's side and were re-recorded by tool. Re-recorded on the stacked tree, only what-checkflagged:pilot-apijson-diff(the cell-wise sums were short by the NPR7123 example's expressions, which this branch's completion reaches too: present-equal +463, present-different +418, ours-missing −881 against the summed record; against #1928's record present-equal 2138604 → 2175762 (+37158), present-different 149181 → 185419 (+36238), ours-missing 307485 → 231878 (−75607), indeterminate +2211, 128 rows, no row grew ours-missing, no present-equal → present-different, no new row),derived-census(12 rules on theexamplesroot, 133 expression elements both branches had moved, now counted once) and theend_binding_bodiesdigest;pilot-diff -check, the structure differential, the other goldens andmake extension-libraries-pin-checkreproduce without re-record.pilot-differential-baseline.jsonandtraining_examples_expected.txtuntouched.Stacked on #2400 (
refs/pull/2400/head1258718 → 086b509 → edcf808 → e5e9c38, each merged--no-ffwith the cell-wise driver as its owner pushed) andorigin/develop(e1e2829, where #1928 landed, then 699347b, then 5990602),make stdlib-snapshotafter each, no conflicts, one merge base. Nothing moved for the tools:pilot-apijson-diff -checkidentical,derived-census -check -require-exporterreproduces,pilot-diff -checkreproduces, the structure differential and the conversion goldens pass,make extension-libraries-pin-checkpasses; so nothing was re-recorded on this stack. The two Review threads oninternal/check/passes/npr7123.go(thecheckSEMPwalk without a visited set;reviewedProductrejecting a review-definition owner) are fixed by #2400's commits, which this head contains.Re-stacked on #2400 after it reverted 086b509, edcf808 and e5e9c38 (its head 3726dc8 has 1258718's tree): merged
--no-ff, thenorigin/develop455ed37 (#2388, #2390; Go-only),make stdlib-snapshotafter each, no conflicts, one merge base. The merges touch no input of the baseline tools (internal/exec/runtime,internal/doc/queryexec,client/opensysml,docs/reference), so the-checkresults above stand and nothing was re-recorded. The Review thread ondeclaredMemberOverfullis settled by that revert.Merged
origin/develop313b12d (#2309, #2389, #2391, #2394, #2395, #2401)--no-ffwith the cell-wise baseline driver,make stdlib-snapshotafter it, one merge base. Conflicts: 18 convert goldens/.sha256and the gRPCconvert_library_referencestable taken from develop and re-recorded by their tests (the table is theConvertanswer; it adds this branch'sPerformances::Evaluationfamily and the quotedDataFunctions::'*'/BaseFunctions::'['rows back over develop's);docs/project/api-json-differential.mdkeeps develop's six #2309 rows restated as completed here. The driver's cell-wise sums did not reproduce, sopilot-apijson-diff -update(461 fragments),derived-census -update(Type::endFeatureonly, the tool's values equal develop's row, so no own census movement) and-update-structure-differentialre-recorded them;pilot-differential-baseline.jsonis untouched. Against develop 313b12d: present-equal 2172835 → 2218150 (+45315), present-different 147727 → 160862 (+13135), ours-missing 263978 → 188387 (−75591), indeterminate 49287 → 66428 (+17141); 136 rows moved, all expression metaclasses, no row grew ours-missing, no present-equal → present-different row, no new row. Six inherited gaps unchanged against develop entered the top 25 ours-missing (LiteralInteger.featuringType,ReferenceUsage.definition,OperatorExpression.instantiatedType/isModelLevelEvaluable,LiteralString.isModelLevelEvaluable/parameter) and are adjudicated in the record.Merged
origin/developb5d1dff, thenrefs/pull/2414/head069a3c7, thenorigin/develop33457bb (#2411, #2416) andrefs/pull/2414/heada221238, each--no-ffwith the cell-wise baseline driver andmake stdlib-snapshotafter it, one merge base. Conflicts: five convert digests (action_nodes,end_binding_bodies,state_machine,then_after_members,views_flows_parameters.golden.ttl.sha256) took develop's side and were re-recorded byTestGoldenConversions -update— this branch's implied-base triples and #2414's materialized relationships meet in the same goldens.pilot-apijson-diff -updatemoved one fragment,spec-examples/kerml/7.4.5.2/3.kerml.jsonunkeyedReferences38 → 44: develop has 32, this branch alone 38 and #2414 alone 38, so the sum is each side's six with no interaction (the driver had kept one side's 38); the totals (present-equal 2221092, present-different 161031, ours-missing 188381) reproduce after it.derived-census -check -require-exporter,pilot-diff -check, the structure differential and the gRPCconvert_library_referencestable reproduce without re-record;pilot-differential-baseline.jsonandtraining_examples_expected.txtuntouched.How it was verified
internal/semantic/semantics/implicit_metaclass_test.goTestImpliedBaseFQNsForMetaclassCoversExpressions: every expression metaclass answers its evaluations feature, for a symbol and by metaclass alone.internal/translate/export/api_json_expression_bases_test.goTestAPIJSONExpressionsInheritThroughTheirImpliedBase: on the probe model the element form'stype,function,behaviorand inherited families match the pilot's ids, in notation and graph-only (structure) mode.tests/exportgoldens regenerated withgo test ./tests/export -run TestGoldenConversions -update;tests/grpcconvert_library_referencestable regenerated; API JSON baseline withpilot-apijson-diff -update; nothing hand-edited.OPENSYSML_REQUIRE_TRAINING_CORPUS,_PILOT_CORPORA,_SPEC_EXAMPLES,_PILOT_LIBRARY_XMI):go build,go vet,gofmt -lempty,make lint,make spec-compliance-check,make changelog-check,go test -timeout 45m ./..., race shardsmodel,rest,export,export-corpus,export-settled.Checklist
make testandmake lintpass locallychanges/unreleased/api-json-expression-implied-bases.added.md, not as an edit toCHANGELOG.mdmake docs-countsrun if a gate count moved (compliance rows need nothing: the census is counted at docs build)F4,K5) in the body, docs, or changelogLink to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/c507b405abda4b6fb7b63448eca5b9c7
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/c507b405abda4b6fb7b63448eca5b9c7?variant=devin
Requested by: @HuiJun