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>
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>
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>
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>
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>
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>
`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>
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>
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>
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>
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>
(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>
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>
(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>