Commit Graph
1500 Commits
Author SHA1 Message Date
pliny 3900419437 Merge pull request #704 from younger-plinius/fix/head-pruning-explicit-head-dim
fix(head-pruning): support explicit head_dim (Qwen3, Gemma-2/3/4)
2026-11-28 12:22:24 -05:00
pliny 900886251a Merge pull request #703 from younger-plinius/fix/vocab-surgery-eos-and-tie-dedup
fix(vocab-surgery): EOS config fallback in batched discovery & fail-closed tied-policy dedup
2026-11-28 12:22:08 -05:00
faber 117398e054 fix(vocab-surgery): fall back to model.config EOS in batched discovery and fail closed on conflicting tied-edit dedup 2026-11-28 12:18:03 -05:00
pliny 541723ee3c Merge pull request #702 from younger-plinius/fix/vocab-discovery-exclude-numeric
fix(vocab-surgery): exclude numeric tokens from discovery by default
2026-11-28 11:25:05 -05:00
faber 5fca644fbb fix(head-pruning): resolve explicit head_dim for Qwen3 and Gemma-2/3/4 2026-11-28 11:24:14 -05:00
faber f5263b8c83 fix(vocab-surgery): exclude numeric tokens from discovery by default 2026-11-28 10:58:22 -05:00
pliny 54bce1b23d Merge pull request #701 from younger-plinius/research/lexotomy-paper
research: Add Lexotomy (Vocab Surgery) 12-Model Mechanistic Paper & Onset-Orth Module
2026-11-27 21:36:10 -05:00
Joseph Magly 367241ba70 Merge pull request #697 from elder-plinius/feat/427-identity-security-eval
feat(research): add an opt-in identity-conditioned code-security evaluation
2026-11-27 19:12:53 -05:00
faber d8d8c024cf research: add Lexotomy (Vocab Surgery) paper, figures, and Onset-Orth module 2026-11-27 18:50:04 -05:00
Joseph Magly daf073d3b7 fix(identity-security): block shared anonymous shmem and probe without os.memfd_create
A touched MAP_SHARED|MAP_ANONYMOUS or read-write /dev/zero mapping shrunk
to one page kept its whole shmem object outside RLIMIT_AS. The seccomp
filter now returns EPERM for mmap with MAP_SHARED or MAP_SHARED_VALIDATE
plus MAP_ANONYMOUS, and /dev/zero is masked with a read-only /dev/null
bind. userfaultfd and io_uring return ENOSYS, and the legacy x32 range
512-547 is killed on x86-64 alongside x32-tagged calls.

The isolation probe called os.memfd_create, which uv-managed CPython
lacks, so every execute refused with a misleading network-isolation
message. Make the probe's calls through libc.syscall, require each denial
explicitly, and report a crashed probe on its own. Docs describe RLIMIT_AS
as a bound on live mappings and list the known routes only.
2026-11-27 18:40:50 -05:00
Joseph Magly 834a33a692 fix(identity-security): deny memfd in the sandbox and fix chat-template id extraction
A memfd that was written, mapped for one page and closed kept its backing
outside every limit. Install a classic-BPF seccomp filter through bwrap
--seccomp: on x86-64 and AArch64, memfd_create and memfd_secret return
ENOSYS; x32 calls and any other architecture kill the process. The live
isolation probe now requires memfd_create to fail, hosts other than x86-64
and AArch64 are refused, and the docs drop the false memfd bound.

Under Transformers 5, apply_chat_template returns a BatchEncoding, so the
generator and paired capture took the wrong object; extract input_ids as
recover does. Paired capture records the pinned template date, and tests
cover date-aware rendering at both call sites.
2026-11-27 17:48:50 -05:00
Joseph Magly 7a7bc94086 Merge main 0168897 into feat/427-identity-security-eval
Resolve ci/test-quality-policy.json by keeping both owned slow-test
budgets: the E4 Gloo agreement test from #698 and the CLI dispatch help
test from this PR.
2026-11-27 16:57:31 -05:00
Joseph Magly 01688975c3 Merge pull request #698 from elder-plinius/feat/287-e4-workload-and-probe-ram
feat(distributed): add rank-local LMS-E4 workload admission and a streaming reference
2026-11-27 16:47:20 -05:00
Joseph Magly e99571044a fix(identity-security): render chat templates with the pinned date
The generator and paired activation capture called
tokenizer.apply_chat_template directly, which #699's completeness guard
rejects: templates that render strftime_now would follow the wall clock.
Route both through obliteratus.chat_template_date.apply_chat_template and
record the template date in the generator metadata.
2026-11-27 16:41:56 -05:00
Joseph Magly 03964fe0ca Merge main cd7ae6c into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 16:18:20 -05:00
Joseph Magly e9f81ea8e2 Merge main cd7ae6c into feat/427-identity-security-eval 2026-11-27 16:04:15 -05:00
Joseph Magly cea3843926 ci(policy): own a duration budget for the first CLI dispatch help test
On this PR's shard layout, tests.test_cli.TestCLIDispatch::
test_verification_help_explains_invalid_denominator is the first CLI
dispatch test in its worker and pays the cold CLI import: 20.6 s and
16.3 s on hosted runners against about 3.5 s locally (unchanged by this
PR; the identity-security CLI module imports in 12 ms). It failed the
15 s default twice, so it gets an owned 25 s budget.
2026-11-27 16:04:13 -05:00
Joseph Magly cd7ae6ca9f Merge pull request #700 from elder-plinius/feat/accept-nov21-recipes
feat(recipes): accept nine recipes confirmed in the 2026-11-21 validation run
2026-11-27 16:02:48 -05:00
Joseph Magly 071813f906 Merge pull request #693 from elder-plinius/fix/689-batched-vocab-discovery
perf(vocab-surgery): batch greedy generation in discover (--batch-size)
2026-11-27 15:55:35 -05:00
Joseph Magly f9c0c72fc4 Merge main 56cfa4e into feat/accept-nov21-recipes
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:39:48 -05:00
Joseph Magly 76e20f2aba test(distributed): cover float E4 receipt and workload values; align two-host docs
Add a receipt with greedy_steps 3.0 and float, string and mismatched
expected workloads to the E4 admission tests. The two-host protocol and
runbook, merged in #691, still said the qualification runner admits only
the E3 reference job; point them at the E4 workload worker and keep its
EXPERIMENTAL, not_qualified status.
2026-11-27 15:39:21 -05:00
Joseph Magly 26a7b45b08 Merge main 56cfa4e into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:37:56 -05:00
Joseph Magly 34cff6c1a5 Merge main 56cfa4e into fix/689-batched-vocab-discovery
Resolve the vocab_surgery_discovery.py conflict with #699: keep the batched
discovery structure, render discovery prompts through the pinned-date
chat-template helper, and record chat_template_date in the generation block.
2026-11-27 15:33:56 -05:00
Joseph Magly 56cfa4ee4f Merge pull request #691 from elder-plinius/feat/287-cross-host-tp2-protocol
docs(distributed): document the two-host TP2 cross-host protocol and E3/E4 runbook
2026-11-27 15:29:07 -05:00
Joseph Magly 16fc982708 Merge pull request #699 from elder-plinius/fix/690-pin-chat-template-date
fix(chat-template): pin the rendered date so prompts do not depend on the wall clock
2026-11-27 15:17:21 -05:00
Joseph Magly 09a6737efe Merge main 03cd1f2 into feat/427-identity-security-eval 2026-11-27 15:12:56 -05:00
Joseph Magly 93a8baf198 fix(identity-security): cap aggregate sandbox memory and block SysV IPC
The defaults allowed 64 processes x 2 GiB of address space, above host
RAM, and SysV shared memory escaped RLIMIT_AS entirely. Default to 16 x
512 MiB and refuse any limits whose processes x memory_bytes exceeds an
aggregate cap (8 GiB by default). Inside the sandbox's private IPC
namespace set shmmni, msgmni and sem to zero before /proc is remounted
read-only, and require those values in the isolation self-check. Document
that kernel memory is still unbounded and that a per-run cgroup is the
future hard ceiling.

Generation rows must now match their plan row on task, identity, secure
instruction and sample index, and outcomes take those fields from the plan.
2026-11-27 15:12:53 -05:00
Joseph Magly 9138ca83cf Merge main 03cd1f2 into feat/accept-nov21-recipes
# Conflicts:
#	CHANGELOG.md
2026-11-27 15:00:00 -05:00
Joseph Magly a18ebd075b feat(recipes): disclose advisory KL results in every affected recipe's notes
Seven of the new recipes failed the advisory KL check, but only
llama3.1-8b-abliterated's notes said so. Add the mean first-token and
next-token KL that exceeded their limits (0.1 and 0.05), taken from each
confirmation run's verify-edit report, to each affected recipe's notes.
2026-11-27 14:59:57 -05:00
Joseph Magly ee756af22c Merge main 03cd1f2 into fix/689-batched-vocab-discovery
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:46:25 -05:00
Joseph Magly fd541d9220 fix(vocab-discovery): batch only architectures verified to honour left padding
RWKV's forward ignores attention_mask, so left pads entered its state and
batched discovery changed results at the default batch size. The gate now
also requires an allowlisted model_type verified equivalent (gpt2, llama,
mistral, qwen2, qwen3, gemma, gemma2, phi3, mamba), transformers' own model
class, an attention_mask parameter, and static RoPE scaling; anything else
falls back to the one-prompt path. A tokenizer with neither pad nor eos
token now falls back instead of raising. Docs say batched results match up
to floating-point rounding.
2026-11-27 14:46:23 -05:00
Joseph Magly b526dfef0b Merge main 03cd1f2 into feat/287-cross-host-tp2-protocol
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:42:10 -05:00
Joseph Magly 85a57cac7e docs(distributed): survive main moves in the two-host bootstrap and fix publication phases
The registry record binds code_digest, the adapter digest and
policy_digest, so re-selecting a later main merge as the final candidate
refused at config_review. Compute those values in the registry PR's own
head from the existing attestations and check them on the merge result;
when main moves, recompute and re-review. Only a host, device, staging
mount, capacity or rendezvous_id change needs a new observation, since the
hardware digest takes no code or policy input.

List the exact job keys the worker reads, run the checker with the
checkout on PYTHONPATH, add the fault harness to the preconditions,
describe publication outcomes by phase (including the lost-ack case),
scope the Gloo-only statement to control records beside the NCCL data
plane, and keep raw artifacts out of the #287 handoff.
2026-11-27 14:42:07 -05:00
Joseph Magly def9b3a9cb Merge main 03cd1f2 into fix/690-pin-chat-template-date
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:41:01 -05:00
Joseph Magly e0131f770b Merge main 03cd1f2 into feat/287-e4-workload-and-probe-ram
# Conflicts:
#	CHANGELOG.md
2026-11-27 14:39:41 -05:00
Joseph Magly 03cd1f25dd Merge pull request #694 from elder-plinius/fix/684-gc-and-slow-tests
perf(device): skip per-batch gc.collect in activation collection on CPU-only hosts
2026-11-27 14:32:24 -05:00
Joseph Magly 587fca3e1d Merge pull request #692 from elder-plinius/fix/383-qwen38-concept-arm-variant
feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
2026-11-27 14:28:47 -05:00
Joseph Magly d8bc2ac3c8 ci(policy): own a duration budget for the first E4 Gloo agreement test
The first two-rank Gloo test in the E4 module pays the cold torch import in
both spawned ranks and took 15.5 s on the hosted PR runner, above the 15 s
default (about 5 s locally). Give it an owned 25 s budget, matching the
other two-rank Gloo tests.
2026-11-27 14:28:20 -05:00
Joseph Magly c1878b6cf6 Merge main d0ceadd into feat/427-identity-security-eval 2026-11-27 14:06:57 -05:00
Joseph Magly 4b65e85269 fix(identity-security): authenticate sandbox results, bound writable storage, require opt-in
Without --as-pid-1, Bubblewrap's init was PID 1 inside the sandbox and held
the host result pipe, so a generated app could write a forged result to
/proc/1/fd/1 and kill the runner. The runner is now PID 1 and non-dumpable,
and the host sends it a fresh HMAC key over a pipe the app never sees; the
host accepts only one sealed, schema-valid line from a runner that exited
cleanly. The key pipe is also the runner's lifeline at the deadline, the
runner reaps orphans, and -P keeps the writable working directory off
sys.path.

/tmp and /dev/shm were host-default writable tmpfs. /proc, /dev and /tmp
are now read-only and the size-capped /work is the only writable mount;
the per-user-namespace process limit caps all tasks together.

The real-sandbox tests ran in release and default selections. Modules that
set OPT_IN_ENV are now deselected unless the variable is 1, and the
identity-security sandbox tests require OBLITERATUS_IDENTITY_SECURITY_E2E=1.
The app log tail is read from the held descriptor, and duplicate or
missing samples make a generations file incomplete.
2026-11-27 14:06:55 -05:00
Joseph Magly ae85e60814 Merge main d0ceadd into feat/accept-nov21-recipes 2026-11-27 13:51:52 -05:00
Joseph Magly 966ab62b46 feat(recipes): accept nine recipes confirmed in the 2026-11-21 validation run
Ship as accepted v2 data the nine recipes that passed the protocol final
test and were accepted by the operator on 2026-11-27: Granite 4.1 8B,
Llama-3.2-1B, Llama-3.2-3B, OLMoE-1B-7B, Phi-4-mini, Qwen3.5-0.8B,
Qwen3.5-9B, Llama-3.1-8B-Instruct-abliterated and DeepSeek-R1-Distill-
Qwen-7B. Each ships a KL-advisory evaluation profile and value-only
confirmation and verify-edit evidence bound by SHA-256, following the two
recipes accepted in 134bd2c.

The Llama-3.2 results predate the chat-template date pin (#690) and are not
comparable with later measurements. Two recipes were confirmed with
analysis_device auto (resolved to cuda:0) and ship as confirmed; the shipped
CPU-extraction test now names them explicitly.
2026-11-27 13:51:50 -05:00
Joseph Magly 8c5c749757 Merge main d0ceadd into feat/287-e4-workload-and-probe-ram 2026-11-27 13:51:16 -05:00
Joseph Magly 54a190e78a fix(distributed): bind E4 greedy steps to the replayed count and tighten admission
The E4 receipt accepted greedy_steps 1 to 8 and the builder used the
draft's value, but the worker always replays three greedy steps and
compares them exactly, so any other value passed admission and was
guaranteed to fail after the physical run. Share REFERENCE_GREEDY_STEPS = 3
between admission, the reference builder and the worker, and refuse any
other value before building.

Also compare the live PROBE config and tokenization digests with the job in
the E4 worker, record a workload/job mismatch in the Gloo agreement so both
ranks refuse together, chain the cause of a local admission failure, and
require a plain int workload.
2026-11-27 13:51:14 -05:00
Joseph Magly 79be989671 Merge main d0ceadd into fix/690-pin-chat-template-date 2026-11-27 13:50:46 -05:00
Joseph Magly 90eae790a2 fix(chat-template): catch getattr and alias bypasses and pin operator vLLM kwargs
The completeness guard only flagged x.apply_chat_template(...) calls, so a
getattr call, a getattr or bound-method alias, or functools.partial passed
it. It now flags any apply_chat_template attribute or getattr lookup outside
the helper unless it is passed directly to callable() or hasattr(), and the
two capability probes use that form.

When an operator passes --default-chat-template-kwargs without date_string,
merge the pinned date into that JSON object (operator keys win) instead of
leaving vLLM unpinned. Document that scripts/ stays unpinned, the vLLM
version that first has the flag, that every resolved spec digest changes,
and that older verify-checkpoint references for date templates will not
match the pinned render.
2026-11-27 13:50:44 -05:00
Joseph Magly d0ceadd50a Merge pull request #696 from elder-plinius/fix/384-qwen35-recurrent-scan-admission
fix(admission): estimate the FLA/causal-conv1d recurrent workspace for Qwen hybrid models
2026-11-27 13:43:14 -05:00
Joseph Magly 648fa1644d fix(vocab-discovery): batch only generation configs that padding cannot change
Left padding changes greedy results when the model's generation config
uses settings that see the padded width or the pad tokens (min_length,
exponential_decay_length_penalty, repetition penalties, n-gram bans), and
beam search can return several rows per prompt, so output[index] attached
a completion to the wrong prompt.

Batch only when every set generation-config field is known batch-neutral
or at its generate default; a missing config, an unknown field or any other
value sends every prompt through the original one-prompt path. Add
mixed-length min_length and beam/return-sequence regression tests that
check each response with its audit entry.
2026-11-27 12:52:23 -05:00
Joseph Magly 814a32fa44 docs(distributed): make the two-host runbook bootstrap and launch correctly
Live preflight and the qualification runner both refuse before they
collect attestations while the registry has no matching record, so the
runbook could not bootstrap a first profile. Add an authorized
observation-only step (same probes as preflight, no admission), a
registry-only PR, and collect E2/E3/E4 on the final candidate that holds
the reviewed record.

Replace unquoted angle-bracket placeholders in shell blocks, list the full
torchrun environment the launcher requires and the job-file keys, and run
the offline checker from the exact final-candidate checkout. Mark physical
E3 fault collection pending a reviewed harness: the shipped worker
hard-codes the export id and destination.
2026-11-27 12:51:03 -05:00
Joseph Magly 1b5a54bcab fix(qwen38-campaign): reject impossible cv_auc runs before any GPU stage
cv_auc concept layer selection needs at least two prompts in every set,
but the fold check ran in _concept_target, after the pristine probes,
parity, the refusal edit and both refusal reloads. A locked prompt cap then
needed a fresh root to recover.

Share the minimum as CV_AUC_MIN_PROMPTS and the capped pinned sets as
_concept_prompts. parse_args rejects an explicit --max-prompts below the
minimum. campaign() checks the effective pinned set sizes before the run
lock, inputs and preflight, so fresh and resumed roots are refused
unchanged. loadpath() repeats the check before its first pristine probe.
2026-11-27 12:50:27 -05:00