Preserve layer pins through informed selection and refinement, validate
pins against model depth, honour pins in concept extraction, record
pinning honestly in metadata, plumb --layers through self-improve and
remote runs, and keep positional API compatibility.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two paths could still move a pinned layer set:
- _distill_concept ignored layers=. It now passes the pin as the recipe's
preset layers when the recipe uses strategy 'preset' with intervention
rule 'same', and raises ValueError for recipes that select their own
layers instead of silently ignoring the pin.
- _kl_optimize_corrections restores layers to meet kl_budget, on by default
for informed, optimized, heretic and som. With a pin it no longer restores
layers; an over-budget pinned build raises with the measured KL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>