Commit Graph
48 Commits
Author SHA1 Message Date
Pliny the Younger 5e55cdae09 Add experimental vocabulary-row editing with prompt and export audits 2026-11-22 22:18:34 -05:00
Joseph Magly 134bd2c32c feat(recipes): move recipe tools to v2 pipelines; v1 read-only
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
2026-11-21 01:27:13 -05:00
Joseph Magly 790731ffea feat(recipes): add versioned evaluation profiles
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
2026-11-20 21:41:32 -05:00
Joseph Magly e3a5386176 feat(recipes): require two model sizes for family promotion
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
2026-11-19 13:24:09 -05:00
Joseph Magly 70f62f8e1a feat(recipes): one-time final-test confirmation for candidate recipes
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
2026-11-19 12:58:15 -05:00
Joseph Magly aa43a5eb42 feat(recipes): versioned per-model recipe registry and schema
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
2026-11-19 11:19:15 -05:00
Joseph MaglyandClaude Opus 5.5 0a1b72c828 feat(concepts): field-level evidence scoring for structured outputs
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>
2026-11-16 22:04:21 -05:00
Joseph Magly d2f6676882 build: prepare Python 3.11 and pinned Gradio security backport 2026-10-29 11:14:50 -04:00
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 0972b351ba fix: address review findings for #133
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:38:11 -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 98e59b5eeb release: v0.1.4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:57:27 -04:00
Joseph MaglyandClaude Opus 5.5 ae1f8761e9 ci: run Gloo tests concurrently with the rest of pr-core
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>
2026-10-07 14:47:05 -04:00
Joseph Magly c952c66d4f Merge remote-tracking branch 'upstream/main' into feat/209-mcp-foundation
# Conflicts:
#	obliteratus/cli.py
2026-10-06 16:08:56 -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
Joseph MaglyandClaude Opus 5.5 88e8ceeb57 feat(concepts): add Concept Pack format v1 with pinned remote references
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>
2026-10-05 19:14:54 -04:00
Joseph Magly 11a7d1fb61 feat(mcp): local stdio server + fail-closed policy boundary (#209)
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).
2026-09-23 16:39:31 -04:00
Brian 73601bb13d packaging: stop exact-pinning build backends
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.
2026-09-20 06:25:34 -07:00
Joseph Magly 707e762904 fix(packaging): install and validate the Bayesian optimizer by default 2026-09-07 16:23:48 -04:00
Joseph Magly 985c9e9363 feat: add safe distributed checkpoint intake and preflight 2026-09-04 19:43:53 -04:00
Joseph Magly 827ba8e106 fix: validate Qwen hybrid runtime placement 2026-08-27 01:12:20 -04:00
Joseph Magly 6b6a0fe3d8 test(device): restore release branch coverage 2026-08-23 11:46:39 -04:00
Joseph Magly 06e80af7b6 feat: add Jetson contributor validation path 2026-08-21 20:12:35 -04:00
Joseph Magly bb84e55f77 test: cover tournament and operator UI contracts 2026-08-16 06:18:45 -04:00
Joseph Magly a377ceefbd test: add service orchestration contracts 2026-08-16 03:06:46 -04:00
Joseph Magly c74538a2be test: harden checkpoint transaction reliability 2026-08-16 00:28:15 -04:00
Joseph Magly 10685a53c2 test: enforce loader and weight decision contracts 2026-08-15 22:03:22 -04:00
Joseph Magly 51529ad1d7 test: add Gate 3 numerical oracle contracts 2026-08-15 20:09:21 -04:00
Joseph Magly ba749c68b9 test: enforce gate 2 coverage and vertical contracts 2026-08-15 02:00:50 -04:00
Joseph Magly 37d008d462 test: establish Gate 1 quality baseline (#90)
Establishes the mandatory testing, coverage, repeatability, mutation, packaging, supply-chain, and AIWG workspace baseline before feature integration.
2026-08-15 01:07:47 -04:00
Joseph Magly 62a480fd6a Harden remote execution contracts and tests 2026-08-15 00:13:26 -04:00
Joseph Magly 1240bf2adb test: enforce transactional persistence contracts 2026-08-14 23:32:30 -04:00
Joseph Magly 2c5dc5442c test: enforce runtime boundary contracts 2026-08-14 22:50:37 -04:00
Joseph Magly 2969e5e8da ci: preload native modules for mutmut 2026-08-14 22:09:25 -04:00
Joseph Magly 723fae30d3 ci: avoid mutmut native reload crash 2026-08-14 22:09:25 -04:00
Joseph Magly 7d0c02cd34 ci: expand and raise mutation gate 2026-08-14 22:09:25 -04:00
Joseph Magly c1a1275291 ci: add conditional environment test gates 2026-08-14 14:29:14 -04:00
Joseph Magly 951700a285 test: add quality-depth gates and mature CPU coverage 2026-08-14 14:08:23 -04:00
Joseph Magly 8bbb5f2926 test: add offline integration baseline 2026-08-14 13:15:32 -04:00
Joseph Magly 6add02edd0 test: enforce model and CLI boundary contracts 2026-08-14 12:51:09 -04:00
Joseph Magly e7b658c0c8 ci: add reproducible supply-chain gates 2026-08-14 12:27:15 -04:00
Joseph Magly 66c47249df ci: add strict test evidence gates 2026-08-14 11:44:12 -04:00
Joseph Magly 5071172daa Package the local UI app module 2026-08-14 10:05:43 -04:00
Joseph Magly 548092d5ca ci: establish green validation baseline (#59) 2026-08-14 09:55:49 -04:00
GangGreenTemperTatum d40142b6af Add dependency release age guardrails 2026-04-01 07:44:54 -04:00
pliny 66ea4a6f86 Add files via upload 2026-03-05 00:50:44 -08:00
pliny 8312bbfa8d Add files via upload 2026-03-04 13:09:57 -08:00
pliny 0f6114fe87 Add files via upload 2026-03-04 12:38:18 -08:00