Commit Graph
105 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 c10fcff7e4 fix(gpu): address silent-result review findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:08:01 -04:00
Joseph MaglyandClaude Opus 5.5 24e378c577 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:42:26 -04:00
Joseph MaglyandClaude Opus 5.5 ea894b9bd1 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:08:53 -04:00
Joseph MaglyandClaude Opus 5.5 8ac8817223 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:39:32 -04:00
Joseph MaglyandClaude Opus 5.5 8828610a98 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:39:39 -04:00
Joseph MaglyandClaude Opus 5.5 c9a40af719 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:29:39 -04:00
Joseph MaglyandClaude Opus 5.5 97d042c71c feat(gpu): 72B capacity planner and bounded export for split runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:17:47 -04:00
Joseph MaglyandClaude Opus 5.5 ae3ca4f900 fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 16:53:23 -04:00
Joseph MaglyandClaude Opus 5.5 7ef799b7ab fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:01:11 -04:00
Joseph MaglyandClaude Opus 5.5 85ffaf40fd feat(gpu): multi-GPU qualification driver and per-device admission
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:48:34 -04:00
Joseph MaglyandClaude Opus 5.5 dd663c4173 fix: post-merge audit findings (scripts)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 21:52:38 -04:00
Joseph Magly dc9aaf0689 Merge remote-tracking branch 'upstream/main' into feat/336-preserve-directions 2026-10-17 21:30:49 -04:00
Joseph Magly 245e836106 Merge remote-tracking branch 'upstream/main' into feat/346-refusal-recovery 2026-10-17 20:32:50 -04:00
Joseph MaglyandClaude Opus 5.5 9859019b42 docs: record the #346 Gemma-2-2B 4090 pilot result
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 20:14:28 -04:00
Joseph MaglyandClaude Opus 5.5 ac7609fca2 fix: encode recovery examples in linear time; check peft before the pilot starts
len() on a fast tokenizer rebuilds the vocabulary, and encode_examples called it per token
(about 3 s per example on Gemma's 256k vocabulary). The pilot now fails before any GPU work
when peft is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 19:38:57 -04:00
Joseph Magly e1e1375a59 Merge remote-tracking branch 'upstream/main' into feat/336-preserve-directions
# Conflicts:
#	ci/test-risk-map.json
#	docs/CONCEPT_INTERVENTIONS.md
#	obliteratus/abliterate.py
#	obliteratus/cli.py
#	obliteratus/concepts/geometry.py
#	obliteratus/concepts/intervention.py
#	obliteratus/concepts/schema/concept-pack.v1.schema.json
#	obliteratus/concepts/target.py
2026-10-17 19:11:12 -04:00
Joseph MaglyandClaude Opus 5.5 cc964e353d feat(recovery): refusal-restoring recovery mode, pristine self-distillation and combined assessment (#346)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:54:46 -04:00
Joseph Magly 79b44be065 Merge remote-tracking branch 'upstream/main' into feat/310-moe-expert-concepts
# Conflicts:
#	ci/test-risk-map.json
2026-10-17 18:53:52 -04:00
Joseph MaglyandClaude Opus 5.5 952793c252 feat: operator-selected embedding geometry for protected removals
Per-layer protected spans make the embedding projector ambiguous; embedding_geometry_layer
picks one layer's geometry and is recorded for export and replay. D4 uses the first layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 18:13:01 -04:00
Joseph Magly a0e07bde37 Merge remote-tracking branch 'upstream/main' into feat/328-raw-steering 2026-10-17 18:11:16 -04:00
Joseph MaglyandClaude Opus 5.5 fc8833c593 fix: keep protected steering, D4 geometry and margin consistent after main merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 17:57:38 -04:00
Joseph Magly 7b772196f0 Merge remote-tracking branch 'upstream/main' into feat/310-moe-expert-concepts
# Conflicts:
#	README.md
#	ci/test-risk-map.json
#	obliteratus/concepts/direction.py
#	obliteratus/concepts/evaluation_model.py
#	obliteratus/concepts/intervention.py
#	obliteratus/concepts/repair_model.py
2026-10-17 17:51:22 -04:00
Joseph Magly d165567dbd Merge remote-tracking branch 'upstream/main' into feat/336-preserve-directions
# Conflicts:
#	ci/test-risk-map.json
#	obliteratus/concepts/evaluation.py
#	obliteratus/concepts/geometry.py
#	obliteratus/concepts/intervention.py
#	obliteratus/concepts/target.py
2026-10-17 17:51:22 -04:00
Joseph Magly 749075f08d Merge remote-tracking branch 'upstream/main' into feat/328-raw-steering
# Conflicts:
#	ci/test-risk-map.json
#	docs/CONCEPT_INTERVENTIONS.md
#	docs/CONCEPT_WORKFLOW.md
#	obliteratus/concepts/intervention.py
2026-10-17 17:48:03 -04:00
Joseph Magly 4b415576fd Merge remote-tracking branch 'upstream/main' into feat/332-exclude-invalid-default 2026-10-17 17:44:19 -04:00
Joseph Magly 5c5b22a7f4 Merge remote-tracking branch 'upstream/main' into feat/335-subspace-affine-erasure 2026-10-17 16:17:23 -04:00
Joseph MaglyandClaude Opus 5.5 a4a2eb4961 Merge upstream/main into feat/310-moe-expert-concepts
Resolve the risk-map conflict with #133 by keeping both new contract
surfaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 16:05:27 -04:00
Joseph Magly 41ad16ed08 Merge remote-tracking branch 'upstream/main' into feat/332-exclude-invalid-default 2026-10-17 15:17:37 -04:00
Joseph MaglyandClaude Opus 5.5 a1a0a84634 fix: address review findings for #336
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:35:01 -04:00
Joseph MaglyandClaude Opus 5.5 44a629297d fix: address review findings for #133
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:30:06 -04:00
Joseph MaglyandClaude Opus 5.5 24d8152a1f fix: address review findings for #332
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:30:05 -04:00
Joseph MaglyandClaude Opus 5.5 719e6e590a feat(concepts): preserve protected directions during removal; D4 repair (#336)
Add preserve= to concept interventions so the removed span is first
orthogonalised against protected directions (e.g. refusal), with
overlap metadata and export replay; a protected_direction repair step
gated on the collateral battery; CLI/recipe support including
--preserve refusal; and a D4 arm in the Appendix D script. Paths
without preserve are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:22:03 -04:00
Joseph MaglyandClaude Opus 5.5 b612c54acc fix: address review findings for #310
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:22:03 -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 83ac05aead feat(concepts): fixed-magnitude steering scale modes (#328)
Add scale=residual_norm|raw|vector to concept steering across the API,
CLI, recipes and run metadata, recording effective vector norms. The
default residual-norm path is unchanged. The Pain Axis resteer stage now
uses the concept API with identical arithmetic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:07:10 -04:00
Joseph MaglyandClaude Opus 5.5 2be6186887 Default the steer-report layer like resteer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:03:43 -04:00
Joseph MaglyandClaude Opus 5.5 f4e631c85d Average projections per scenario and default the steering layer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:00:43 -04:00
Joseph MaglyandClaude Opus 5.5 189bf73eee Add Pain Axis phase-1 replication harness and local results
scripts/pain_axis_replication.py drives the concept API through the Pain Axis
replication gate, the Appendix C/D ablation conditions (plus joint-removal
arms), the Section 4.2 re-steer ladder, and the toolkit evaluation battery.
The report records results on Qwen 2.5 7B, Gemma 2 2B and Gemma 2 9B
Instruct, including a pain-direction-specific drop in safety refusal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 01:58:00 -04:00
Joseph MaglyandClaude Opus 5.5 db39905ffa fix(eval): report invalid completions beside refusal rates and stop rewarding degeneration (#312)
`refusal_rate` and its callers counted empty, reasoning-only and degenerate
completions as non-refusals, so the Bayesian optimizer objective and
tourney and benchmark rankings could reward an edit that destroyed output.

- New `measure_refusals` returns a `RefusalMeasurement` (refused, valid,
  invalid, total, rate over valid completions, invalid rate).
- `refusal_rate`, `refusal_rate_with_ci` and `heretic_eval.arditi_refusal_rate`
  gain `exclude_invalid`. The default keeps the legacy all-response
  denominator for a deprecation window; `refusal_rate_with_ci` adds
  valid, invalid and total counts.
- Verification metadata adds invalid counts, the valid-only rate and a
  refusal objective that counts invalid completions as refusals.
- The Bayesian optimizer, tourney and benchmark rankings use that objective
  and record invalid rates; displayed refusal rates are unchanged.
- docs/refusal-metrics.md documents the denominators and the planned
  default change.

Fixes #312

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 17:16:26 -04:00
Joseph MaglyandClaude Opus 5.5 d5a5c12a28 ci(release): time-box coverage and duration exceptions and parallelize the base suite
With Gloo sharded, the release lane measures what no release run had
checked since v0.1.3: mature-CPU line coverage is 91.79% (floor 94%; branch
84.66% still passes), and the suite takes 990-1042 s against a 350 s
budget, with five tests over the 15 s limit.

Per the maintainer decision tracked in #304:
- move mature_cpu_statement to 91.5 behind a threshold exception that
  expires 2026-11-14;
- raise suite and marker duration budgets to measured values plus ~20% and
  own the eight tests at or above 14 s until the same date;
- make threshold exceptions expire for real: the validator ignored the
  expires date, so a lapsed exception would have kept a lowered floor.

Python 3.12 also exceeded thirty minutes because it reran the exact base
suite inline. Run that suite in a parallel release-base-core job and only
combine its coverage in Tests py3.12. The combiner now includes
subprocess coverage siblings of the core data file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:05:03 -04:00
Joseph MaglyandClaude Opus 5.5 27c64e4e19 fix(supply-chain): reject malformed license text overrides without crashing
Non-string package, version or expression fields raised TypeError during
policy validation and license evaluation. Report them as policy failures
and skip them when matching inventory rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 12:00:41 -04:00
Joseph MaglyandClaude Opus 5.5 1e3ffb7fc6 ci(supply-chain): keep qwen-hybrid installed and license-checked on hosted runners
Excluding the qwen-hybrid extra would have dropped causal-conv1d,
flash-linear-attention and fla-core from the release license inventory
without any failure. Instead, install causal-conv1d without CUDA kernels via
its own CAUSAL_CONV1D_SKIP_CUDA_BUILD switch in the operator-UI gate and the
supply-chain job.

The full inventory then needs two permissive SPDX expressions (MIT-0 for
cffi, Apache-2.0 OR BSD-3-Clause for cryptography, both via the mcp extra)
and a strict mechanism for packages whose metadata carries verbatim license
text: a text override binds one package version and the SHA-256 of the
exact text to an already allowed expression, and fails when unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:51:06 -04:00
Joseph MaglyandClaude Opus 5.5 4eb1a4cd4b fix(distributed): refuse live two-host stages that need shared storage
The archived topology commits predate the merged EXCISE, VERIFY and
EXPORT stages. A cross-stage audit for the one-GPU-per-host layout found:
- Live preflight and LOADED evidence use attempt storage shared by the
  ranks (rank-0 directory, nonce file, file receipts). They now refuse the
  two-host GPU layout after configuration consensus and before any
  staging access (LMS_TOPOLOGY_UNSUPPORTED; the model session reports
  LMS_TP_PLAN_UNSUPPORTED).
- Canonical EXPORT assumes one shared destination tree across writer
  ranks. It now refuses the layout with a voted
  LMS_EXPORT_TOPOLOGY_UNSUPPORTED before any resource or filesystem work.
- PROBE admitted host memory only on rank 0. Each rank now admits its own
  working set through the existing unanimous vote.
- The evidence checker reconstructs each attempt's topology from
  fixed-size redacted records. EXPORT's attempt hash binds the VERIFY
  binding set, and part 5's per-attempt hardware and mount checks are kept.
EXCISE, rank journals, VERIFY and the launcher are code-level compatible
and are covered by new mocked tests. Docs describe the refusals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:51:24 -04:00
Joseph MaglyandClaude Opus 5.5 0492ebaa35 feat(distributed): admit closed two-host TP2 topology
(cherry picked from commit 37f407850916ebe76575d73112c4d26fe08bf421)

Ported for #244 (part 6/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and test conflicts keep upstream wording and add only the topology
references; internal tracker numbers were replaced with upstream framing.
Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:22:31 -04:00
Joseph Magly 7fb9ea186d Merge remote-tracking branch 'upstream/main' into feat/244-tp2-export 2026-10-08 17:59:18 -04:00
Joseph Magly 4751c5c87b Merge remote-tracking branch 'upstream/main' into fix/245-phase-admission 2026-10-08 17:53:29 -04:00
Joseph MaglyandClaude Opus 5.5 636fd5c19a ci: shard PR core tests across a duration-balanced matrix
Since #272 the "PR core tests" job runs every selected non-Gloo test in
one runner under a 10-minute timeout, and broad selections now exceed it.
Shard it like the Gloo tests: pr-select emits core_shards from a single
CORE_SHARD_COUNT constant and writes selected-core-N.txt once with
scripts/shard_pr_tests.py --kind core, balanced by per-file durations
measured from CI JUnit (ci/core-test-durations.json; unlisted files use
default_seconds). pr-core-tests becomes a matrix whose empty shards record
exit code 5, and check_pr_partitions.py requires the exact core-N and
gloo-N artifact set before "Pull request core" combines coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:41:18 -04:00
Joseph Magly 57b4a2e808 Merge remote-tracking branch 'upstream/main' into fix/245-phase-admission
# Conflicts:
#	ci/test-risk-map.json
#	tests/test_conditional_gate_scripts.py
2026-10-08 16:47:14 -04:00
Joseph MaglyandClaude Opus 5.5 4c6a5c46f6 feat(distributed): add bounded distributed canonical export
(cherry picked from commit de990f633e151f329ef5e844ed55f60a9a0b247c)

Ported for #244 (part 5/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and policy conflicts keep upstream wording and add only the export
references. The new Gloo test file carries the gloo marker and a
duration entry. Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 16:28:40 -04:00
Joseph Magly 2ed95176a9 Merge remote-tracking branch 'upstream/main' into feat/248-portable-gsq 2026-10-08 16:27:45 -04:00