Commit Graph
489 Commits
Author SHA1 Message Date
Joseph Magly 95046ed0ab Merge remote-tracking branch 'upstream/main' into fix/release-distributed-boundaries 2026-10-29 01:39:45 -04:00
Joseph Magly 46fc677a70 test(distributed): preserve export and preflight failure boundaries 2026-10-29 01:39:44 -04:00
Joseph Magly 7fde052252 Merge remote-tracking branch 'upstream/main' into fix/release-boundary-tests
# Conflicts:
#	ci/test-risk-map.json
2026-10-29 01:08:41 -04:00
Joseph Magly d34e59387a test(release): verify input and recovery bounds 2026-10-29 00:58:11 -04:00
Joseph Magly de9764a90f Merge remote-tracking branch 'upstream/main' into fix/release-bayesian-boundaries 2026-10-29 00:54:45 -04:00
Joseph Magly ff4c439d31 fix(bayesian): restore policy on format failure 2026-10-29 00:54:44 -04:00
Joseph Magly 7ac4830b01 fix(mcp): gate execution on working pidfds 2026-10-29 00:36:34 -04:00
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 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 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 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
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 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 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 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 d242b3f725 Map iterator-initialization failures to ContractError
Codex r1 on #380: iter(source) only mapped TypeError, so an __iter__
raising OSError, csv.Error or StopIteration (directly or as a PEP 479
RuntimeError) still leaked. Apply the same narrow provider-error and
cause-checked RuntimeError mapping at initialization; normal exhaustion
in next() is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:41:04 -04:00
Joseph MaglyandClaude Opus 5.5 83946b36dc Map source-iterator and descriptor-close failures to ContractError
Follow-ups from the #379 review:
- A StopIteration raised inside the live discovery generator (for
  example from distribution.metadata["Name"]) became a RuntimeError under
  PEP 479 and escaped the contract mapping. Only the converted form is
  mapped; unrelated RuntimeErrors still surface.
- OSError and other provider errors raised while iterating a caller
  supplied distribution source now map to ContractError.
- An OSError from os.close in _regular_file_digest no longer escapes the
  finally block raw; a failed close never reports a digest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:36:14 -04:00
Joseph MaglyandClaude Opus 5.5 03da4985f9 Map OSError and StopIteration from distribution metadata to ContractError
installed_package_set_digest() normalized csv/Key/Type/Unicode errors from a
distribution's metadata, version and METADATA/RECORD reads, but an unreadable
metadata file (OSError, e.g. PermissionError) or a provider whose lookup
exhausts an iterator (StopIteration) escaped the contract instead of
surfacing as LMS_DEPENDENCY_DRIFT. Catch both.

Tests: a provider raising PermissionError/OSError from METADATA/RECORD reads
and StopIteration from .version and .metadata maps to ContractError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:35:36 -04:00
Joseph MaglyandClaude Opus 5.5 fa4aa5a905 Refuse a symlinked checkout egg-info; normalize csv.Error from RECORD
Review r2:
- The exempt checkout egg-info path was fully resolved, so a symlink to
  another checkout's or a user-site egg-info resolved to that install and
  exempted it. Canonicalize only the checkout root and append
  obliteratus.egg-info unresolved; a symlinked egg-info, or one resolving
  outside the checkout, raises ContractError.
- A RECORD field over csv.field_size_limit made distribution.files raise
  csv.Error outside the normalization. Catch it wherever RECORDs are
  parsed, so it maps to LMS_DEPENDENCY_DRIFT.

Tests: a symlinked checkout egg-info pointing at an external install that
is also visible (and one pointing back inside the checkout); an oversized
RECORD field for obliteratus and a third-party distribution, directly and
through both GPU candidate tiers; the site-containment guard on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 21:48:53 -04:00
Joseph MaglyandClaude Opus 5.5 6886d5596a Exempt only this checkout's egg-info; normalize malformed RECORD
Review r1: the exemption dropped any obliteratus.egg-info outside the
prefix sites, so a user-site, system-site or other-checkout install could
hide behind an approved digest. Exempt only the canonical
<checkout>/obliteratus.egg-info of the source tree this module runs from
(model_identity.py parents[2]); from an installed wheel that path is
inside a site dir and nothing is exempt. Every other visible obliteratus
distribution fails closed again.

A malformed RECORD made distribution.files raise ValueError outside the
normalization; it is now ContractError, so model_session reports
LMS_DEPENDENCY_DRIFT.

Tests: conflicting external egg-info (dir and file, before and after the
wheel on sys.path), symlinked checkout paths, prefix egg-info from a wheel,
malformed RECORD -> LMS_DEPENDENCY_DRIFT on both GPU candidate tiers, and
PEP 660 / .egg-link editable layouts failing closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 21:37:55 -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 Magly 54e6066099 Merge pull request #369 from jmagly/fix/phase-admission-multigpu-input
fix(admission): resolve attention execution device nearest-first on split models
2026-10-22 18:31:08 -04:00
Joseph MaglyandClaude Opus 5.5 10b397cc7b fix(admission): require alias agreement for ancestor hooks; resolve inputs upward
Review of 54f600e (both regressions from r6):
- The direct-chain shortcut returned an ancestor hook from one direct
  registration while a hooked container alias disagreed (FP32 -> BF16
  flip). Only the projection's own hook still short-circuits; ancestor
  hooks require agreement across all indexed paths, including container
  aliases, or resolution raises.
- Automatic input-device resolution still enumerated the whole graph
  downward and exhausted the budget on an alias-free 48 x 128 expert model,
  so resolve_input_execution_device raised before its CPU-storage
  fallback. It now uses the budgeted parent index and walks upward from the
  target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:56:57 -04:00
Joseph Magly d2d52bd92c Merge pull request #374 from jmagly/fix/verify-logit-vocab-contract
fix(verify): accept padded model vocabularies and report forward failures precisely
2026-10-22 17:50:40 -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