@oddessentials/repo-standards 4.4.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,72 @@
1
1
  {
2
2
  "checklist": {
3
3
  "core": [
4
+ {
5
+ "ciHints": {
6
+ "azure-devops": {
7
+ "notes": "Run CRLF detection early in pipeline before other checks.",
8
+ "stage": "quality"
9
+ },
10
+ "github-actions": {
11
+ "job": "ci",
12
+ "notes": "Add .gitattributes check as first step in CI job."
13
+ }
14
+ },
15
+ "description": "Enforce line endings at the Git layer using .gitattributes. Mark text files with appropriate EOL handling (eol=lf for shell scripts, eol=auto for most files) and binary files as binary to prevent corruption. This prevents 'works locally, fails in CI' issues caused by CRLF/LF mismatches.",
16
+ "id": "gitattributes-eol",
17
+ "label": "Git Attributes (Line Endings)",
18
+ "stack": {
19
+ "exampleConfigFiles": [
20
+ ".gitattributes",
21
+ ".editorconfig"
22
+ ],
23
+ "exampleTools": [
24
+ "git"
25
+ ],
26
+ "machineCheck": {
27
+ "command": "git ls-files --eol | grep -E 'w/crlf.*\\.sh$' && exit 1 || exit 0",
28
+ "description": "Verify no CRLF in shell scripts",
29
+ "expectExitCode": 0
30
+ },
31
+ "notes": "Mark *.rs, *.toml as text with auto EOL handling. Mark shell scripts as eol=lf. Binary files (*.exe, *.dll) should be marked as binary.",
32
+ "optionalFiles": [
33
+ ".editorconfig"
34
+ ],
35
+ "requiredFiles": [
36
+ ".gitattributes"
37
+ ],
38
+ "verification": "Run 'git ls-files --eol' to verify EOL consistency."
39
+ }
40
+ },
41
+ {
42
+ "ciHints": {
43
+ "azure-devops": {
44
+ "notes": "Run CRLF detection as the first quality check before linting or testing.",
45
+ "stage": "quality"
46
+ },
47
+ "github-actions": {
48
+ "job": "ci",
49
+ "notes": "Add CRLF detection step before main CI steps."
50
+ }
51
+ },
52
+ "description": "Fail CI early for Linux-executed files containing CRLF line endings. Shell scripts, Python files, and other interpreted files fail silently or with cryptic errors when they contain \\r characters. Detect this before running deeper CI steps.",
53
+ "id": "crlf-detection",
54
+ "label": "CRLF Detection in CI",
55
+ "stack": {
56
+ "exampleConfigFiles": [],
57
+ "exampleTools": [
58
+ "file",
59
+ "grep"
60
+ ],
61
+ "machineCheck": {
62
+ "command": "git ls-files --eol | grep -E 'w/crlf.*\\.(sh|bash)$' && exit 1 || exit 0",
63
+ "description": "Detect CRLF in shell scripts",
64
+ "expectExitCode": 0
65
+ },
66
+ "notes": "Rust build scripts (build.rs) and shell scripts must not have CRLF. Cargo tolerates CRLF in .rs files but shell invocations fail.",
67
+ "verification": "Run CRLF detection on shell and build scripts."
68
+ }
69
+ },
4
70
  {
5
71
  "ciHints": {
6
72
  "azure-devops": {
@@ -163,6 +229,38 @@
163
229
  "verification": "Check that Cargo.toml version follows SemVer and verify changelog generation from commit history."
164
230
  }
165
231
  },
232
+ {
233
+ "ciHints": {
234
+ "azure-devops": {
235
+ "notes": "Run the version guard in PR validation jobs before merge.",
236
+ "stage": "quality"
237
+ },
238
+ "github-actions": {
239
+ "job": "ci",
240
+ "notes": "Run the version guard in PR workflows against the base ref."
241
+ }
242
+ },
243
+ "description": "If semantic-release or automated versioning is enabled, block manual edits to canonical version fields in pull requests. Enforce a CI guard (and optional pre-push hook) that fails when version lines change outside the release workflow.",
244
+ "id": "version-guard",
245
+ "label": "Version Guard (Automated Releases)",
246
+ "stack": {
247
+ "exampleConfigFiles": [
248
+ "scripts/check-version-unchanged.sh",
249
+ ".github/workflows/ci.yml",
250
+ "azure-pipelines.yml"
251
+ ],
252
+ "exampleTools": [
253
+ "cargo-release",
254
+ "semantic-release",
255
+ "git"
256
+ ],
257
+ "notes": "When using cargo-release or semantic-release-cargo, guard against manual edits to Cargo.toml version fields in PRs.",
258
+ "requiredFiles": [
259
+ "Cargo.toml"
260
+ ],
261
+ "verification": "Run the guard and confirm it fails when Cargo.toml version changes."
262
+ }
263
+ },
166
264
  {
167
265
  "ciHints": {
168
266
  "azure-devops": {
@@ -195,6 +293,31 @@
195
293
  "verification": "Trigger the release pipeline and confirm all artifacts share the same version number and tag."
196
294
  }
197
295
  },
296
+ {
297
+ "ciHints": {
298
+ "azure-devops": {
299
+ "notes": "Set HUSKY=0 or equivalent in release pipeline to disable hooks.",
300
+ "stage": "release"
301
+ },
302
+ "github-actions": {
303
+ "job": "release",
304
+ "notes": "Set HUSKY=0 or equivalent in release job to disable hooks."
305
+ }
306
+ },
307
+ "description": "Release automation must bypass local developer hooks (HUSKY=0, --no-verify) and rely solely on CI gates for validation. This ensures idempotent, reproducible releases that don't fail due to hook environment differences.",
308
+ "id": "release-hook-bypass",
309
+ "label": "Release Hook Bypass",
310
+ "stack": {
311
+ "exampleConfigFiles": [
312
+ ".github/workflows/release.yml"
313
+ ],
314
+ "exampleTools": [
315
+ "cargo-release"
316
+ ],
317
+ "notes": "Use --no-verify with git commands in release scripts. If using pre-commit, set SKIP=all.",
318
+ "verification": "Check release workflow for hook bypass."
319
+ }
320
+ },
198
321
  {
199
322
  "ciHints": {
200
323
  "azure-devops": {
@@ -323,13 +446,15 @@
323
446
  {
324
447
  "ciHints": {
325
448
  "azure-devops": {
449
+ "notes": "Hooks and CI must invoke identical verification commands. Use npm run verify or equivalent.",
326
450
  "stage": "quality"
327
451
  },
328
452
  "github-actions": {
329
- "job": "ci"
453
+ "job": "ci",
454
+ "notes": "Hooks and CI must invoke identical verification commands. Use npm run verify or equivalent."
330
455
  }
331
456
  },
332
- "description": "Use git hooks to run linting, formatting, tests, and commit linting before changes are committed.",
457
+ "description": "Use git hooks to run linting, formatting, and commit linting before changes are committed. Hooks should CHECK by default (not auto-fix), be fast, and scope to changed files only. Use a single entry hook mechanism (e.g., Husky as entry point calling pre-commit or lint-staged).",
333
458
  "id": "pre-commit-hooks",
334
459
  "label": "Pre-Commit Hooks",
335
460
  "stack": {
@@ -340,8 +465,61 @@
340
465
  "pre-commit",
341
466
  "cargo-husky"
342
467
  ],
343
- "notes": "Use pre-commit with rust hooks for cargo fmt and cargo clippy on staged files. cargo-husky is an alternative.",
344
- "verification": "Inspect .pre-commit-config.yaml and confirm that hooks run cargo fmt --check and cargo clippy before commits."
468
+ "notes": "Use pre-commit with rust hooks for 'cargo fmt --check' and 'cargo clippy' on staged files. Pin rust-toolchain.toml for determinism across environments.",
469
+ "verification": "Confirm hooks run cargo fmt --check (not cargo fmt) and cargo clippy before commits."
470
+ }
471
+ },
472
+ {
473
+ "ciHints": {
474
+ "azure-devops": {
475
+ "notes": "CI should call the same verify script that hooks use locally.",
476
+ "stage": "quality"
477
+ },
478
+ "github-actions": {
479
+ "job": "ci",
480
+ "notes": "CI should call the same verify script that hooks use locally."
481
+ }
482
+ },
483
+ "description": "Local hooks and CI must invoke identical verification commands to prevent 'works locally, fails in CI' issues. Use a single canonical verify entrypoint (e.g., npm run verify) that both hooks and CI call.",
484
+ "id": "hook-ci-parity",
485
+ "label": "Hook/CI Parity",
486
+ "stack": {
487
+ "exampleConfigFiles": [
488
+ "Makefile",
489
+ "Cargo.toml"
490
+ ],
491
+ "exampleTools": [
492
+ "cargo",
493
+ "make"
494
+ ],
495
+ "notes": "Define a verify target (make verify or cargo make verify) that runs fmt --check, clippy, and test. Both hooks and CI should use this target.",
496
+ "verification": "Compare hook commands with CI commands and confirm they invoke the same cargo commands."
497
+ }
498
+ },
499
+ {
500
+ "ciHints": {
501
+ "azure-devops": {
502
+ "notes": "Also run secret scanning in CI as a safety net for commits that bypassed hooks.",
503
+ "stage": "quality"
504
+ },
505
+ "github-actions": {
506
+ "job": "ci",
507
+ "notes": "Enable GitHub secret scanning and also run gitleaks in CI."
508
+ }
509
+ },
510
+ "description": "Scan staged diffs for credentials, API keys, and secrets before they reach the remote repository. Catch secrets at commit time rather than after they're pushed.",
511
+ "id": "secret-scanning-precommit",
512
+ "label": "Pre-commit Secret Scanning",
513
+ "stack": {
514
+ "exampleConfigFiles": [
515
+ ".gitleaks.toml",
516
+ ".pre-commit-config.yaml"
517
+ ],
518
+ "exampleTools": [
519
+ "gitleaks"
520
+ ],
521
+ "notes": "Add gitleaks to pre-commit hooks. Configure Rust-specific patterns if needed.",
522
+ "verification": "Run 'gitleaks protect --staged' and verify it catches test secrets."
345
523
  }
346
524
  },
347
525
  {
@@ -589,6 +767,87 @@
589
767
  ],
590
768
  "verification": "LICENSE file is present; CODE_OF_CONDUCT.md and CONTRIBUTING.md provide contribution guidance."
591
769
  }
770
+ },
771
+ {
772
+ "ciHints": {
773
+ "azure-devops": {
774
+ "notes": "CI should call the canonical verify command, not duplicate check logic.",
775
+ "stage": "quality"
776
+ },
777
+ "github-actions": {
778
+ "job": "ci",
779
+ "notes": "CI should call the canonical verify command, not duplicate check logic."
780
+ }
781
+ },
782
+ "description": "Provide one canonical 'verify' command per repository/stack that all stages call with appropriate flags. This prevents duplication, drift, and ensures consistency between local development and CI.",
783
+ "id": "canonical-verify",
784
+ "label": "Canonical Verify Entrypoint",
785
+ "stack": {
786
+ "exampleConfigFiles": [
787
+ "Makefile",
788
+ "Makefile.toml"
789
+ ],
790
+ "exampleTools": [
791
+ "cargo",
792
+ "make",
793
+ "cargo-make"
794
+ ],
795
+ "notes": "Define 'make verify' or 'cargo make verify' that runs fmt --check, clippy, and test. Both hooks and CI use this entrypoint.",
796
+ "verification": "Makefile or Makefile.toml contains a 'verify' task."
797
+ }
798
+ },
799
+ {
800
+ "ciHints": {
801
+ "azure-devops": {
802
+ "notes": "Ensure CI reads from authoritative configs, not duplicated settings.",
803
+ "stage": "quality"
804
+ },
805
+ "github-actions": {
806
+ "job": "ci",
807
+ "notes": "Ensure CI reads from authoritative configs, not duplicated settings."
808
+ }
809
+ },
810
+ "description": "Each configuration rule must live in exactly one authoritative config file. Avoid duplication across .editorconfig, linter configs, and CI definitions. Document which file is authoritative for each concern.",
811
+ "id": "config-authority",
812
+ "label": "Config File Authority Rules",
813
+ "stack": {
814
+ "exampleConfigFiles": [
815
+ ".gitattributes",
816
+ "Cargo.toml",
817
+ "rustfmt.toml",
818
+ "clippy.toml"
819
+ ],
820
+ "exampleTools": [],
821
+ "notes": "Authority mapping: .gitattributes for EOL, Cargo.toml for project config, rustfmt.toml for formatting, clippy.toml for linting. Each concern has one file.",
822
+ "verification": "Review configs and confirm no rules are duplicated across files."
823
+ }
824
+ },
825
+ {
826
+ "ciHints": {
827
+ "azure-devops": {
828
+ "notes": "CI should read skip paths from config files, not hardcode them in pipeline.",
829
+ "stage": "quality"
830
+ },
831
+ "github-actions": {
832
+ "job": "ci",
833
+ "notes": "CI should read skip paths from config files, not hardcode them in pipeline."
834
+ }
835
+ },
836
+ "description": "Encode path exclusions and skip rules deterministically in config files, not through ad-hoc human judgment. Make it clear which paths are excluded from checks and why.",
837
+ "id": "explicit-skip-paths",
838
+ "label": "Explicit Skip Paths",
839
+ "stack": {
840
+ "exampleConfigFiles": [
841
+ "rustfmt.toml",
842
+ ".clippy.toml"
843
+ ],
844
+ "exampleTools": [
845
+ "rustfmt",
846
+ "clippy"
847
+ ],
848
+ "notes": "Use #[rustfmt::skip] or #[allow(clippy::*)] sparingly and document why. For directory-level exclusions, use Cargo.toml workspace exclude.",
849
+ "verification": "Search for skip annotations and confirm each is documented."
850
+ }
592
851
  }
593
852
  ],
594
853
  "optionalEnhancements": [
@@ -817,6 +1076,137 @@
817
1076
  "verification": "For web-facing Rust apps, run accessibility audits against key routes using axe or pa11y."
818
1077
  }
819
1078
  },
1079
+ {
1080
+ "ciHints": {
1081
+ "azure-devops": {
1082
+ "notes": "Run AI drift detection in a scheduled nightly pipeline separate from main CI.",
1083
+ "stage": "nightly"
1084
+ },
1085
+ "github-actions": {
1086
+ "job": "nightly",
1087
+ "notes": "Use scheduled workflow (cron) to run AI drift detection nightly."
1088
+ }
1089
+ },
1090
+ "description": "Run nightly or scheduled checks comparing AI-generated outputs against pinned baselines to detect model drift, prompt drift, or code changes affecting AI behavior. Attribute regressions to code changes vs model updates vs prompt changes.",
1091
+ "id": "ai-drift-detection",
1092
+ "label": "AI Drift Detection",
1093
+ "stack": {
1094
+ "exampleConfigFiles": [
1095
+ "snapshots/",
1096
+ "ai-baselines/"
1097
+ ],
1098
+ "exampleTools": [
1099
+ "insta",
1100
+ "custom baseline tests"
1101
+ ],
1102
+ "notes": "Use insta for snapshot testing of AI outputs. Pin model versions and prompt templates. Run nightly to detect drift.",
1103
+ "verification": "Run 'cargo insta test' and confirm AI outputs match baselines."
1104
+ }
1105
+ },
1106
+ {
1107
+ "ciHints": {
1108
+ "azure-devops": {
1109
+ "notes": "Run schema validation tests as part of quality gates.",
1110
+ "stage": "quality"
1111
+ },
1112
+ "github-actions": {
1113
+ "job": "ci",
1114
+ "notes": "Include AI output schema validation in CI test suite."
1115
+ }
1116
+ },
1117
+ "description": "Validate all AI-generated outputs against strict JSON schemas or type definitions at system boundaries. Reject invalid outputs early rather than letting malformed data propagate through the system.",
1118
+ "id": "ai-schema-enforcement",
1119
+ "label": "AI Output Schema Enforcement",
1120
+ "stack": {
1121
+ "exampleConfigFiles": [
1122
+ "src/schemas/"
1123
+ ],
1124
+ "exampleTools": [
1125
+ "serde",
1126
+ "jsonschema",
1127
+ "validator"
1128
+ ],
1129
+ "notes": "Use serde with #[serde(deny_unknown_fields)] for strict deserialization of AI outputs. Add validator derives for business rule validation.",
1130
+ "verification": "Review AI integration code and confirm strict deserialization is enforced."
1131
+ }
1132
+ },
1133
+ {
1134
+ "ciHints": {
1135
+ "azure-devops": {
1136
+ "notes": "Run AI golden tests as part of the test stage.",
1137
+ "stage": "test"
1138
+ },
1139
+ "github-actions": {
1140
+ "job": "ci",
1141
+ "notes": "Include AI golden contract tests in CI test suite."
1142
+ }
1143
+ },
1144
+ "description": "Validate AI tool-generated patches, configs, and code against exact expected formats. Test that AI outputs respect forbidden paths, file patterns, and format constraints through golden contract tests.",
1145
+ "id": "ai-golden-tests",
1146
+ "label": "AI Golden Contract Tests",
1147
+ "stack": {
1148
+ "exampleConfigFiles": [
1149
+ "snapshots/"
1150
+ ],
1151
+ "exampleTools": [
1152
+ "insta"
1153
+ ],
1154
+ "notes": "Use insta for snapshot testing AI-generated code and configs. Test format compliance and forbidden path restrictions.",
1155
+ "verification": "Run 'cargo insta test' and confirm AI outputs match snapshots."
1156
+ }
1157
+ },
1158
+ {
1159
+ "ciHints": {
1160
+ "azure-devops": {
1161
+ "notes": "Run AI safety tests as part of security stage on main branch.",
1162
+ "stage": "security"
1163
+ },
1164
+ "github-actions": {
1165
+ "job": "security",
1166
+ "notes": "Run AI safety checks on main branch merges."
1167
+ }
1168
+ },
1169
+ "description": "Test AI integrations for prompt injection resistance, input sanitization, output filtering, and data exfiltration prevention. Include adversarial test cases that attempt to manipulate AI behavior.",
1170
+ "id": "ai-safety-checks",
1171
+ "label": "AI Adversarial & Safety Testing",
1172
+ "stack": {
1173
+ "exampleConfigFiles": [
1174
+ "tests/ai_safety/"
1175
+ ],
1176
+ "exampleTools": [
1177
+ "proptest",
1178
+ "custom tests"
1179
+ ],
1180
+ "notes": "Use proptest for property-based testing of AI input validation. Test that malicious inputs don't escape sandboxing.",
1181
+ "verification": "Run AI safety tests with adversarial inputs."
1182
+ }
1183
+ },
1184
+ {
1185
+ "ciHints": {
1186
+ "azure-devops": {
1187
+ "notes": "Verify AI provenance logging is implemented in quality checks.",
1188
+ "stage": "quality"
1189
+ },
1190
+ "github-actions": {
1191
+ "job": "ci",
1192
+ "notes": "Check AI provenance logging implementation in CI."
1193
+ }
1194
+ },
1195
+ "description": "Log AI provider, model version, prompt template version, parameters, and tool versions for all AI operations. Enable attribution of outputs to specific model+prompt combinations for debugging and compliance.",
1196
+ "id": "ai-provenance-tracking",
1197
+ "label": "AI Provenance & Audit Logging",
1198
+ "stack": {
1199
+ "exampleConfigFiles": [
1200
+ "src/ai/provenance.rs"
1201
+ ],
1202
+ "exampleTools": [
1203
+ "tracing",
1204
+ "OpenTelemetry"
1205
+ ],
1206
+ "notes": "Use tracing spans to capture AI call provenance. Include model version, prompt hash, and parameters as span attributes.",
1207
+ "verification": "Review AI integration and confirm provenance is logged."
1208
+ }
1209
+ },
820
1210
  {
821
1211
  "ciHints": {
822
1212
  "azure-devops": {
@@ -898,27 +1288,41 @@
898
1288
  },
899
1289
  "migrationGuide": [
900
1290
  {
901
- "description": "Start by adding pre-commit hooks and core formatting/linting so developers get fast feedback without touching CI.",
1291
+ "description": "Configure .gitattributes for cross-platform line ending correctness and establish the canonical verify entrypoint before adding any checks. This prevents 'works locally, fails in CI' issues from day one.",
1292
+ "focusIds": [
1293
+ "gitattributes-eol",
1294
+ "canonical-verify",
1295
+ "hook-ci-parity",
1296
+ "config-authority"
1297
+ ],
1298
+ "notes": "Start here to avoid debugging cryptic CRLF failures later. Use .gitattributes as the authority for EOL (not .editorconfig). Run 'git add --renormalize .' after adding .gitattributes to fix existing files.",
1299
+ "step": 0,
1300
+ "title": "Foundation: Line Endings and Hook Entry Point"
1301
+ },
1302
+ {
1303
+ "description": "Add pre-commit hooks with secret scanning, formatting, and linting. Hooks should CHECK (not auto-fix) and scope to changed files only for speed.",
902
1304
  "focusIds": [
903
1305
  "pre-commit-hooks",
1306
+ "secret-scanning-precommit",
904
1307
  "linting",
905
1308
  "code-formatter"
906
1309
  ],
907
- "notes": "Keep hooks fast and focused on changed files to avoid slowing down day-to-day work.",
1310
+ "notes": "Keep hooks fast by scoping to staged files. Use Husky as entry point calling lint-staged or pre-commit. Hooks should check, not fix, to keep developers aware of issues.",
908
1311
  "step": 1,
909
1312
  "title": "Establish Local Safety Nets First"
910
1313
  },
911
1314
  {
912
- "description": "Introduce CI quality gates that mirror local checks, but treat existing violations as warnings wherever possible.",
1315
+ "description": "Introduce CI quality gates that mirror local hooks exactly. Add CRLF detection early in pipeline. Treat existing violations as warnings where possible.",
913
1316
  "focusIds": [
1317
+ "crlf-detection",
914
1318
  "ci-quality-gates",
915
1319
  "linting",
916
1320
  "code-formatter",
917
1321
  "commit-linting"
918
1322
  ],
919
- "notes": "Use diff-based tools or baselines so only new violations break builds; legacy issues remain visible but non-blocking.",
1323
+ "notes": "CI must call the same verify scripts that hooks use. Add CRLF detection before other checks to fail fast on line ending issues. Use diff-based tools so only new violations break builds.",
920
1324
  "step": 2,
921
- "title": "Mirror Local Checks in CI (Soft-Fail on Legacy)"
1325
+ "title": "Mirror Local Checks in CI with CRLF Detection"
922
1326
  },
923
1327
  {
924
1328
  "description": "Enable type-checking, coverage thresholds, and dependency/vulnerability scanning with gradual enforcement.",
@@ -943,9 +1347,22 @@
943
1347
  "complexity-analysis",
944
1348
  "accessibility-auditing"
945
1349
  ],
946
- "notes": "Tackle recommended items in order of business value; backend-only repos can skip web-focused checks like accessibility. For AI/ML-heavy Python teams, consider extending containerization with data versioning (DVC) and unit tests with data quality checks (e.g., Great Expectations) as part of this step.",
1350
+ "notes": "Tackle recommended items in order of business value; backend-only repos can skip web-focused checks like accessibility.",
947
1351
  "step": 4,
948
1352
  "title": "Layer in Docs, Governance, and Recommended Checks"
1353
+ },
1354
+ {
1355
+ "description": "For repos using or building with generative AI, add drift detection, schema enforcement, golden contract tests, safety testing, and provenance tracking.",
1356
+ "focusIds": [
1357
+ "ai-drift-detection",
1358
+ "ai-schema-enforcement",
1359
+ "ai-golden-tests",
1360
+ "ai-safety-checks",
1361
+ "ai-provenance-tracking"
1362
+ ],
1363
+ "notes": "Skip this step if your repo has no AI/ML components. For AI-heavy repos: add nightly drift detection to catch model changes, enforce strict schemas at AI output boundaries, and log provenance for debugging 'why did AI do X?'",
1364
+ "step": 5,
1365
+ "title": "AI/ML Governance (If Applicable)"
949
1366
  }
950
1367
  ],
951
1368
  "qualityGatePolicy": {
@@ -955,5 +1372,5 @@
955
1372
  },
956
1373
  "stack": "rust",
957
1374
  "stackLabel": "Rust",
958
- "version": 4
1375
+ "version": 5
959
1376
  }
@@ -164,6 +164,10 @@
164
164
  "$ref": "#/$defs/Enforcement",
165
165
  "description": "Enforcement level. Defaults: core=required, recommended=recommended, optionalEnhancements=optional."
166
166
  },
167
+ "executionStage": {
168
+ "$ref": "#/$defs/ExecutionStage",
169
+ "description": "When this check should execute in the development lifecycle."
170
+ },
167
171
  "id": {
168
172
  "description": "Unique identifier for the checklist item.",
169
173
  "pattern": "^[a-z][a-z0-9-]*$",
@@ -172,6 +176,10 @@
172
176
  "label": {
173
177
  "type": "string"
174
178
  },
179
+ "scopeToChangedFiles": {
180
+ "description": "Whether this check can/should be scoped to changed files only for faster execution.",
181
+ "type": "boolean"
182
+ },
175
183
  "severity": {
176
184
  "$ref": "#/$defs/Severity",
177
185
  "description": "Violation severity. Defaults: core=error, recommended=warn, optionalEnhancements=info."
@@ -202,7 +210,8 @@
202
210
  "id",
203
211
  "label",
204
212
  "description",
205
- "appliesTo"
213
+ "appliesTo",
214
+ "executionStage"
206
215
  ],
207
216
  "type": "object"
208
217
  },
@@ -238,6 +247,18 @@
238
247
  ],
239
248
  "type": "string"
240
249
  },
250
+ "ExecutionStage": {
251
+ "description": "Development lifecycle stage when a check should execute.",
252
+ "enum": [
253
+ "pre-commit",
254
+ "pre-push",
255
+ "ci-pr",
256
+ "ci-main",
257
+ "release",
258
+ "nightly"
259
+ ],
260
+ "type": "string"
261
+ },
241
262
  "ExecutorHints": {
242
263
  "additionalProperties": false,
243
264
  "description": "Advisory execution substrate hints. Bazel is the first supported executor; future monorepo executors may follow the same pattern.",
@@ -324,7 +345,8 @@
324
345
  "type": "string"
325
346
  },
326
347
  "step": {
327
- "minimum": 1,
348
+ "description": "Step number in migration sequence. Step 0 is foundation/prerequisites.",
349
+ "minimum": 0,
328
350
  "type": "integer"
329
351
  },
330
352
  "title": {