recipe search, confirm, promote and obliterate --recipe now operate on
v2 recipes: search grids are v2 step variations (recipe-search-grid v2,
same preregistered selection rule), confirmation and promotion consume
evaluation profiles and bind evidence to applied resolution records,
and --recipe applies pipelines through apply_recipe. v1 recipes and
grids load through mechanical migration with a notice; writing v1 is
refused. Shipped v1 data is migrated to v2, and the two recipes
confirmed on the protocol final test in the initial core run ship as
accepted v2 data: llama3.1-8b-e03-reg02 and qwen2.5-1.5b-mid10-18-dim1,
with KL-advisory profiles and value-only confirmation evidence.
Fixes#571
Add obliteratus.evaluation-profile/v1: one digest-referenced evaluation
contract for v2 recipes. A profile carries a partial verify-edit spec
(endpoints, margins, capability decoding and tier), a kl_policy (gate or
advisory) and calibration evidence references (noise floor or random
control) whose digests and schemas are verified and whose adopted
thresholds are recorded per field. Profiles layer family then
individual over defaults with resolve_margins precedence; advisory KL
sets the endpoint not required. v2 recipe confirmation resolves the
profile and records the resolved spec digest; the v1 spec path is
unchanged. Ships a candidate Llama-3.1-8B-Instruct profile with advisory
KL and its random-control evidence, local paths redacted.
Fixes#567
A family recipe becomes accepted only through an explicit promotion
that finds passing confirmations of the unchanged family recipe (same
digest) on at least two matching member models of different sizes:
different layer counts, or at least 25% more estimated parameters at
equal depth. Failed, stale and non-matching confirmations do not count,
and the reason for each record is reported. recipe promote writes the
accepted family recipe with frozen evidence (counted confirmation
records and digests) into a review directory; recipe promote-member
writes an individual recipe that inherits the family, bound to one
confirmed member. RecipeRegistry gains an exact model/revision
confirmed-member query for the family-application label. Confirmation
records may carry the model's architectures (optional; older records
remain valid).
Fixes#547
obliteratus recipe confirm runs the single final-test confirmation for a
candidate recipe on one model: it resolves the edit for the model's
depth and the recipe's frozen margins (family default, individual
override), refuses before any subprocess when status, identity, margins
or the final-test spec are wrong, then runs the train-prompt edit,
verify-checkpoint and verify-edit on the protocol final test as isolated
steps. A pass accepts an individual recipe (accepted_by required) with
evidence; a fail keeps it a candidate with the failure recorded; a
family pass records a member confirmation without accepting the family.
A ledger keyed by model, revision and test-set digest refuses a second
confirmation unless --reconfirm-reason is given and recorded.
Confirmation records follow a shipped recipe-confirmation v1 schema, can
be written to a recipes directory for review by PR, and are listed by
the registry. Search's verify-edit report validation is shared with
confirmation without changing tune behaviour.
Fixes#544
Add obliteratus.recipes: a shipped model-recipe v1 JSON schema, a
dependency-free validator cross-checked against jsonschema in tests, and
a registry that lists recipes and looks them up by name or exact stock
model id and revision. Records carry scope (individual or family),
inherits, identity, the edit (method preset plus allow-listed overrides),
frozen margins, evidence and status. Family recipes reject absolute
layer indices; family matching and depth-relative placement follow in
#546, and application in #541.
Seeds: qwen38-27b-e03 (accepted, with its historical margins), and the
initial-core-run candidates llama3.1-8b-e03 and qwen2.5-1.5b-mid12-16.
Fixes#539
Add a separately versioned field_evidence evaluator that distinguishes a
valid JSON answer from a grounded one, without changing structured_output
v1 semantics (#510).
- Strict single-document parsing with no repair (duplicate keys,
non-finite numbers and coercions refused, raw bytes kept); parse,
schema and content are reported as separate layers.
- Field states PRESENT, EXPLICIT_NULL, UNKNOWN, KNOWN_EMPTY and
MISSING_KEY; outcomes supported-correct, supported-wrong,
unsupported-concrete, authorized and unauthorized abstention, missing
and wrong-type.
- Exact IDs and enums, absolute-plus-relative numeric tolerances with
declared unit factors, verbatim evidence quotes, and one-to-one array
alignment with missed, duplicate and spurious items.
- Data-only field policies; source, schema, policy, gold and output
identities kept distinct so an output can't supply its own oracle.
- The 12 synthetic absent/present fixtures ship as package data, bound
by hash, and run under required, nullable and tagged-unknown schemas
(36 cases). Reports include every scheduled case; an outage makes the
fabrication gate INCOMPLETE, never a pass.
- A registered, never-executed opt-in pilot specification, versioned
result and pilot schemas, `obliteratus experiments field-eval`, and
docs/FIELD_EVALUATION.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mark the multi-process Gloo test files with a new gloo marker. pr-core
keeps the same risk-map selection but runs the gloo and non-gloo parts
in two concurrent pytest processes with separate coverage data, JUnit
files, logs and temp roots. Each exit status is collected per PID; an
empty side (exit 5) is allowed unless both are empty. Coverage is
combined before the unchanged changed-line check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Concept Packs are data-only directories or byte-deterministic .cvpack zips:
manifest.yaml, positive.jsonl, controls/*.jsonl, and optional neighbours,
battery, baseline and reference files, plus a dataset card. Every file
carries a SHA-256 and an SPDX licence. A packaged JSON Schema and built-in
validation gate the schema_version major. Tiers: core (refusal only),
research, and user (namespaced user/<id>).
Loading treats packs as untrusted. It rejects hash mismatches, missing
licences, executable content, symlinks, hardlinks, special files, nested
archives, path traversal, duplicate and colliding names, unsafe YAML,
control characters in decoded text, oversized members and unknown major
versions.
A data file may instead be a pinned remote reference (https repository,
40-hex commit, path, sha256). It is fetched only by an explicit fetch step,
cached atomically and verified, and a mismatch fails closed; lint works
before fetch. URL import requires --sha256, and installs are exclusive.
The built-in refusal pack is generated from the built-in harmful and
harmless sets and equals the #224 refusal target. New CLI group: concepts
list | show | init | lint | pack | import | fetch. Ids resolve before paths,
and corrupt cache entries are skipped with a warning. DatasetSource gains an
optional licence field. No new runtime dependencies.
Closes#225
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Implements the foundation slice of #209: an MCP SDK v2 stdio server
gated by an immutable, stdlib-only startup policy.
- obliteratus/mcp_policy.py: frozen McpPolicy (archive root required and
never auto-created, allowed-root shape validation, I/O limits,
network/execution flags defaulting off). Fail-closed McpPolicyError on
invalid input; CLI-flags-only construction, no env/config inheritance.
- obliteratus/mcp_server.py: thin SDK v2 registration + stdio startup,
lazy mcp import, exactly one tool (server_status, allowlisted payload),
stdout carries protocol bytes only.
- Packaging: optional obliteratus[mcp] extra (mcp>=2.2,<2.3); entry points
python -m obliteratus.mcp_server and obliteratus mcp serve (graceful
missing-extra guard, exit 3).
- Tests: 47 new tests, 100% line+branch on new modules; changed-line
coverage gate passes (99.37% vs 50% floor).
Follow-up required in an env with uv: regenerate uv.lock for the new
extra (uv lock --check is a merge gate; uv is unavailable here).
Exact setuptools/wheel pins block platform-specific backend patches and
make isolated pip installs fail on Android/Termux Python. Keep a setuptools
lower bound only, drop the unused wheel backend pin, keep requirements.txt
aligned with core package deps, and install the Spaces extra in Docker
instead of pulling bitsandbytes by default.
Android/Termux is still not a supported runtime; the new platform note
documents host wheels, ANDROID_API_LEVEL, and --no-build-isolation so
pip does not isolate a second setuptools or compile manylinux-only
extensions.