Repository navigation
closure attestation: resolve kernel_source and base_quant targets as the build does - #420
Merged
AzeezIsh merged 3 commits intoNov 25, 2026
Conversation
…#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]>
Contributor
|
Queued in train #422 ( 🤖 Generated with Claude Code |
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
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #419 (its commit is the first one here); until #419 merges, the diff shows both.
#419 lets
closure_attestationrun 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_quantcompiles more thancommon/and its own<model>/<quant>/, buttaxon::sourcesresolved 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.rshashed the source target'sMODEL.tomland left out the target-localKERNEL.toml, although the target's own files are what steer its compile.What
taxon::layers()mirrorsresolve_targets(): the quant'sbase_quantsibling, the kernel source's quant dir, and, when redirected, the target's own quant dir as an overlay.sources()andconfigs()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.MODEL.tomlorKERNEL.tomlfails closed:sources()returnsNone, andaffected()treats the target as affected.build.rs's attestation hashes the target's ownMODEL.tomland every layer'sKERNEL.toml, in the ordertaxon::configslists them.Checked
On one GB10 with real kernel builds (
atlas-release-builder:1.93.1),closure_attestation4 of 4 in each:inkling-2-miniandqwen3.8-27b(bothkernel_source) andglm-5.3-flasheach reproduce their target from the tree;gb10/*/nvfp4targets.40
taxonunit tests pass, 6 of them new (redirected sources and overlay shadowing,base_quant, configs,walk,affected, a malformedMODEL.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 833atlas-plugintests pass. A product image built on this change ran the whole workspace suite with this test included: 8,852 passed.cargo fmt --checkandcargo 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
🤖 Generated with Claude Code