mustflow 2.85.4 → 2.99.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.
Files changed (78) hide show
  1. package/dist/cli/commands/script-pack.js +10 -0
  2. package/dist/cli/i18n/en.js +183 -0
  3. package/dist/cli/i18n/es.js +183 -0
  4. package/dist/cli/i18n/fr.js +183 -0
  5. package/dist/cli/i18n/hi.js +183 -0
  6. package/dist/cli/i18n/ko.js +183 -0
  7. package/dist/cli/i18n/zh.js +183 -0
  8. package/dist/cli/lib/script-pack-registry.js +284 -1
  9. package/dist/cli/script-packs/code-change-impact.js +6 -0
  10. package/dist/cli/script-packs/code-import-cycle.js +193 -0
  11. package/dist/cli/script-packs/docs-link-integrity.js +145 -0
  12. package/dist/cli/script-packs/repo-approval-gate.js +100 -0
  13. package/dist/cli/script-packs/repo-git-ignore-audit.js +119 -0
  14. package/dist/cli/script-packs/repo-manifest-lock-drift.js +122 -0
  15. package/dist/cli/script-packs/repo-merge-conflict-scan.js +123 -0
  16. package/dist/cli/script-packs/repo-skill-route-audit.js +86 -0
  17. package/dist/cli/script-packs/repo-version-source.js +92 -0
  18. package/dist/cli/script-packs/test-performance-report.js +247 -0
  19. package/dist/cli/script-packs/test-regression-selector.js +167 -0
  20. package/dist/core/change-impact.js +23 -51
  21. package/dist/core/change-surface-classification.js +198 -0
  22. package/dist/core/docs-link-integrity.js +443 -0
  23. package/dist/core/import-cycle.js +152 -0
  24. package/dist/core/public-json-contracts.js +116 -0
  25. package/dist/core/repo-approval-gate.js +116 -0
  26. package/dist/core/repo-git-ignore-audit.js +302 -0
  27. package/dist/core/repo-manifest-lock-drift.js +321 -0
  28. package/dist/core/repo-merge-conflict-scan.js +335 -0
  29. package/dist/core/repo-version-source.js +82 -0
  30. package/dist/core/script-pack-suggestions.js +77 -1
  31. package/dist/core/skill-route-audit.js +354 -0
  32. package/dist/core/test-performance-report.js +697 -0
  33. package/dist/core/test-regression-selector.js +335 -0
  34. package/package.json +1 -1
  35. package/schemas/README.md +40 -2
  36. package/schemas/change-impact-report.schema.json +35 -1
  37. package/schemas/import-cycle-report.schema.json +157 -0
  38. package/schemas/link-integrity-report.schema.json +176 -0
  39. package/schemas/repo-approval-gate-report.schema.json +115 -0
  40. package/schemas/repo-git-ignore-audit-report.schema.json +201 -0
  41. package/schemas/repo-manifest-lock-drift-report.schema.json +202 -0
  42. package/schemas/repo-merge-conflict-scan-report.schema.json +169 -0
  43. package/schemas/repo-version-source-report.schema.json +127 -0
  44. package/schemas/skill-route-audit-report.schema.json +144 -0
  45. package/schemas/test-performance-report.schema.json +319 -0
  46. package/schemas/test-regression-selector-report.schema.json +187 -0
  47. package/templates/default/i18n.toml +66 -18
  48. package/templates/default/locales/en/.mustflow/skills/INDEX.md +45 -8
  49. package/templates/default/locales/en/.mustflow/skills/api-access-control-review/SKILL.md +48 -27
  50. package/templates/default/locales/en/.mustflow/skills/api-failure-triage/SKILL.md +270 -0
  51. package/templates/default/locales/en/.mustflow/skills/auth-flow-triage/SKILL.md +192 -0
  52. package/templates/default/locales/en/.mustflow/skills/auth-permission-change/SKILL.md +59 -13
  53. package/templates/default/locales/en/.mustflow/skills/backend-log-evidence-review/SKILL.md +14 -5
  54. package/templates/default/locales/en/.mustflow/skills/cache-integrity-review/SKILL.md +30 -15
  55. package/templates/default/locales/en/.mustflow/skills/change-blast-radius-review/SKILL.md +45 -32
  56. package/templates/default/locales/en/.mustflow/skills/ci-pipeline-triage/SKILL.md +200 -0
  57. package/templates/default/locales/en/.mustflow/skills/clarifying-question-gate/SKILL.md +87 -13
  58. package/templates/default/locales/en/.mustflow/skills/docker-runtime-triage/SKILL.md +191 -0
  59. package/templates/default/locales/en/.mustflow/skills/go-code-change/SKILL.md +18 -13
  60. package/templates/default/locales/en/.mustflow/skills/line-ending-hygiene/SKILL.md +18 -10
  61. package/templates/default/locales/en/.mustflow/skills/llm-hallucination-control-review/SKILL.md +4 -1
  62. package/templates/default/locales/en/.mustflow/skills/motion-system-contract-review/SKILL.md +155 -0
  63. package/templates/default/locales/en/.mustflow/skills/next-action-menu/SKILL.md +177 -0
  64. package/templates/default/locales/en/.mustflow/skills/observability-debuggability-review/SKILL.md +15 -7
  65. package/templates/default/locales/en/.mustflow/skills/payment-integrity-review/SKILL.md +59 -35
  66. package/templates/default/locales/en/.mustflow/skills/powershell-code-change/SKILL.md +16 -6
  67. package/templates/default/locales/en/.mustflow/skills/prompt-contract-quality-review/SKILL.md +4 -1
  68. package/templates/default/locales/en/.mustflow/skills/python-code-change/SKILL.md +19 -10
  69. package/templates/default/locales/en/.mustflow/skills/rag-pipeline-triage/SKILL.md +206 -0
  70. package/templates/default/locales/en/.mustflow/skills/routes.toml +54 -0
  71. package/templates/default/locales/en/.mustflow/skills/rust-code-change/SKILL.md +10 -4
  72. package/templates/default/locales/en/.mustflow/skills/search-index-integrity-review/SKILL.md +181 -0
  73. package/templates/default/locales/en/.mustflow/skills/service-boundary-architecture/SKILL.md +37 -23
  74. package/templates/default/locales/en/.mustflow/skills/test-suite-performance-review/SKILL.md +9 -0
  75. package/templates/default/locales/en/.mustflow/skills/typescript-code-change/SKILL.md +14 -9
  76. package/templates/default/locales/en/.mustflow/skills/vector-search-integrity-review/SKILL.md +209 -0
  77. package/templates/default/locales/en/.mustflow/skills/version-freshness-check/SKILL.md +16 -14
  78. package/templates/default/manifest.toml +64 -1
@@ -0,0 +1,202 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/repo-manifest-lock-drift-report.schema.json",
4
+ "title": "mustflow repo manifest-lock-drift report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "pack_id",
11
+ "script_id",
12
+ "script_ref",
13
+ "action",
14
+ "status",
15
+ "ok",
16
+ "mustflow_root",
17
+ "input",
18
+ "policy",
19
+ "input_hash",
20
+ "lock",
21
+ "summary",
22
+ "entries",
23
+ "findings",
24
+ "issues"
25
+ ],
26
+ "properties": {
27
+ "schema_version": { "const": "1" },
28
+ "command": { "const": "script-pack" },
29
+ "pack_id": { "const": "repo" },
30
+ "script_id": { "const": "manifest-lock-drift" },
31
+ "script_ref": { "const": "repo/manifest-lock-drift" },
32
+ "action": { "const": "check" },
33
+ "status": { "enum": ["passed", "failed", "error"] },
34
+ "ok": { "type": "boolean" },
35
+ "mustflow_root": { "type": "string" },
36
+ "input": {
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": ["paths"],
40
+ "properties": {
41
+ "paths": {
42
+ "type": "array",
43
+ "items": { "type": "string" }
44
+ }
45
+ }
46
+ },
47
+ "policy": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": ["lock_path", "input_mode", "max_entries", "extra_manifest_file_detection"],
51
+ "properties": {
52
+ "lock_path": { "const": ".mustflow/config/manifest.lock.toml" },
53
+ "input_mode": { "enum": ["all_locked_files", "explicit_paths"] },
54
+ "max_entries": { "type": "integer", "minimum": 1 },
55
+ "extra_manifest_file_detection": { "const": "not_authoritative" }
56
+ }
57
+ },
58
+ "input_hash": { "$ref": "#/$defs/sha256" },
59
+ "lock": { "$ref": "#/$defs/lockMetadata" },
60
+ "summary": { "$ref": "#/$defs/summary" },
61
+ "entries": {
62
+ "type": "array",
63
+ "items": { "$ref": "#/$defs/entry" }
64
+ },
65
+ "findings": {
66
+ "type": "array",
67
+ "items": { "$ref": "#/$defs/finding" }
68
+ },
69
+ "issues": {
70
+ "type": "array",
71
+ "items": { "type": "string" }
72
+ }
73
+ },
74
+ "$defs": {
75
+ "sha256": {
76
+ "type": "string",
77
+ "pattern": "^sha256:[a-f0-9]{64}$"
78
+ },
79
+ "nullableString": {
80
+ "type": ["string", "null"]
81
+ },
82
+ "nullableSha256": {
83
+ "anyOf": [
84
+ { "$ref": "#/$defs/sha256" },
85
+ { "type": "null" }
86
+ ]
87
+ },
88
+ "lockMetadata": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "path",
93
+ "exists",
94
+ "schema_version",
95
+ "template_id",
96
+ "template_version",
97
+ "template_profile",
98
+ "template_locale",
99
+ "entries_total"
100
+ ],
101
+ "properties": {
102
+ "path": { "const": ".mustflow/config/manifest.lock.toml" },
103
+ "exists": { "type": "boolean" },
104
+ "schema_version": { "$ref": "#/$defs/nullableString" },
105
+ "template_id": { "$ref": "#/$defs/nullableString" },
106
+ "template_version": { "$ref": "#/$defs/nullableString" },
107
+ "template_profile": { "$ref": "#/$defs/nullableString" },
108
+ "template_locale": { "$ref": "#/$defs/nullableString" },
109
+ "entries_total": { "type": "integer", "minimum": 0 }
110
+ }
111
+ },
112
+ "summary": {
113
+ "type": "object",
114
+ "additionalProperties": false,
115
+ "required": [
116
+ "entries_total",
117
+ "entries_checked",
118
+ "clean_entries",
119
+ "missing_entries",
120
+ "hash_mismatches",
121
+ "unreadable_entries",
122
+ "unsafe_entries",
123
+ "skipped_entries",
124
+ "findings"
125
+ ],
126
+ "properties": {
127
+ "entries_total": { "type": "integer", "minimum": 0 },
128
+ "entries_checked": { "type": "integer", "minimum": 0 },
129
+ "clean_entries": { "type": "integer", "minimum": 0 },
130
+ "missing_entries": { "type": "integer", "minimum": 0 },
131
+ "hash_mismatches": { "type": "integer", "minimum": 0 },
132
+ "unreadable_entries": { "type": "integer", "minimum": 0 },
133
+ "unsafe_entries": { "type": "integer", "minimum": 0 },
134
+ "skipped_entries": { "type": "integer", "minimum": 0 },
135
+ "findings": { "type": "integer", "minimum": 0 }
136
+ }
137
+ },
138
+ "entry": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": [
142
+ "path",
143
+ "source",
144
+ "last_action",
145
+ "lock_hash",
146
+ "actual_hash",
147
+ "exists",
148
+ "status"
149
+ ],
150
+ "properties": {
151
+ "path": { "type": "string" },
152
+ "source": { "$ref": "#/$defs/nullableString" },
153
+ "last_action": { "$ref": "#/$defs/nullableString" },
154
+ "lock_hash": { "$ref": "#/$defs/nullableString" },
155
+ "actual_hash": { "$ref": "#/$defs/nullableSha256" },
156
+ "exists": { "type": "boolean" },
157
+ "status": {
158
+ "enum": ["clean", "hash_mismatch", "missing", "unreadable", "unsafe_path", "skipped"]
159
+ }
160
+ }
161
+ },
162
+ "finding": {
163
+ "type": "object",
164
+ "additionalProperties": false,
165
+ "required": [
166
+ "code",
167
+ "severity",
168
+ "message",
169
+ "path",
170
+ "expected_hash",
171
+ "actual_hash",
172
+ "json_pointer",
173
+ "metric",
174
+ "actual",
175
+ "expected"
176
+ ],
177
+ "properties": {
178
+ "code": {
179
+ "enum": [
180
+ "manifest_lock_missing",
181
+ "manifest_lock_invalid",
182
+ "manifest_lock_max_entries_exceeded",
183
+ "manifest_lock_entry_path_outside_root",
184
+ "manifest_lock_entry_missing",
185
+ "manifest_lock_entry_unreadable",
186
+ "manifest_lock_entry_invalid_hash",
187
+ "manifest_lock_hash_mismatch"
188
+ ]
189
+ },
190
+ "severity": { "enum": ["low", "medium", "high", "critical"] },
191
+ "message": { "type": "string" },
192
+ "path": { "type": "string" },
193
+ "expected_hash": { "$ref": "#/$defs/nullableString" },
194
+ "actual_hash": { "$ref": "#/$defs/nullableSha256" },
195
+ "json_pointer": { "type": ["string", "null"] },
196
+ "metric": { "type": ["string", "null"] },
197
+ "actual": { "type": ["number", "null"] },
198
+ "expected": { "type": ["number", "null"] }
199
+ }
200
+ }
201
+ }
202
+ }
@@ -0,0 +1,169 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/repo-merge-conflict-scan-report.schema.json",
4
+ "title": "mustflow repo merge-conflict-scan report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "pack_id",
11
+ "script_id",
12
+ "script_ref",
13
+ "action",
14
+ "status",
15
+ "ok",
16
+ "mustflow_root",
17
+ "input",
18
+ "policy",
19
+ "input_hash",
20
+ "summary",
21
+ "files",
22
+ "markers",
23
+ "findings",
24
+ "issues"
25
+ ],
26
+ "properties": {
27
+ "schema_version": { "const": "1" },
28
+ "command": { "const": "script-pack" },
29
+ "pack_id": { "const": "repo" },
30
+ "script_id": { "const": "merge-conflict-scan" },
31
+ "script_ref": { "const": "repo/merge-conflict-scan" },
32
+ "action": { "const": "check" },
33
+ "status": { "enum": ["passed", "failed", "error"] },
34
+ "ok": { "type": "boolean" },
35
+ "mustflow_root": { "type": "string" },
36
+ "input": {
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "required": ["paths"],
40
+ "properties": {
41
+ "paths": {
42
+ "type": "array",
43
+ "items": { "type": "string" }
44
+ }
45
+ }
46
+ },
47
+ "policy": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": ["input_mode", "marker_prefixes", "max_files", "max_file_bytes", "skipped_directories"],
51
+ "properties": {
52
+ "input_mode": { "enum": ["explicit_paths", "git_changed_files"] },
53
+ "marker_prefixes": {
54
+ "type": "array",
55
+ "items": { "enum": ["<<<<<<<", "|||||||", "=======", ">>>>>>>"] }
56
+ },
57
+ "max_files": { "type": "integer", "minimum": 1 },
58
+ "max_file_bytes": { "type": "integer", "minimum": 1 },
59
+ "skipped_directories": {
60
+ "type": "array",
61
+ "items": { "type": "string" }
62
+ }
63
+ }
64
+ },
65
+ "input_hash": { "$ref": "#/$defs/sha256" },
66
+ "summary": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": ["files_checked", "markers_found", "files_with_markers", "issues"],
70
+ "properties": {
71
+ "files_checked": { "type": "integer", "minimum": 0 },
72
+ "markers_found": { "type": "integer", "minimum": 0 },
73
+ "files_with_markers": { "type": "integer", "minimum": 0 },
74
+ "issues": { "type": "integer", "minimum": 0 }
75
+ }
76
+ },
77
+ "files": {
78
+ "type": "array",
79
+ "items": { "$ref": "#/$defs/file" }
80
+ },
81
+ "markers": {
82
+ "type": "array",
83
+ "items": { "$ref": "#/$defs/marker" }
84
+ },
85
+ "findings": {
86
+ "type": "array",
87
+ "items": { "$ref": "#/$defs/finding" }
88
+ },
89
+ "issues": {
90
+ "type": "array",
91
+ "items": { "type": "string" }
92
+ }
93
+ },
94
+ "$defs": {
95
+ "sha256": {
96
+ "type": "string",
97
+ "pattern": "^sha256:[a-f0-9]{64}$"
98
+ },
99
+ "markerKind": {
100
+ "enum": ["start", "base", "separator", "end"]
101
+ },
102
+ "file": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": ["path", "sha256", "bytes", "markers"],
106
+ "properties": {
107
+ "path": { "type": "string" },
108
+ "sha256": { "$ref": "#/$defs/sha256" },
109
+ "bytes": { "type": "integer", "minimum": 0 },
110
+ "markers": { "type": "integer", "minimum": 0 }
111
+ }
112
+ },
113
+ "marker": {
114
+ "type": "object",
115
+ "additionalProperties": false,
116
+ "required": ["path", "line", "column", "marker", "marker_length"],
117
+ "properties": {
118
+ "path": { "type": "string" },
119
+ "line": { "type": "integer", "minimum": 1 },
120
+ "column": { "type": "integer", "minimum": 1 },
121
+ "marker": { "$ref": "#/$defs/markerKind" },
122
+ "marker_length": { "type": "integer", "minimum": 1 }
123
+ }
124
+ },
125
+ "finding": {
126
+ "type": "object",
127
+ "additionalProperties": false,
128
+ "required": [
129
+ "code",
130
+ "severity",
131
+ "message",
132
+ "path",
133
+ "line",
134
+ "marker",
135
+ "json_pointer",
136
+ "metric",
137
+ "actual",
138
+ "expected"
139
+ ],
140
+ "properties": {
141
+ "code": {
142
+ "enum": [
143
+ "merge_conflict_marker_detected",
144
+ "merge_conflict_scan_git_unavailable",
145
+ "merge_conflict_scan_no_input_files",
146
+ "merge_conflict_scan_max_files_exceeded",
147
+ "merge_conflict_scan_file_too_large",
148
+ "merge_conflict_scan_unreadable_path",
149
+ "merge_conflict_scan_path_outside_root"
150
+ ]
151
+ },
152
+ "severity": { "enum": ["low", "medium", "high", "critical"] },
153
+ "message": { "type": "string" },
154
+ "path": { "type": "string" },
155
+ "line": { "type": ["integer", "null"], "minimum": 1 },
156
+ "marker": {
157
+ "anyOf": [
158
+ { "$ref": "#/$defs/markerKind" },
159
+ { "type": "null" }
160
+ ]
161
+ },
162
+ "json_pointer": { "type": ["string", "null"] },
163
+ "metric": { "type": ["string", "null"] },
164
+ "actual": { "type": ["number", "null"] },
165
+ "expected": { "type": ["number", "null"] }
166
+ }
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/repo-version-source-report.schema.json",
4
+ "title": "mustflow repo version-source report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "pack_id",
11
+ "script_id",
12
+ "script_ref",
13
+ "action",
14
+ "status",
15
+ "ok",
16
+ "mustflow_root",
17
+ "input",
18
+ "input_hash",
19
+ "versioning_enabled",
20
+ "counts",
21
+ "sources",
22
+ "findings",
23
+ "issues"
24
+ ],
25
+ "properties": {
26
+ "schema_version": { "const": "1" },
27
+ "command": { "const": "script-pack" },
28
+ "pack_id": { "const": "repo" },
29
+ "script_id": { "const": "version-source" },
30
+ "script_ref": { "const": "repo/version-source" },
31
+ "action": { "const": "inspect" },
32
+ "status": { "enum": ["passed", "failed", "error"] },
33
+ "ok": { "type": "boolean" },
34
+ "mustflow_root": { "type": "string" },
35
+ "input": {
36
+ "type": "object",
37
+ "additionalProperties": false,
38
+ "required": ["preferences_path", "declared_sources_path"],
39
+ "properties": {
40
+ "preferences_path": { "const": ".mustflow/config/preferences.toml" },
41
+ "declared_sources_path": { "const": ".mustflow/config/versioning.toml" }
42
+ }
43
+ },
44
+ "input_hash": { "$ref": "#/$defs/sha256" },
45
+ "versioning_enabled": { "type": "boolean" },
46
+ "counts": { "$ref": "#/$defs/counts" },
47
+ "sources": {
48
+ "type": "array",
49
+ "items": { "$ref": "#/$defs/versionSource" }
50
+ },
51
+ "findings": {
52
+ "type": "array",
53
+ "items": { "$ref": "#/$defs/finding" }
54
+ },
55
+ "issues": {
56
+ "type": "array",
57
+ "items": { "type": "string" }
58
+ }
59
+ },
60
+ "$defs": {
61
+ "sha256": {
62
+ "type": "string",
63
+ "pattern": "^sha256:[a-f0-9]{64}$"
64
+ },
65
+ "counts": {
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "required": [
69
+ "sources",
70
+ "declared_sources",
71
+ "source_authority_sources",
72
+ "derived_authority_sources",
73
+ "unclassified_authority_sources"
74
+ ],
75
+ "properties": {
76
+ "sources": { "type": "integer", "minimum": 0 },
77
+ "declared_sources": { "type": "integer", "minimum": 0 },
78
+ "source_authority_sources": { "type": "integer", "minimum": 0 },
79
+ "derived_authority_sources": { "type": "integer", "minimum": 0 },
80
+ "unclassified_authority_sources": { "type": "integer", "minimum": 0 }
81
+ }
82
+ },
83
+ "versionSource": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": ["path", "kind"],
87
+ "properties": {
88
+ "path": { "type": "string" },
89
+ "kind": {
90
+ "enum": [
91
+ "template_lock",
92
+ "template_manifest",
93
+ "package_manifest"
94
+ ]
95
+ },
96
+ "declared": { "type": "boolean" },
97
+ "authority": {
98
+ "enum": ["source", "derived"]
99
+ }
100
+ }
101
+ },
102
+ "finding": {
103
+ "type": "object",
104
+ "additionalProperties": false,
105
+ "required": [
106
+ "code",
107
+ "severity",
108
+ "message",
109
+ "path",
110
+ "json_pointer",
111
+ "metric",
112
+ "actual",
113
+ "expected"
114
+ ],
115
+ "properties": {
116
+ "code": { "const": "versioning_enabled_without_sources" },
117
+ "severity": { "enum": ["low", "medium", "high", "critical"] },
118
+ "message": { "type": "string" },
119
+ "path": { "type": "string" },
120
+ "json_pointer": { "type": ["string", "null"] },
121
+ "metric": { "type": ["string", "null"] },
122
+ "actual": { "type": ["number", "null"] },
123
+ "expected": { "type": ["number", "null"] }
124
+ }
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,144 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/skill-route-audit-report.schema.json",
4
+ "title": "mustflow skill-route-audit report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "pack_id",
11
+ "script_id",
12
+ "script_ref",
13
+ "action",
14
+ "status",
15
+ "ok",
16
+ "mustflow_root",
17
+ "input",
18
+ "input_hash",
19
+ "counts",
20
+ "inventory",
21
+ "findings",
22
+ "issues"
23
+ ],
24
+ "properties": {
25
+ "schema_version": { "const": "1" },
26
+ "command": { "const": "script-pack" },
27
+ "pack_id": { "const": "repo" },
28
+ "script_id": { "const": "skill-route-audit" },
29
+ "script_ref": { "const": "repo/skill-route-audit" },
30
+ "action": { "const": "audit" },
31
+ "status": { "enum": ["ok", "issues_found", "partial"] },
32
+ "ok": { "type": "boolean" },
33
+ "mustflow_root": { "type": "string" },
34
+ "input": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["source_skill_root", "template_skill_root", "template_manifest", "template_i18n"],
38
+ "properties": {
39
+ "source_skill_root": { "const": ".mustflow/skills" },
40
+ "template_skill_root": { "const": "templates/default/locales/en/.mustflow/skills" },
41
+ "template_manifest": { "const": "templates/default/manifest.toml" },
42
+ "template_i18n": { "const": "templates/default/i18n.toml" }
43
+ }
44
+ },
45
+ "input_hash": { "$ref": "#/$defs/sha256" },
46
+ "counts": { "$ref": "#/$defs/counts" },
47
+ "inventory": { "$ref": "#/$defs/inventory" },
48
+ "findings": {
49
+ "type": "array",
50
+ "items": { "$ref": "#/$defs/finding" }
51
+ },
52
+ "issues": {
53
+ "type": "array",
54
+ "items": { "type": "string" }
55
+ }
56
+ },
57
+ "$defs": {
58
+ "sha256": {
59
+ "type": "string",
60
+ "pattern": "^sha256:[a-f0-9]{64}$"
61
+ },
62
+ "stringArray": {
63
+ "type": "array",
64
+ "items": { "type": "string" }
65
+ },
66
+ "counts": {
67
+ "type": "object",
68
+ "additionalProperties": false,
69
+ "required": [
70
+ "source_skills",
71
+ "index_routes",
72
+ "route_metadata",
73
+ "template_skills",
74
+ "manifest_skill_creates",
75
+ "manifest_profile_entries",
76
+ "i18n_skill_documents"
77
+ ],
78
+ "properties": {
79
+ "source_skills": { "type": "integer", "minimum": 0 },
80
+ "index_routes": { "type": "integer", "minimum": 0 },
81
+ "route_metadata": { "type": "integer", "minimum": 0 },
82
+ "template_skills": { "type": "integer", "minimum": 0 },
83
+ "manifest_skill_creates": { "type": "integer", "minimum": 0 },
84
+ "manifest_profile_entries": { "type": "integer", "minimum": 0 },
85
+ "i18n_skill_documents": { "type": "integer", "minimum": 0 }
86
+ }
87
+ },
88
+ "inventory": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "source_skills",
93
+ "index_skills",
94
+ "route_skills",
95
+ "template_skills",
96
+ "manifest_skill_creates",
97
+ "manifest_profile_skills",
98
+ "i18n_skill_documents"
99
+ ],
100
+ "properties": {
101
+ "source_skills": { "$ref": "#/$defs/stringArray" },
102
+ "index_skills": { "$ref": "#/$defs/stringArray" },
103
+ "route_skills": { "$ref": "#/$defs/stringArray" },
104
+ "template_skills": { "$ref": "#/$defs/stringArray" },
105
+ "manifest_skill_creates": { "$ref": "#/$defs/stringArray" },
106
+ "manifest_profile_skills": { "$ref": "#/$defs/stringArray" },
107
+ "i18n_skill_documents": { "$ref": "#/$defs/stringArray" }
108
+ }
109
+ },
110
+ "finding": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "required": ["code", "severity", "message", "path", "skill", "route"],
114
+ "properties": {
115
+ "code": {
116
+ "enum": [
117
+ "skill_without_route",
118
+ "route_without_skill",
119
+ "skill_missing_index_entry",
120
+ "index_without_skill",
121
+ "route_missing_index_entry",
122
+ "frontmatter_name_mismatch",
123
+ "template_missing_skill",
124
+ "template_extra_skill",
125
+ "template_skill_drift",
126
+ "template_routes_drift",
127
+ "i18n_missing_document",
128
+ "i18n_source_mismatch",
129
+ "i18n_revision_mismatch",
130
+ "manifest_missing_create",
131
+ "manifest_create_without_skill",
132
+ "manifest_profile_missing_skill",
133
+ "manifest_profile_unknown_skill"
134
+ ]
135
+ },
136
+ "severity": { "enum": ["low", "medium", "high", "critical"] },
137
+ "message": { "type": "string" },
138
+ "path": { "type": "string" },
139
+ "skill": { "type": ["string", "null"] },
140
+ "route": { "type": ["string", "null"] }
141
+ }
142
+ }
143
+ }
144
+ }