Skip to content

refactor: split commexch/prog to adapter/core - #34

Merged
pavetok merged 5 commits into
mainfrom
refactor/6-split-layer-1-aggregates
Oct 13, 2026
Merged

pavetok merged 5 commits into
mainfrom
refactor/6-split-layer-1-aggregates

Conversation

@pavetok

@pavetok pavetok commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Move commexch and prog implementations into adapter/core layers to match repository layering conventions.

Changes:

  • proc/commexch: split into core/ (types, interfaces) and adapter/ (fx wiring, pgx impl)
  • prog: split into core/ (runtime core) and adapter/ (echo/tc impls)
  • Update imports across app, proc/compexec, pool packages
  • Fix revive/package-directory mismatches and minor lint issues
  • Run build, vet, revive, arch linter, gofmt, unit tests (cached/ok)

Split pool/compstep, proc/compstep, proc/commturn, proc/termdef and
proc/typedef into an agnostic core/ package and a toolkit-specific
adapter/ package, following the pool/typedef pilot and the layer-0
split.

- Move the models, ports, behaviour and the query-builder port into
  core/, exporting identifiers that cross the boundary
- Move the pgx DAO, sqlbuilder, goverter conversions, wire/view models
  and the fx module into adapter/
- Keep wire models (form/JSON tags, SDK references) in adapter/
- Keep SQL table names in adapter/
- Point consumers at the appropriate half
- Make the proc/typedef query-builder test assert instead of print
- Extend the boundary check to reject any agnostic core package
  importing the SDK

Refs orglang/go-workspace#6
Import the engine core under the bare aggregate name (e.g. typedef,
compstep, termexp) instead of a pool/proc-prefixed alias, and alias the
wire-format SDK as sdk<agg> only when a same-named SDK package is also
imported. Retain pool/proc prefixes only for genuine namesakes, and
alias the shared kernel adt/compvar as adtcompvar where it collides with
pool/compvar/core.

Refs: orglang/go-workspace#6
@pavetok pavetok changed the title Refactor/6 split layer 1 aggregates refactor: split commexch/prog to adapter/core Oct 11, 2026
@pavetok
pavetok added this pull request to the merge queue Oct 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 13, 2026
@pavetok
pavetok added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit ae20f36 Oct 13, 2026
4 checks passed
@pavetok
pavetok deleted the refactor/6-split-layer-1-aggregates branch October 13, 2026 16:56
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