Commit Graph
1174 Commits
Author SHA1 Message Date
Joseph Magly 42b0c2abbe Merge pull request #426 from elder-plinius/feat/f02-dataset-contract-20261104
Version concept datasets and isolate independent partitions
2026-11-11 14:59:08 -05:00
Joseph Magly 362acdb87b Merge pull request #430 from 0xreconlion/fix/bounded-norm-reduction
Bound norm-capture scratch to a chunk budget instead of promoting a whole weight
2026-11-11 14:52:58 -05:00
Joseph Magly 5e718b1cb6 Merge pull request #428 from ariannamethod/astra/steering-combine-weights
fix(steering): reject mismatched combination weight counts
2026-11-11 14:49:58 -05:00
Joseph Magly 3a0c250448 Merge pull request #425 from elder-plinius/test/gemma2b-history-20261104
Record Gemma 2B historical observation on RTX 4090
2026-11-11 14:46:46 -05:00
Joseph Magly af56181ae9 Merge pull request #424 from elder-plinius/test/analysis-first-4090-proof-20261104
Add local RTX 4090 proof for analysis-first changes
2026-11-11 14:43:10 -05:00
Joseph MaglyandClaude Opus 5.5 9caa57d978 ci(risk-map): run token-policy tests when concept validation changes
The concept-packs surface owns validation.py and the pack schema but did
not require tests/test_concept_token_policy.py, so a regression in those
tests passed PR CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:39:17 -05:00
Joseph MaglyandClaude Opus 5.5 9a9175253a fix(concepts): restore version-gate messages and require fit rows in every set
The new if/not schema support made the generic schema pass reject
version-gated fields first, so authors got "forbidden field or value"
instead of the schema_version the field needs, and three existing
token-policy tests failed. Check entry_point, special_token_policy and
dataset against schema_version before the schema pass.

A neighbour or battery set whose rows were all assigned to non-fit roles
was passed to extraction and gating empty. Require fit rows in every
declared set.

Document that older releases ignore the dataset declaration and extract
from every row. Hoist the similarity normalizer out of the pair loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:38:54 -05:00
Joseph MaglyandClaude Opus 5.5 9e14b01e77 docs(gemma2b): keep the frozen worker as a record and drop internal references
The historical-observation worker only runs inside the recorded sandbox
(it writes to a fixed /tmp/work and needs an unshipped launcher), so
shipping it under examples/ invited unsafe direct runs. Move it next to
its report, byte-for-byte, so it still matches the benchmark_worker.py
hash in the evidence.

Remove the private tracker link, the .aiwg paths that do not exist in
this repository, internal orchestration terms and the host name. Note
that the model snapshot is a third-party copy. Measurements are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:35:31 -05:00
Joseph MaglyandClaude Opus 5.5 3a8b101645 docs(analysis): drop internal references from the 4090 proof
Remove the private tracker link, the .aiwg report paths that do not
exist in this repository, internal orchestration terms and the host
name. The measurements, isolation description and limits are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:34:49 -05:00
Joseph MaglyandClaude Opus 5.5 5b4291eebe fix(numerics): accumulate bounded norms on the host
frobenius_norm_bounded added each chunk's CUDA result into a CPU
float64 tensor, which raises a device-mismatch RuntimeError for any
weight not on the CPU. Norm capture and restoration run whenever
norm_preserve is on, so every GPU run would have failed.

Accumulate into a Python float instead. That keeps float64
accumulation and works on CUDA and MPS (which has no float64). Widen
chunks straight to contiguous memory so a transposed chunk is not
copied a second time by reshape, and run the reduction under no_grad.

Add a CUDA conditional test that fails on the previous head and covers
the helper and the real capture/restore path on a CUDA layer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:32:46 -05:00
0xreconlionandClaude Opus 5 2520dc5818 fix(numerics): bound norm-capture scratch to a chunk budget
Capturing and restoring layer weight norms called ``data.float().norm()``,
which allocates a float32 copy of the entire weight to produce one scalar.
The copy is unconditional, so no offload plan, device map, or allocator
setting avoids it, and for a large-vocabulary LM head it is gigabytes.

Add ``frobenius_norm_bounded`` beside the module's other bounded-scratch
contracts and route the four norm reductions in ``_capture_layer_weight_norms``
and ``_restore_layer_weight_norms`` through it. It splits the largest axis
until a chunk's float32 scratch fits the budget, accumulates sums of squares
in float64, and takes one square root. Storage already at least as wide as
float32 reduces in place, so widening never allocates for it.

Measured on a [152064, 5120] float16 weight, reducing scratch from a
multiple of the weight to a multiple of the budget:

  budget    4 MB   16 MB   64 MB
  scratch  12 MB   38 MB   96 MB

The whole-weight promotion cost 2971 MB for the same reduction. Scratch is
now a function of the budget, not of the weight.

The folded post-norm branch is left alone: folding materializes a full
writer copy by construction, so bounding its norm would require changing
the fold itself.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-09 17:08:40 -05:00
Arianna Method 5bed843b66 test(steering): cover combination weight counts and valid mixtures 2026-11-06 00:56:43 +00:00
Arianna Method a8d588f37a fix(steering): require one combination weight per vector 2026-11-06 00:54:38 +00:00
Joseph Magly acae9d3a01 feat(concepts): version datasets and isolate independent partitions 2026-11-04 21:59:43 -05:00
Joseph Magly 246801dfa8 test: record gemma2b historical GPU observations 2026-11-04 13:59:05 -05:00
Joseph Magly ba2329dd35 docs(analysis): clarify local GPU measurements 2026-11-04 11:48:09 -05:00
Joseph Magly da21816610 test(analysis): record local RTX 4090 proof 2026-11-04 11:41:43 -05:00
Joseph Magly b2e65a7723 Merge pull request #423 from elder-plinius/feat/analysis-first-package-20261103
Correct geometry evidence and profile observational baselines
2026-11-04 10:40:50 -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
Joseph Magly 0479da2f15 Merge pull request #420 from younger-plinius/feat/ask-the-lab
Add Ask the Lab conversational neuron studies
2026-10-30 18:16:47 -04:00
Joseph Magly a4409c62d1 Merge pull request #422 from elder-plinius/fix/418-cpu-head-overlay
fix: include CPU-backed LM head in capacity overlays
2026-10-30 18:10:49 -04:00
Joseph Magly 18bbb8e2c0 Merge pull request #421 from elder-plinius/fix/419-memory-receipt
fix: report actual campaign GPU memory sampling
2026-10-30 18:03:48 -04:00
Joseph Magly 2ee7caf5fb fix: reserve CPU-backed LM head surgery overlays 2026-10-30 17:27:55 -04:00
Joseph Magly 5eb4020d98 fix: describe actual campaign GPU memory sampling 2026-10-30 17:26:49 -04: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 1252cd57e6 Bind Ask the Lab reset replay to its own study receipt 2026-10-30 13:25:01 -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 5f515c0580 Merge pull request #417 from elder-plinius/review/python311-gradio-backport
build: prepare Python 3.11 and pinned Gradio security backport
2026-10-29 14:35:53 -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 1b2b808b09 Merge main 309c2cd into Gradio backport review branch 2026-10-29 10:55:55 -04:00
Joseph Magly 309c2cdb30 Merge pull request #416 from elder-plinius/test/private-evidence-fixture-modes
test: set explicit permissions for unsafe evidence fixtures
2026-10-29 10:18:02 -04:00
Joseph Magly 752c539911 build: vendor reviewed Gradio Pillow security backport 2026-10-29 10:15:37 -04:00
Joseph Magly 992586ffd0 Merge documented main for evidence fixture validation 2026-10-29 10:06:01 -04:00
Joseph Magly 60655edbe6 Merge pull request #415 from elder-plinius/docs/release-readiness-sync
docs: synchronize release rehearsal and runtime guidance
2026-10-29 10:04:01 -04:00
Joseph Magly 086f6368aa test: set explicit permissions for unsafe evidence fixtures 2026-10-29 10:01:54 -04:00
Joseph Magly ccd1cd73f0 docs: synchronize release rehearsal and runtime guidance 2026-10-29 09:50:28 -04:00
Joseph Magly 0184278eba Merge pull request #414 from elder-plinius/perf/reuse-capacity-calculations
perf: reuse capacity planner calculations
2026-10-29 09:02:41 -04:00
Joseph Magly 04f77f20ff Merge current main for reviewed planner delivery 2026-10-29 08:55:09 -04:00
Joseph Magly 744e37be66 perf: reuse capacity planner calculations 2026-10-29 08:55:07 -04:00
Joseph Magly bf61d8216a Merge pull request #413 from elder-plinius/ci/refresh-owned-slow-tests
ci: refresh slow-test ownership from hosted evidence
2026-10-29 08:10:27 -04:00
Joseph Magly 08a704a4e4 ci: refresh slow-test ownership from hosted evidence 2026-10-29 08:06:20 -04:00
Joseph Magly 3cbd1829cd Merge pull request #412 from elder-plinius/fix/campaign-arm-configuration
fix: represent campaign arms as structured configuration
2026-10-29 07:47:49 -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 c53f75e06d Merge pull request #411 from elder-plinius/fix/release-dependency-bytecode
ci: precompile verified release dependencies
2026-10-29 06:56:56 -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 4ffe7b2423 Merge pull request #410 from elder-plinius/fix/reserved-analysis-charts
fix(ui): reserve temporary analysis chart outputs
2026-10-29 05:21:09 -04:00
Joseph Magly 0c6fb41376 Merge remote-tracking branch 'upstream/main' into fix/reserved-analysis-charts 2026-10-29 05:11:26 -04:00