rules: build-artifact hygiene, attestation gates, and stale-artifact pruning - #9
Merged
Merged
Conversation
Local And Hosted Validation gains three policies distilled from the tenferro-rs/tensor4all-rs build-size comparison: default profiles carry no full debug info (opt-in debug variants instead), CI-owned measurements may be gated locally by explicit attestation, and stale-artifact pruning must be documented. rust/performance.md adds the concrete Cargo profile shape (dev/test debug=0 with assertions kept, release line-tables-only with a release-debug variant, CI strip=symbols) and the rev-churn orphan warning. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
shinaoka
added a commit
to tensor4all/tensor4all-rs
that referenced
this pull request
Aug 8, 2026
Local target/ reached 14 GB, 12 GB of it release artifacts, because [profile.release] carried debug = true while repository policy runs the normal verification suite in release mode. Release now uses line-tables-only, which keeps file:line RUST_BACKTRACE output; a new release-debug profile inherits release with full debug info for debugger sessions. dev/test pin debug = 0 while keeping debug assertions and overflow checks, matching the shared build-artifact hygiene rule (tensor4all/tensor4all-agent-rules#9) and tenferro-rs practice. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
Adds shared policy for a failure mode observed this week: tenferro-rs keeps local builds lean (
debug = 0dev/test,[profile.ci]withstrip = "symbols") as repository practice, but the practice was never shared, and tensor4all-rs independently adopted the opposite ([profile.release] debug = trueplus release-mode-tests-by-default), producing a 14 GBtarget/(12 GB release, including 7 orphaned feature/rev variants of one rlib totaling 596 MB).rules/common/docs-and-tests.md(Local And Hosted Validation):check-pr-fast.sh --coverage-reviewedpattern).rules/rust/performance.md(new section Build Profiles And Target Hygiene): the concrete Cargo shape of the above.Enforcement split (discussed in session): prose policy here; per-repo checks in each repository's scripts; periodic verification belongs to the planned single private audit-bot repository (tracked separately).
No index.md changes, so this does not conflict with #8.
🤖 Generated with Claude Code