Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

fix(check): report an inaccessible subsetted feature on a standalone specialization subset member - #1402

Merged
HuiJun merged 14 commits into
developfrom
fix/standalone-subsetting-accessibility
Oct 23, 2026
Merged

HuiJun merged 14 commits into
developfrom
fix/standalone-subsetting-accessibility

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Stacked on #1401, which stacks on #1392. Both are absorbed here as merge commits (c8c8897a8 subject-position checks, 2deb6d516 constructor-argument override), so the diff against develop shows their changes until they land; this PR's own change is the standalone specialization subset accessibility check described below, plus the re-recorded rejection baseline from the combined tree.

specialization subset fu :> A::a; beside feature fv : Real :> A::a; drew Must be an accessible feature (use dot notation for nesting) on the inline form only; the pinned pilot reports it on both. The two spellings write the one Subsetting relationship (KerML §8.2.2 gives both notations), and validateSubsettingFeaturingTypes holds of every Subsetting, so the standalone specialization subset member is now judged by the same rule: its subsetting end is resolved to the feature it names and the subsetted end checked from that feature's featuring context, reported at the subsetted name — 7:33 and 8:26 on the reproducer, the pilot's positions.

The judgement the inline form already used is factored into checkSubsettedFeatureAccessible, which both notations call; nothing changes for the inline form.

Specification basis

KerML 1.1 Beta 2 §8.3.3.3.10 validateSubsettingFeaturingTypes (subsettingFeature.canAccess(subsettedFeature)) and §8.2.2 Subsetting / SpecializationMember (the standalone notation). New row beside the existing validateSubsettingFeaturingTypes row in docs/project/spec-compliance.md; the census row gains the new negative case.

How it was verified

  • passes/w7g_subsetting_featuring_test.go: the reproducer (standalone and inline both reported at A::a); the standalone form through a reachable featuring context and against a package-level feature stays silent.
  • Rejection corpus semantic/k77-standalone-subsetting-inaccessible-feature.kerml — both reject; this branch stacks on the constructor-override PR (fix(check): report a constructor argument that overrides a binding feature value #1401) and pilot-reject -update re-recorded the baseline from the combined tree (339 cases, 328 both reject, still 0 pilot-only); make docs-counts run. The direction-conformance PR (fix(check): hold an undirected redefinition and a step's positional parameter to direction conformance #1399) stacks on this one and re-records it again.
  • pilot-diff -check reproduces the committed differential baseline (916 files; 366 only ours / 2445 only the pilot's — unchanged); TestTrainingExamples, TestPilotCorpora, TestSpecExamples, TestStdlibConformance pass.
  • Sweep of examples/, tests/testdata, tests/parser/testdata, internal/exec/runtime/testdata with the develop build vs this branch: no newly flagged file.
  • Tethys integration/phase-3: make validate passes with this build; the probe reports the diagnostic on both lines.
  • go build ./... && go vet ./... && gofmt -l . clean; go test ./... and make lint in progress at push time.

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/<slug>.<section>.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/7b54c9b0fcf9488fa8aa05694b590d65
Open in Devin Desktop: https://nasa-jpl-demo.devinenterprise.com/desktop/session/7b54c9b0fcf9488fa8aa05694b590d65?variant=devin
Requested by: @HuiJun

devin-ai-integration Bot and others added 2 commits October 22, 2026 15:19
…ature value

A new T(…) argument is a feature of the result redefining the type's feature;
one bound to a feature whose value is written with = (itself or through what
it redefines) overrides that binding (KerML 8.3.4.10.2), as the redefinition
form attribute :>> x = 2 already reports.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…specialization subset member

The keyword-first specialization subset f :> T::g; writes the same Subsetting
as the inline f :> T::g, and validateSubsettingFeaturingTypes (KerML
8.3.3.3.10) holds of it however it is spelled.

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 left a comment •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

…ces they name

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review October 22, 2026 16:21
devin-ai-integration Bot and others added 2 commits October 22, 2026 20:42
…tor-bound-value-override

Re-record the pilot rejection baseline and the documentation counts from the combined tree: 338 cases, 327 rejected by both.

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

Re-record the pilot rejection baseline and the documentation counts from the combined tree: 339 cases, 328 rejected by both.

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 2 commits October 22, 2026 21:08
…tor bindings

The feature-reference walker returned early on every type-taking operator, so a constructor under istype, hastype, as or @ escaped the binding-override check. Only all, meta and @@ take an element whose name may be a type's; the others keep their type in TypeRef and their operand is an expression.

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 4 commits October 23, 2026 06:50
…und-value-override

Re-record the pilot rejection baseline and the documentation counts from the combined tree: 339 cases, 327 rejected by both, 12 only by us.

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

Re-record the pilot rejection baseline and the documentation counts from the combined tree: 340 cases, 328 rejected by both, 12 only by us.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@HuiJun
HuiJun merged commit 3b9d0a8 into develop Oct 23, 2026
28 checks passed
@HuiJun
HuiJun deleted the fix/standalone-subsetting-accessibility branch October 23, 2026 13:35
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