Three-layer algebraic closure + operator-set commitments (ADR-024..029)
Architectural completion of the three-layer closure spine (substrate /
prism / implementation), the operator sets at each layer, and the
catamorphism evaluation semantics that realize "structural inference"
at the value level.
Six new ADRs:
- ADR-024 Three-layer algebraic closure spine. Carriers, operator sets,
closure checks, and the verb!/use_verbs! mechanism for the
implementation layer.
- ADR-025 Substrate operator set: composers (×, +) + endomorphism family
after_op for op ∈ Γ = {+, −, ×, ÷, ^}, with the Categorical X regime
split (T=3, O=8). Catalog and transition tables as conformance test
vectors.
- ADR-026 Prism operator set (seven operators: compose, parallel_compose,
fold_n, tree_fold, first_admit, partition_product, partition_coproduct)
+ closure-body grammar extension G12-G19 (with G19 as the
substitution-axis-realized verb form). Three-way runtime split for
first_admit.
- ADR-027 Custom Output shape declaration via output_shape! SDK macro.
Closes the GroundedShape seal as a degenerate-typed-iso blocker.
- ADR-028 Grounded<T> carries the output-value payload. ROUTE_OUTPUT_
BUFFER_BYTES ceiling; output_bytes() accessor. Brings application-
level side-channel outputs into the foundation-sealed primary surface.
- ADR-029 Catamorphism evaluation semantics. Per-variant fold-rules
(Literal, Variable, Application, Lift, Project, Match, Recurse,
Unfold, Try, HasherProjection) make pipeline::run a real catamorphism.
ADR-023 reconciled with stable-Rust form (foundation-fixed
ROUTE_INPUT_BUFFER_BYTES ceiling instead of per-impl-sized buffer
requiring generic_const_exprs). Rejected alternative 4 documents the
reasoning, paralleling ADR-022 D2's slice-form decision.
Cross-references threaded through ADR-007, ADR-013, ADR-019, ADR-020,
ADR-022 D4. Section 4 strategic decision row + section 8 "Closure
Across Layers" subsection. Glossary additions: 18 new entries spanning
the three closures (across / prism / substrate), the seven prism
operators (compose, parallel_compose, fold_n, tree_fold, first_admit,
partition_product, partition_coproduct), the substrate operator
framework (Categorical X regime split, gauge-tower operator set Γ),
the SDK macros (output_shape!, verb!, use_verbs!), the new Grounded
accessor (output_bytes), the new ceiling (ROUTE_OUTPUT_BUFFER_BYTES),
the new Term variant (Term::HasherProjection), the new threshold
(FOLD_UNROLL_THRESHOLD), and the new coined term Verb.
All 8 validators PASS, Stage 5 idempotence holds (0 divergent files),
all tests PASS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>