176 Commits
Author SHA1 Message Date
kaixin liu 4545d2a095 fix(ci): preserve changed-line coverage paths across diff hunks 2026-12-02 03:02:32 +08:00
Joseph Magly 1b702ae499 Avoid unnecessary AST work when assigning Gloo test shards 2026-12-01 12:29:34 -05:00
Joseph Magly 2445515c1e Merge pull request #755 from jmagly/qualification/obliteratus-release-collection-20261201
Keep release inventory IDs out of CI logs
2026-12-01 11:50:44 -05:00
Joseph Magly 86f710520d Summarize release inventory collection in CI logs 2026-12-01 07:22:47 -05:00
Joseph Magly 8ecc5540e2 Fix CLI compatibility, GGUF row validation, and release evidence collection 2026-12-01 06:28:46 -05:00
Joseph Magly 3b535c0b73 fix: bind observation to signed source and handle publication failures 2026-11-28 14:32:52 -05:00
Joseph Magly 2b0a53e0b6 feat(distributed): collect observation-only rank-local review inputs 2026-11-28 13:07:24 -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 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 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
Joseph Magly afde716070 feat(distributed): add rank-local LMS-E4 workload admission and a streaming reference
Adds the two-host E4 workload path. A bounded streaming reference is built from the immutable source with one layer resident at a time, so it works for models larger than any single host. run_rank_local_qualification.py admits a fully bound E4 job only when its workload exceeds the local host's physical RAM, and the worker requires both ranks to agree over Gloo before PROBE. Registry and final qualification checks are unchanged; the stack stays not_qualified. The PROBE RAM refresh was already delivered in 002e6e5.

Refs #287
2026-11-27 11:23:49 -05:00
Joseph Magly f2da875345 feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
Adds --loadpath-concept-layer-select {all,cv_auc} so the loadpath-333 concept arm can rerun with data-driven layer selection, alone or with --loadpath-causal-control (same recipe on the CausalLM path). Stage and edit evidence record the variant (concept_variant) and the selected layers; quality gates keep reporting without vetoing edits. The default 'all' keeps the original recipe and manifest. CPU tests cover the options with stubbed model work; the docs add the A100 command lines.

Fixes #383
Refs #333
2026-11-26 17:28:48 -05:00
Joseph Magly 51fa9e2213 ci(policy): rebaseline release duration budgets, speed up slow tests, enforce per-test budgets on PRs
Rebaselines the release suite and marker duration budgets to the slowest
measured hosted release time + 25% (run 45678651612; suite 3910 s on py3.11
and 5340 s on py3.12; cpu 2010, integration 700, unmarked 2460) and owns every
test whose time + 25% exceeds 15 s under #679 with a 90-day review (follow-up
#684). Speeds up test_smaller_change rank1 (geometry environments built lazily)
and the recipe-search fake edit step (a light helper module). The PR core gate
now enforces per-test budgets on each shard's JUnit with a new
--testcase-budgets-only mode; suite and marker totals stay release-only.

Refs #679
2026-11-25 15:33:27 -05:00
Joseph Magly 3cdc3ce065 fix(checkpoints): stop naming the quarantined PyPI project in install hints
The checkpoint adapter reason rendered `install_extra=obliteratus[<extras>]==<version>`,
and the refusal-recovery pilot printed `install obliteratus[recovery]`. pip
resolves both against an index, where the `obliteratus` project is
quarantined with no installable files. The reason keeps its `install_extra=`
key with bare extra names and adds `install_hint` (source checkout
`uv sync --locked --extra ...`) and `project_version`, within the schema's
2048-character limit. The pilot gives the same source-checkout guidance.

Fixes #626
2026-11-24 15:33:00 -05:00
Joseph Magly 11cbddb2df fix(recipes): bind Qwen3.8 presets to the pinned 27B revision
qwen38_e01/e02/e03 were validated for Qwen/Qwen3.8-27B but ran on any
model. A single binding table now maps each preset to the pinned stock
identity. When run() would edit with a bound preset and the model
identity (explicit recipe_model_id/recipe_revision or a Hugging Face
snapshot path) is not the bound one, the edit is refused unless
allow_recipe_transfer is set, which records the transfer in metadata and
logs a warning. Construction and evaluation-only uses (checkpoint
evaluation) are unaffected. obliterate exposes the presets locally with
--allow-recipe-transfer; remote runs reject them. The campaign passes
its locked stock identity and sets transfer only for the small-model
rehearsal. The new options are appended to the constructor signature and
added to the refusal golden configs (tensors unchanged).

--recipe now labels a family recipe applied to a member with a passing
confirmation of the unchanged recipe confirmed-family-member instead of
family-application.

Fixes #542
2026-11-19 13:40:11 -05:00
Joseph MaglyandClaude Opus 5.5 3359177d25 Merge upstream/main into feat/issue-525
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 12:08:03 -05:00
Joseph Magly 3ff6e8e020 feat(qwen38): enforced budget hard stop for the A100/H200 campaign
`--budget-hours` only warned, so an overrunning stage kept spending a
fixed rental budget (#527).

- `--hard-stop-hours` and/or `--budget-usd` with `--usd-per-gpu-hour`
  set a wall-clock deadline (the lower of the two); `--reserve-hours`
  (default 2, 0 in dry runs) keeps time for evidence copy-out and
  teardown; `--elapsed-offset-hours` counts rental time already used.
- A stage starts only if its allowance fits before the deadline minus
  the reserve; refused stages and their dependants are skipped while
  later stages that fit still run. Stages run in priority order with
  optional stages (load path, pain axis, multistep) last.
- At the deadline the running stage's whole process group gets SIGTERM,
  then SIGKILL after a grace; the receipt records stopped_by_budget,
  outputs stay hashed and nothing is deleted. A budget stop exits 75 and
  --resume continues from the last completed stage in a later window.
- Ctrl-C now stops the whole process group the same way, so an operator
  stop also frees the GPU; a second Ctrl-C kills immediately.
- Without the new flags behaviour is unchanged; the script still loads
  no ML stack at startup. New logic lives in
  scripts/qwen38_campaign_budget.py.
2026-11-18 11:57:14 -05:00
Joseph Magly 811854194e feat(obliterate): verify-checkpoint reload-and-generate parity
The REBIRTH save stage only checked that files exist and parse, so a
save that dropped or mangled the edit passed silently (#525).

- `obliterate --record-reference` records greedy outputs of the
  in-memory edited model on the pinned obliteratus-verify-v1 prompt set
  (8 harmful + 8 harmless, 32 tokens) into a sidecar with digests of the
  files the reload reads.
- `obliteratus verify-checkpoint` reloads the checkpoint from local
  safetensors only, regenerates greedily and compares token ids: exact
  match, prefix agreement and harmful refusal-rate change against
  per-reload tolerances (strict for full precision, provisional for
  bitsandbytes 8/4-bit, overridable and recorded).
- Fails with named reasons for no or empty reference, files changed
  since the reference, tokenizer mismatch, divergence, invalid outputs
  and, with --stock-model, an edit that was not persisted. A
  structural-only check can never pass.
- Versioned report bound to checkpoint digests, prompt-set digest and
  runtime; exit 0 pass, 2 input error, 3 verification failed.
- CPU tests use a tiny local GPT-2 through the real REBIRTH; a CUDA and
  bitsandbytes test runs in the conditional gates.
2026-11-18 11:56:26 -05:00
Joseph MaglyandClaude Opus 5.5 ca622d290d fix(aspa): fail closed on unreadable Pareto controller evidence
load_json() caught every exception and returned None, so a truncated,
empty or undecodable ship-gate report looked like missing evidence: the
candidate silently left the leaderboard, the controller recommended the
wrong leader and still exited 0 (#518).

- load_json returns None only for a missing file; read, decode, JSON
  and non-object errors raise UnreadableEvidence with the path and
  reason.
- collect scans every evidence directory, then raises
  UnreadableEvidenceSet listing all unreadable files; corrupt
  interpolation metadata is treated the same way.
- main exits 2, reports each file on stderr and writes no frontier, so a
  ranking is never published from a partial evidence set. Unrelated
  valid JSON in an evidence directory is still ignored.
- Outcome tests cover truncated, empty, binary and non-object reports,
  multiple evidence kinds, missing files, unreadable directory entries
  and corrupt interpolation metadata; the script is registered in the
  test-risk map.

Reported-by: soarkit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:25:46 -05:00
Joseph MaglyandClaude Opus 5.5 6c2f79672f feat(experiments): matched-precision reasoning controls for backend qualification
Extend backend qualification so precision-induced changes in reasoning
outcomes are separated from intervention effects (#512).

- Precision declarations record weight, activation and KV-cache
  precision, quantizer and calibration identity; incomplete or
  inconsistent declarations are refused.
- A bounded, preregistered pilot protocol fixes candidate, dataset,
  decoding, output budget, seed blocks, final-answer parser, margins,
  drift limit, resource objective and disjoint splits.
- The pilot loads four fresh cells on the same rows: the unedited parent
  and the saved candidate at the CPU float32 reference and at the
  declared precision.
- Per-row outcomes separate final-answer correctness from reasoning and
  total tokens and termination; truncated or unparsable outputs count
  as wrong.
- Paired bootstraps give precision effects within each artifact,
  intervention effects within each precision and their interaction.
  Gates apply per task and pooled, and expose harm hidden by a pooled
  pass. Shared-prefix KL is reported apart from free-running
  disagreement.
- Token cost never gates; an efficiency claim needs every gate to pass
  and the preregistered resource to improve.
- Support matrix schema 2 carries precision fields and pilot attempts;
  pilots never add qualified pairs, and schema 1 records still load.
- `obliteratus experiments qualify reasoning`; CUDA path in the
  conditional gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 22:03:40 -05:00
Joseph MaglyandClaude Opus 5.5 458059e066 feat(experiments): backend qualification and support matrix
Start milestone 5 (F20): qualify each saved artifact on an explicit
backend against the CPU float32 reference of the same artifact, and
record exactly which pairs qualify.

- Only fully verified persistent candidates are accepted; each run
  loads the saved artifact fresh from disk on the reference and on the
  declared backend after checking digests.
- Backend descriptors make device, dtype, quantization, attention,
  tokenizer and cache mode explicit; their digest is the backend id, so
  native and quantized results are separate rows.
- Paired evaluation on independent rows checks realized settings,
  target rate, completion agreement, logit and site-activation drift and
  collateral endpoints. Latency and memory stay outside the digest.
- Unsupported combinations are recorded unsupported without loading or
  falling back; unavailable hardware is refused and leaves the pair
  untested. Failures are permanent and block broader claims.
- A versioned support matrix lists exactly the qualified pairs. CUDA
  tests run in the cuda-runtime conditional gate.
- `obliteratus experiments qualify run|matrix`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:05:58 -05:00
Joseph MaglyandClaude Opus 5.5 2539cdb2b7 feat(experiments): chat templates, seeded sampling, batching and CUDA observation
Remove the observation runner's execution limits.

- Chat templates: an optional prompt section renders each prompt
  through the tokenizer's chat template (optional system message,
  generation prompt), tokenized without extra special tokens. The
  rendered-prompt digest joins the generation step identity and each
  record; capture uses the same rendered prompts.
- Decoding: seeded sampling (temperature, top-p, top-k) alongside
  greedy, with a per-example seed derived from the spec seed and example
  id. Comparison treats sampled outcomes as exact only when strategy,
  device, dtype and seed match, and says why otherwise.
- Batching: optional left-padded greedy batches with an explicit,
  recorded pad token; rows are cut at their first eos so batched and
  unbatched outcomes agree. Sampling with batches is refused because
  per-example seeds cannot hold.
- Devices: dense CUDA for the runner and capture, with shards written
  from CPU copies and device/dtype recorded. Quantized, offloaded,
  dispatched, meta, split-device and MPS models are refused with
  explicit reasons.

The schema stays additive within version 1; options at their defaults
are dropped from the filled spec, so existing spec digests are
unchanged (pinned in tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:33:51 -05:00
Joseph Magly 5eb4020d98 fix: describe actual campaign GPU memory sampling 2026-10-30 17:26:49 -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 752c539911 build: vendor reviewed Gradio Pillow security backport 2026-10-29 10:15:37 -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 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 46622d7d28 ci: validate and retain unexecuted subprocess coverage 2026-10-29 04:54:35 -04:00
Joseph Magly ec0000d0c5 ci: verify disposable bytecode policy and partition release Gloo 2026-10-29 03:43:54 -04:00
Joseph Magly 97e0df2f32 ci: partition release core tests and bind complete evidence 2026-10-29 02:30:11 -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 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 add78ba0b7 Register Qwen2.5-32B/72B-Instruct in the Pain Axis replication harness
The harness only knew the small models, so the Gitea #116 Phase B runs
at 32B/72B could not select their official S1/S2 ablation layers. Add
both from appC_ablation/02_ablation_large_models.py at the pinned
4d75cd90: Qwen_2.5_32B_instruct ("chat", 32, 38) and
Qwen_2.5_72B_instruct ("chat", 48, 60). The S2 layers match the shipped
4.2 steering references (L38, L60). The appendix-D and recovery scripts
take --name from this table, so they gain the same choices.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:04:50 -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 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 MaglyandClaude Opus 5.5 ce9f7efd9b Allowlist the git environment instead of denylisting overrides
Review r4: inherited GIT_TRACE* survived sanitization, and a trace aimed at
/dev/stdout corrupted the captured SHA and status ("local", dirty). This
was the third surviving-GIT_* finding, so close the class: drop every
inherited GIT_* variable and set only GIT_OPTIONAL_LOCKS=0,
GIT_TERMINAL_PROMPT=0 and GIT_NO_LAZY_FETCH=1.

The sanitizer test now requires exactly those three GIT_* names (including
when an unknown GIT_* control is inherited). A real-git regression test
aims each of GIT_TRACE, GIT_TRACE_SETUP, GIT_TRACE2, GIT_TRACE2_EVENT and
GIT_TRACE2_PERF at /dev/stdout and requires the checkout's clean HEAD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:32:16 -04:00
Joseph MaglyandClaude Opus 5.5 0a6bb0de89 Also drop git stdio redirection and config selection; never prompt
Review r3: GIT_REDIRECT_STDIN/STDOUT/STDERR survived sanitization. On Git
for Windows, GIT_REDIRECT_STDOUT sends output past the capture pipe, so a
dirty tree would read as clean and HEAD could fall back to "local".
Drop them, and GIT_CONFIG_NOSYSTEM, which the documented list already
claimed. Set GIT_TERMINAL_PROMPT=0 and GIT_NO_LAZY_FETCH=1 and run git
with stdin closed. The sanitizer test asserts all of these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:27:58 -04:00
Joseph MaglyandClaude Opus 5.5 e0646aa35c Run git metadata commands with a sanitized environment
Review r2: inherited GIT_DIR / GIT_WORK_TREE / GIT_INDEX_FILE and similar
variables override git -C, so the resolver could report another
repository's HEAD or dirty state. Drop every repository-, index-,
object-store-, namespace- and config-selecting variable before running
git, and set GIT_OPTIONAL_LOCKS=0 so status never writes the index.

The real-repository test fixture builds its git environment from the same
helper (plus stripping any other GIT_* variable) so the two cannot drift.
A new test redirects GIT_DIR/GIT_WORK_TREE/GIT_INDEX_FILE to a second
repository, with and without an invalid GITHUB_SHA, and requires the
checkout's own HEAD and dirty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:21:17 -04:00
Joseph MaglyandClaude Opus 5.5 79914ca4fa Validate GITHUB_SHA and git HEAD independently; align the summary producer
Review r1: a non-empty but invalid GITHUB_SHA short-circuited the
resolver to "local" even when the repository HEAD was valid. Validate
each source on its own and fall back to "local" only if both fail.

Move the git helpers to scripts/conditional_gate_metadata.py and use them
from conditional_gate_summary.py too, so the workflow summary records the
same git_sha and git_dirty. Add summary-producer cases and a real
temporary-repository test for clean, tracked-dirty and untracked states.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:08:47 -04:00
Joseph MaglyandClaude Opus 5.5 5fe701e064 Record the real git SHA and dirty flag in conditional gate reports
Gate runs on lab hosts have no GITHUB_SHA, so every report said
git_sha "local" and the evidence could not be tied to a commit from the
summary alone. Resolve GITHUB_SHA, then git rev-parse HEAD of the
script's repository, then "local"; accept only 40/64-char lowercase hex.
Add git_dirty (tracked changes at report time; null when git is
unavailable). schema_version stays 1; the field is additive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:50:12 -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