Skip to content

test(csharp): pin parent-relative dotted reference-facet values - #699

Merged
dmealing merged 1 commit into
mainfrom
fm/mo-140-w1-b1-cs-dotted
Dec 3, 2026
Merged

dmealing merged 1 commit into
mainfrom
fm/mo-140-w1-b1-cs-dotted

Conversation

@dmealing

@dmealing dmealing commented Dec 3, 2026

Copy link
Copy Markdown
Member

What Changed

  • Adds three C# conformance tests in server/csharp/MetaObjects.Conformance.Tests/ReferenceFacetTests.cs for ADR-0059 parent-relative dotted values (..::Owner.child) in reference-facet attribute values: one resolves its owner from the declaring package and binds to the target node, one naming another type reports ERR_REF_WRONG_KIND, and one naming no node reports ERR_REF_UNRESOLVED.
  • Adds changelog fragment changelog.d/csharp-parent-relative-dotted-reference-tests.md describing the test-only change.
  • No source, public API, or generated-output change.
Validation

Risk Assessment

✅ Low: The change adds only three tests and a changelog fragment with no source change, and tracing ..::Parcels.api, .db and .nobody from acme::sub through the C# symbol table (which matches the TypeScript lookup) gives the asserted target, canonical spelling and error codes.

Testing

Baseline scripts/ci-local.sh --affected --strict-toolchains already passed at this commit. In this turn I ran dotnet test MetaObjects.Conformance.Tests --filter ReferenceFacetTests (47 of 47 passed, including the three new tests). Those tests run the C# loader in-process on synthetic models, which the rubric does not count as live, so each scenario is untested with live=false. The TypeScript-parity half of the intent was not checked in this run. No source or test files changed in this turn, so broad regression was not re-run and the worktree is clean.

  • Live validation: ✅ go - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Parent-relative dotted value ..::Parcels.api from package acme::sub resolves its owner and binds the app node (A_parent_relative_dotted_value_resolves_its_owner) ⏸️ untested no Passes as an xUnit run of the real loader, but that is not live under the rubric. A live check would drive dotnet meta verify on a disposable model. Not done this turn.
Parent-relative dotted value naming another type (..::Parcels.db) reports ERR_REF_WRONG_KIND (A_parent_relative_dotted_value_naming_another_type_is_the_wrong_kind) ⏸️ untested no Same as above: xUnit in-process run, not live.
Parent-relative dotted value naming no node (..::Parcels.nobody) reports ERR_REF_UNRESOLVED with the quoted value (A_parent_relative_dotted_value_naming_no_node_is_unresolved) ⏸️ untested no Same as above: xUnit in-process run, not live.

Pipeline

Updates from git push no-mistakes

✅ **Intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 0 of 3 scenarios driven live against the product
Scenario Result Live Evidence
Parent-relative dotted value ..::Parcels.api from package acme::sub resolves its owner and binds the app node (A_parent_relative_dotted_value_resolves_its_owner) ⏸️ untested no Passes as an xUnit run of the real loader, but that is not live under the rubric. A live check would drive dotnet meta verify on a disposable model. Not done this turn.
Parent-relative dotted value naming another type (..::Parcels.db) reports ERR_REF_WRONG_KIND (A_parent_relative_dotted_value_naming_another_type_is_the_wrong_kind) ⏸️ untested no Same as above: xUnit in-process run, not live.
Parent-relative dotted value naming no node (..::Parcels.nobody) reports ERR_REF_UNRESOLVED with the quoted value (A_parent_relative_dotted_value_naming_no_node_is_unresolved) ⏸️ untested no Same as above: xUnit in-process run, not live.
  • scripts/ci-local.sh --affected --strict-toolchains
  • scripts/ci-local.sh --affected --strict-toolchains baseline (passed, from the configured test command)
  • cd server/csharp && dotnet test MetaObjects.Conformance.Tests --filter FullyQualifiedName~ReferenceFacetTests (47 passed)
  • git status clean after run
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@dmealing
dmealing merged commit 581a71d into main Dec 3, 2026
9 checks passed
@dmealing
dmealing deleted the fm/mo-140-w1-b1-cs-dotted branch December 3, 2026 08:28
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