Skip to content

closure attestation: resolve kernel_source and base_quant targets as the build does - #420

Merged
AzeezIsh merged 3 commits into
Atlas-Inf:mainfrom
Enntity:closure/kernel-source-taxon-20261124
Nov 25, 2026
Merged

AzeezIsh merged 3 commits into
Atlas-Inf:mainfrom
Enntity:closure/kernel-source-taxon-20261124

Conversation

@data-angel

Copy link
Copy Markdown
Contributor

Stacked on #419 (its commit is the first one here); until #419 merges, the diff shows both.

#419 lets closure_attestation run on one-model builds, and that exposed a resolver drift: a target with [model] kernel_source (inkling-2-mini uses laguna-s-2.1; qwen3.8-27b uses qwen3.6-27b) or [build] base_quant compiles more than common/ and its own <model>/<quant>/, but taxon::sources resolved only those two. The gate's hash therefore never matched the one baked at build time, and records for those targets could never be excused. On the config side, build.rs hashed the source target's MODEL.toml and left out the target-local KERNEL.toml, although the target's own files are what steer its compile.

What

  • taxon::layers() mirrors resolve_targets(): the quant's base_quant sibling, the kernel source's quant dir, and, when redirected, the target's own quant dir as an overlay.
  • sources() and configs() use those layers. walk() takes a redirected target's quants from its source, as the build expands them. affected() counts a change under the source model against the targets that compile it.
  • An unparseable MODEL.toml or KERNEL.toml fails closed: sources() returns None, and affected() treats the target as affected.
  • build.rs's attestation hashes the target's own MODEL.toml and every layer's KERNEL.toml, in the order taxon::configs lists them.

Checked

On one GB10 with real kernel builds (atlas-release-builder:1.93.1), closure_attestation 4 of 4 in each:

  • one-model builds of inkling-2-mini and qwen3.8-27b (both kernel_source) and glm-5.3-flash each reproduce their target from the tree;
  • an all-models build reproduces all 31 gb10/*/nvfp4 targets.

40 taxon unit tests pass, 6 of them new (redirected sources and overlay shadowing, base_quant, configs, walk, affected, a malformed MODEL.toml). Two gate telemetry tests asserted the old blind spot (a change to qwen3.6-27b's kernels reopened only qwen3.6-27b, though qwen3.8-27b compiles them too); they now expect both, and all 833 atlas-plugin tests pass. A product image built on this change ran the whole workspace suite with this test included: 8,852 passed. cargo fmt --check and cargo clippy --tests (atlas-kernels, atlas-plugin, spark-server) are clean on Rust 1.93.1.

Authorship

AI-authored: Claude (Opus 5.5) in Claude Code, directed and reviewed by a human; no hand-written code.

CLA

  • I have read and agree to the Contributor License Agreement.

🤖 Generated with Claude Code

data-angel and others added 3 commits November 24, 2026 11:34
…#250)

`the_baked_attestation_reproduces_from_the_tree` required every gb10/nvfp4
target in the tree to be attested, which only an all-models build does. A
one-model build (`ATLAS_TARGET_MODEL=<model>`, as product images build)
attests that model's targets, so the test failed there and images skipped
it.

build.rs now bakes the targets it resolved (`ATLAS_TARGETS_RESOLVED`) and the
model spec it resolved them from (`ATLAS_TARGET_MODEL_SPEC`), exposed as
`atlas_kernels::TARGETS_RESOLVED` and `TARGET_MODEL_SPEC`. The test expects
the whole tree when the spec is `*`, as before, and the resolved targets
otherwise; a new test checks every attested target was resolved.

Checked on a GB10 with real single-target kernel builds: with
`ATLAS_TARGET_MODEL=glm-5.3-flash` all four tests pass ("1 target(s)
reproduced from the tree"). With `ATLAS_TARGET_MODEL=inkling-2-mini` the
resolved-target check passes and the hash check fails: a target with
`kernel_source` hashes the source target's kernels in build.rs but not in
`taxon::sources` / `taxon::configs`, a separate resolver drift.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the build does

A target with `[model] kernel_source` (inkling-2-mini -> laguna-s-2.1,
qwen3.8-27b -> qwen3.6-27b) or `[build] base_quant` compiles more than
`common/` and its own quant dir, but `taxon::sources` resolved only those
two, so the gate's hash never matched the one baked at build time and its
records could never be excused. On the config side, build.rs hashed the
source target's MODEL.toml and left out the target-local KERNEL.toml.

- taxon: `layers()` mirrors resolve_targets (base_quant sibling, the
  kernel source's quant dir, the target's own quant dir as an overlay);
  `sources()` and `configs()` use it, `walk()` takes a redirected target's
  quants from its source, and `affected()` counts a change to the source
  model against the targets that compile it. An unparseable MODEL.toml or
  KERNEL.toml fails closed (None / affected).
- build.rs: the attestation hashes the target's own MODEL.toml and every
  layer's KERNEL.toml, the files resolve_targets reads, in the order
  `taxon::configs` lists them.

Checked on a GB10 with real kernel builds: one-model builds of
inkling-2-mini, qwen3.8-27b and glm-5.3-flash each reproduce their target
from the tree, and an all-models build reproduces all 31 gb10/nvfp4
targets (4 of 4 closure_attestation tests in each). 40 taxon unit tests
pass, 6 of them new.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
qwen3.8-27b compiles qwen3.6-27b's kernels (`[model] kernel_source`), so a
change to them now reopens both targets and two PRs on them collide on
both. The tests asserted the old resolver's single target.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh

Copy link
Copy Markdown
Contributor

Queued in train #422 (integ/train-gb10-20261125b, stacked on #421), merged --no-ff. GB10 gate is sparky job 189; results will be posted on #422.

🤖 Generated with Claude Code

@AzeezIsh

Copy link
Copy Markdown
Contributor

GB10 gate of train #422 is green; results are on #422 (closure_attestation passes on one-model builds; 0 test failures; cold start −1.54 s; outputs identical). Merge follows #421.

🤖 Generated with Claude Code

AzeezIsh added a commit that referenced this pull request Nov 25, 2026
…docs (#420)

`[`layers`]` is an intra-doc link from public docs to a private fn, which
the docs job (#[deny(warnings)], rustdoc::private_intra_doc_links) rejects:
'public documentation for `sources` links to private item `layers`'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@AzeezIsh
AzeezIsh merged commit ff596ab into Atlas-Inf:main Nov 25, 2026
1 check passed
AzeezIsh added a commit that referenced this pull request Nov 25, 2026
…t cold start (#398)

GB10 (sparky 189): closure_attestation passes on one-model inkling-2-mini and qwen3.8-27b builds; full suite 6,829/0; Qwen3.8-27B lp_dump max|d| 0 and greedy C1/C8 8/8 vs #421; Inkling greedy 8/8; cold start 13.79 -> 12.25 s (-1.54 s). AMD (DevLab 45651124584): strix-hip builds with #420's build.rs, Strict/Spark --check, Spark C1 42.7 / C8 84.1. Follow-ups: c4108fd (rustdoc private link), c73fa30 (fast_weights_parity temp-dir race).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants