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>
layer_selection chooses a strategy, but small-model safeguards, the
inversion cap and the method layer budget can still change the result, so
a sweep over one parameter could not hold the layer set constant.
- AbliterationPipeline(layers=...): non-empty, non-negative ints; deduped
and sorted at construction.
- Both selection chains (_distill and the concept path) take a first
`pinned` branch: the exact layers, strongest-first, failing closed on a
layer outside the model or without an extracted direction. Safeguards,
the inversion cap and _apply_method_layer_budget are skipped for it.
- CLI: --layers accepts indices and inclusive ranges (24-41,44).
- method_config.pinned_layers records the pin.
Closes#300.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>