Commit Graph
15 Commits
Author SHA1 Message Date
Joseph Magly 811854194e feat(obliterate): verify-checkpoint reload-and-generate parity
The REBIRTH save stage only checked that files exist and parse, so a
save that dropped or mangled the edit passed silently (#525).

- `obliterate --record-reference` records greedy outputs of the
  in-memory edited model on the pinned obliteratus-verify-v1 prompt set
  (8 harmful + 8 harmless, 32 tokens) into a sidecar with digests of the
  files the reload reads.
- `obliteratus verify-checkpoint` reloads the checkpoint from local
  safetensors only, regenerates greedily and compares token ids: exact
  match, prefix agreement and harmful refusal-rate change against
  per-reload tolerances (strict for full precision, provisional for
  bitsandbytes 8/4-bit, overridable and recorded).
- Fails with named reasons for no or empty reference, files changed
  since the reference, tokenizer mismatch, divergence, invalid outputs
  and, with --stock-model, an edit that was not persisted. A
  structural-only check can never pass.
- Versioned report bound to checkpoint digests, prompt-set digest and
  runtime; exit 0 pass, 2 input error, 3 verification failed.
- CPU tests use a tiny local GPT-2 through the real REBIRTH; a CUDA and
  bitsandbytes test runs in the conditional gates.
2026-11-18 11:56:26 -05:00
Joseph MaglyandClaude Opus 5.5 6c2f79672f feat(experiments): matched-precision reasoning controls for backend qualification
Extend backend qualification so precision-induced changes in reasoning
outcomes are separated from intervention effects (#512).

- Precision declarations record weight, activation and KV-cache
  precision, quantizer and calibration identity; incomplete or
  inconsistent declarations are refused.
- A bounded, preregistered pilot protocol fixes candidate, dataset,
  decoding, output budget, seed blocks, final-answer parser, margins,
  drift limit, resource objective and disjoint splits.
- The pilot loads four fresh cells on the same rows: the unedited parent
  and the saved candidate at the CPU float32 reference and at the
  declared precision.
- Per-row outcomes separate final-answer correctness from reasoning and
  total tokens and termination; truncated or unparsable outputs count
  as wrong.
- Paired bootstraps give precision effects within each artifact,
  intervention effects within each precision and their interaction.
  Gates apply per task and pooled, and expose harm hidden by a pooled
  pass. Shared-prefix KL is reported apart from free-running
  disagreement.
- Token cost never gates; an efficiency claim needs every gate to pass
  and the preregistered resource to improve.
- Support matrix schema 2 carries precision fields and pilot attempts;
  pilots never add qualified pairs, and schema 1 records still load.
- `obliteratus experiments qualify reasoning`; CUDA path in the
  conditional gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:03:40 -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 2539cdb2b7 feat(experiments): chat templates, seeded sampling, batching and CUDA observation
Remove the observation runner's execution limits.

- Chat templates: an optional prompt section renders each prompt
  through the tokenizer's chat template (optional system message,
  generation prompt), tokenized without extra special tokens. The
  rendered-prompt digest joins the generation step identity and each
  record; capture uses the same rendered prompts.
- Decoding: seeded sampling (temperature, top-p, top-k) alongside
  greedy, with a per-example seed derived from the spec seed and example
  id. Comparison treats sampled outcomes as exact only when strategy,
  device, dtype and seed match, and says why otherwise.
- Batching: optional left-padded greedy batches with an explicit,
  recorded pad token; rows are cut at their first eos so batched and
  unbatched outcomes agree. Sampling with batches is refused because
  per-example seeds cannot hold.
- Devices: dense CUDA for the runner and capture, with shards written
  from CPU copies and device/dtype recorded. Quantized, offloaded,
  dispatched, meta, split-device and MPS models are refused with
  explicit reasons.

The schema stays additive within version 1; options at their defaults
are dropped from the filled spec, so existing spec digests are
unchanged (pinned in tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:33:51 -05:00
Joseph MaglyandClaude Opus 5.5 9129e765d1 Bind the package digest to the installed wheel, not source-tree egg-info
A non-editable install from a checkout leaves an untracked, gitignored
obliteratus.egg-info in the source root. The llama-tp gate and its TP
workers run with the checkout on sys.path, so importlib.metadata also
discovered that egg-info. installed_package_set_digest() enumerates every
visible distribution, so the stale build artifact broke the live package
identity (LMS_DEPENDENCY_DRIFT) before any hardware evidence was written.

model_identity now locates exactly one .dist-info for obliteratus under
the active prefix's purelib/platlib, requires its RECORD to own the
package that PathFinder finds there, and fails closed otherwise (no
wheel, egg-only, duplicate or disagreeing installs, ownership mismatch).
A setuptools source-tree obliteratus.egg-info outside the site dirs is
excluded from the inventory only after that wheel is found. All other
metadata/RECORD and duplicate checks are unchanged; a clean install keeps
the same digest.

run_conditional_gate.py refuses llama-tp-local-gpu up front (not_run,
exit 2, actionable message) when the checkout root holds an
obliteratus.egg-info, before any probe or GPU time; --allow-missing does
not bypass it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 21:22:41 -04:00
Joseph MaglyandClaude Opus 5.5 79914ca4fa Validate GITHUB_SHA and git HEAD independently; align the summary producer
Review r1: a non-empty but invalid GITHUB_SHA short-circuited the
resolver to "local" even when the repository HEAD was valid. Validate
each source on its own and fall back to "local" only if both fail.

Move the git helpers to scripts/conditional_gate_metadata.py and use them
from conditional_gate_summary.py too, so the workflow summary records the
same git_sha and git_dirty. Add summary-producer cases and a real
temporary-repository test for clean, tracked-dirty and untracked states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:08:47 -04:00
Joseph MaglyandClaude Opus 5.5 5fe701e064 Record the real git SHA and dirty flag in conditional gate reports
Gate runs on lab hosts have no GITHUB_SHA, so every report said
git_sha "local" and the evidence could not be tied to a commit from the
summary alone. Resolve GITHUB_SHA, then git rev-parse HEAD of the
script's repository, then "local"; accept only 40/64-char lowercase hex.
Add git_dirty (tracked changes at report time; null when git is
unavailable). schema_version stays 1; the field is additive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:50:12 -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 85ffaf40fd feat(gpu): multi-GPU qualification driver and per-device admission
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:48:34 -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 Magly d76e649d87 Merge remote-tracking branch 'upstream/main' into fix/245-phase-admission
# Conflicts:
#	ci/test-risk-map.json
#	obliteratus/abliterate.py
#	tests/test_conditional_gate_scripts.py
2026-10-07 12:37:19 -04:00
Joseph MaglyandClaude Opus 5.5 8844bf8723 feat(gpu): admit per-device phase memory before pipeline work
Add a reusable phase-admission module that estimates per-device demand
(resident weights, activations/KV, staging, logits, edit workspace) for
each pipeline phase and checks it against freshly observed free memory,
utilization ceilings and lifecycle broker grants before the phase starts.
Over-budget phases fail with the device and shortfall. Load admission is
exposed as admit_model_load for reuse by UI reloads.

Refs #245

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 12:36:55 -04:00
Joseph MaglyandClaude Opus 5.5 8066e59c73 feat(distributed): add exact Llama native TP loader
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)

Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:23:27 -04:00
Joseph Magly 06e80af7b6 feat: add Jetson contributor validation path 2026-08-21 20:12:35 -04:00
Joseph Magly c1a1275291 ci: add conditional environment test gates 2026-08-14 14:29:14 -04:00