Commit Graph
154 Commits
Author SHA1 Message Date
Joseph Magly 5eb4020d98 fix: describe actual campaign GPU memory sampling 2026-10-30 17:26:49 -04:00
Joseph Magly d2f6676882 build: prepare Python 3.11 and pinned Gradio security backport 2026-10-29 11:14:50 -04:00
Joseph Magly 752c539911 build: vendor reviewed Gradio Pillow security backport 2026-10-29 10:15:37 -04:00
Joseph Magly 609bad0c44 fix: represent campaign arms as structured configuration
Preserve the exact ordered Appendix D CLI arguments while expressing experiment choices as a list. The full-source Gitleaks scan now accepts this static configuration with its unchanged rules and zero suppressions.
2026-10-29 07:35:53 -04:00
Joseph Magly 96a4fe2d2d Merge remote-tracking branch 'upstream/main' into fix/release-dependency-bytecode 2026-10-29 06:45:00 -04:00
Joseph Magly eb38b1508e ci: precompile verified release dependencies
Prepare only locked dependencies in owned release environments before installing the exact project. Preserve verified wheel-supplied caches outside import paths, require zero caches before compilation, and bind generated cache bytes to source and retained diagnostics.

Keep project caches forbidden, preserve the no-write startup policy, sanitize inherited compilation settings, and retain bootstrap evidence separately without changing test selection or release gates.

Refs #306
2026-10-29 06:44:59 -04:00
Joseph Magly 46622d7d28 ci: validate and retain unexecuted subprocess coverage 2026-10-29 04:54:35 -04:00
Joseph Magly ec0000d0c5 ci: verify disposable bytecode policy and partition release Gloo 2026-10-29 03:43:54 -04:00
Joseph Magly 97e0df2f32 ci: partition release core tests and bind complete evidence 2026-10-29 02:30:11 -04:00
Joseph Magly 2104e19cd9 feat(campaign): add a matched causal control
Compare the composite concept arm with an explicit CausalLM arm using the same recipe, inputs and seed. Keep checkpoint ownership, receipts, interrupted resumes and raw failed metrics separate.

Refs #383, #333
2026-10-28 22:42:52 -04:00
Joseph MaglyandClaude Opus 5.5 aa900a71a3 Require every recorded symlinked input to be hashed
Codex r6 (P2): bound_hashes skipped paths that were not files at hashing
time, so an input that vanished while it was hashed (for example a newly
added one whose directory was briefly renamed away) was recorded but never
hashed. Every file in the identity snapshot must now be hashed. Overlay
directory links no longer add expected paths: their files are bound through
the source tree, matching the default inventory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:56:49 -04:00
Joseph MaglyandClaude Opus 5.5 e45c1910ae Hash symlinked inputs through handles bound to their recorded identity
Codex r5 (P2): swapping a whole cache directory during hashing kept every
link and file identity intact, so trusted bytes could be hashed while the
recorded, altered files were what the loader later opened. In symlink mode
each file is now hashed through its open handle, and that handle's device,
inode, size and times must match the identity snapshot before and after
reading. The hashed bytes are therefore the recorded file's bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:48:38 -04:00
Joseph MaglyandClaude Opus 5.5 2d42fdd1ee Record symlink identities so a link swapped during hashing is refused
Codex r4 (P2): source and overlay entries kept only their target's identity,
so a link replaced and restored while inputs were hashed went unnoticed.
Each source link, overlay file link and snapshot-directory link now records
its own text, device, inode and times alongside the validated target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:37:10 -04:00
Joseph MaglyandClaude Opus 5.5 4dfd1a4a01 Check the symlink-inputs path as given and bind the loader overlay
Address review r3 of the symlinked-inputs option:
- Check --symlink-inputs component by component as given, relative or
  absolute, before recording it, instead of resolving links away first.
- Bind every loader-facing overlay link in models/<label> to the identity
  of the validated source file it must point at, require snapshot
  subdirectories to point at their source directory, and record the
  generated config.json; the source, overlay and their parent directories
  must be real directories.
- Capture overlay identities before hashing at fetch and resume, and
  re-check them in workers and probe children.
- Add the change time to every identity so a same-size rewrite that
  restores the modification time is caught.
- Document that multistep children rely on their parent worker's check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 20:33:34 -04:00
Joseph MaglyandClaude Opus 5.5 52f4597589 Close the remaining symlinked-input gaps from review r2
- Re-check input identities inside every loadpath and pain-axis probe
  child before it imports torch or loads a model.
- Require the allowed inputs directory and every directory above it to be
  real directories, so a same-device link cannot replace the root.
- Walk each input path component by component as written, applying '..'
  only after the directory before it is checked, so a symlinked directory
  followed by '..' cannot be collapsed away; relative Hugging Face
  snapshot links still work.
- Capture identities before hashing at fetch and resume and require them
  unchanged afterwards, so the stored snapshot describes the hashed bytes.
- Narrow the documentation to exactly what is checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:46:42 -04:00
Joseph MaglyandClaude Opus 5.5 337df82298 Pin symlinked campaign inputs to one device and re-check them in workers
Address review r1 of the symlinked-inputs option:
- Lock the allowed directory's device and require every input component
  to sit on it, so a mount under the directory cannot stand in for it.
- Walk each input path with lstat and reject any symlinked directory,
  even one inside the allowed directory; only the final snapshot-to-blob
  link is followed.
- Record each validated input's path, device, inode, size and mtime, and
  have every model-loading worker re-check them before it starts. The
  window between that check and the load is documented as accepted for a
  single-owner input cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:00:37 -04:00
Joseph MaglyandClaude Opus 5.5 7e23830236 Confine symlinked campaign inputs to one allowed directory
--symlink-inputs now takes the directory the cached inputs must live in.
Fetch refuses a cached file that resolves outside it and refuses a cache
miss rather than downloading. Fetch and every resume fail closed when an
input link is broken, leaves the allowed directory, has been replaced by a
regular file, or no longer matches its recorded hash. validate_fetch reads
the policy from the run manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:15:21 -04:00
Joseph MaglyandClaude Opus 5.5 be28ff900e Let the Qwen3.8 campaign symlink cached inputs from another filesystem
Add an opt-in --symlink-inputs option. Fetch then links each cached pinned
snapshot file into the run root with a symlink to its resolved cache path,
instead of a hard link, so the inputs can sit on a different filesystem from
the root without a full copy. Fetch still records every file's hash through
the link and each resume re-verifies them. The option is locked in the
manifest only when set, so existing roots resume unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:08:49 -04:00
Joseph MaglyandClaude Opus 5.5 add78ba0b7 Register Qwen2.5-32B/72B-Instruct in the Pain Axis replication harness
The harness only knew the small models, so the Gitea #116 Phase B runs
at 32B/72B could not select their official S1/S2 ablation layers. Add
both from appC_ablation/02_ablation_large_models.py at the pinned
4d75cd90: Qwen_2.5_32B_instruct ("chat", 32, 38) and
Qwen_2.5_72B_instruct ("chat", 48, 60). The S2 layers match the shipped
4.2 steering references (L38, L60). The appendix-D and recovery scripts
take --name from this table, so they gain the same choices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:04:50 -04:00
Joseph MaglyandClaude Opus 5.5 fee11f5dab Fail closed on cache misses and link failures under a lowered disk floor
Codex r1 on #381: a lowered --min-free-disk-gb did not enforce its
cached-input premise. A cache miss still downloaded and a failed hard
link silently fell back to a full copy, so a root admitted at 70-140 GB
could pull or copy ~108 GB. Below the 250 GB default, fetch now refuses
a snapshot that is not completely cached or cannot be hard-linked; the
same guard applies when an incomplete fetch is resumed. The default and
unlowered floors keep the download and copy fallbacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:55:29 -04:00
Joseph MaglyandClaude Opus 5.5 cce21520e8 Add a locked --min-free-disk-gb admission for cached campaign inputs
The Qwen3.8 campaign refuses a new root below 250 GB free. That floor
assumes both pinned snapshots (~108 GB) are downloaded; when they are
already in the local Hugging Face cache on the root's filesystem, fetch
hard-links them and that share is not needed. An operator can now lower
the initial admission explicitly (at least the 70 GB resume reserve).
The value is locked in the manifest only when set, so existing roots
resume unchanged, and must be repeated on resume.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:48:21 -04: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 ce9f7efd9b Allowlist the git environment instead of denylisting overrides
Review r4: inherited GIT_TRACE* survived sanitization, and a trace aimed at
/dev/stdout corrupted the captured SHA and status ("local", dirty). This
was the third surviving-GIT_* finding, so close the class: drop every
inherited GIT_* variable and set only GIT_OPTIONAL_LOCKS=0,
GIT_TERMINAL_PROMPT=0 and GIT_NO_LAZY_FETCH=1.

The sanitizer test now requires exactly those three GIT_* names (including
when an unknown GIT_* control is inherited). A real-git regression test
aims each of GIT_TRACE, GIT_TRACE_SETUP, GIT_TRACE2, GIT_TRACE2_EVENT and
GIT_TRACE2_PERF at /dev/stdout and requires the checkout's clean HEAD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:32:16 -04:00
Joseph MaglyandClaude Opus 5.5 0a6bb0de89 Also drop git stdio redirection and config selection; never prompt
Review r3: GIT_REDIRECT_STDIN/STDOUT/STDERR survived sanitization. On Git
for Windows, GIT_REDIRECT_STDOUT sends output past the capture pipe, so a
dirty tree would read as clean and HEAD could fall back to "local".
Drop them, and GIT_CONFIG_NOSYSTEM, which the documented list already
claimed. Set GIT_TERMINAL_PROMPT=0 and GIT_NO_LAZY_FETCH=1 and run git
with stdin closed. The sanitizer test asserts all of these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:27:58 -04:00
Joseph MaglyandClaude Opus 5.5 e0646aa35c Run git metadata commands with a sanitized environment
Review r2: inherited GIT_DIR / GIT_WORK_TREE / GIT_INDEX_FILE and similar
variables override git -C, so the resolver could report another
repository's HEAD or dirty state. Drop every repository-, index-,
object-store-, namespace- and config-selecting variable before running
git, and set GIT_OPTIONAL_LOCKS=0 so status never writes the index.

The real-repository test fixture builds its git environment from the same
helper (plus stripping any other GIT_* variable) so the two cannot drift.
A new test redirects GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE to a second
repository, with and without an invalid GITHUB_SHA, and requires the
checkout's own HEAD and dirty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:21:17 -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 MaglyandClaude Opus 5.5 260674a9fa fix(gpu): canonicalize GPU UUIDs in the module-placement qualification driver
torch reports device UUIDs without the "GPU-" prefix that nvidia-smi,
CUDA_VISIBLE_DEVICES and schedulers use. The driver (#356) compared raw
strings, so on real NVIDIA hardware:

- model workers were masked with the bare UUID, which CUDA does not
  accept ("No CUDA GPUs are available");
- select_uuids rejected nvidia-smi-form --uuids;
- visible_device_records could not join the nvidia-smi inventory, leaving
  pci_bus_id, physical_ordinal and topology empty.

Add normalize_uuid (bare or GPU- prefixed, case-insensitive, to
GPU-<lowercase>; MIG identifiers left distinct) and use it at discovery,
selection, inventory join, worker UUID checks and evidence validation.
Found on an A100 run of module-placement-gpu at 7fee696.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 08:20:10 -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 463300345c fix: reconcile merged Pain Axis scripts with both test suites (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:02:37 -04:00
Joseph MaglyandClaude Opus 5.5 d03e969f2e fix: address merge-resolution review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:24:37 -04:00
Joseph MaglyandClaude Opus 5.5 6a56a374fc Merge upstream/main into feat/72b-placement
Resolves conflicts in the Pain Axis scripts between the capacity
planning entry points and the split-model placement controls from #357;
the planner now honours device maps, max_memory and offload arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:20:05 -04:00
Joseph MaglyandClaude Opus 5.5 c10fcff7e4 fix(gpu): address silent-result review findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:08:01 -04:00
Joseph MaglyandClaude Opus 5.5 24e378c577 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 13:42:26 -04:00
Joseph MaglyandClaude Opus 5.5 3eba0ec88a fix: address review findings (campaign-hwflex)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:55:26 -04:00
Joseph MaglyandClaude Opus 5.5 cc75851130 feat(campaign): run on any 80 GB GPU, Blackwell setup, three-seed reproducibility
OPERATOR DIRECTION: strict comparability with the E03 baseline is not required (E03 was a lucky proof of concept), and A100s are hard to rent, so the single-GPU campaign must run on any GPU with at least 80 GB: A100 80GB, H100 80GB, or RTX PRO 6000 96GB (Blackwell, sm_120).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:48:15 -04:00
Joseph MaglyandClaude Opus 5.5 32b2ef069f Merge upstream/main into feat/qwen38-a100-campaign
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:48:19 -04:00
Joseph MaglyandClaude Opus 5.5 16998b06a0 Merge upstream/main into feat/multistep-edit-order
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:10:56 -04:00
Joseph MaglyandClaude Opus 5.5 3034d2b438 Merge upstream/main into fix/tp2-hardening
Resolves ci/test-risk-map.json by taking the union of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:21:04 -04:00
Joseph MaglyandClaude Opus 5.5 ea894b9bd1 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:08:53 -04:00
Joseph MaglyandClaude Opus 5.5 8ac8817223 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:39:32 -04:00
Joseph MaglyandClaude Opus 5.5 6dbded149d Merge upstream/main into fix/concept-multidevice
Resolves the ci/test-risk-map.json conflict with #356 by taking the union
of both sides' entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 21:14:47 -04:00
Joseph MaglyandClaude Opus 5.5 8dd6add995 fix(distributed): TP2 hardening before two-GPU qualification
Fixes eight reported defects in the native tensor-parallel path:

- #278 VERIFY admits host memory in a symmetric vote before allocating
  and broadcasting baseline input tensors.
- #280 require_record_consensus canonicalizes inside the poison-protected
  exchange and compares canonical payloads.
- #282 EXCISE votes on fallible digest preparation before the next
  collective.
- #285 preflight, model session, PROBE and EXCISE vote on rank-local
  preparation failures before the next collective, including the
  evidence-directory preparation that previously allocated before its
  all_reduce.
- #275 postcondition and VERIFY digest sets stream the full declared
  operation range (up to MAX_EXCISE_OPERATIONS) while preserving
  existing identities.
- #281 preflight source identity digests stream inventory records
  instead of using one 64 KiB control record.
- #286 the evidence checker requires an integer schema_version and
  checkout/source inventories are bounded and streamed.
- #276 standalone operation planning uses bounded chunked finite checks.

Each fix has CPU/Gloo regression tests, including one-rank fault cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:53:20 -04:00
Joseph MaglyandClaude Opus 5.5 8828610a98 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:39:39 -04:00
Joseph MaglyandClaude Opus 5.5 c9a40af719 fix: address review findings (72b-placement)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:29:39 -04:00
Joseph MaglyandClaude Opus 5.5 97d042c71c feat(gpu): 72B capacity planner and bounded export for split runs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 20:17:47 -04:00
Joseph MaglyandClaude Opus 5.5 ae3ca4f900 fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 16:53:23 -04:00
Joseph MaglyandClaude Opus 5.5 7ef799b7ab fix: address review findings (gpu-driver)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 15:01:11 -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 60ce1039de fix(concepts): concept workflow and Pain Axis scripts on split models
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:35:06 -04:00