Commit Graph
2 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 86982b8a5e fix(concepts): harden the pain pack and record GPU baselines
Review follow-ups for the pain pack:

- The no-upstream-sentence guarantee now runs in CI without the pinned
  checkout. A committed fingerprint fixture (SHA-256 only) covers
  pain-specific upstream sentences of at least eight words: positives,
  confounds/neighbours and the referenced batteries, but not generic neutral
  controls. A repository-wide scan checks every tracked text file against it.
  Manifest hashes are checked against the committed hash manifest of the
  pinned commit.
- The pain pack loads lazily, so a broken pain pack warns and is excluded
  while refusal and other packs stay usable.
- Selectors type-check their fields and fail closed with PackError.
- concepts baseline gains --cache-dir.

The GPU-lane baselines (RTX 4090, bf16, seed 232) are recorded under
.aiwg/testing/baselines/pain/ and summarised in the dataset card:

- Qwen2.5-7B-Instruct: CV layer 24, held-out AUC 0.980, cosine 0.9998 to
  the authors' S2 vector at L24;
- Qwen3-8B-Base: CV layer 34, held-out AUC 0.994, cosine 0.9001 at L34.

Both verdicts are warn, because each upstream control set has 20 prompts.
These are representational baselines only, with no behavioural claim.

Closes #232

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:42:46 -04:00
Joseph MaglyandClaude Opus 5.5 14854019dd feat(concepts): add research-tier pain pack with pinned upstream data
Ship `pain` as a research-tier Concept Pack for the representational
direction reported in The Pain Axis (Tagliabue, Dung & Berg,
arXiv:2609.16247). No third-party sentences are committed. The manifest
references valen-research/Pain-axis at pinned commit 4d75cd90, with a
per-file SHA-256 for every positive, control, confound/neighbour, battery
and reference file. Data is fetched only by an explicit step, then cached
and verified; a mismatch fails closed.

Remote references gain a declarative, data-only JSON selector (path,
category filter, text field) applied after hash verification. Selectors are
bounded and strictly validated, with no code execution. This is an additive
schema change.

The recipe mirrors the replication spike (signed cosine 0.972 against the
published Qwen2.5-7B-Instruct vector): raw prompts, final-token readout
after " I feel:" with a mean-pool comparison, pooled controls, 50%
control-PC denoising, cv_auc layer selection, and a norm_ratio 0.6
intervention layer for steering. The first-party dataset card records
intended use, confounds (numbness and injury-without-pain wording), the
upstream MIT licence, citations and differences from the authors' grouped
CV. Caveat: the pack identifies a representational direction; it does not
measure or remove pain or any experience.

`obliteratus concepts baseline` fetches explicitly, extracts with the pack
recipe, runs the gate in report mode and writes validation.json plus
direction files. A test checks that no upstream sentence is committed.

Refs #232

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