@oddessentials/repo-standards 4.3.0 → 5.0.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,64 @@
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
+ },
11
+ "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.",
12
+ "id": "gitattributes-eol",
13
+ "label": "Git Attributes (Line Endings)",
14
+ "stack": {
15
+ "exampleConfigFiles": [
16
+ ".gitattributes",
17
+ ".editorconfig"
18
+ ],
19
+ "exampleTools": [
20
+ "git"
21
+ ],
22
+ "machineCheck": {
23
+ "command": "git ls-files --eol | grep -E 'w/crlf.*\\.(sh|bash|py)$' && exit 1 || exit 0",
24
+ "description": "Verify no CRLF in shell/script files",
25
+ "expectExitCode": 0
26
+ },
27
+ "notes": "Use .gitattributes as the authority for EOL; .editorconfig is supplementary for editor display. Mark *.sh, *.bash as eol=lf. After adding .gitattributes, run 'git add --renormalize .' to fix existing files. Windows contributors should set core.autocrlf=false.",
28
+ "optionalFiles": [
29
+ ".editorconfig"
30
+ ],
31
+ "requiredFiles": [
32
+ ".gitattributes"
33
+ ],
34
+ "verification": "Run 'git ls-files --eol' and verify no unexpected CRLF in LF-only files."
35
+ }
36
+ },
37
+ {
38
+ "ciHints": {
39
+ "azure-devops": {
40
+ "notes": "Run CRLF detection as the first quality check before linting or testing.",
41
+ "stage": "quality"
42
+ }
43
+ },
44
+ "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.",
45
+ "id": "crlf-detection",
46
+ "label": "CRLF Detection in CI",
47
+ "stack": {
48
+ "exampleConfigFiles": [],
49
+ "exampleTools": [
50
+ "file",
51
+ "grep"
52
+ ],
53
+ "machineCheck": {
54
+ "command": "git ls-files --eol | grep -E 'w/crlf.*\\.(sh|js|ts|mjs|cjs)$' && exit 1 || exit 0",
55
+ "description": "Detect CRLF in script files",
56
+ "expectExitCode": 0
57
+ },
58
+ "notes": "Check for CRLF in .sh, .js, .ts, .json files early in CI. Use 'file' command or grep for \\r to detect issues before they cause cryptic failures.",
59
+ "verification": "Run 'git ls-files --eol | grep w/crlf' and verify no unexpected CRLF files."
60
+ }
61
+ },
4
62
  {
5
63
  "ciHints": {
6
64
  "azure-devops": {
@@ -199,6 +257,33 @@
199
257
  "verification": "Trigger the release pipeline and confirm all artifacts share the same version number and tag."
200
258
  }
201
259
  },
260
+ {
261
+ "ciHints": {
262
+ "azure-devops": {
263
+ "notes": "Set HUSKY=0 or equivalent in release pipeline to disable hooks.",
264
+ "stage": "release"
265
+ }
266
+ },
267
+ "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.",
268
+ "id": "release-hook-bypass",
269
+ "label": "Release Hook Bypass",
270
+ "stack": {
271
+ "exampleConfigFiles": [
272
+ ".github/workflows/release.yml"
273
+ ],
274
+ "exampleTools": [
275
+ "semantic-release",
276
+ "husky"
277
+ ],
278
+ "machineCheck": {
279
+ "command": "grep -r 'HUSKY=0\\|--no-verify' .github/workflows/ || echo 'WARNING: No hook bypass in release workflow'",
280
+ "description": "Verify release workflows disable hooks",
281
+ "expectExitCode": 0
282
+ },
283
+ "notes": "In release workflows, set HUSKY=0 environment variable to disable husky hooks. Release commits from semantic-release should bypass commitlint since they're generated. CI gates already validated the code.",
284
+ "verification": "Check release workflow for HUSKY=0 or --no-verify flags."
285
+ }
286
+ },
202
287
  {
203
288
  "ciHints": {
204
289
  "azure-devops": {
@@ -313,23 +398,73 @@
313
398
  {
314
399
  "ciHints": {
315
400
  "azure-devops": {
401
+ "notes": "Hooks and CI must invoke identical verification commands. Use npm run verify or equivalent.",
316
402
  "stage": "quality"
317
403
  }
318
404
  },
319
- "description": "Use git hooks to run linting, formatting, tests, and commit linting before changes are committed.",
405
+ "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).",
320
406
  "id": "pre-commit-hooks",
321
407
  "label": "Pre-Commit Hooks",
322
408
  "stack": {
323
409
  "exampleConfigFiles": [
324
410
  ".husky/",
325
- "package.json"
411
+ "package.json",
412
+ "lint-staged.config.js"
326
413
  ],
327
414
  "exampleTools": [
328
415
  "husky",
329
416
  "lint-staged"
330
417
  ],
331
- "notes": "Run ESLint and Prettier on staged files and enforce commit message format via commit-msg hooks.",
332
- "verification": "Inspect the pre-commit and commit-msg hooks (for example, files under .husky or other hook tooling) and confirm they run linting/formatting and commit linting on staged changes."
418
+ "notes": "Use Husky as the entry hook mechanism calling lint-staged. Hooks should CHECK (--check flags) not auto-fix to keep developers aware of issues. Scope to staged files only for speed. Invoke hooks through the repo toolchain (npx) not global installs to ensure environment pinning. Never let hook enforcement drift from CI.",
419
+ "verification": "Run 'npm run verify' (or equivalent) and confirm the same checks run in both hooks and CI."
420
+ }
421
+ },
422
+ {
423
+ "ciHints": {
424
+ "azure-devops": {
425
+ "notes": "CI should call the same verify script that hooks use locally.",
426
+ "stage": "quality"
427
+ }
428
+ },
429
+ "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.",
430
+ "id": "hook-ci-parity",
431
+ "label": "Hook/CI Parity",
432
+ "stack": {
433
+ "exampleConfigFiles": [
434
+ "package.json"
435
+ ],
436
+ "exampleTools": [
437
+ "npm scripts"
438
+ ],
439
+ "notes": "Define a 'verify' script in package.json that runs all checks (lint, format:check, typecheck). Both .husky/pre-commit and CI should call 'npm run verify'. Never add checks to CI that don't run locally.",
440
+ "requiredScripts": [
441
+ "verify"
442
+ ],
443
+ "verification": "Compare hook commands with CI commands and confirm they invoke the same scripts."
444
+ }
445
+ },
446
+ {
447
+ "ciHints": {
448
+ "azure-devops": {
449
+ "notes": "Also run secret scanning in CI as a safety net for commits that bypassed hooks.",
450
+ "stage": "quality"
451
+ }
452
+ },
453
+ "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.",
454
+ "id": "secret-scanning-precommit",
455
+ "label": "Pre-commit Secret Scanning",
456
+ "stack": {
457
+ "exampleConfigFiles": [
458
+ ".gitleaks.toml",
459
+ ".secrets.baseline"
460
+ ],
461
+ "exampleTools": [
462
+ "gitleaks",
463
+ "detect-secrets",
464
+ "trufflehog"
465
+ ],
466
+ "notes": "Add gitleaks or detect-secrets to pre-commit hooks. Scan only staged changes for speed. Configure allowlists for false positives in .gitleaks.toml.",
467
+ "verification": "Run 'gitleaks protect --staged' and verify it catches test secrets."
333
468
  }
334
469
  },
335
470
  {
@@ -559,6 +694,76 @@
559
694
  ],
560
695
  "verification": "LICENSE file is present in the repository root; CODE_OF_CONDUCT.md and CONTRIBUTING.md are present for contribution guidance."
561
696
  }
697
+ },
698
+ {
699
+ "ciHints": {
700
+ "azure-devops": {
701
+ "notes": "CI should call the canonical verify command, not duplicate check logic.",
702
+ "stage": "quality"
703
+ }
704
+ },
705
+ "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.",
706
+ "id": "canonical-verify",
707
+ "label": "Canonical Verify Entrypoint",
708
+ "stack": {
709
+ "exampleConfigFiles": [
710
+ "package.json"
711
+ ],
712
+ "exampleTools": [
713
+ "npm scripts"
714
+ ],
715
+ "notes": "Define 'npm run verify' that runs lint, format:check, typecheck, and test. Pre-commit hooks call 'npm run verify:quick' (lint + format only). CI calls 'npm run verify' (full suite). Never duplicate verification logic across multiple scripts.",
716
+ "requiredScripts": [
717
+ "verify"
718
+ ],
719
+ "verification": "package.json contains a 'verify' script that orchestrates all checks."
720
+ }
721
+ },
722
+ {
723
+ "ciHints": {
724
+ "azure-devops": {
725
+ "notes": "Ensure CI reads from authoritative configs, not duplicated settings.",
726
+ "stage": "quality"
727
+ }
728
+ },
729
+ "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.",
730
+ "id": "config-authority",
731
+ "label": "Config File Authority Rules",
732
+ "stack": {
733
+ "exampleConfigFiles": [
734
+ ".gitattributes",
735
+ ".editorconfig",
736
+ "eslint.config.js",
737
+ "tsconfig.json"
738
+ ],
739
+ "exampleTools": [],
740
+ "notes": "Authority mapping: .gitattributes for EOL (Git layer), .editorconfig for editor display, eslint.config.js for lint rules, tsconfig.json for TS compiler options, prettier for formatting. Never duplicate rules across files.",
741
+ "verification": "Review configs and confirm no rule is defined in multiple places with potential for drift."
742
+ }
743
+ },
744
+ {
745
+ "ciHints": {
746
+ "azure-devops": {
747
+ "notes": "CI should read skip paths from config files, not hardcode them in pipeline.",
748
+ "stage": "quality"
749
+ }
750
+ },
751
+ "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.",
752
+ "id": "explicit-skip-paths",
753
+ "label": "Explicit Skip Paths",
754
+ "stack": {
755
+ "exampleConfigFiles": [
756
+ ".eslintignore",
757
+ ".prettierignore",
758
+ "eslint.config.js"
759
+ ],
760
+ "exampleTools": [
761
+ "eslint",
762
+ "prettier"
763
+ ],
764
+ "notes": "Define ignores in eslint.config.js (ignores array) and .prettierignore. Document why each path is excluded (generated code, vendor, etc.). Avoid ad-hoc --ignore-path flags in scripts.",
765
+ "verification": "Review ignore configs and confirm all exclusions are documented and intentional."
766
+ }
562
767
  }
563
768
  ],
564
769
  "optionalEnhancements": [
@@ -580,6 +785,48 @@
580
785
  "notes": "Adopt structured JSON logging with correlation IDs and send logs to a centralized sink in production.",
581
786
  "verification": "Confirm that a structured logging library (such as Winston or Pino) is configured to emit JSON or key-value logs and that error handling routes important failures through this logger."
582
787
  }
788
+ },
789
+ {
790
+ "ciHints": {
791
+ "azure-devops": {
792
+ "stage": "governance"
793
+ }
794
+ },
795
+ "description": "Define phase transition requirements in phase-gates.md for autonomous agent workflows with clear pre-conditions and approval gates.",
796
+ "id": "agent-phase-gates",
797
+ "label": "Agent Phase Gates",
798
+ "stack": {
799
+ "exampleConfigFiles": [
800
+ "phase-gates.md"
801
+ ],
802
+ "exampleTools": [],
803
+ "notes": "Document phase transitions (Planning → Implementation → Verification → Release) with required pre-conditions, approval mechanisms, and evidence artifacts for each gate.",
804
+ "optionalFiles": [
805
+ "phase-gates.md"
806
+ ],
807
+ "verification": "phase-gates.md exists defining transition requirements between project phases."
808
+ }
809
+ },
810
+ {
811
+ "ciHints": {
812
+ "azure-devops": {
813
+ "stage": "governance"
814
+ }
815
+ },
816
+ "description": "Document milestone completion criteria in victory-gates.md defining 'done' for releases and major deliverables with evidence requirements.",
817
+ "id": "agent-victory-gates",
818
+ "label": "Agent Victory Gates",
819
+ "stack": {
820
+ "exampleConfigFiles": [
821
+ "victory-gates.md"
822
+ ],
823
+ "exampleTools": [],
824
+ "notes": "Define completion criteria for milestones (MVP, Beta, GA) with all required conditions, verification commands, and evidence artifacts (test reports, coverage, deployment confirmations).",
825
+ "optionalFiles": [
826
+ "victory-gates.md"
827
+ ],
828
+ "verification": "victory-gates.md exists with milestone completion criteria and evidence requirements."
829
+ }
583
830
  }
584
831
  ],
585
832
  "recommended": [
@@ -728,6 +975,142 @@
728
975
  "notes": "Run accessibility checks against key pages or components in CI; fail on critical violations while treating minor issues as warnings initially.",
729
976
  "verification": "For web-facing apps, run the configured accessibility tooling (for example, axe, pa11y, or Lighthouse accessibility audits) against key pages and confirm that critical issues are resolved."
730
977
  }
978
+ },
979
+ {
980
+ "ciHints": {
981
+ "azure-devops": {
982
+ "notes": "Run AI drift detection in a scheduled nightly pipeline separate from main CI.",
983
+ "stage": "nightly"
984
+ }
985
+ },
986
+ "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.",
987
+ "id": "ai-drift-detection",
988
+ "label": "AI Drift Detection",
989
+ "stack": {
990
+ "exampleConfigFiles": [
991
+ "__snapshots__/",
992
+ "ai-baselines/"
993
+ ],
994
+ "exampleTools": [
995
+ "jest snapshots",
996
+ "custom baseline comparator"
997
+ ],
998
+ "notes": "Pin AI outputs as baseline snapshots. Nightly runs compare current outputs against baselines. When drift detected, investigate: was it a code change, model update, or prompt change? Log model version, prompt hash, and code SHA for attribution.",
999
+ "verification": "Run AI baseline tests and confirm outputs match pinned baselines or drift is intentional."
1000
+ }
1001
+ },
1002
+ {
1003
+ "ciHints": {
1004
+ "azure-devops": {
1005
+ "notes": "Run schema validation tests as part of quality gates.",
1006
+ "stage": "quality"
1007
+ }
1008
+ },
1009
+ "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.",
1010
+ "id": "ai-schema-enforcement",
1011
+ "label": "AI Output Schema Enforcement",
1012
+ "stack": {
1013
+ "exampleConfigFiles": [
1014
+ "src/schemas/",
1015
+ "*.schema.json"
1016
+ ],
1017
+ "exampleTools": [
1018
+ "zod",
1019
+ "ajv",
1020
+ "TypeScript"
1021
+ ],
1022
+ "notes": "Define strict schemas for AI outputs using Zod or JSON Schema. Parse and validate AI responses at integration boundaries. Fail fast on schema violations rather than handling partial/invalid data.",
1023
+ "verification": "Review AI integration code and confirm all AI outputs are validated against schemas."
1024
+ }
1025
+ },
1026
+ {
1027
+ "ciHints": {
1028
+ "azure-devops": {
1029
+ "notes": "Run AI golden tests as part of the test stage.",
1030
+ "stage": "test"
1031
+ }
1032
+ },
1033
+ "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.",
1034
+ "id": "ai-golden-tests",
1035
+ "label": "AI Golden Contract Tests",
1036
+ "stack": {
1037
+ "exampleConfigFiles": [
1038
+ "__fixtures__/ai-outputs/",
1039
+ "*.golden.json"
1040
+ ],
1041
+ "exampleTools": [
1042
+ "jest",
1043
+ "vitest"
1044
+ ],
1045
+ "notes": "Create golden test fixtures for AI-generated patches and configs. Test that outputs match exact formats, don't touch forbidden paths (node_modules, .git), and respect file naming conventions.",
1046
+ "verification": "Run golden tests and confirm AI outputs match expected fixtures exactly."
1047
+ }
1048
+ },
1049
+ {
1050
+ "ciHints": {
1051
+ "azure-devops": {
1052
+ "notes": "Run AI safety tests as part of security stage on main branch.",
1053
+ "stage": "security"
1054
+ }
1055
+ },
1056
+ "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.",
1057
+ "id": "ai-safety-checks",
1058
+ "label": "AI Adversarial & Safety Testing",
1059
+ "stack": {
1060
+ "exampleConfigFiles": [
1061
+ "tests/ai-safety/"
1062
+ ],
1063
+ "exampleTools": [
1064
+ "jest",
1065
+ "custom adversarial tests"
1066
+ ],
1067
+ "notes": "Create adversarial test suite with prompt injection attempts, malicious input patterns, and exfiltration scenarios. Test that AI outputs are sanitized before use in sensitive contexts (SQL, shell, HTML).",
1068
+ "verification": "Run AI safety test suite and confirm all adversarial cases are handled safely."
1069
+ }
1070
+ },
1071
+ {
1072
+ "ciHints": {
1073
+ "azure-devops": {
1074
+ "notes": "Verify AI provenance logging is implemented in quality checks.",
1075
+ "stage": "quality"
1076
+ }
1077
+ },
1078
+ "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.",
1079
+ "id": "ai-provenance-tracking",
1080
+ "label": "AI Provenance & Audit Logging",
1081
+ "stack": {
1082
+ "exampleConfigFiles": [
1083
+ "src/ai/provenance.ts"
1084
+ ],
1085
+ "exampleTools": [
1086
+ "OpenTelemetry",
1087
+ "custom logging"
1088
+ ],
1089
+ "notes": "Log for each AI call: provider (OpenAI, Anthropic), model ID, prompt template hash/version, temperature, timestamp, request ID. Store provenance alongside outputs for debugging 'why did AI do X?'",
1090
+ "verification": "Review AI integration code and confirm provenance is logged for all AI calls."
1091
+ }
1092
+ },
1093
+ {
1094
+ "ciHints": {
1095
+ "azure-devops": {
1096
+ "notes": "Run invariant verification commands in a dedicated quality stage.",
1097
+ "stage": "quality"
1098
+ }
1099
+ },
1100
+ "description": "Maintain INVARIANTS.md defining repository-wide rules that must always hold true, with machine-readable verification commands for autonomous agents.",
1101
+ "id": "agent-invariants",
1102
+ "label": "Autonomous Agent Invariants",
1103
+ "stack": {
1104
+ "exampleConfigFiles": [
1105
+ "INVARIANTS.md"
1106
+ ],
1107
+ "exampleTools": [],
1108
+ "notes": "Create INVARIANTS.md with a table of rules, verification commands, and severity levels. Include commands like 'npm test', 'npm run lint', 'npm run typecheck' that agents can run to validate state.",
1109
+ "requiredFiles": [
1110
+ "INVARIANTS.md"
1111
+ ],
1112
+ "verification": "INVARIANTS.md exists with machine-readable verification commands for all critical repository rules."
1113
+ }
731
1114
  }
732
1115
  ]
733
1116
  },
@@ -783,27 +1166,41 @@
783
1166
  },
784
1167
  "migrationGuide": [
785
1168
  {
786
- "description": "Start by adding pre-commit hooks and core formatting/linting so developers get fast feedback without touching CI.",
1169
+ "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.",
1170
+ "focusIds": [
1171
+ "gitattributes-eol",
1172
+ "canonical-verify",
1173
+ "hook-ci-parity",
1174
+ "config-authority"
1175
+ ],
1176
+ "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.",
1177
+ "step": 0,
1178
+ "title": "Foundation: Line Endings and Hook Entry Point"
1179
+ },
1180
+ {
1181
+ "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.",
787
1182
  "focusIds": [
788
1183
  "pre-commit-hooks",
1184
+ "secret-scanning-precommit",
789
1185
  "linting",
790
1186
  "code-formatter"
791
1187
  ],
792
- "notes": "Keep hooks fast and focused on changed files to avoid slowing down day-to-day work.",
1188
+ "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.",
793
1189
  "step": 1,
794
1190
  "title": "Establish Local Safety Nets First"
795
1191
  },
796
1192
  {
797
- "description": "Introduce CI quality gates that mirror local checks, but treat existing violations as warnings wherever possible.",
1193
+ "description": "Introduce CI quality gates that mirror local hooks exactly. Add CRLF detection early in pipeline. Treat existing violations as warnings where possible.",
798
1194
  "focusIds": [
1195
+ "crlf-detection",
799
1196
  "ci-quality-gates",
800
1197
  "linting",
801
1198
  "code-formatter",
802
1199
  "commit-linting"
803
1200
  ],
804
- "notes": "Use diff-based tools or baselines so only new violations break builds; legacy issues remain visible but non-blocking.",
1201
+ "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.",
805
1202
  "step": 2,
806
- "title": "Mirror Local Checks in CI (Soft-Fail on Legacy)"
1203
+ "title": "Mirror Local Checks in CI with CRLF Detection"
807
1204
  },
808
1205
  {
809
1206
  "description": "Enable type-checking, coverage thresholds, and dependency/vulnerability scanning with gradual enforcement.",
@@ -828,9 +1225,22 @@
828
1225
  "complexity-analysis",
829
1226
  "accessibility-auditing"
830
1227
  ],
831
- "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.",
1228
+ "notes": "Tackle recommended items in order of business value; backend-only repos can skip web-focused checks like accessibility.",
832
1229
  "step": 4,
833
1230
  "title": "Layer in Docs, Governance, and Recommended Checks"
1231
+ },
1232
+ {
1233
+ "description": "For repos using or building with generative AI, add drift detection, schema enforcement, golden contract tests, safety testing, and provenance tracking.",
1234
+ "focusIds": [
1235
+ "ai-drift-detection",
1236
+ "ai-schema-enforcement",
1237
+ "ai-golden-tests",
1238
+ "ai-safety-checks",
1239
+ "ai-provenance-tracking"
1240
+ ],
1241
+ "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?'",
1242
+ "step": 5,
1243
+ "title": "AI/ML Governance (If Applicable)"
834
1244
  }
835
1245
  ],
836
1246
  "qualityGatePolicy": {