Skip to content

refactor(ir): move the semantic IR packages into internal/ir - #442

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

HuiJun merged 2 commits into
developfrom
refactor/layer-ir

Conversation

@devin-ai-integration

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

Copy link
Copy Markdown
Contributor

What and why

Third step of the layer-directory move, on top of the internal/semantic pull request. Moves the semantic-IR packages into internal/ir/:

internal/core/{lower,queryplan,docplan,view} → internal/ir/{lower,queryplan,docplan,view}

view joins this layer: it consumes lower and is consumed by docplan, so the IR layer is the only one it fits.

A mechanical relocation: git mv, import-path rewrite across the root module and tools/, the layering-test keys, sonar-project.properties, the self-model's goPackage references and one relative fixture path in docplan's tests (the docrender fixture it reads has not moved yet). 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; TestPackageLayering reports no edge from ir into check or exec.

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:51
Moves lower, queryplan, docplan and view from internal/core to internal/ir
and rewrites their imports.

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

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

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