3 Commits
Author SHA1 Message Date
Joseph Magly 8ecc5540e2 Fix CLI compatibility, GGUF row validation, and release evidence collection 2026-12-01 06:28:46 -05:00
Joseph MaglyandClaude Opus 5.5 5f558a78db feat(concepts): apply #223 maintainer rulings on publication, leace and steering
Maintainer decisions for epic #223 (2026-10-15):

- Q1: `leace` is a deprecated alias of the Fisher LDA direction. It keeps
  its numerical behaviour, warns once per public resolution with a
  DeprecationWarning naming `fisher_lda` and `leace_exact`, and will be
  removed in a future minor release.
- Q4: a collateral FAIL blocks both the model card and any Hub push of
  modified weights or adapters on every path (pipeline, export_run, both
  CLIs, Concept Lab, the Hub UI and tourney uploads), checked before any
  network call. `--allow-collateral-fail REASON` (and the matching API
  argument and UI field) overrides the block and stamps the FAIL and
  reason into the card, checkpoint metadata and provenance. Local save
  and export are never blocked.
- Q5: research-tier packs no longer carry publication or local-export
  restrictions; the tier is provenance only and Q4 applies to every pack.
- Steering defaults are removal-first: `steer` defaults to alpha -1 and
  the default dose ladder is non-positive. Positive doses stay available
  explicitly; `project` keeps its positive removal strength.
- Q3 (gate modes) and Q7 (dense only, follow-up #310) are unchanged and
  documented.

Refs #223

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:37:51 -04:00
Joseph MaglyandClaude Opus 5.5 2fe5d902a0 feat(directions): add fisher_lda id, leace alias and exact LEACE
Add a direction-method registry that lists only available methods
(diff_means, svd, fisher_lda, leace, leace_exact; som stays unavailable).
The CLI and UI choices are generated from it. Unknown methods now fail at
construction with the available choices, instead of silently falling back.

fisher_lda is the canonical id for the existing Fisher LDA direction. leace
stays a permanent alias with bit-identical numerics, logs a notice pointing
to leace_exact, and saved metadata records both the requested method and
direction_method_effective.

leace_exact implements closed-form LEACE (Belrose et al., arXiv:2306.03819)
with an eigenvalue floor and a pseudo-inverse for rank-deficient covariance.
The full oblique eraser is exposed for tests and future interventions. The
pipeline uses its removal direction with the existing orthogonal
projection, and logs the eraser loss only as a reference value. Tests check
that, on anisotropic synthetic data, a linear probe is at chance after
erasure, class means coincide, and the eraser is idempotent.

Refs #226

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 18:22:01 -04:00