Repository navigation
Open
Labels
cloud-takenClaimed by a cloud pool session
Description
strict is the default tier. standard is the opt-down: tier = "standard" in dx.toml. Tier picks rule and warning sets only. Fatal is separate: compiler warnings fail in both tiers (#14684), lint warnings fail via --fail-on=warning. Land this first.
Where (origin/main 4d1324d)
- cli/dx_config/src/config.rs:9-15, 32:
#[default]on Standard. - cli/dx_config/src/select.rs:217-220.
- cli/exec_core/src/audit_policy.rs:46: audit bases follow the root tier.
- config/BUILD.bazel:23-30:
//config:config_tierdefault"standard". - tools/docs/tiers/src/lib.rs:124-168.
- tools/api/page.rs:505, 541.
- docs/design/quality-config.md
- docs/cli/commands/config.md:103, 107-118, 128; quality.md:148; init.md:68; audit-update.md:125.
- docs/supported-surface.md, cli/dx_config/schema/dx.schema.json.
Fix
- Move
#[default]to Strict in config.rs and select.rs. audit_policy.rs:46 follows. - config/BUILD.bazel:
config_tierdefault"strict". - tools/docs/tiers and tools/api/page.rs: strict is the default.
- docs/design/quality-config.md: strict is the default. Tier files name each excluded rule and its class. Strict turns on guard rules.
infois only for tool-labelled hints. New sections:## Gating,## Tier selection,## Opting down. Under 1300 words. - config.md, quality.md, init.md, audit-update.md: strict is the default; show
tier = "standard". bazel run //docs:update_tiers. Regenerate docs/supported-surface.md and dx.schema.json.
Tests
- select_tests.rs:14, 65: no
tiergives strict;tier = "standard"gives standard. - audit tier with no dx.toml is Strict.
- Re-accept cli/generate/src/render_tests.rs snapshots.
- Golden cli/cli/tests/adopt/golden/fresh_init_dx.txt:172-174.
- cli/cli/src/adopt/status.rs:917.
tools/dx check --affected
Risks
- Every consumer without dx.toml flips: strict lint, SpotBugs at max effort, strict audit (unmaintained, notice and yanked fail; strict licence denies).
- Compiler warning sets follow the root tier only.
- preset: compiler warnings are errors in both tiers; layer pins only config_tier #14684 invalidates existing generated layers.
- severity: enabled rules never report info; floor plus ratchet #14685's floor makes dart, weeder and cfn_lint block.
- This repo's dx.toml is already strict with families opted down. This change should not change this repo's results.
Core issues
- preset: compiler warnings are errors in both tiers; layer pins only config_tier #14684 compiler warnings are errors in both tiers (after this)
- severity: enabled rules never report info; floor plus ratchet #14685 severity floor and ratchet (parallel, land early)
- quality: coverage ratchets for tiers and default linters #14686 coverage ratchets (parallel)
- nested: a fresh consumer is strict and fatal by default #14687 nested fresh consumer is strict and fatal (after this and preset: compiler warnings are errors in both tiers; layer pins only config_tier #14684)
Agent-guard priority: #14685, #14655, #14688, #14672, #14653.
Per-language issues
- rust: strict lint defaults in rust_* wrappers and dx lint #14651
- cc: strict by default: -Wall/-Wextra/-Werror feature, strict clang-tidy WarningsAsErrors, cppcheck tier #14653
- cuda: strict by default (-Werror all-warnings, CUDA API return checks, banned suppressions) #14654
- go: strict tier fails on swallowed errors, shadowing and bad nolint #14655
- beam: strict tier turns on checks; Erlang compiles with warnings as errors #14656
- dart: strict tier adds real strict lints, fatal infos and error promotions #14657
- d: strict by default (-w -de, D-Scanner at warning) #14658
- zig: ReleaseSafe default and banned-pattern lint #14659
- docs: strict tier with markdownlint-cli2, Dx vale style, typos tier #14660
- data: strict tiers for yamllint, stylelint, JSON duplicate keys, html-validate, graphql-eslint #14661
- dotnet: strict defaults for C# and F# compile and lint #14662
- fortran: strict by default, -Werror compile flags and fortitude strict tier #14663
- julia: strict by default, --depwarn=error, check-bounds in tests, Aqua and ExplicitImports gates #14664
- haskell: strict by default (full GHC warning set and hlint bans) #14665
- iac: strict lint tiers promote warnings to errors; trivy_config on by default #14666
- iac: agent-guard checks for reasonless ignores, TLS off, unpinned images; add kube-linter and cfn-guard #14667
- java: strict default adds Error Prone, banned-API Checkstyle/PMD rules and strict SpotBugs #14668
- kotlin: strict default compiler flags, Android werror, Android Lint tier #14669
- ocaml: strict compiler defaults, no target -w override, ban partial functions and Obj.magic #14670
- php: strict phpstan and phpcs default with Slevomat and banned functions #14671
- python: strict tier turns on ANN, ERA, T20, FIX, EM and ty all=error; tests run with warnings as errors #14672
- ruby: strict rubocop tier and Sorbet floor, warnings fatal #14673
- scala: strict scalac flags and DisableSyntax by default #14674
- powershell: strict PSScriptAnalyzer default, strict mode and ErrorActionPreference check #14675
- shell: shellcheck enable=all (minus noisy checks), style fails, require set -euo pipefail #14676
- sql: strict tier enforces agent-safe sqlfluff rules and bans bare noqa #14677
- starlark, schemas: strict tier files for buildifier, buf and redocly #14678
- starlark, schemas: warnings fail in buildifier and flatc #14679
- swift, objc: strict by default (warnings as errors, Swift 6, SwiftLint strict tier) #14680
- js: make tsconfig, ESLint and Biome strict tiers actually strict #14681
- lua: make strict the default for selene and LuaLS #14682
- perl: strict perlcritic default with noise drops and no-critic guards #14683
- js: astro, svelte, vue and mdx get a default linter #14688
- swift, objc: cc_objc_library warnings fail, strict concurrency, swift_lint by default #14689
- scala: unused warnings fail and scalafix is a default linter #14690
- perl, lua, powershell: perlcritic, selene, luals and psscriptanalyzer by default #14691
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
cloud-takenClaimed by a cloud pool session
Activity
[-]quality: strict is the default tier; warnings fail[/-][+]quality: strict is the default tier[/+]TrapsterDK commentedon Nov 22, 2026
cloud-claim bf285a0f
Generated by Claude Code
TrapsterDK commentedon Nov 22, 2026
Owner confirmed the risks: audit follows the tier, so strict is the default for
dx securityanddx licensetoo. Proceed as written.🤖 Generated with Claude Code
TrapsterDK commentedon Nov 22, 2026
Next slice: #14697 does this issue's Fix section (strict default in dx_config, config_tier, audit base, docs, tier pages, goldens). What's left is the checklist: #14684 can start once #14697 merges, and the per-language issues follow. Close this tracker when they're done.
Generated by Claude Code
quality: strict is the default tier; tier = "standard" opts down (#14647