Commit Graph
290 Commits
Author SHA1 Message Date
Joseph Magly acae9d3a01 feat(concepts): version datasets and isolate independent partitions 2026-11-04 21:59:43 -05:00
Joseph Magly 6f1d745dbb docs(analysis): record reproducible CPU baseline 2026-11-04 03:49:02 -05:00
Joseph Magly 28cf09d26e feat(analysis): label evidence and profile baselines 2026-11-04 03:32:00 -05:00
Pliny the Younger d7d9972473 Give Neuron Lab direct, human copy and clearer result labels 2026-10-30 13:39:48 -04:00
Pliny the Younger 95d2825db1 Add conversational neuron studies with controlled trials and verified resets 2026-10-30 13:19:10 -04:00
Joseph Magly c200a6343d ci: preserve installed concept packs and propagate import failures 2026-10-29 12:28:56 -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 ccd1cd73f0 docs: synchronize release rehearsal and runtime guidance 2026-10-29 09:50:28 -04:00
Joseph Magly a7f6e612e1 docs: require strict modelling before recurrent GPU measurements 2026-10-29 04:12:00 -04:00
Joseph Magly 10009f78bf Merge remote-tracking branch 'upstream/main' into fix/release-bayesian-admission-contract 2026-10-29 00:42:36 -04:00
Joseph Magly e223399aa1 test(admission): model bounded Bayesian work 2026-10-29 00:37:47 -04:00
Joseph Magly 7ac4830b01 fix(mcp): gate execution on working pidfds 2026-10-29 00:36:34 -04:00
Joseph Magly 5c52a5d2c5 Merge remote-tracking branch 'upstream/main' into fix/390-reset-hook-identity 2026-10-28 23:11:43 -04:00
Joseph Magly 1746691d59 Merge remote-tracking branch 'upstream/main' into fix/384-recurrent-workspace 2026-10-28 22:57:01 -04:00
Joseph Magly 63c8300887 fix(admission): inspect all recurrent callsites
Qualify all four Qwen scan and convolution fallbacks and reject Hub replacements on every model submodule. Keep unbounded compiled kernels unknown in strict mode and document the remaining source and hardware qualification gaps.

Refs #384
2026-10-28 22:46:13 -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
Pliny the Younger 92775708f0 Preserve Neuron Lab evidence through a verified reset 2026-10-28 19:10:55 -04:00
Pliny the Younger 3a4b5321a6 feat: add activation sonification and reversible Prompt Prism experiments 2026-10-27 20:05:06 -04:00
Pliny the Younger bb4e0e6816 Merge upstream 1263570 into temporary neuron UI integration branch 2026-10-27 18:33:34 -04:00
Pliny the Younger a7846cb682 feat(ui): unify research workspace, paired neuron experiments and live surgery observatory
Add bounded contrast candidate screening, explicit prompt provenance, atomic paired conversations and redacted evidence exports. Unify the application shell and task navigation, add an opt-in per-run surgery event observatory, preserve public generator compatibility, and wire cooperative stream-close cancellation. Verify numerical invariants, lifecycle isolation and real Gradio paths.
2026-10-27 18:23:50 -04:00
LLMsherpa dace6a8817 fix: preserve search state and resume verified exports 2026-10-27 17:45:33 -04:00
Pliny the Younger 05f83d4e73 feat(ui): turn Neuron Lab into an interactive latent observatory
Add browser-local spatial activation replay with orbit, zoom, token travel, paused/reduced motion, and model-layer destinations. Render measured signed values faithfully with illustrative depth, and clean up retained-node listeners and detached scenes. Add runtime lifecycle, navigation, payload, and real Gradio regression coverage.
2026-10-27 17:28:07 -04:00
Pliny the Younger a2324b572f feat: turn Neuron Lab into an interactive activation workbench
Add a responsive amber control rack, signed activity chart and token map, ordered intervention cards, and measured comparison outputs. Preserve editor selection and one-sided clamp bounds across recipe changes; cover display escaping and callback flows.
2026-10-27 17:06:14 -04:00
Pliny the Younger 3873d0b2ba feat: add reversible Neuron Lab to Concept Lab
Add scoped native MLP channel controls, strict versioned recipes, and isolated Neuron Lab sessions with inspection, ordered editing, comparison, cancellation, and immutable exports. Cover arithmetic, lifecycle, real offline model forwards and Gradio callbacks; document the CPU reference boundary.
2026-10-27 16:11:54 -04:00
LLMsherpa 263854cb12 fix: count resident load storage once and classify method outcomes 2026-10-26 12:23:30 -04:00
LLMsherpa ac6d92abc7 fix: preserve scored candidates across search, refinement and tournament replay 2026-10-25 21:52:42 -04:00
LLMsherpa f310c573f0 fix: preserve fused norms and correct final candidate quality checks 2026-10-25 20:12:30 -04:00
LLMsherpa e93ac1ae45 fix: expose native checkpoint and activation hooks 2026-10-25 19:25:18 -04:00
LLMsherpa 4b4ce2f278 fix: enforce final KL budgets and retain pristine comparisons 2026-10-25 19:10:21 -04:00
LLMsherpa ec2c6837c7 fix: align spectral sampling and verification reporting 2026-10-25 18:54:53 -04:00
LLMsherpa 5c8519eefa fix: handle V4.1 placement, readouts, and export memory 2026-10-25 13:10:12 -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 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 5da7ec7bb4 fix(verify): require a corroborated global extent for sharded heads
Review of 5a4835e: with no manifest global shape, a sharded head fell back
to mutable config.vocab_size, so 16-row shards with config vocab 16 passed
on both ranks. A vocab-sharded head now needs the manifest global row
extent corroborated by the live local weight shape and a complete even
shard layout (local rows x world size, per-rank start/end and rank
shards); config alone never establishes it, and anything else fails closed
with LMS_VERIFY_FORWARD_CONTRACT in baseline and post-edit revalidation.
Docs state the exact rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:11:28 -04:00
Joseph MaglyandClaude Opus 5.5 5a4835eb96 fix(verify): trust only the global head extent and keep decisions tokenizer-valid
Review of 579125a:
- For a vocab-sharded head the observed logits width was accepted as the
  vocabulary, so identical shard-width outputs passed. The width must now
  match the manifest global row extent (config as fallback); without a
  trusted extent VERIFY fails closed with LMS_VERIFY_FORWARD_CONTRACT.
- Refusal decisions took argmax over the full padded width, so a model-only
  column could win and hide a refusal. Selection is restricted to tokenizer
  ids; full-width log_softmax and finiteness checks are unchanged.
- Adds real 2-process gloo cases (padded vocab, shard-width mismatch, rank
  width disagreement) asserting identical exact codes and rollback, and
  tightens the gloo code-agreement test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:50:17 -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 441e59a279 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:41:20 -04:00
Joseph MaglyandClaude Opus 5.5 c282ccf519 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:28:58 -04:00
Joseph MaglyandClaude Opus 5.5 2166da1748 fix: reconcile merged planner with upstream scripts and review findings (#364)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 16:22:15 -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 b865a2d203 docs(capacity): document known planner limitations (#363)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:12:41 -04:00