Separate reflection projection handlers

This commit is contained in:
2026-10-25 13:45:27 +00:00
parent fa6e876ab5
commit ac4ce242a2
2 changed files with 117 additions and 99 deletions

View File

@@ -1,6 +1,6 @@
# Consolidation Implementation Plan
Status: in progress. Stages 1 through 16 are complete; follow Stage 17 through Stage 20 in order.
Status: in progress. Stages 1 through 17 are complete; follow Stage 18 through Stage 20 in order.
The target executor is a Luna coding agent working through one end-to-end sprint.
## Authority, Baseline, And Execution
@@ -655,7 +655,7 @@ counter, budget checks, final expansion check, and one policy index remain intac
Both mapping and identified-sequence adapters still use the shared executor.
Validation group I passed.
## Stage 17 — Extract Substantial Projection Handlers
## Stage 17 — Extract Substantial Projection Handlers (Complete)
**Owners:** engine `projection.go`, optionally new `projection_collection.go`.
@@ -678,6 +678,12 @@ Validation group I passed.
original operation state. Do not refactor `clone`, `decodeValue`, or
`valueBuilder.build` as an additional cleanup project.
Progress notes (2026-10-25): delegated struct, map, and sequence projection to
methods on the existing `valueOperation`. The dispatcher retains depth checks,
pointer/dynamic handling, and scalar conversion; struct order, map sorting,
flattened-node charging, nil slices, and cycle guards remain in their original
paths. Validation group R passed.
## Stage 18 — Separate Schema Field Discovery And Assembly
**Owner:** engine `schema.go`, optionally new `schema_fields.go`.