Skip to content

refactor(check): move the validation packages into internal/check - #443

Merged
HuiJun merged 2 commits into
developfrom
refactor/layer-check
Sep 19, 2026
Merged

HuiJun merged 2 commits into
developfrom
refactor/layer-check

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

What and why

Fourth step of the layer-directory move, on top of the internal/ir pull request. Moves the validation packages into internal/check/:

internal/core/passes (with kit, behavior, document, diagram, identity) → internal/check/passes/...
internal/core/edit                                                     → internal/check/edit

A mechanical relocation: git mv, import-path rewrite across the root module and tools/, the layering-test keys and pins (the passes/<sub> → passes and runtime → passes forbidden edges are kept with their new paths), sonar-project.properties, scripts/pgo-profile.sh, the self-model's goPackage references, and the file citations in docs/project/validation-constraints.md that the census gate checks. The examples digest in docs/project/pilot-differential-baseline.json is re-recorded because the self-model's goPackage strings changed; no other figure moved.

How it was verified

go build ./..., go vet ./..., gofmt -l . (empty), make lint, make docs-check, the full suite with OPENSYSML_REQUIRE_TRAINING_CORPUS=1 OPENSYSML_REQUIRE_PILOT_CORPORA=1 OPENSYSML_REQUIRE_PILOT_LIBRARY_XMI=1 go test -count=1 ./... (79 packages ok), the tools/ module (build, vet, test, doc-counts -check), python3 scripts/changelog.py check. go list ./internal/... | wc -l (59) is unchanged.

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

@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 September 19, 2026 09:04

@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.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

devin-ai-integration Bot and others added 2 commits September 19, 2026 14:56
Moves passes (with kit, behavior, document, diagram and identity) and
edit from internal/core to internal/check and rewrites their imports.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
…ial baseline

The self-model's Go package references moved to internal/check.

Co-Authored-By: jason.han <hanhuijun@gmail.com>
Base automatically changed from refactor/layer-ir to develop September 19, 2026 18:01
@HuiJun
HuiJun merged commit d9ea349 into develop Sep 19, 2026
12 checks passed
@HuiJun
HuiJun deleted the refactor/layer-check branch September 19, 2026 18:01
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