Commit Graph
4 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 a4c097bc5f fix: keep pinned layers through informed and concept paths
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>
2026-10-16 14:49:20 -04:00
rattusrattusandClaude Opus 5.5 1a21c40383 feat(layers): pin an exact layer set via layers= / --layers (#300)
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>
2026-10-10 23:07:00 -06:00
Joseph Magly bbf06fd6c8 test(cli): verify layer selection reaches local and remote execution 2026-09-07 16:20:38 -04:00
Raja Mukerji 5fe46d2dca feat(cli): expose --layer-selection so layer strategy is reachable without the Python API 2026-09-07 09:43:39 -07:00