Repository navigation
test(nat): pin commit, gather, sidecar-parse and step-digest guards at their entry points - #3
SaulBuilds wants to merge 1 commit into
Conversation
…t their entry points Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KGMeatV8UjtCB4CTbWuAv4
BerryManifold
left a comment
There was a problem hiding this comment.
Approval at d898e60353f212362b50fb275afb9c4c99ab6eeb after focused differential review of changed files, history, security guards and immediate callers. nat-aggregate15, nat-federated21, nat-sidecar6, nat-weightspace17 tests pass; nat-candle focused provenance test1 pass.
Limits: No deployments, live authority/chain/storage operations, full cross-repository integration or full historical security audit. Required CI/branch/owner gates still apply. Both account submissions reflect the same automated review.
Matr0xshka
left a comment
There was a problem hiding this comment.
Approval at d898e60353f212362b50fb275afb9c4c99ab6eeb after focused differential review of changed files, history, security guards and immediate callers. nat-aggregate15, nat-federated21, nat-sidecar6, nat-weightspace17 tests pass; nat-candle focused provenance test1 pass.
Limits: No deployments, live authority/chain/storage operations, full cross-repository integration or full historical security audit. Required CI/branch/owner gates still apply. Both account submissions reflect the same automated review.
BerryManifold
left a comment
There was a problem hiding this comment.
Automated Codex static review of d898e60353f212362b50fb275afb9c4c99ab6eeb is complete. Result: clean; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
Matr0xshka
left a comment
There was a problem hiding this comment.
Automated Codex static review of d898e60353f212362b50fb275afb9c4c99ab6eeb is complete. Result: clean; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
BerryManifold
left a comment
There was a problem hiding this comment.
Automated Codex static review of d898e60353f212362b50fb275afb9c4c99ab6eeb is complete. Result: clean; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
Matr0xshka
left a comment
There was a problem hiding this comment.
Automated Codex static review of d898e60353f212362b50fb275afb9c4c99ab6eeb is complete. Result: clean; details retained privately. Details and coverage limits are recorded in the project's private review log. No tests were executed by this reviewer. Both account submissions represent the same Codex review, not independent reviews.
Tests-only. No production code changes.
What this adds
Four tests that pin existing guards at the call sites that use them. Before this PR, the guards were tested only through their helpers, so removing them at the call site left the suite green:
validate_commit_domain: the node-feature loop (nat-weightspace)commit::tests::commit_checked_rejects_a_bad_node_featureis_canonical_hashlength check, reached throughgather_and_aggregate(nat-federated)tests::gather_refuses_a_trace_hash_that_is_not_64_lowercase_hexSidecar::from_jsoncallsvalidate()(nat-sidecar)tests::from_json_refuses_aliased_and_zero_width_slicesstep_contributionpasses the realized loss and the backend label into the step digest (nat-candle)train_loop::tests::step_contribution_binds_the_realized_loss_and_backendIt also contains one test fix:
nat-aggregatetests::determinism_same_inputs_same_digestcalledaggregatewithtrim = 0. The pinnedcitrate-fed-typeskernel now refuses a zero trim budget (NoTrimBudget), so this test failed onmain(cargo test --workspace: 1 failure). It now usestrim = 1of 3 inputs. It still asserts determinism.Standard: met
if g {→if false && g {or a dropped call). Each test failed on an assertion there and passes with the guard restored.nat-weightspace,nat-federated,nat-sidecar,nat-core,nat-data,nat-aggregate,nat-provenanceandnat-candle, each followed by the affected crate suites:assert!indiv_round_nearest, becausecompressalways passes a scale of at least 1;i128ceiling inprune_and_reweight, because the threshold clamp before it keeps thei64form in range.cargo test --workspace. Before: 241 passed, 1 failed (the trim-0 test above). After: 246 passed, 0 failed. Every new test runs on CPU in a few seconds, and none starts a training run.cargo fmt --all -- --checkis clean.cargo clippy -p nat-weightspace -p nat-federated -p nat-sidecar -p nat-candle -p nat-aggregate --all-targets -- -D warningsis clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01KGMeatV8UjtCB4CTbWuAv4