Skip to content

feat(export): an expression's implied base completes its type and inherited family in the element form - #2002

Merged
HuiJun merged 50 commits into
developfrom
feat/api-json-expression-implied-bases
Nov 20, 2026
Merged

HuiJun merged 50 commits into
developfrom
feat/api-json-expression-implied-bases

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

Chained behind #2414. This branch contains refs/pull/2414/head a221238 (the predecessor in the baseline lane: it already carries #2416 and origin/develop 33457bb) and #2400 3726dc8, which has merged (the root fix for the two npr7123.go findings 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: an OperatorExpression, 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. So 1 + 2 carried no type, no function, and empty inheritedMembership/inheritedFeature/feature/member/behavior lists, while the pilot's element form types it by DataFunctions::+ and inherits Performances::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 — impliedExpressionBases maps 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. kindBaseFQN reads it for a symbol, ImpliedBaseFQNsForMetaclass for 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's DataFunctions/BaseFunctions function, . for a chain, ControlFunctions::select/collect, Triggers::TriggerAt/TriggerAfter/TriggerWhen, a stated callee, or the graph's function targets for an element without a declaration), else the type of the evaluations feature its metaclass implies. Feature::type, Expression::function and Step::behavior follow 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 isLibraryElement stubs the element form already uses for library memberships. Scope notes: the expression's anonymous result parameter redefines Performances::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 inherited result beside the own one — recorded as the remaining cause in docs/project/api-json-differential.md, to be closed once #1994 lands. Multiplicity → Base::naturals is #1941's and is not touched here; the type fallback being general, #1941's Multiplicity.type row should close once both land.

Specification basis

KerML 1.1 Beta 2 §8.4.4.7 Expressions:

An Expression must directly or indirectly specialize the Feature Performances::evaluations from the Kernel Semantic Library. … If an Expression does not have an explicit function, then its function is its single result-typing Function, if any (§8.4.4.7.3). … The result parameter of an Expression must redefine Performances::Evaluation::result (§8.4.4.7.1).

and §8.4.4.8 Literal Expressions: a LiteralExpression specializes Performances::literalEvaluations, and a LiteralBoolean, LiteralInteger, LiteralRational, LiteralString the literalBooleanEvaluations, literalIntegerEvaluations, literalRationalEvaluations, literalStringEvaluations feature respectively; NullExpression nullEvaluations, ConstructorExpression constructorEvaluations, MetadataAccessExpression metadataAccessEvaluations, BooleanExpression booleanEvaluations, Invariant trueEvaluations. 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) on attribute a = 1 + 2; attribute n = null; and the training corpus:

  • 1 + 2 (OperatorExpression): pilot type = function = DataFunctions::+; inheritedMembership the members of Performances::Evaluation via Performances::evaluations; ours now identical ids.
  • 1, 2 (LiteralInteger): pilot type = Performances::LiteralIntegerEvaluation; null (NullExpression): Performances::NullEvaluation; * (LiteralInfinity): the pilot types it by LiteralIntegerEvaluation, not LiteralEvaluation — the table follows the pilot.
  • FeatureChainExpression → BaseFunctions::'.'; SelectExpression/CollectExpression → ControlFunctions::select/collect; TriggerInvocationExpression → Triggers::TriggerAt/TriggerAfter/TriggerWhen; InvocationExpression → the invoked Function, as the pilot's function and type.

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, function and behavior move ours-missing → equal for every expression metaclass (FeatureReferenceExpression 2161, LiteralInteger 2010, LiteralString 1230, FeatureChainExpression 516, LiteralBoolean 400, LiteralRational 329, LiteralInfinity 310, OperatorExpression 1333, …); the inherited families move ours-missing → present-different for the same metaclasses — the pilot's lists also carry the typing function's documentation memberships and self, and ours the inherited Performances::Evaluation::result the own result redefines (the #1994 follow-up above). The 290 indeterminate InvocationExpression.type rows are callees of the model's own Functions the bridge keys differently on the two sides. Every movement is adjudicated in docs/project/api-json-differential.md § Results; go test -C tools ./referee/apijson green. 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 table convert_library_references.expected.json gains the 54 expression-related library stubs the element form now reaches.

Develop merges (1556ade, e074d3f, 480c3f4, 91f9680, ddc4a54) and re-recorded baselines

Merged origin/develop twice (at bb3e651, then at 1556ade after #2063 landed) with merge commits, make stdlib-snapshot after each. Conflicts: internal/semantic/semantics/implicit.go and implicit_metaclass_test.go keep 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 .sha256 digests, the gRPC convert_library_references table) 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 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::'#' (47 IndexExpression.type/function/behavior rows had turned present-different). Model.IndexFunction now resolves '#' for the # form and '[' for the bracket form on every reader (structureExpressionFunction, Expression::function, InstantiationExpression::instantiatedType, and the graph-only reading by the stated operator), with IndexExpr.OperatorSpelling as the one spelling; covered by TestInstantiationExpressionResolvesBracketAndSequenceOperators (the # row) and TestAPIJSONExpressionsInheritThroughTheirImpliedBase (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 three LiteralInteger rows (isModelLevelEvaluable, parameter, result) that enter the top 25 by ours-missing now that the literals' other rows are closed. go test -C tools ./referee/apijson green.
  • derived-census -update (develop's gate, new since this branch was cut): Expression::function value 597 → 7058, Step::behavior 696 → 7433, Feature::type 8050 → 14789, the Type::inheritedFeature/inheritedMembership/feature/featureMembership/member/membership/directedFeature/output values up by the expressions' inherited families; Type::endFeature not-derived 23157 → 29914 — the expressions join every other type with library-inherited features, whose Feature::isEnd the symbol structure does not read (missing-structure … inherited Feature::isEnd attribute is unavailable), a limitation that predates this branch; silent list unchanged.
  • TestSymbolStructureMatchesGraphStructure -update-structure-differential: Type::endFeature symbol-missing 36 → 26, the inherited families gain equal rows; two KerML invariants (JohnIndividualExample::UnitedStates::presidentOfUS, TextualRepresentation::C::x_constraint, exported as ConstraintUsage) the symbol reader types by Performances::BooleanEvaluation through the implied base while the graph reader, knowing them by metaclass alone, states nothing — the two-element movement on Expression::function, Step::behavior, Feature::type, Usage::definition, ConstraintUsage::constraintDefinition and OccurrenceUsage::occurrenceDefinition.
  • tests/export goldens (-update) and the gRPC convert_library_references table (sysml -convert api-json -library-references): the 54 expression stubs as before, over develop's current goldens.

Merged origin/develop again at e074d3f (#2027 OSLC query plans, #2071 source notes) and at 480c3f4 (#2075 review guidelines), each a merge commit with make stdlib-snapshot after it. Conflicts, all in generated files taken from develop and re-recorded by tool: docs/project/api-json-differential-baseline.json and its record, and tests/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's sysx:Note entries); 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), so tests/wasm raises the budget to 16,100,000 as the previous raises did.

Merged origin/develop again at 91f9680 (#2026 inline document query) and ddc4a54 (#2072 ConjugatedPortTyping::conjugatedPortDefinition), make stdlib-snapshot after 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 -check identical, derived-census -check, make docs-counts), so nothing was re-recorded.

Merged origin/develop again 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 with make stdlib-snapshot after it. Conflicts: internal/semantic/metamodel/structure_rules.go was the import block alone (this branch's fmt, develop's maps and slices; both sides' behaviour kept); docs/project/api-json-differential.md took develop's doc-counts blocks and keeps this branch's keyed gap rows; every generated file (the deleted api-json-differential-baseline.json, derived_census_baseline.json, structure_differential_expected.txt, the convert goldens and .sha256 digests) 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.inheritedMembership 2368, LiteralInteger.member 2051, OperatorExpression.inheritedMembership 1445, LiteralString.feature 1385, …). 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::endFeature 8685 empty → not derived; pilot-differential-baseline.json does not move. The structure differential moves on the same 13 rows as before (Type::endFeature symbol-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 for InheritedMembers: true, which develop made opt-in, and the gRPC library table spells DataFunctions::'*' and BaseFunctions::'[' quoted.

Stacked on #1928 (refs/pull/1928/head dec1678, the NPR7123 library pin and its example) and origin/develop e664a37, each a merge commit with the cell-wise baseline driver and make stdlib-snapshot after it. Conflicts: docs/project/api-json-differential.md — #1928 had added a FeatureReferenceExpression::function gap 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.json and tests/export/testdata/convert/end_binding_bodies.golden.ttl.sha256 took #1928's side and were re-recorded by tool. Re-recorded on the stacked tree, only what -check flagged: 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 the examples root, 133 expression elements both branches had moved, now counted once) and the end_binding_bodies digest; pilot-diff -check, the structure differential, the other goldens and make extension-libraries-pin-check reproduce without re-record. pilot-differential-baseline.json and training_examples_expected.txt untouched.

Stacked on #2400 (refs/pull/2400/head 1258718 → 086b509 → edcf808 → e5e9c38, each merged --no-ff with the cell-wise driver as its owner pushed) and origin/develop (e1e2829, where #1928 landed, then 699347b, then 5990602), make stdlib-snapshot after each, no conflicts, one merge base. Nothing moved for the tools: pilot-apijson-diff -check identical, derived-census -check -require-exporter reproduces, pilot-diff -check reproduces, the structure differential and the conversion goldens pass, make extension-libraries-pin-check passes; so nothing was re-recorded on this stack. The two Review threads on internal/check/passes/npr7123.go (the checkSEMP walk without a visited set; reviewedProduct rejecting 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, then origin/develop 455ed37 (#2388, #2390; Go-only), make stdlib-snapshot after 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 -check results above stand and nothing was re-recorded. The Review thread on declaredMemberOverfull is settled by that revert.

Merged origin/develop 313b12d (#2309, #2389, #2391, #2394, #2395, #2401) --no-ff with the cell-wise baseline driver, make stdlib-snapshot after it, one merge base. Conflicts: 18 convert goldens/.sha256 and the gRPC convert_library_references table taken from develop and re-recorded by their tests (the table is the Convert answer; it adds this branch's Performances::Evaluation family and the quoted DataFunctions::'*'/BaseFunctions::'[' rows back over develop's); docs/project/api-json-differential.md keeps develop's six #2309 rows restated as completed here. The driver's cell-wise sums did not reproduce, so pilot-apijson-diff -update (461 fragments), derived-census -update (Type::endFeature only, the tool's values equal develop's row, so no own census movement) and -update-structure-differential re-recorded them; pilot-differential-baseline.json is 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/develop b5d1dff, then refs/pull/2414/head 069a3c7, then origin/develop 33457bb (#2411, #2416) and refs/pull/2414/head a221238, each --no-ff with the cell-wise baseline driver and make stdlib-snapshot after 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 by TestGoldenConversions -update — this branch's implied-base triples and #2414's materialized relationships meet in the same goldens. pilot-apijson-diff -update moved one fragment, spec-examples/kerml/7.4.5.2/3.kerml.json unkeyedReferences 38 → 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 gRPC convert_library_references table reproduce without re-record; pilot-differential-baseline.json and training_examples_expected.txt untouched.

How it was verified

  • internal/semantic/semantics/implicit_metaclass_test.go TestImpliedBaseFQNsForMetaclassCoversExpressions: every expression metaclass answers its evaluations feature, for a symbol and by metaclass alone.
  • internal/translate/export/api_json_expression_bases_test.go TestAPIJSONExpressionsInheritThroughTheirImpliedBase: on the probe model the element form's type, function, behavior and inherited families match the pilot's ids, in notation and graph-only (structure) mode.
  • tests/export goldens regenerated with go test ./tests/export -run TestGoldenConversions -update; tests/grpc convert_library_references table regenerated; API JSON baseline with pilot-apijson-diff -update; nothing hand-edited.
  • Full gate with the corpora present (OPENSYSML_REQUIRE_TRAINING_CORPUS, _PILOT_CORPORA, _SPEC_EXAMPLES, _PILOT_LIBRARY_XMI): go build, go vet, gofmt -l empty, make lint, make spec-compliance-check, make changelog-check, go test -timeout 45m ./..., race shards model, rest, export, export-corpus, export-settled.

Checklist

  • make test and make lint pass locally
  • Tests added or updated for the change
  • Documentation extended where it already covers the surface (see CONTRIBUTING.md)
  • Changelog entry added as changes/unreleased/api-json-expression-implied-bases.added.md, not as an edit to CHANGELOG.md
  • baselines regenerated and make docs-counts run if a gate count moved (compliance rows need nothing: the census is counted at docs build)
  • No internal work-item labels (waves, slices, F4, K5) in the body, docs, or changelog

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

devin-ai-integration Bot and others added 6 commits November 6, 2026 05:12
…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>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review November 9, 2026 15:28
devin-ai-integration Bot and others added 3 commits November 9, 2026 16:01
…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
…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>
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration Bot and others added 16 commits November 9, 2026 17:51
…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>
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

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

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>
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration Bot and others added 9 commits November 19, 2026 18:06
…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-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>
@devin-ai-integration devin-ai-integration Bot added the ci:rebaseline Merge develop into this pull request and re-record its generated baselines label Nov 20, 2026
@github-actions github-actions Bot removed the ci:rebaseline Merge develop into this pull request and re-record its generated baselines label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

ci:rebaseline merged origin/develop and re-recorded the baselines as 63da6e6 (run).

Movement to adjudicate:

No generated record moved against the merged tree.

@HuiJun
HuiJun added this pull request to the merge queue Nov 20, 2026
devin-ai-integration Bot added a commit that referenced this pull request Nov 20, 2026
…elop 1f208d2 and #2002

The merge took develop's copy; this records the combined tree, where this
branch's synthesized memberships, FlowEnd members and ExtendedUsage
composition raise every root's matched count.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
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>
Merged via the queue into develop with commit 8ec712f Nov 20, 2026
33 checks passed
@HuiJun
HuiJun deleted the feat/api-json-expression-implied-bases branch November 20, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant