Skip to content

closure attestation: expect the targets the build resolved (Atlas-Inf #250) - #38

Merged
data-angel merged 1 commit into
sparkfrom
closure-spark-20261124
Nov 24, 2026
Merged

data-angel merged 1 commit into
sparkfrom
closure-spark-20261124

Conversation

@data-angel

Copy link
Copy Markdown

The fix for Atlas-Inf#250 on the spark branch (cherry-picked from closure/single-target-attestation-20261124, which is based on Atlas-Inf main).

closure_attestation::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. SparkGLM's image builds one model (ATLAS_TARGET_MODEL=glm-5.3-flash) and runs the whole suite in its release checks, so its main could not build an image. build.rs now bakes the targets it resolved and the model spec it resolved them from, and the test expects the whole tree for * (as before) and the resolved targets otherwise.

Checked on a GB10 with a real ATLAS_TARGET_MODEL=glm-5.3-flash kernel build of this branch: 4 of 4 closure_attestation tests pass ("1 target(s) reproduced from the tree"). rustfmt and Clippy clean on Rust 1.93.1.

🤖 Generated with Claude Code

…#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]>
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.

1 participant