Skip to content

closure attestation: expect the targets the build resolved (#250) - #419

Merged
AzeezIsh merged 1 commit into
Atlas-Inf:mainfrom
Enntity:closure/single-target-attestation-20261124
Nov 25, 2026
Merged

AzeezIsh merged 1 commit into
Atlas-Inf:mainfrom
Enntity:closure/single-target-attestation-20261124

Conversation

@data-angel

Copy link
Copy Markdown
Contributor

Fixes #250.

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

What

  • atlas-kernels/build.rs bakes the targets it resolved (ATLAS_TARGETS_RESOLVED, comma-separated hw/model/quant) and the model spec it resolved them from (ATLAS_TARGET_MODEL_SPEC, * by default), from the same resolve_targets call that feeds the attestation.
  • atlas_kernels::TARGETS_RESOLVED and atlas_kernels::TARGET_MODEL_SPEC expose them (option_env!, so an older OUT_DIR still builds; empty and * when nothing was compiled).
  • The test expects the whole tree when the spec is *, exactly as before, so the qwen3.6-27b case it was written for is still caught. Otherwise it expects the resolved targets.
  • A new test, every_attested_target_was_resolved, checks the two lists agree.

Checked

On one GB10 with real single-target kernel builds (atlas-release-builder:1.93.1):

  • ATLAS_TARGET_MODEL=glm-5.3-flash: all four tests pass; "closure attestation: 1 target(s) reproduced from the tree".
  • ATLAS_TARGET_MODEL=inkling-2-mini: the new resolved-target checks pass, and the hash check fails with a separate bug this fix uncovers. A target with [model] kernel_source (inkling-2-mini uses laguna-s-2.1; qwen3.8-27b uses qwen3.6-27b) has the source target's kernels and KERNEL.toml hashed in build.rs, but taxon::sources / taxon::configs resolve only common/ and the target's own <model>/<quant>/. That belongs in its own change rather than this one.

cargo fmt --check and cargo clippy --tests (atlas-kernels, 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

…#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]>
@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
…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).
@AzeezIsh
AzeezIsh merged commit 3590bf5 into Atlas-Inf:main Nov 25, 2026
1 check passed
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.

closure_attestation: the_baked_attestation_reproduces_from_the_tree fails on single-target builds

2 participants