Commit Graph
10 Commits
Author SHA1 Message Date
Joseph Magly 002e6e56e1 feat: complete local readiness across UI, MCP and memory admission
Integrate bounded admission, UI ownership and controls, opt-in durable MCP execution, rank-local TP2 groundwork, regression hardening and operator guides. Physical larger-memory and two-host qualification remain separate.
2026-10-20 17:58:20 -04:00
Joseph MaglyandClaude Opus 5.5 f764576fa1 Merge upstream/main into feat/335-subspace-affine-erasure
Resolve additive conflicts with #329/#330 in the concept card and the
risk map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 14:38:39 -04:00
Joseph MaglyandClaude Opus 5.5 95d620d687 fix: address review findings for #329
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:17:20 -04:00
Joseph MaglyandClaude Opus 5.5 d1504faf88 feat(concepts): rank-k subspace and affine (LEACE / mean-centred) erasure (#335)
Remove whole per-layer subspaces in project, orthogonalize and lora
modes; add mean-centred orthogonal and LEACE erasure at inference time
and, where a native bias exists, as a permanent edit with recorded
reference provenance. k=1 zero-origin paths are unchanged. Adds the
Pain Axis Appendix D script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:07:11 -04:00
Joseph MaglyandClaude Opus 5.5 24b2342229 feat(concepts): non-inferiority margin for the collateral refusal test (#329)
Replace significance-only FAIL with a configurable non-inferiority
decision (default 3 points): PASS, FAIL, INCONCLUSIVE, UNDERPOWERED.
Plumb the margin through recipes, CLI, reports, cards, metadata and the
Q4 export gate, and add 'concepts rescore' for saved batteries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:07:10 -04:00
Joseph MaglyandClaude Opus 5.5 8d6e38bd35 Fold post-sublayer norms and optionally project embeddings in concept weight interventions
Concept orthogonalize/lora now remove the direction from what Gemma 2/3 and
OLMo 2 sandwich-norm layers write to the residual by folding the post-norm
scale into the projection, and fail closed on unrecognized post-norm layouts.
project_embeddings adds the input embedding edit, with an explicit
tied_embeddings choice (edit_both or untie) for tied models.

Fixes #318

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 21:50:53 -04: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 acdd418663 feat(concepts): require the collateral battery for research-tier exports
Any intervention export for a research-tier concept, such as the pain pack,
now requires the run's evaluation record to show that the collateral
battery ran with a refusal-rate result. A skipped or missing battery blocks
the export, with an error naming the missing channel; research tier has no
override. Direction- and validation-only exports stay allowed. User-tier
runs that skip the battery still export, with the skip reason recorded.

This implements the #232 acceptance criterion that the collateral battery,
including refusal rate, is required for any pain intervention export.

Refs #231 #232

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 23:24:35 -04:00
Joseph Magly 373af6bd81 Merge remote-tracking branch 'upstream/main' into feat/231-compare-export
# Conflicts:
#	ci/test-risk-map.json
#	docs/CONCEPT_INTERVENTIONS.md
#	obliteratus/abliterate.py
#	obliteratus/concepts/cli.py
#	obliteratus/concepts/evaluation.py
#	obliteratus/concepts/intervention.py
2026-10-05 23:21:14 -04:00
Joseph MaglyandClaude Opus 5.5 c8bde1d9be feat(concepts): add compare, export and provenance for concept runs
Concept runs can now be compared and exported as directions, reports,
reversible adapters or full checkpoints. Each export carries
schema-validated provenance (concept-provenance.v1) with sorted content
digests, pack identity, gate verdict, evaluation outcome and repair status.
Exported cards use outcome language ("direction removed / behaviour
changed"), and a lint rejects claims about removing pain, suffering or
experience. Pack data is excluded from exports through a strict file
allowlist (model files, shard index cross-check, symlink rejection).

Publication guards follow the interim maintainer decisions on #223:

- Q4: a collateral FAIL blocks only --publish-card. Other exports proceed
  with the FAIL recorded. Publishing anyway needs an explicit, recorded
  reason, from the CLI or the UI acknowledgement panel.
- Q5: research-tier packs never push modified weights or adapters to the
  Hub, from the pipeline, the CLI or the UI. Malformed concept metadata
  fails closed.

Incomplete repairs need an explicit acknowledgement before export or a UI
Hub push. Refusal metadata changes are additive only.

Closes #231

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 23:12:08 -04:00