Commit Graph
68 Commits
Author SHA1 Message Date
Joseph Magly 67e497d34b Merge pull request #687 from elder-plinius/fix/679-persistence-coverage
test(persistence): restore touched-module coverage and fix the synced-head comparison base
2026-11-25 20:00:44 -05:00
Joseph Magly 37fbe46154 test(persistence): restore touched-module coverage and fix the synced-head comparison base
Adds focused tests for the #674/#682 rollback refusals, uncertain-publish
identity checks, held-staging cleanup races and digest manifest validation:
persistence_contracts.py coverage goes from 97.14/96.07 to 99.80/99.44
(line/branch), above the 97.80/96.88 base. The release comparison base for a
synced branch head (a merge commit that is neither main nor a tag) is now its
merge base with main instead of HEAD^, so changes brought in from main are not
counted as the branch's regressions; main and tag pushes still use the first
parent. No production code changes.

Refs #679
2026-11-25 18:10:10 -05:00
Joseph Magly 331184df1c Merge main dd31361 into fix/679-secret-scan-false-positives
# Conflicts:
#	CHANGELOG.md
2026-11-25 18:06:17 -05:00
Joseph Magly f87fcc8a77 Merge main 543920f into fix/679-coverage-and-mutation-timeout
# Conflicts:
#	CHANGELOG.md
2026-11-25 17:05:51 -05:00
Joseph Magly 7f999505f0 test(release): restore touched-module coverage and raise the Quality depth timeout to 60 min
Adds focused tests for the lines the release run left uncovered in
evaluation/evaluator.py, recipes/search.py, recipes/search_cli.py and
study_presets.py after #676/#677, so touched-module line and branch coverage
is back at or above the comparison base (run 45690313651). Raises the Quality
depth job timeout from 45 to 60 minutes; the 85% mutation floor and every
other threshold are unchanged.

Refs #679
2026-11-25 16:13:34 -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 545ed4281d fix(ci): clear gitleaks false positives without suppression
All 22 supply-chain secret-scan hits were false positives: a public
Llama-3.2-1B commit id under a "tokenizer_revision" key, and SHA-256 digests of
tokenizer fixture files keyed by filename. numeric_geometry_spec uses one
module constant for the commit (values unchanged). The analysis-first evidence
JSONs record hashes as ordered {"path","sha256"} lists (all 63 values
preserved, verified), and the two writers emit the same shape. CI scans the
clean checkout before uv sync builds into the workspace. No allowlist, ignore
file or inline allow comment is added.

Refs #679
2026-11-25 15:13:02 -05:00
Joseph MaglyandClaude Opus 5.5 e5c3b5101a ci(nix): enable flakes through NIX_CONFIG for the single-user install
Single-user (--no-daemon) installs ignore --nix-extra-conf-file, so
nix-command and flakes stayed disabled and 'nix flake check' failed.
Set NIX_CONFIG at workflow level instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:14:28 -05:00
Joseph MaglyandClaude Opus 5.5 64c2751216 ci: run the Nix test flake in CI and document it for contributors
Make the committed Nix test environment usable by others and by CI.

- .github/workflows/nix-parity.yml installs Nix from the official
  release installer, pinned by version and SHA-256 (recorded in
  ci/digests.txt; the installer verifies the tarball hashes it embeds),
  checks the flake outputs and runs a parity smoke set on Python 3.12
  and 3.13. Release-gate tests run only on 3.12, the release
  interpreter. It triggers on changes to the flake, lock, pyproject,
  .envrc or the workflow, and on dispatch; it is not a required check.
- .envrc (`use flake`) loads the 3.12 shell for direnv users.
- tests/test_nix_parity_policy.py keeps the flake's uv pin, CI extras,
  non-editable install and marker filter in step with ci.yml, and the
  workflow's action and installer pins in step with ci/digests.txt.
- A nix-test-environment contract surface maps the flake, lock, .envrc,
  workflow and doc to that test.
- docs/NIX_TEST_ENVIRONMENT.md gains direnv and CI sections;
  CONTRIBUTING and README point to the flake, and CONTRIBUTING's
  supported-interpreter line now matches pyproject (3.11+, CI and
  release on 3.11 and 3.12).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:09:50 -05: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 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 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 09dd81845f ci: provide coverage headroom with six complete core partitions 2026-10-21 11:01:47 -04:00
Joseph Magly 5e56e76b14 ci: distribute expanded integration across four bounded shards 2026-10-20 18:17:24 -04:00
Joseph Magly 002e6e56e1 feat: complete local readiness across UI, MCP and memory admission
Integrate bounded admission, UI ownership and controls, opt-in durable MCP execution, rank-local TP2 groundwork, regression hardening and operator guides. Physical larger-memory and two-host qualification remain separate.
2026-10-20 17:58:20 -04:00
Joseph MaglyandClaude Opus 5.5 85ffaf40fd feat(gpu): multi-GPU qualification driver and per-device admission
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 14:48:34 -04:00
Joseph MaglyandClaude Opus 5.5 44a629297d fix: address review findings for #133
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:30:06 -04:00
Joseph MaglyandClaude Opus 5.5 4316dac5f3 test: serialise thread trace installation on Python < 3.12
Release-lane Tests py3.10/3.11 failed in two-rank thread worlds with
"Cannot install a trace function while another trace function is being
installed". CPython before 3.12 guards sys.settrace with a process-wide
reentrancy flag and runs audit hooks while it is set; filelock installs a
Python audit hook, so the GIL can switch inside that window and a second
thread starting under coverage's threading.settrace hook fails in
threading._bootstrap_inner. Python 3.12 coverage uses sys.monitoring and is
unaffected.

On Python < 3.12, make Thread.start return only once the new thread reaches
run(), i.e. after its trace function is installed. Locally on 3.11 with
coverage the distributed CPU tests went from 3 failures in 4 runs to 3/3
green.

Also let the always-run trend step tolerate missing Gloo shard files after
an earlier failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 18:19:21 -04:00
Joseph MaglyandClaude Opus 5.5 d37d97af35 ci(release): measured Gloo durations and four release Gloo shards (#305)
The placeholder 80 s export_gloo weight and 2026-10-07 durations
under-weighted shard 0, which ran out of its ten-minute job on a slow
runner. Record per-file sums from the py3.12 release shards (the slowest
Python) and split the release lane into four shards: the largest is now
238 s of measured work instead of ~360 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:48:50 -04:00
Joseph MaglyandClaude Opus 5.5 8b2f20fed5 ci(release): remap base coverage paths, require every Gloo shard's data, budget Gloo timings
Review findings on the sharded release lane:
- Base partitions record paths in the workspace checkout, but the base
  report is produced from the base worktree, so it would read head sources.
  Combine with a [paths] alias onto the reporting tree and reject any
  report key outside obliteratus/.
- Only one Gloo coverage file was required. Require the data file of every
  shard whose JUnit ran at least one test.
- Gloo testcases left the duration evidence. Merge the head shard JUnit
  files into the trend input; size the unmarked and integration marker
  budgets from the merged hosted evidence (+~20%) and own the one Gloo
  test at 15.8 s under #304.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:09:28 -04:00
Joseph MaglyandClaude Opus 5.5 d5a5c12a28 ci(release): time-box coverage and duration exceptions and parallelize the base suite
With Gloo sharded, the release lane measures what no release run had
checked since v0.1.3: mature-CPU line coverage is 91.79% (floor 94%; branch
84.66% still passes), and the suite takes 990-1042 s against a 350 s
budget, with five tests over the 15 s limit.

Per the maintainer decision tracked in #304:
- move mature_cpu_statement to 91.5 behind a threshold exception that
  expires 2026-11-14;
- raise suite and marker duration budgets to measured values plus ~20% and
  own the eight tests at or above 14 s until the same date;
- make threshold exceptions expire for real: the validator ignored the
  expires date, so a lapsed exception would have kept a lowered floor.

Python 3.12 also exceeded thirty minutes because it reran the exact base
suite inline. Run that suite in a parallel release-base-core job and only
combine its coverage in Tests py3.12. The combiner now includes
subprocess coverage siblings of the core data file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:05:03 -04:00
Joseph MaglyandClaude Opus 5.5 97dd5c5871 ci(release): run Gloo tests in sharded release jobs
The release Tests lane no longer fits its ten-minute job: hosted runs now
take about 9.6 min for core tests plus 13.2 min for Gloo tests, and Python
3.12 also reruns the exact base suite. A dispatched run reached 43% before
the timeout cancelled it.

Run Gloo tests in release-gloo-tests shards (three per Python version, plus
base shards for the 3.12 exact-base comparison), each bounded at ten
minutes. The Tests job excludes Gloo, requires the collected Gloo test count
to equal the executed count across shards, combines shard coverage before
the unchanged floors, and moves to a thirty-minute bound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 12:55:18 -04:00
Joseph MaglyandClaude Opus 5.5 1e3ffb7fc6 ci(supply-chain): keep qwen-hybrid installed and license-checked on hosted runners
Excluding the qwen-hybrid extra would have dropped causal-conv1d,
flash-linear-attention and fla-core from the release license inventory
without any failure. Instead, install causal-conv1d without CUDA kernels via
its own CAUSAL_CONV1D_SKIP_CUDA_BUILD switch in the operator-UI gate and the
supply-chain job.

The full inventory then needs two permissive SPDX expressions (MIT-0 for
cffi, Apache-2.0 OR BSD-3-Clause for cryptography, both via the mcp extra)
and a strict mechanism for packages whose metadata carries verbatim license
text: a text override binds one package version and the SHA-256 of the
exact text to an already allowed expression, and fails when unused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:51:06 -04:00
Joseph MaglyandClaude Opus 5.5 d0f14f77d9 fix(ci): restore the hosted model and operator-UI conditional gates
Scheduled Conditional tests have failed since late August on two hosted
gates, which also blocks release certification:

- model-download-runtime: the operator-only Qwen3.8-27B BF16 regression
  lived in the gate file and always skips on hosted runners; the gate
  runner rejects any skip. Move it to tests/conditional/test_qwen38_runtime.py,
  outside every hosted gate.
- operator-ui: `uv sync --all-extras` now pulls the qwen-hybrid extra,
  whose causal-conv1d sdist builds only against a CUDA toolkit. Exclude
  qwen-hybrid there and in the tag-only supply-chain job, which runs the
  same sync and would fail the next release.

Policy tests pin both invariants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:39:27 -04:00
Joseph MaglyandClaude Opus 5.5 636fd5c19a ci: shard PR core tests across a duration-balanced matrix
Since #272 the "PR core tests" job runs every selected non-Gloo test in
one runner under a 10-minute timeout, and broad selections now exceed it.
Shard it like the Gloo tests: pr-select emits core_shards from a single
CORE_SHARD_COUNT constant and writes selected-core-N.txt once with
scripts/shard_pr_tests.py --kind core, balanced by per-file durations
measured from CI JUnit (ci/core-test-durations.json; unlisted files use
default_seconds). pr-core-tests becomes a matrix whose empty shards record
exit code 5, and check_pr_partitions.py requires the exact core-N and
gloo-N artifact set before "Pull request core" combines coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 17:41:18 -04:00
Joseph MaglyandClaude Opus 5.5 c1d2ad3c3d ci: run the Gloo partition as three shards
PR #274's first CI run took 428s of pytest time on Gloo shard 1, close to
the 8-minute budget. Per-file JUnit sums from that run
(149/81/84/178/221s) replace the placeholders. With three shards the
largest is about 259s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:47:50 -04:00
Joseph MaglyandClaude Opus 5.5 81f075cd16 ci: run the Gloo partition as two shards
The Gloo partition reached 7m38s of pytest time on one runner with the
EXCISE tests added (PR #273 run 37692044335). Use two duration-balanced
shards and record the measured surgery Gloo duration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:59:15 -04:00
Joseph MaglyandClaude Opus 5.5 a90a734f42 ci: reject unreadable partition coverage and keep the shard count editable
coverage combine only warns on an unreadable input and still combines
the rest, so validate each accepted partition database (readable,
coverage schema, at least one measured file) and fail on any combine
warning. The policy test now pins one positive shard-count constant
rather than its current value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:50:47 -04:00
Joseph MaglyandClaude Opus 5.5 18857ca331 ci: split pr-core into selection, core, and Gloo jobs
Replace the in-job concurrent pytest processes with separate jobs, each
with its own runner and 10-minute budget. PR test selection runs once
and publishes the selected list and deterministic duration-balanced
Gloo shard lists (shard count is one constant). PR core tests and the
PR gloo tests matrix upload candidate-bound status, JUnit, logs and
coverage data. The required Pull request core job needs all three,
runs always(), fails closed unless every upstream job succeeded and
every partition that ran supplied coverage, combines accepted data in
an isolated directory, and runs the unchanged changed-line floor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:35:24 -04:00
Joseph MaglyandClaude Opus 5.5 d0d7a57d05 ci: keep the combined pr-core coverage database isolated
coverage.py auto-combines sibling .coverage.* files when reporting, so
an empty partition's leftover data could re-enter the report. Combine
into a fresh directory that holds only the combined database.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:14:06 -04:00
Joseph MaglyandClaude Opus 5.5 a41cea91c1 ci: require coverage from every pr-core partition that ran tests
A partition that exits 0 must contribute its coverage data; only an
empty partition (exit 5) may be absent from the combine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:02:33 -04:00
Joseph MaglyandClaude Opus 5.5 ba95833170 Revert three-process Gloo sharding in pr-core
Two real CI runs (37676597269 attempts 1 and 2) showed that two
concurrent Gloo shards oversubscribe the 4-vCPU hosted runner: each
shard took about as long as the whole single Gloo partition did (4m20s
to 4m36s), the core partition slowed from about 50s to 1m40s, and one
cold-start readiness bound failed. Test-step wall time did not improve
(4m38s to 4m40s versus 4m32s to 5m57s). Restore the two-process design.

This reverts commits 8681ef7 and 7f8a2d7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:54:57 -04:00
Joseph MaglyandClaude Opus 5.5 8681ef718b ci: shard pr-core Gloo tests across two duration-balanced processes
Split the selected test files into two Gloo shards by deterministic
longest-first assignment over a committed duration table measured from
CI JUnit. Every selected file lands in exactly one shard, so unlisted
Gloo files still run. pr-core now runs three concurrent pytest
processes with the same exit-code, empty-side, artifact and coverage
combine rules; an empty shard never invokes pytest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:39:58 -04:00
Joseph MaglyandClaude Opus 5.5 ae1f8761e9 ci: run Gloo tests concurrently with the rest of pr-core
Mark the multi-process Gloo test files with a new gloo marker. pr-core
keeps the same risk-map selection but runs the gloo and non-gloo parts
in two concurrent pytest processes with separate coverage data, JUnit
files, logs and temp roots. Each exit status is collected per PID; an
empty side (exit 5) is allowed unless both are empty. Coverage is
combined before the unchanged changed-line check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:47:05 -04:00
Joseph MaglyandClaude Opus 5.5 52c906b4a3 fix(distributed): fail evidence setup symmetrically and close API allowlist
Rank 0 evidence-directory creation now feeds a collective vote so a
mkdir failure fails every rank promptly instead of leaving the peer
blocked in a barrier. The public API fingerprint helper accepts only the
reviewed critical-module allowlist. Declare the TP runner labels for
actionlint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:57:56 -04:00
Joseph MaglyandClaude Opus 5.5 8066e59c73 feat(distributed): add exact Llama native TP loader
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)

Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:23:27 -04:00
Joseph Magly 8e998fc842 docs: define PR acceptance and release process 2026-08-23 13:45:56 -04:00
Joseph Magly beb4707401 ci: release tested source snapshots only 2026-08-22 11:28:30 -04:00
Joseph Magly 7b7109feb5 ci: bind release evidence to artifact hashes 2026-08-22 10:59:08 -04:00
Joseph Magly 06e80af7b6 feat: add Jetson contributor validation path 2026-08-21 20:12:35 -04:00
Joseph Magly 38efd3dc0a ci: adopt tiered contributor validation 2026-08-20 23:11:24 -04:00
Joseph Magly cb4aec4532 fix: bind CI evidence to pull request head 2026-08-16 18:22:19 -04:00
Joseph Magly 0f6be47948 docs: align contributor standards with BT6 gates 2026-08-16 17:36:34 -04:00
Joseph Magly fa233fd8c9 ci: make CUDA conditional lane GPU-capable 2026-08-16 09:23:22 -04:00
Joseph Magly 3574800094 ci: enforce Ruff across all scripts 2026-08-16 03:49:09 -04:00
Joseph Magly 2d803e6a1c ci: verify checkpoint portability on Windows 2026-08-16 00:28:15 -04:00
Joseph Magly 51529ad1d7 test: add Gate 3 numerical oracle contracts 2026-08-15 20:09:21 -04:00
Joseph Magly 753c53d07f Enforce Gate 3 test quality budgets 2026-08-15 04:33:15 -04:00