Commit Graph
1174 Commits
Author SHA1 Message Date
Joseph Magly 3a5d3f716f Merge remote-tracking branch 'upstream/main' into fix/390-reset-hook-identity 2026-10-28 23:28:25 -04:00
Joseph Magly 919615ce2d Merge pull request #391 from elder-plinius/fix/389-excise-memory-failure
Fail EXCISE cleanly on memory exhaustion and incomplete projections
2026-10-28 23:27:56 -04:00
Joseph Magly 5d25050446 fix(neuron-lab): bind complete hook metadata
Snapshot behavior-metadata key sets independently from registered callbacks because Torch combines global and local metadata during invocation. Cover global metadata affecting a local hook and preserve mismatch in exported receipts.
2026-10-28 23:23:08 -04:00
Joseph Magly 69696758ba Merge remote-tracking branch 'upstream/main' into fix/389-excise-memory-failure 2026-10-28 23:15:14 -04:00
Joseph Magly 2e9a815d1b fix(excise): propagate nested recipe failures
Keep allocation failures terminal through quantized experts, adapter selection, Bayesian evaluation and refinement helpers. Route folded-writer errors and warnings promoted to errors through public cleanup before verification or export.

Exercise exact exception causes, failed-operation counts, rollback, cleanup and no-export behavior across recipe variants. Fixes #389.
2026-10-28 23:15:14 -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 7e460be85f fix(neuron-lab): verify hook callback identities
Include local and global forward/pre-forward hook callbacks, ordering and behavior flags in reset verification. Retain callback references so identity checks cannot be defeated by equality overrides or object ID reuse.

Add 22 regressions including exported mismatch receipts and unchanged-hook controls. Refs #390.
2026-10-28 23:11:42 -04:00
Joseph Magly 073b16faed Merge pull request #393 from elder-plinius/fix/384-recurrent-workspace
Inspect all Qwen recurrent callsites before admitting torch workspace
2026-10-28 23:08:23 -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 4899da7aac Merge pull request #392 from elder-plinius/fix/383-loadpath-controls
Add a matched-recipe causal concept control to the Qwen campaign
2026-10-28 22:54:56 -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 9b0fc8b7df Merge branch 'main' into feat/neuron-reset-evidence 2026-10-28 22:43:19 -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 Magly e648adf647 fix(excise): reject incomplete projection passes
Propagate memory exhaustion through the public cleanup boundary and fail partial projection passes before verification or export. Exercise attention, FFN, SAE and module lookup failures with real tiny-model projections.

Update the rollback CPU-allocation guard to follow the bounded snapshot helper; the old Tensor.to spy failed on unchanged main.

Fixes #389
2026-10-28 22:39:38 -04:00
Joseph Magly 703099b9d2 Merge pull request #388 from shitcoinsherpa/codex/method-search-corrections
fix: Bayesian direction bounds, informed scaling, RDO preservation
2026-10-28 21:49:01 -04:00
Pliny the Younger 92775708f0 Preserve Neuron Lab evidence through a verified reset 2026-10-28 19:10:55 -04:00
Sean BrennanandClaude Opus 5.5 e6415f1a5d fix(lm-eval): never score document counts; keep missing results unavailable
run_benchmarks fell back to the first numeric field of a task result. lm-eval
0.4.13 builds each task result as name, alias, sample_len, then the metrics, so
tasks without acc/acc_norm (GSM8K in DEFAULT_TASKS) returned the evaluated
document count as the score. The fallback now only picks metrics that lm-eval's
own higher_is_better map marks higher-is-better, which also excludes standard
errors and lower-is-better metrics such as perplexity.

compare_models substituted 0.0 for a task missing on one side and reported the
difference as a regression or improvement. Missing sides and their delta are
now None.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:47:48 -04:00
Joseph Magly 43b5d6d1b3 Merge pull request #387 from younger-plinius/feat/neuron-lab
feat: unify the research UI with Neuron Lab, Prompt Prism and activation sonification
2026-10-28 08:58:13 -04:00
LLMsherpa acfd373f01 fix: correct Bayesian search inputs and RDO preservation
Search float direction indices across all extracted source layers and include that domain in persisted study identity. Apply informed attention scaling to the warm-start maximum. Penalize the squared harmless activation component removed by the optimized RDO direction so preservation has a gradient. Add behavioral regressions.
2026-10-27 21:40:39 -04:00
Joseph Magly b88177b9a1 fix: expire neuron downloads with their browser session 2026-10-27 20:33:43 -04:00
Joseph Magly 21ab9842d7 fix: preserve neuron lab export privacy and API compatibility 2026-10-27 20:28:00 -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 28bb037e48 fix(ci): retain both upstream and Neuron Lab test ownership
Restore the additive Neuron Lab and shared UI ownership entries after integrating main, preserving upstream activation observation and execution contracts.
2026-10-27 18:35:02 -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 8a19c3c825 chore: stage upstream risk map for signed merge verification
Preparation on a temporary branch only. Align ci/test-risk-map.json exactly with upstream 1263570ae6 before testing merge signing. The reviewed integrated risk map will be restored separately before any feature-branch promotion.
2026-10-27 18:33:08 -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
Joseph Magly 1263570ae6 Merge pull request #386 from shitcoinsherpa/codex/v41-research-contracts
Fix V4.1 admission, export and method execution
2026-10-27 18:02:41 -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 4c094f7f86 test: model resident storage in distillation admission fixture 2026-10-26 17:13:13 -04:00
LLMsherpa ba0404fc28 fix: derive staging from materializing offload scopes 2026-10-26 17:04:56 -04:00
LLMsherpa 263854cb12 fix: count resident load storage once and classify method outcomes 2026-10-26 12:23:30 -04:00
LLMsherpa 685b405448 fix: bound snapshot transfers and model V4.1 phase memory 2026-10-26 09:57:48 -04:00
LLMsherpa c363029cd1 fix: derive tournament seeds within NumPy bounds 2026-10-26 07:11:23 -04:00
LLMsherpa b208de5334 fix: harden refinement cleanup and export portability 2026-10-26 01:13:57 -04:00
LLMsherpa d53339c596 fix: validate informed search bounds 2026-10-26 00:41:23 -04:00
LLMsherpa 5ca23c7c9b test: align admission and synthetic refinement fixtures 2026-10-25 21:57:58 -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 Magly 7e8cf55705 Merge pull request #385 from jmagly/feat/qwen38-symlink-inputs
Let the Qwen3.8 campaign symlink cached inputs from another filesystem
2026-10-24 15:19:02 -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