Skip to content

Extract: declared structural key aliasing (wrapper folding) for template replies #395

Open

Description

@dmealing

Part 2 of #364: let metadata declare that an incoming key in an LLM reply maps onto a declared shape, e.g. a wrapper section ({"Classification": {...}}) whose children fold into the object's own fields. @enumAlias already does this for enum values only. Models emit these wrappers because they mirror the section headings in the prompt's own documentation, and every adopter re-discovers and re-encodes them.

This is new metamodel vocabulary (ADR-0037 / ADR-0023: registered in five ports, registry-conformance fixture, metamodelVersion 1.0 → 1.1), so it was split out of the 1.0.12 patch, which shipped part 1 (the onLocate hook). Array merge (part 3 of #364) stays out: one sighting, arguably a prompt-modelling smell.

Origin: #364

Activity

  1. added this to the 1.x (later) milestone on Oct 3, 2026
  2. added
    FR
    area:metamodel
    on Oct 3, 2026
  3. modified the milestones: 1.x (later), 1.1, 1.2 on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FRarea:metamodel

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions