Skip to content

refactor(core): extract DeepMap's three cohesive subsystems - #278

Merged
eschizoid merged 1 commit into
mainfrom
design/deepmap-seams
Jul 30, 2026
Merged

refactor(core): extract DeepMap's three cohesive subsystems#278
eschizoid merged 1 commit into
mainfrom
design/deepmap-seams

Conversation

@eschizoid

Copy link
Copy Markdown
Owner

What (stacked on the engine-explain PR)

Item 5 of the design round: DeepMap's three extraction seams, exactly as the architecture inspection specified — each passed the deletion test (interface strictly smaller than the body's knowledge). DeepMap drops from ~2,100 to ~1,450 lines; what remains is the actual engine (populateIso / autoIso / assembleIso + the pairing passes). Bodies moved verbatim:

New sibling Contents Lines
TelescopeFixups the telescope-row overlay subsystem — both exhaustive per-row switches, Conditional peeling, ZIP cardinality — behind one static wrap(...) ~308
ContainerLifts container copy/lift Isos + the java.base allocator tables (the lattice-lift concerns that only happened to live in the engine) ~285
Placeholders placeholderIsoFor / default-tree machinery / NULLING_ISO ~136

Behavior identical — full :core + :internal suites green.

@eschizoid
eschizoid force-pushed the design/engine-explain branch from 6a3ac14 to a299fd9 Compare July 30, 2026 23:04
@eschizoid
eschizoid force-pushed the design/deepmap-seams branch from 9eadfdc to 342d33b Compare July 30, 2026 23:05
DeepMap drops from ~2100 to ~1450 lines by moving three deletion-test-
passing seams into package-private siblings, bodies verbatim:

- TelescopeFixups — the telescope-row overlay subsystem: the two exhaustive
  per-row forward/backward switches, Conditional peeling, ZIP cardinality,
  and overrideTargetField, behind one static wrap(...) entry point.
- ContainerLifts — the container copy/lift Isos (collection/map copy, the
  three lift*IntoTargetRaw shapes) and the java.base allocator tables.
- Placeholders — placeholderIsoFor, defaultAllocatorIso, recursiveDefault,
  primitiveDefault, beanIntermediateAllocatable, and NULLING_ISO.

What remains in DeepMap is the actual engine: populateIso / autoIso /
assembleIso plus the pairing passes. Behavior identical — full :core and
:internal suites green.
@eschizoid
eschizoid force-pushed the design/deepmap-seams branch from 342d33b to 7561ca9 Compare July 30, 2026 23:08
@eschizoid
eschizoid changed the base branch from design/engine-explain to main July 30, 2026 23:08
@eschizoid
eschizoid merged commit dcb30d9 into main Jul 30, 2026
5 checks passed
@eschizoid
eschizoid deleted the design/deepmap-seams branch July 30, 2026 23:10
@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.15504% with 77 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.79%. Comparing base (c6aebb1) to head (7561ca9).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../io/github/eschizoid/telescope/ContainerLifts.java 60.41% 17 Missing and 21 partials ⚠️
...io/github/eschizoid/telescope/TelescopeFixups.java 70.64% 25 Missing and 7 partials ⚠️
...va/io/github/eschizoid/telescope/Placeholders.java 83.78% 1 Missing and 5 partials ⚠️
...in/java/io/github/eschizoid/telescope/DeepMap.java 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main     #278   +/-   ##
=========================================
  Coverage     79.78%   79.79%           
  Complexity     2046     2046           
=========================================
  Files            88       91    +3     
  Lines          6491     6492    +1     
  Branches       1330     1330           
=========================================
+ Hits           5179     5180    +1     
  Misses          770      770           
  Partials        542      542           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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