Commit Graph
1102 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 101cfa7c88 feat(analysis): opt-in numeric geometry preservation evaluation
Add a bounded evaluation of whether shifting a known predictive mean
preserves a known non-target spread (#511), producing reproducible
evidence and negative results rather than a universal steering claim.

- Whole sequences are split into fit, calibration and held-out
  partitions per seed block before any activation is collected.
  Geometry is fitted on fit rows only, matched-mean scales are found on
  calibration rows only, and the preregistration (tolerances, arm
  choices, scales) is frozen by digest before any held-out pass.
- Seven arms with exposed choices and reversible, restoration-checked
  hooks; matched-displacement and matched-mean comparisons are reported
  separately, and PCA-plane proximity can never establish preservation.
- Paired intervals over seed blocks, separate AdamW and L-BFGS probe
  fits (optimizer-dependent outcomes flagged conditional), explicit
  zero handling, separate costs, and exploratory labels for
  extrapolated cells. Curvature stays null.
- Golden synthetic arc fixtures with known answers: a spread-preserving
  variant and a radius-dependent variant the chord arm distorts.
- Every attempted cell, arm and comparison is logged; synthetic runs are
  rated hypothesis and never claim pretrained reproduction. The opt-in
  pretrained campaign refuses until both model revisions are pinned and
  runs only behind an explicit environment flag.
- `obliteratus experiments numeric-geometry`, catalog rows and a new
  documentation section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:09:11 -05:00
Joseph Magly b1f81ef80c Merge pull request #514 from elder-plinius/docs/workspace-python-nix
Correct the release interpreters in WORKSPACE and point to the Nix flake
2026-11-16 20:50:59 -05:00
Joseph MaglyandClaude Opus 5.5 181967de4b docs(workspace): correct the release interpreters and point to the Nix flake
The exhaustive gate's release matrix runs Python 3.11 and 3.12 (and
pyproject requires 3.11+), not 3.10-3.12. Also point maintainers to the
committed Nix flake for CI-equivalent local runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:47:21 -05:00
Joseph Magly 5357ad4765 Merge pull request #513 from elder-plinius/ci/nix-parity
Run the Nix test flake in CI and document it for contributors
2026-11-16 18:18:43 -05:00
Joseph MaglyandClaude Opus 5.5 e5c3b5101a ci(nix): enable flakes through NIX_CONFIG for the single-user install
Single-user (--no-daemon) installs ignore --nix-extra-conf-file, so
nix-command and flakes stayed disabled and 'nix flake check' failed.
Set NIX_CONFIG at workflow level instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:14:28 -05:00
Joseph MaglyandClaude Opus 5.5 64c2751216 ci: run the Nix test flake in CI and document it for contributors
Make the committed Nix test environment usable by others and by CI.

- .github/workflows/nix-parity.yml installs Nix from the official
  release installer, pinned by version and SHA-256 (recorded in
  ci/digests.txt; the installer verifies the tarball hashes it embeds),
  checks the flake outputs and runs a parity smoke set on Python 3.12
  and 3.13. Release-gate tests run only on 3.12, the release
  interpreter. It triggers on changes to the flake, lock, pyproject,
  .envrc or the workflow, and on dispatch; it is not a required check.
- .envrc (`use flake`) loads the 3.12 shell for direnv users.
- tests/test_nix_parity_policy.py keeps the flake's uv pin, CI extras,
  non-editable install and marker filter in step with ci.yml, and the
  workflow's action and installer pins in step with ci/digests.txt.
- A nix-test-environment contract surface maps the flake, lock, .envrc,
  workflow and doc to that test.
- docs/NIX_TEST_ENVIRONMENT.md gains direnv and CI sections;
  CONTRIBUTING and README point to the flake, and CONTRIBUTING's
  supported-interpreter line now matches pyproject (3.11+, CI and
  release on 3.11 and 3.12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:09:50 -05:00
Joseph Magly 20e4a2672d Merge pull request #509 from elder-plinius/fix/optuna-sqlite-close
Close Optuna SQLite storage and backup connections
2026-11-16 17:50:51 -05:00
Joseph MaglyandClaude Opus 5.5 08a04e3bd4 fix(bayesian): close Optuna SQLite storage and backup connections
On Python 3.13+, an sqlite3 connection that is garbage-collected
without being closed raises ResourceWarning, which the project's
filterwarnings=error turns into test failures. pyproject declares
requires-python >=3.11 with no upper bound, so these versions must work.

- The durable study's RDBStorage is now owned by an ExitStack in both
  public entry points and closed (remove_session, then engine.dispose)
  on success, failure and cancellation.
- _atomic_sqlite_backup closes both handles with contextlib.closing;
  sqlite3's own context manager only ends the transaction.
- Two tests that reopened or connected to study databases now close
  their handles.
- New regression test tracks every sqlite3 handle opened during a real
  durable study (success, failure, KeyboardInterrupt) and the backup,
  asserting all are closed independent of the 3.13+ warning.

Storage URLs, file names, snapshots and resume behaviour are unchanged;
as with any edit to this module, the study identity (which hashes the
module source) changes, so pre-existing durable studies start fresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:43:05 -05:00
Joseph Magly 3f12ddedcb Merge pull request #508 from elder-plinius/feat/nix-test-shell
Add Nix test environments matching the CPU PR CI
2026-11-16 17:39:57 -05:00
Joseph MaglyandClaude Opus 5.5 02bd8fd056 build: add Nix test environments matching the CPU PR CI
Add a flake that provides local test environments equivalent to the
CPU pull-request job, so local results are comparable with CI on hosts
whose system Python differs.

- Nix supplies Python 3.11, 3.12 and 3.13, git and the native runtime
  libraries prebuilt wheels need; uv.lock remains the single source of
  Python dependencies.
- `nix run .#test[-py311|-py312|-py313]` installs uv at the CI pin,
  syncs the locked non-editable environment with the CI extras and runs
  pytest with the CI options, marker filter and environment variables.
  Extras, markers and the state directory can be overridden, e.g. for
  the operator-UI Gradio gate.
- docs/NIX_TEST_ENVIRONMENT.md documents usage and scope; per-interpreter
  state directories are ignored by git.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:35:16 -05:00
Joseph Magly 6acd5edad4 Merge pull request #507 from elder-plinius/chore/experiments-cli-docstring
List every experiments subcommand in the CLI docstring
2026-11-16 14:31:54 -05:00
Joseph MaglyandClaude Opus 5.5 91ee7a7ff6 docs(experiments): list every experiments subcommand in the CLI docstring
Add qualify, regression, transfer and arch-profile to the module
docstring of obliteratus/experiments/cli.py, which parallel merges left
incomplete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:28:02 -05:00
Joseph Magly fde038b430 Merge pull request #504 from elder-plinius/feat/f21-1116
Architecture adapters, MoE coverage and transfer dossiers (F21)
2026-11-16 13:50:56 -05:00
Joseph MaglyandClaude Opus 5.5 8170f531eb Merge upstream/main into feat/f21-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:46:52 -05:00
Joseph MaglyandClaude Opus 5.5 7e6e680592 Merge upstream/main into feat/f21-1116
Keep both the arch-profile and regression exit-code rules, each with its
own exit, and both sets of risk-map entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:43:12 -05:00
Joseph Magly 534a568bb0 Merge pull request #506 from elder-plinius/feat/o08-1116
Smaller-change study for mature targets (O08)
2026-11-16 13:43:05 -05:00
Joseph Magly bbb8088584 Merge pull request #505 from elder-plinius/feat/f22-1116
Regression library and dependency-triggered revalidation (F22)
2026-11-16 13:39:05 -05:00
Joseph MaglyandClaude Opus 5.5 d71726c417 Merge upstream/main into feat/o08-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:37:42 -05:00
Joseph MaglyandClaude Opus 5.5 35f9d24652 feat(experiments): smaller-change study for mature targets
Add optimization O08: compare the smallest effective edit for a mature
target against broader edits, ordinary rank selection and simple
heuristics, with full cost accounting.

- Only persistent-pilot eligible targets are accepted (fixture results
  marked software-contract); ablation operations only.
- Arms: a broad baseline (registered target plus leading directions),
  variance-only rank, a development rank sweep, operator-declared
  directions, and signal-aware geometry rank, optionally at last-token
  scope.
- Every arm, baseline included, must restore the reference, reproduce
  its temporary edit after reload, meet the useful effect, pass every
  collateral endpoint and qualify on the CPU float32 reference backend.
- Accounting records which resource changes: artifact size, extra
  inference FLOPs per representation (a permanent edit changes none),
  and one-time capture, decomposition, search, build, confirmation and
  qualification costs; latency stays outside the digest.
- A saving is claimed only when total compute is no higher than the
  baseline's in every seed (at least 3); gains are attributed to
  geometry only when no ordinary or heuristic arm matches.
- `obliteratus experiments smaller-change`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:36:50 -05:00
Joseph MaglyandClaude Opus 5.5 122d73bdab Merge upstream/main into feat/f21-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:36:03 -05:00
Joseph MaglyandClaude Opus 5.5 6e34593cd4 Merge upstream/main into feat/f22-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:34:52 -05:00
Joseph MaglyandClaude Opus 5.5 189311e5d0 feat(experiments): regression library and dependency-triggered revalidation
Add F22: versioned regression suites built from confirmed cases,
failures and interaction surprises, with computed staleness when a
dependency changes and append-only re-run history.

- Cases point at the original evidence by path, digest and pointer
  (never copying scores) and record what reproduces them: model and
  weight fingerprint, tokenizer, dataset revision and rows digest,
  scorer versions, backend descriptor and recipe, plus the expected
  outcome with tolerance. Suite versions are write-once and chained.
- A dependency graph covers weights, tokenizer, dataset, scorer,
  backend runtime, directions, report files and artifacts. Staleness is
  computed on read; models match by weight fingerprint, so a same-name
  model with new weights inherits no qualification.
- Re-runs go through each feature's own run function and append to a
  hash-chained results log; regressions link to their case, and history
  stays byte-identical.
- Status and the conditions table report per intervention and condition
  (task, domain, backend, model), with no single aggregate.
- `obliteratus experiments regression build|observe|status|revalidate|run`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:32:01 -05:00
Joseph Magly 129c207791 Merge pull request #503 from elder-plinius/feat/f19-1116
Bounded mutation search with Pareto selection (F19)
2026-11-16 13:31:37 -05:00
Joseph MaglyandClaude Opus 5.5 abae042774 feat(analysis): architecture adapters, MoE coverage and transfer dossiers
Add F21: architecture adapters that record tensor semantics and staged
support levels, MoE observation with explicit coverage, and transfer
dossiers compared against within-model baselines.

- Adapters record site meaning, block order, norm placement and module
  roles (attention, MLP, router, routed and shared experts) and check
  residual semantics on a real forward. Support is staged:
  observation, then reversible intervention, then persistent editing.
  Dense decoders support all three; sparse MoE decoders support
  observation and residual intervention and refuse persistent editing.
- MoE observation reports per-expert routed tokens and rows with
  intervals; experts below the coverage floor are insufficient coverage
  with null effects, never no effect. Route and load changes, shared
  expert contributions and routing restoration are measured.
- Transfer needs its own alignment-fit and test rows (refused on
  overlap), the same row budget for a direction fitted directly on the
  target, and must beat that baseline and random directions with
  bootstrap intervals. Tested and untested conditions are listed;
  experts listed as tested must be covered on the test rows; new
  modalities need their own targets and scoring tasks.
- `obliteratus experiments transfer run` and `arch-profile`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:31:08 -05:00
Joseph MaglyandClaude Opus 5.5 7294f6b691 Merge upstream/main into feat/f19-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:27:27 -05:00
Joseph MaglyandClaude Opus 5.5 b04906e15c feat(experiments): bounded mutation search with Pareto selection
Add F19: a replayable, budgeted search over qualified operations only,
with an all-attempt ledger, Pareto-first selection and independently
confirmed finalists.

- The space is built from persistent-pilot eligible registrations
  (declared coefficient grids and forms), selected candidates and
  recovered candidates, and complete sequences in their evidenced
  order; anything else is refused. Confirmation and test rows are
  refused for search. The space is write-once and digest-identified.
- Proposals reuse the project's Optuna TPE multi-objective approach
  with per-trial seeding, so replay reproduces the ledger; pruning uses
  the anytime-valid screening rule.
- An append-only, hash-chained ledger records every trial; trial ids are
  content digests, and an interrupted trial is marked incomplete and
  re-run or discarded once. Incomplete trials never win.
- Trials with invalid outputs, failing or unmeasured collateral
  endpoints, or target gains flagged by the weak-scorer check are
  infeasible. The Pareto front is reported before any pre-declared
  aggregate score.
- Finalists must pass a fresh locked confirmation registration created
  after the search and disjoint from development rows; search winner
  and confirmed finalist are reported separately.
- `obliteratus experiments search plan|run|resume|front|confirm`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:26:24 -05:00
Joseph Magly dbb6dada03 Merge pull request #501 from elder-plinius/ci/renew-env-waivers-1116
Renew no-support environment waivers to 2026-11-30
2026-11-16 13:14:55 -05:00
Joseph Magly 0122994223 Merge pull request #502 from elder-plinius/feat/f20-1116
Backend qualification and support matrix (F20)
2026-11-16 13:10:51 -05:00
Joseph MaglyandClaude Opus 5.5 3caa82923e Merge upstream/main into feat/f20-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:06:43 -05:00
Joseph MaglyandClaude Opus 5.5 458059e066 feat(experiments): backend qualification and support matrix
Start milestone 5 (F20): qualify each saved artifact on an explicit
backend against the CPU float32 reference of the same artifact, and
record exactly which pairs qualify.

- Only fully verified persistent candidates are accepted; each run
  loads the saved artifact fresh from disk on the reference and on the
  declared backend after checking digests.
- Backend descriptors make device, dtype, quantization, attention,
  tokenizer and cache mode explicit; their digest is the backend id, so
  native and quantized results are separate rows.
- Paired evaluation on independent rows checks realized settings,
  target rate, completion agreement, logit and site-activation drift and
  collateral endpoints. Latency and memory stay outside the digest.
- Unsupported combinations are recorded unsupported without loading or
  falling back; unavailable hardware is refused and leaves the pair
  untested. Failures are permanent and block broader claims.
- A versioned support matrix lists exactly the qualified pairs. CUDA
  tests run in the cuda-runtime conditional gate.
- `obliteratus experiments qualify run|matrix`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:05:58 -05:00
Joseph MaglyandClaude Opus 5.5 3153af08a3 ci: renew the five no-support environment waivers to 2026-11-30
The cuda-runtime, bitsandbytes-runtime, mps-runtime, mlx-runtime and
remote-execution waivers expired on 2026-11-16. Renew them from
2026-11-16 through 2026-11-30, within the 30-day maximum, with reasons
and blocked claims unchanged. No GitHub self-hosted lane is registered
yet; issue #110 stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:05:38 -05:00
Joseph Magly 2a7eb96619 Merge pull request #500 from elder-plinius/feat/f18-1116
Recovery tuning for persistent candidates (F18)
2026-11-16 11:54:37 -05:00
Joseph MaglyandClaude Opus 5.5 d0433a5734 Merge upstream/main into feat/f18-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:50:33 -05:00
Joseph Magly 2681f508a0 Merge pull request #499 from elder-plinius/feat/f17-1116
Transactional two-step edit sequences (F17)
2026-11-16 11:47:06 -05:00
Joseph MaglyandClaude Opus 5.5 7a759eee4a Merge upstream/main into feat/f17-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:42:56 -05:00
Joseph MaglyandClaude Opus 5.5 b97599c091 Merge upstream/main into feat/f18-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:41:55 -05:00
Joseph MaglyandClaude Opus 5.5 90e3ca55de feat(experiments): recovery tuning for persistent candidates
Add F18: recovery runs that start from a verified persistent candidate
and produce a separate recovered candidate, assessed against both the
edited candidate and the pristine reference.

- Only selected, digest-verified, persistent-pilot eligible parents are
  accepted. The output is a write-once removable recovery adapter with
  learning curves; parent and reference are only read and re-checked.
- Recovery data lineage, training configuration and teacher provenance
  (model, revision, weight fingerprint) are recorded and re-hashed
  before assessment.
- Recovery and assessment rows that overlap discovery, dossier
  confirmation data, registered confirmation sets, the parent's
  verification rows or each other are refused before training.
- A reload assessment compares pristine, edited and recovered arms on
  independent rows. Restoring the unwanted target behaviour beyond
  tolerance fails the run permanently; passing needs persisting target
  effect, retained capability versus pristine, no new damage and a
  useful gain.
- Efficiency or freed-capacity claims need matched random-target and
  pristine same-steps controls and must beat both; otherwise they are
  unsupported. Loss curves are never reported as mechanism.
- `obliteratus experiments recovery run|verify|show`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:38:05 -05:00
Joseph Magly eeda2b4a75 Merge pull request #496 from elder-plinius/feat/o05-1116
Batched null kernels and reduced-rank sketches (O05)
2026-11-16 11:36:36 -05:00
Joseph MaglyandClaude Opus 5.5 1a26c0c850 Merge upstream/main into feat/f17-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:34:55 -05:00
Joseph MaglyandClaude Opus 5.5 bdc87ce97a feat(experiments): transactional two-step edit sequences
Add F17: promote only validated two-step edit sequences into a
persistent, resumable executor with tested rollback.

- Components must be verified F16 candidates or persistent-pilot
  eligible registrations, and an F14 interaction result must cover the
  exact order requested; untested orders are refused. Plans are
  write-once and content-addressed, so reversed order is a distinct
  identity.
- Each step saves a checkpoint plus ordered adapters and records input
  and output identities, order, file digests, intermediate target and
  collateral results, failure state and recovery path. A reloaded step
  must reproduce the composed temporary operations, keep every applied
  component's effect and pass collateral endpoints.
- A crash leaves an incomplete step that resume discards before
  continuing from the last verified step; incomplete sequences can't be
  published. A failed step is permanent and never selected.
- Rollback restores the reference or a verified step by digest-checked
  copy and reload, never by applying an inverse edit.
- `obliteratus experiments sequence plan|run|resume|rollback|show`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:34:03 -05:00
Joseph MaglyandClaude Opus 5.5 91b163e65a Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:29:04 -05:00
Joseph Magly d16619044f Merge pull request #498 from elder-plinius/feat/o07-1116
Uncertainty and coverage-gap acquisition queue (O07)
2026-11-16 11:22:37 -05:00
Joseph MaglyandClaude Opus 5.5 50fa4d1926 Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:20:16 -05:00
Joseph MaglyandClaude Opus 5.5 d9479ab07e Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:18:34 -05:00
Joseph Magly ed1b28a282 Merge pull request #497 from elder-plinius/feat/o06-1116
Calibrated screening ladder study (O06)
2026-11-16 11:15:08 -05:00
Joseph MaglyandClaude Opus 5.5 6a8cc7fc59 Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:12:58 -05:00
Joseph MaglyandClaude Opus 5.5 ebc47e55e4 Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:12:04 -05:00
Joseph MaglyandClaude Opus 5.5 20a67adf8d Merge upstream/main into feat/o06-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:11:07 -05:00
Joseph Magly 09e0b1f46d Merge pull request #495 from elder-plinius/feat/f14-1116
Interaction and preservation experiments (F14)
2026-11-16 11:07:10 -05:00
Joseph MaglyandClaude Opus 5.5 affa976322 Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:05:05 -05:00