mustflow 2.74.3 → 2.74.5

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.
@@ -0,0 +1,159 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://mustflow.github.io/schemas/script-pack-suggestion-report.schema.json",
4
+ "title": "mustflow script-pack suggestion report",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schema_version",
9
+ "command",
10
+ "action",
11
+ "status",
12
+ "ok",
13
+ "mustflow_root",
14
+ "input",
15
+ "analyzed_paths",
16
+ "suggestions",
17
+ "issues"
18
+ ],
19
+ "properties": {
20
+ "schema_version": { "const": "1" },
21
+ "command": { "const": "script-pack" },
22
+ "action": { "const": "suggest" },
23
+ "status": { "type": "string", "enum": ["suggested", "empty", "partial"] },
24
+ "ok": { "type": "boolean" },
25
+ "mustflow_root": { "type": "string" },
26
+ "input": { "$ref": "#/$defs/input" },
27
+ "analyzed_paths": {
28
+ "type": "array",
29
+ "items": { "$ref": "#/$defs/analyzedPath" }
30
+ },
31
+ "suggestions": {
32
+ "type": "array",
33
+ "items": { "$ref": "#/$defs/suggestion" }
34
+ },
35
+ "issues": {
36
+ "type": "array",
37
+ "items": { "type": "string" }
38
+ }
39
+ },
40
+ "$defs": {
41
+ "phase": {
42
+ "type": "string",
43
+ "enum": ["before_change", "during_change", "after_change", "review"]
44
+ },
45
+ "surface": {
46
+ "type": "string",
47
+ "enum": [
48
+ "config",
49
+ "docs",
50
+ "generated",
51
+ "package",
52
+ "schema",
53
+ "skill",
54
+ "source",
55
+ "template",
56
+ "test",
57
+ "unknown"
58
+ ]
59
+ },
60
+ "input": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": ["phases", "skills", "paths", "changed"],
64
+ "properties": {
65
+ "phases": {
66
+ "type": "array",
67
+ "items": { "$ref": "#/$defs/phase" }
68
+ },
69
+ "skills": {
70
+ "type": "array",
71
+ "items": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }
72
+ },
73
+ "paths": {
74
+ "type": "array",
75
+ "items": { "type": "string" }
76
+ },
77
+ "changed": { "type": "boolean" }
78
+ }
79
+ },
80
+ "analyzedPath": {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": ["path", "surfaces"],
84
+ "properties": {
85
+ "path": { "type": "string" },
86
+ "surfaces": {
87
+ "type": "array",
88
+ "items": { "$ref": "#/$defs/surface" },
89
+ "minItems": 1
90
+ }
91
+ }
92
+ },
93
+ "suggestion": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "required": [
97
+ "script_ref",
98
+ "score",
99
+ "confidence",
100
+ "usage",
101
+ "phases",
102
+ "matched_phases",
103
+ "matched_skills",
104
+ "matched_surfaces",
105
+ "reasons",
106
+ "read_only",
107
+ "mutates",
108
+ "network",
109
+ "risk_level",
110
+ "cost",
111
+ "report_schema_file",
112
+ "run_hint"
113
+ ],
114
+ "properties": {
115
+ "script_ref": {
116
+ "type": "string",
117
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*/[a-z0-9]+(?:-[a-z0-9]+)*$"
118
+ },
119
+ "score": { "type": "integer", "minimum": 0 },
120
+ "confidence": { "type": "string", "enum": ["low", "medium", "high"] },
121
+ "usage": { "type": "string" },
122
+ "phases": {
123
+ "type": "array",
124
+ "items": { "$ref": "#/$defs/phase" },
125
+ "minItems": 1
126
+ },
127
+ "matched_phases": {
128
+ "type": "array",
129
+ "items": { "$ref": "#/$defs/phase" }
130
+ },
131
+ "matched_skills": {
132
+ "type": "array",
133
+ "items": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }
134
+ },
135
+ "matched_surfaces": {
136
+ "type": "array",
137
+ "items": { "$ref": "#/$defs/surface" }
138
+ },
139
+ "reasons": {
140
+ "type": "array",
141
+ "items": { "type": "string" },
142
+ "minItems": 1
143
+ },
144
+ "read_only": { "type": "boolean" },
145
+ "mutates": { "type": "boolean" },
146
+ "network": { "type": "boolean" },
147
+ "risk_level": { "type": "string", "enum": ["low", "medium", "high"] },
148
+ "cost": { "type": "string", "enum": ["low", "medium", "high"] },
149
+ "report_schema_file": {
150
+ "anyOf": [
151
+ { "type": "string", "pattern": "^[a-z0-9-]+\\.schema\\.json$" },
152
+ { "type": "null" }
153
+ ]
154
+ },
155
+ "run_hint": { "type": "string" }
156
+ }
157
+ }
158
+ }
159
+ }
@@ -143,6 +143,38 @@ network = false
143
143
  destructive = false
144
144
  required_after = ["code_change", "behavior_change", "test_change", "public_api_change", "performance_change", "unknown_change"]
145
145
 
146
+ [intents.script_pack_list]
147
+ status = "configured"
148
+ kind = "mustflow_builtin"
149
+ lifecycle = "oneshot"
150
+ run_policy = "agent_allowed"
151
+ description = "List bundled mustflow script-pack utilities and routing metadata read-only."
152
+ argv = ["mf", "script-pack", "list", "--json"]
153
+ cwd = "."
154
+ timeout_seconds = 120
155
+ stdin = "closed"
156
+ success_exit_codes = [0]
157
+ writes = []
158
+ network = false
159
+ destructive = false
160
+ required_after = ["before_task", "docs_change", "public_api_change", "unknown_change"]
161
+
162
+ [intents.script_pack_suggest_changed]
163
+ status = "configured"
164
+ kind = "mustflow_builtin"
165
+ lifecycle = "oneshot"
166
+ run_policy = "agent_allowed"
167
+ description = "Suggest bundled mustflow script-pack utilities for current changed files read-only."
168
+ argv = ["mf", "script-pack", "suggest", "--changed", "--json"]
169
+ cwd = "."
170
+ timeout_seconds = 120
171
+ stdin = "closed"
172
+ success_exit_codes = [0]
173
+ writes = []
174
+ network = false
175
+ destructive = false
176
+ required_after = ["before_task", "docs_change", "public_api_change", "mustflow_docs_change", "unknown_change"]
177
+
146
178
  [intents.prompt_cache_audit]
147
179
  status = "configured"
148
180
  kind = "mustflow_builtin"
@@ -691,7 +691,7 @@ translations = {}
691
691
  [documents."skill.completion-evidence-gate"]
692
692
  source = "locales/en/.mustflow/skills/completion-evidence-gate/SKILL.md"
693
693
  source_locale = "en"
694
- revision = 2
694
+ revision = 3
695
695
  translations = {}
696
696
 
697
697
  [documents."skill.evidence-stall-breaker"]
@@ -709,7 +709,7 @@ translations = {}
709
709
  [documents."skill.public-json-contract-change"]
710
710
  source = "locales/en/.mustflow/skills/public-json-contract-change/SKILL.md"
711
711
  source_locale = "en"
712
- revision = 1
712
+ revision = 2
713
713
  translations = {}
714
714
 
715
715
  [documents."skill.provenance-license-gate"]
@@ -846,7 +846,7 @@ translations = {}
846
846
  [documents."skill.repo-improvement-loop"]
847
847
  source = "locales/en/.mustflow/skills/repo-improvement-loop/SKILL.md"
848
848
  source_locale = "en"
849
- revision = 1
849
+ revision = 2
850
850
  translations = {}
851
851
 
852
852
  [documents."skill.requirement-regression-guard"]
@@ -954,7 +954,7 @@ translations = {}
954
954
  [documents."skill.template-install-surface-sync"]
955
955
  source = "locales/en/.mustflow/skills/template-install-surface-sync/SKILL.md"
956
956
  source_locale = "en"
957
- revision = 1
957
+ revision = 2
958
958
  translations = {}
959
959
 
960
960
  [documents."skill.restricted-handoff-resume"]
@@ -2,7 +2,7 @@
2
2
  mustflow_doc: skill.completion-evidence-gate
3
3
  locale: en
4
4
  canonical: true
5
- revision: 2
5
+ revision: 3
6
6
  lifecycle: mustflow-owned
7
7
  authority: procedure
8
8
  name: completion-evidence-gate
@@ -67,6 +67,7 @@ missing, blocked, failed, stale, or only partially relevant.
67
67
  - Requirement, bug, issue, or external-advice sources that influenced the work.
68
68
  - Command intents run, exit status, and whether the evidence came from `mf run` receipts or lower-confidence direct shell output.
69
69
  - Command intents skipped, missing, unknown, manual-only, failed, timed out, or judged not applicable.
70
+ - Optional script-pack discovery evidence when the command contract exposes `script_pack_list`.
70
71
  - Synchronized surfaces expected by the changed contract: source, tests, fixtures, schemas, templates, manifests, docs, release metadata, generated output, and localized copies.
71
72
  - Known remaining risks, unverified assumptions, blocked decisions, and rollback notes.
72
73
 
@@ -108,6 +109,8 @@ missing, blocked, failed, stale, or only partially relevant.
108
109
  `evidence-stall-breaker` when that pattern affected the task.
109
110
  5. Check synchronization coverage.
110
111
  - For behavior or contract changes, verify whether code, tests, schemas, templates, manifests, docs, fixtures, examples, package metadata, release notes, and localized copies agree.
112
+ - When `.mustflow/config/commands.toml` exposes `script_pack_list`, use it as read-only discovery before choosing optional script-pack checks for the changed surfaces.
113
+ - Treat `repo/generated-boundary` as a useful candidate before or after path-sensitive edits, but run any selected script only when the repository command contract and script metadata allow it.
111
114
  - Use `contract-sync-check`, `cli-output-contract-review`, `api-contract-change`, `release-publish-change`, or a narrower skill when a missing surface needs real follow-up work.
112
115
  6. Calibrate completion language.
113
116
  - Use `verified` only when the relevant configured checks passed and every required surface is covered.
@@ -2,7 +2,7 @@
2
2
  mustflow_doc: skill.public-json-contract-change
3
3
  locale: en
4
4
  canonical: true
5
- revision: 1
5
+ revision: 2
6
6
  lifecycle: mustflow-owned
7
7
  authority: procedure
8
8
  name: public-json-contract-change
@@ -61,6 +61,7 @@ Protect automation consumers from silent JSON, JSONL, stream, schema, fixture, a
61
61
  - The task matches the Use When conditions and does not match the Do Not Use When exclusions.
62
62
  - Existing JSON tests, schemas, docs examples, package fixtures, and compatibility fixtures have been inspected before changing the contract.
63
63
  - Command execution remains governed by `.mustflow/config/commands.toml`; this skill does not authorize raw commands.
64
+ - If `.mustflow/config/commands.toml` exposes `script_pack_list`, it may be used only as read-only discovery for optional script-pack checks.
64
65
 
65
66
  <!-- mustflow-section: allowed-edits -->
66
67
  ## Allowed Edits
@@ -87,7 +88,9 @@ Protect automation consumers from silent JSON, JSONL, stream, schema, fixture, a
87
88
  10. Use snapshot and golden-output files only as review aids. Add or preserve assertions for field presence, primitive types, enum values, null versus missing semantics, stream split, exit code, and schema validation where existing test structure supports it.
88
89
  11. Synchronize schemas, fixtures, examples, package file lists, docs, templates, and release notes when the contract changes. If a surface is intentionally stale or deferred, record why.
89
90
  12. Route version impact through the repository versioning policy when the change is breaking, deprecating, package-visible, or template-visible.
90
- 13. Verify with the narrowest configured command intents that cover JSON contract, docs, package, and mustflow metadata changes.
91
+ 13. Before final verification, use `script_pack_list` when the command contract exposes it to discover optional JSON, schema, or repository-boundary script-pack checks relevant to the changed public contract.
92
+ 14. Run selected scripts only when both the repository command contract and the script metadata allow the action.
93
+ 15. Verify with the narrowest configured command intents that cover JSON contract, docs, package, and mustflow metadata changes.
91
94
 
92
95
  <!-- mustflow-section: postconditions -->
93
96
  ## Postconditions
@@ -2,7 +2,7 @@
2
2
  mustflow_doc: skill.repo-improvement-loop
3
3
  locale: en
4
4
  canonical: true
5
- revision: 1
5
+ revision: 2
6
6
  lifecycle: mustflow-owned
7
7
  authority: procedure
8
8
  name: repo-improvement-loop
@@ -61,6 +61,7 @@ The goal is not to generate many interesting ideas. The goal is to find the high
61
61
  - Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
62
62
  - If unfamiliar areas are involved, enough repository evidence has been inspected to avoid inventing architecture, entrypoints, or user flows.
63
63
  - If external AI output, issue text, webpages, or pasted recommendations are used, `external-prompt-injection-defense` has been applied first.
64
+ - If `.mustflow/config/commands.toml` exposes `script_pack_list`, it may be used only as read-only discovery for optional script-pack checks.
64
65
 
65
66
  <!-- mustflow-section: allowed-edits -->
66
67
  ## Allowed Edits
@@ -80,6 +81,8 @@ The goal is not to generate many interesting ideas. The goal is to find the high
80
81
  - Use recursive mode only as one bounded cycle at a time unless a larger explicit budget is provided.
81
82
  2. Inspect repository evidence before scoring candidates.
82
83
  - Read the smallest set of current files needed to understand project purpose, user path, command contracts, tests, release surface, and existing work in progress.
84
+ - When the command contract exposes `script_pack_list`, use it to discover relevant read-only script-pack helpers before selecting or verifying a candidate improvement.
85
+ - Prefer `repo/generated-boundary` as a candidate helper when an improvement might touch generated output, protected paths, vendor files, caches, or files outside the project root.
83
86
  - If the area is unfamiliar, use `codebase-orientation` before proposing changes.
84
87
  3. Generate repository-specific improvement questions.
85
88
  - High-leverage: Which small change creates the largest user or maintainer benefit?
@@ -102,7 +105,8 @@ The goal is not to generate many interesting ideas. The goal is to find the high
102
105
  - Use `pattern-scout` when local precedent is needed before adding a new shape.
103
106
  - Use `contract-sync-check` when behavior, templates, manifests, schemas, tests, or public docs must stay aligned.
104
107
  7. Verify the selected improvement with the narrowest configured command intents that cover the changed surfaces.
105
- 8. Report the cycle and name the next improvement question revealed by the work.
108
+ 8. Run selected script-pack helpers only when the repository command contract and script metadata allow them.
109
+ 9. Report the cycle and name the next improvement question revealed by the work.
106
110
 
107
111
  <!-- mustflow-section: postconditions -->
108
112
  ## Postconditions
@@ -2,7 +2,7 @@
2
2
  mustflow_doc: skill.template-install-surface-sync
3
3
  locale: en
4
4
  canonical: true
5
- revision: 1
5
+ revision: 2
6
6
  lifecycle: mustflow-owned
7
7
  authority: procedure
8
8
  name: template-install-surface-sync
@@ -61,6 +61,7 @@ Keep the source repository's mustflow workflow files, install templates, manifes
61
61
  - Canonical source locale and template locale policy are known.
62
62
  - Existing template manifest and nearby tests have been inspected before adding or removing installed files.
63
63
  - Command execution remains governed by `.mustflow/config/commands.toml`; this skill does not authorize raw commands.
64
+ - If `.mustflow/config/commands.toml` exposes `script_pack_list`, it may be used only as read-only discovery for optional script-pack checks.
64
65
 
65
66
  <!-- mustflow-section: allowed-edits -->
66
67
  ## Allowed Edits
@@ -85,8 +86,10 @@ Keep the source repository's mustflow workflow files, install templates, manifes
85
86
  8. Check install/update behavior. If new files, profile membership, conflict policy, or managed targets change, inspect init/update tests and package tests that assert installed output, manifest lock behavior, backups, or diff previews.
86
87
  9. Check package and release surfaces. Installed template files must be included in package output and covered by release-sensitive tests when the package includes templates.
87
88
  10. Check public docs and examples only when they list installed files, profiles, init/update behavior, or workflow expectations.
88
- 11. Keep generated files generated. Refresh generated maps or package output only with configured intents, and report generated surfaces that are stale but outside the current allowed command set.
89
- 12. Verify with related tests first, then release and docs checks when package, template, manifest, or docs surfaces changed.
89
+ 11. When the command contract exposes `script_pack_list`, use it to discover optional script-pack helpers before editing or verifying template surfaces. `repo/generated-boundary` is useful for checking candidate template, manifest, generated-output, vendor, cache, or protected paths.
90
+ 12. Keep generated files generated. Refresh generated maps or package output only with configured intents, and report generated surfaces that are stale but outside the current allowed command set.
91
+ 13. Run selected script-pack helpers only when the repository command contract and script metadata allow them.
92
+ 14. Verify with related tests first, then release and docs checks when package, template, manifest, or docs surfaces changed.
90
93
 
91
94
  <!-- mustflow-section: postconditions -->
92
95
  ## Postconditions
@@ -1,6 +1,6 @@
1
1
  id = "default"
2
2
  name = "default"
3
- version = "2.74.3"
3
+ version = "2.74.5"
4
4
  description = "Minimal workflow for LLM agents to read, edit, and verify their work in a repository."
5
5
  common_root = "common"
6
6
  locales_root = "locales"