Skip to content

Introduce Effortless Metrics Clippy policy, policy ledgers, no‑panic allowlists, and xtask gate; bump MSRV to 1.93#3712

Open
EffortlessSteven wants to merge 1 commit intomainfrom
codex/implement-shared-clippy-lint-policy
Open

Introduce Effortless Metrics Clippy policy, policy ledgers, no‑panic allowlists, and xtask gate; bump MSRV to 1.93#3712
EffortlessSteven wants to merge 1 commit intomainfrom
codex/implement-shared-clippy-lint-policy

Conversation

@EffortlessSteven
Copy link
Copy Markdown
Member

Motivation

  • Establish a machine‑governed, workspace‑level Clippy baseline (panic‑free + AST/slice safety) and a structured exception/debt model rather than ad‑hoc per‑crate carveouts.
  • Provide machine‑readable policy artifacts and an xtask gate so CI can validate lint inheritance, planned flips, and allowlist/debt metadata.

Description

  • Bumped workspace MSRV to 1.93 and added [lints] workspace = true to the root and workspace member manifests so members inherit the policy.
  • Replaced the previous loose Clippy block with an explicit, explicit Effortless Metrics lint profile under workspace.lints.rust and workspace.lints.clippy in Cargo.toml (panic/silent‑failure/UTF‑8/suppression governance and many targeted lints).
  • Added repo policy artifacts: policy/clippy-lints.toml (msrv + planned 1.94/1.95 flips), policy/clippy-debt.toml (debt template), policy/no-panic-allowlist.toml and policy/non-rust-allowlist.toml (TOML allowlist templates), and a minimal clippy.toml reserved for repo-specific disallowed items.
  • Added docs/CLIPPY_POLICY.md describing operational rules, suppression style (#[expect(..., reason = "...")]), and ledger/allowlist usage.
  • Implemented cargo xtask check-lint-policy (wired into xtask CLI) which parses the root Cargo.toml and policy/* files and enforces: MSRV match, workspace lint inheritance, presence/absence of test carveouts, planned flips not active before MSRV bump, debt metadata fields, and allowlist metadata/expiry checks.
  • Applied formatting and small manifest edits across many crate Cargo.toml files to add lint inheritance and MSRV alignment, and created a repo clippy.toml with MSRV and retained complexity thresholds.

Testing

  • Ran cargo run -p xtask --no-default-features -- check-lint-policy (built xtask with CPU features) and the new gate completed successfully: ✅ lint policy check passed.
  • Ran cargo fmt --all -- --check and formatting checks passed.
  • Built xtask variations to iterate on the gate implementation; full workspace builds that exercise GPU/CUDA features produced linker errors in this environment due to missing system CUDA libraries (environmental), but those are external to the lint gate validation and did not block the check-lint-policy result.
  • Verified git diff/stat and ensured cargo fmt applied changes; the xtask gate and the policy files are present and validated by the added command.

Codex Task

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 27 minutes and 34 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 29ca6490-c8ea-4fcd-9939-253febfd7da3

📥 Commits

Reviewing files that changed from the base of the PR and between 43ae743 and 16fa6f1.

📒 Files selected for processing (106)
  • Cargo.toml
  • clippy.toml
  • crates/bitnet-api-key-auth-core/Cargo.toml
  • crates/bitnet-bdd-grid-core/Cargo.toml
  • crates/bitnet-bdd-grid/Cargo.toml
  • crates/bitnet-bench-receipts/Cargo.toml
  • crates/bitnet-bench-regression-core/Cargo.toml
  • crates/bitnet-cli-config-core/Cargo.toml
  • crates/bitnet-cli/Cargo.toml
  • crates/bitnet-common/Cargo.toml
  • crates/bitnet-compat-core/Cargo.toml
  • crates/bitnet-compat/Cargo.toml
  • crates/bitnet-cpu-activations/Cargo.toml
  • crates/bitnet-cpu-detect/Cargo.toml
  • crates/bitnet-device-config-core/Cargo.toml
  • crates/bitnet-dispatch-core/Cargo.toml
  • crates/bitnet-eval-core/Cargo.toml
  • crates/bitnet-feature-contract/Cargo.toml
  • crates/bitnet-feature-matrix/Cargo.toml
  • crates/bitnet-ffi/Cargo.toml
  • crates/bitnet-ggml-ffi/Cargo.toml
  • crates/bitnet-honest-compute/Cargo.toml
  • crates/bitnet-inference-metrics-core/Cargo.toml
  • crates/bitnet-inference/Cargo.toml
  • crates/bitnet-kernels/Cargo.toml
  • crates/bitnet-math/Cargo.toml
  • crates/bitnet-models/Cargo.toml
  • crates/bitnet-nvidia/Cargo.toml
  • crates/bitnet-prompt-templates-core/Cargo.toml
  • crates/bitnet-prompt-templates/Cargo.toml
  • crates/bitnet-py/Cargo.toml
  • crates/bitnet-qk256-dispatch/Cargo.toml
  • crates/bitnet-qk256-layout-core/Cargo.toml
  • crates/bitnet-quantization-bits/Cargo.toml
  • crates/bitnet-quantization/Cargo.toml
  • crates/bitnet-receipts-core/Cargo.toml
  • crates/bitnet-receipts/Cargo.toml
  • crates/bitnet-repl-core/Cargo.toml
  • crates/bitnet-rocm/Cargo.toml
  • crates/bitnet-rope/Cargo.toml
  • crates/bitnet-runtime-bootstrap/Cargo.toml
  • crates/bitnet-runtime-context-core/Cargo.toml
  • crates/bitnet-runtime-context/Cargo.toml
  • crates/bitnet-runtime-feature-flags-core/Cargo.toml
  • crates/bitnet-runtime-feature-flags/Cargo.toml
  • crates/bitnet-runtime-profile-contract-core/Cargo.toml
  • crates/bitnet-runtime-profile-contract/Cargo.toml
  • crates/bitnet-runtime-profile-core/Cargo.toml
  • crates/bitnet-runtime-profile/Cargo.toml
  • crates/bitnet-sampling/Cargo.toml
  • crates/bitnet-server/Cargo.toml
  • crates/bitnet-st-tools/Cargo.toml
  • crates/bitnet-st2gguf/Cargo.toml
  • crates/bitnet-startup-contract-core/Cargo.toml
  • crates/bitnet-startup-contract-diagnostics-core/Cargo.toml
  • crates/bitnet-startup-contract-diagnostics/Cargo.toml
  • crates/bitnet-startup-contract-guard/Cargo.toml
  • crates/bitnet-startup-contract/Cargo.toml
  • crates/bitnet-sys/Cargo.toml
  • crates/bitnet-test-env/Cargo.toml
  • crates/bitnet-test-fixtures-core/Cargo.toml
  • crates/bitnet-test-support/Cargo.toml
  • crates/bitnet-testing-policy-contract/Cargo.toml
  • crates/bitnet-testing-policy-core/Cargo.toml
  • crates/bitnet-testing-policy-interop/Cargo.toml
  • crates/bitnet-testing-policy-kit/Cargo.toml
  • crates/bitnet-testing-policy-runtime-core/Cargo.toml
  • crates/bitnet-testing-policy-runtime/Cargo.toml
  • crates/bitnet-testing-policy-snapshot-core/Cargo.toml
  • crates/bitnet-testing-policy-state-core/Cargo.toml
  • crates/bitnet-testing-policy-tests/Cargo.toml
  • crates/bitnet-testing-policy/Cargo.toml
  • crates/bitnet-testing-profile/Cargo.toml
  • crates/bitnet-testing-scenarios-core/Cargo.toml
  • crates/bitnet-testing-scenarios-profile-core/Cargo.toml
  • crates/bitnet-testing-scenarios/Cargo.toml
  • crates/bitnet-thread-config-core/Cargo.toml
  • crates/bitnet-token-merge-core/Cargo.toml
  • crates/bitnet-tokenizer-discovery-core/Cargo.toml
  • crates/bitnet-tokenizer-model-core/Cargo.toml
  • crates/bitnet-tokenizers/Cargo.toml
  • crates/bitnet-trace/Cargo.toml
  • crates/bitnet-transformer/Cargo.toml
  • crates/bitnet-validation/Cargo.toml
  • crates/bitnet-warn-once/Cargo.toml
  • crates/bitnet-wasm-utils/Cargo.toml
  • crates/bitnet-wasm/Cargo.toml
  • crates/bitnet-wgpu-bench/Cargo.toml
  • crates/bitnet-wgpu-runner/Cargo.toml
  • crates/bitnet-wgpu-shaders-i2s/Cargo.toml
  • crates/bitnet-wgpu/Cargo.toml
  • crossval/Cargo.toml
  • docs/CLIPPY_POLICY.md
  • examples/migration/cpp-to-rust-basic/after/Cargo.toml
  • fuzz/Cargo.toml
  • policy/clippy-debt.toml
  • policy/clippy-lints.toml
  • policy/no-panic-allowlist.toml
  • policy/non-rust-allowlist.toml
  • tests-new/Cargo.toml
  • tests/Cargo.toml
  • tools/bitnet-task/Cargo.toml
  • tools/migrate-gen-config/Cargo.toml
  • xtask-build-helper/Cargo.toml
  • xtask/Cargo.toml
  • xtask/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/implement-shared-clippy-lint-policy

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🦀 Cross-Validation Summary

Date: $(date -u +%Y-%m-%d %H:%M:%S UTC)
Trigger: pull_request
Lane:
Tolerance: 0.999

Status Checks

  • No-FFI Compilation: failure
  • STUB Mode Check: failure

Cross-Validation Lanes

  • ⏭️ Lane B (llama.cpp): Skipped
  • ⏭️ Lane A (BitNet.cpp): Skipped

Key Findings

  • 🎯 Accuracy: Rust implementation within tolerance threshold
  • 🚀 Performance: Competitive with C++ reference
  • 🛡️ Memory Safety: Zero undefined behavior (Rust guarantees)
  • 🔄 Compatibility: API parity maintained

Artifacts

Cross-validation receipts and parity reports available for 30 days.


Generated by bitnet-rs Cross-Validation Workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant