@mmerterden/multi-agent-pipeline 20.40.0 → 20.41.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.
- package/CHANGELOG.md +50 -0
- package/README.md +4 -1
- package/README.tr.md +4 -1
- package/docs/adr/0019-product-tree.md +143 -0
- package/docs/adr/README.md +1 -0
- package/docs/ecosystem.md +9 -9
- package/docs/facts.json +4 -4
- package/docs/features.md +6 -0
- package/install/claude.mjs +12 -3
- package/install/templates/claude-hooks.json +12 -1
- package/manifest.json +79 -60
- package/package.json +2 -2
- package/pipeline/commands/multi-agent/review-analysis/SKILL.md +1 -1
- package/pipeline/contract/types/index.d.ts +53 -49
- package/pipeline/lib/context-budget.mjs +5 -42
- package/pipeline/lib/hook-registration.mjs +5 -0
- package/pipeline/lib/md2confluence-v3.py +12 -4
- package/pipeline/lib/tiered-budget.mjs +87 -0
- package/pipeline/multi-agent-refs/analysis/review.md +23 -1
- package/pipeline/multi-agent-refs/features/code-graph.md +11 -1
- package/pipeline/multi-agent-refs/features/doctor.md +32 -1
- package/pipeline/multi-agent-refs/features/product-tree.md +68 -0
- package/pipeline/multi-agent-refs/features/unattended-security.md +88 -1
- package/pipeline/multi-agent-refs/features/usage-reporting.md +31 -0
- package/pipeline/multi-agent-refs/help/en.md +1 -0
- package/pipeline/multi-agent-refs/help/tr.md +1 -0
- package/pipeline/multi-agent-refs/knowledge.md +58 -0
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +2 -0
- package/pipeline/office/index.html +13 -7
- package/pipeline/office/toolkit.json +1 -1
- package/pipeline/preferences-template.json +1 -0
- package/pipeline/schemas/learnings-ledger.schema.json +35 -2
- package/pipeline/schemas/office-archive.schema.json +225 -128
- package/pipeline/schemas/prefs.schema.json +83 -0
- package/pipeline/schemas/product-tree-overlay.schema.json +57 -0
- package/pipeline/schemas/product-tree.schema.json +136 -0
- package/pipeline/schemas/toolkit-path-params.json +1 -1
- package/pipeline/scripts/_eval-stats.mjs +182 -0
- package/pipeline/scripts/_guard_rules.py +130 -1
- package/pipeline/scripts/_learnings-promotion.mjs +229 -0
- package/pipeline/scripts/_locate.mjs +539 -0
- package/pipeline/scripts/_memory-policy.mjs +213 -14
- package/pipeline/scripts/_product-tree-extract.mjs +761 -0
- package/pipeline/scripts/_product-tree.mjs +923 -0
- package/pipeline/scripts/_retrieval.mjs +13 -2
- package/pipeline/scripts/_stack-routing.mjs +1 -0
- package/pipeline/scripts/_user_guard_rules.py +744 -0
- package/pipeline/scripts/agent-guard.py +61 -5
- package/pipeline/scripts/agent-guard.sh +8 -1
- package/pipeline/scripts/doctor.mjs +157 -1
- package/pipeline/scripts/graph-query.mjs +257 -17
- package/pipeline/scripts/learnings-ledger.mjs +664 -43
- package/pipeline/scripts/note-mcp-failure.mjs +356 -0
- package/pipeline/scripts/note-mcp-failure.sh +19 -0
- package/pipeline/scripts/note-skill-use.mjs +93 -23
- package/pipeline/scripts/office-archive.mjs +23 -10
- package/pipeline/scripts/office-memory.mjs +4 -1
- package/pipeline/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/scripts/product-tree-eval.mjs +685 -0
- package/pipeline/scripts/product-tree.mjs +544 -0
- package/pipeline/skills/.skill-manifest.json +11 -7
- package/pipeline/skills/.skills-index.json +12 -1
- package/pipeline/skills/shared/README.md +4 -3
- package/pipeline/skills/shared/core/google-play-compliance/references/examples.md +1 -1
- package/pipeline/skills/shared/core/multi-agent-review-analysis/SKILL.md +1 -1
- package/pipeline/skills/shared/external/backlog/SKILL.md +1 -1
- package/pipeline/skills/shared/external/localization-reuse-map/SKILL.md +1 -1
- package/pipeline/skills/shared/external/spec-persona-walk/SKILL.md +118 -0
- package/pipeline/skills/shared/external/spec-persona-walk/evals/evals.json +50 -0
- package/pipeline/skills/shared/external/spec-persona-walk/scripts/persona-walk-anchors.mjs +443 -0
- package/pipeline/skills/shared/external/storekit/SKILL.md +1 -1
- package/pipeline/skills/shared/external/swiftdata/SKILL.md +1 -1
- package/pipeline/skills/skill-copies.json +5 -1
- package/pipeline/skills/skills-index.md +2 -1
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"source": {
|
|
42
42
|
"type": "string",
|
|
43
|
-
"enum": ["triage", "transcript-mining", "manual"],
|
|
44
|
-
"description": "v16.27+ - who found this. `triage` is the Phase 4 distill, `transcript-mining` is learn-from-transcripts.mjs correlating a failure with the retry that worked, `manual` is a human or a model writing it directly. Kept separate because the three have different error modes and learning-curve.mjs has to be able to say which kind of learning is actually accumulating: a machine-mined path correction and a model's architectural claim are not the same evidence, and a metric that pools them can rise while the useful half is flat. Absent means the row predates the field."
|
|
43
|
+
"enum": ["triage", "transcript-mining", "manual", "promotion"],
|
|
44
|
+
"description": "v16.27+ - who found this. `triage` is the Phase 4 distill, `transcript-mining` is learn-from-transcripts.mjs correlating a failure with the retry that worked, `manual` is a human or a model writing it directly, `promotion` is a global row written by learnings-ledger.mjs promote --accept from entries that recur across repositories. Kept separate because the three have different error modes and learning-curve.mjs has to be able to say which kind of learning is actually accumulating: a machine-mined path correction and a model's architectural claim are not the same evidence, and a metric that pools them can rise while the useful half is flat. Absent means the row predates the field."
|
|
45
45
|
},
|
|
46
46
|
"confidence": {
|
|
47
47
|
"type": "string",
|
|
@@ -61,6 +61,39 @@
|
|
|
61
61
|
"items": { "type": "string", "pattern": "^L:[0-9a-f]{8}$" },
|
|
62
62
|
"description": "Ids of earlier entries in the same ledger that this entry replaces (learnings-ledger.mjs add --supersedes). The older rows stay in the append-only file; brief and profile leave a superseded entry out, timeline and show name the entry that superseded it. Only a link to an earlier line counts. Absent on rows that replace nothing."
|
|
63
63
|
},
|
|
64
|
+
"promoted_from": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": ["candidate", "similarity", "sources"],
|
|
68
|
+
"description": "Only on a row of the global ledger ($HOME/.claude/memory/multi-agent/_global/learnings-ledger.jsonl): the candidate a person approved with learnings-ledger.mjs promote --accept, its lowest pairwise word-pair similarity, and the per-repository entries it was promoted from. brief and profile leave the row out in every repository named in `sources`.",
|
|
69
|
+
"properties": {
|
|
70
|
+
"candidate": { "type": "string", "pattern": "^P:[0-9a-f]{8}$" },
|
|
71
|
+
"similarity": { "type": "number", "minimum": 0, "maximum": 1 },
|
|
72
|
+
"sources": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"minItems": 2,
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["repo", "id"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"repo": { "type": "string", "minLength": 1 },
|
|
81
|
+
"id": { "type": "string", "pattern": "^L:[0-9a-f]{8}$" }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"retracts": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": false,
|
|
90
|
+
"required": ["id", "reason"],
|
|
91
|
+
"description": "Only on a row of the global ledger: a person took back the global learning `id` with learnings-ledger.mjs promote --retract, for `reason`. The retraction is appended; the learning's own row is not rewritten. brief and profile leave a retracted learning out in every repository, show reports the retraction, and the learning is not proposed for promotion again. A row with this field is a retraction, never a learning of its own.",
|
|
92
|
+
"properties": {
|
|
93
|
+
"id": { "type": "string", "pattern": "^G:[0-9a-f]{8}$" },
|
|
94
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
95
|
+
}
|
|
96
|
+
},
|
|
64
97
|
"diagnosis": {
|
|
65
98
|
"type": "string",
|
|
66
99
|
"description": "Optional causal 'why' behind the lesson (Reflexion): the root-cause reasoning that turns a detected failure into a prevented one. Rendered in the brief as '(why: ...)'. Absent for plain facts/conventions."
|
|
@@ -2,167 +2,264 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/office-archive.schema.json",
|
|
4
4
|
"title": "Memory archive",
|
|
5
|
-
"description": "What GET /v1/archive returns and `office-archive.mjs --json` prints: per repository, the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired, and entries a later entry superseded, are left out and counted apart), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Every text is redacted and cut short. Local only: never offered to a phone or a remote carrier.",
|
|
5
|
+
"description": "What GET /v1/archive returns and `office-archive.mjs --json` prints: per repository, the newest decisions with their rationale, security notes and learnings from the learnings ledger (entries their feedback retired, and entries a later entry superseded, are left out and counted apart), and the hubs, clusters, surprising connections and questions of the code graph report when one exists. Learnings promoted across repositories sit apart under `global`. Every text is redacted and cut short. Local only: never offered to a phone or a remote carrier.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": ["contractVersion", "generatedAt", "repos"],
|
|
9
9
|
"$defs": {
|
|
10
|
-
"count": {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
10
|
+
"count": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"minimum": 0
|
|
13
|
+
},
|
|
14
|
+
"text": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"maxLength": 240
|
|
17
|
+
},
|
|
18
|
+
"cell": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"maxLength": 160
|
|
21
|
+
},
|
|
22
|
+
"at": {
|
|
23
|
+
"type": ["string", "null"]
|
|
24
|
+
},
|
|
25
|
+
"scope": {
|
|
26
|
+
"type": ["string", "null"],
|
|
27
|
+
"maxLength": 120
|
|
28
|
+
},
|
|
15
29
|
"entry": {
|
|
16
30
|
"type": "object",
|
|
17
31
|
"additionalProperties": false,
|
|
18
32
|
"required": ["statement", "scope", "at"],
|
|
19
33
|
"properties": {
|
|
20
|
-
"statement": {
|
|
21
|
-
|
|
22
|
-
|
|
34
|
+
"statement": {
|
|
35
|
+
"$ref": "#/$defs/text"
|
|
36
|
+
},
|
|
37
|
+
"scope": {
|
|
38
|
+
"$ref": "#/$defs/scope"
|
|
39
|
+
},
|
|
40
|
+
"at": {
|
|
41
|
+
"$ref": "#/$defs/at"
|
|
42
|
+
}
|
|
23
43
|
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"properties": {
|
|
27
|
-
"contractVersion": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"pattern": "^1\\.[0-9]+\\.[0-9]+$",
|
|
30
|
-
"x-sensitivity": "none"
|
|
31
44
|
},
|
|
32
|
-
"
|
|
33
|
-
"type": "
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
"shelf": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["repo", "counts", "decisions", "securityNotes", "learnings", "graph"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"repo": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"counts": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": ["decisions", "securityNotes", "learnings", "retired", "superseded"],
|
|
57
|
+
"properties": {
|
|
58
|
+
"decisions": {
|
|
59
|
+
"$ref": "#/$defs/count"
|
|
60
|
+
},
|
|
61
|
+
"securityNotes": {
|
|
62
|
+
"$ref": "#/$defs/count"
|
|
63
|
+
},
|
|
64
|
+
"learnings": {
|
|
65
|
+
"$ref": "#/$defs/count"
|
|
66
|
+
},
|
|
67
|
+
"retired": {
|
|
68
|
+
"$ref": "#/$defs/count",
|
|
69
|
+
"description": "Entries left out because their feedback retired them."
|
|
70
|
+
},
|
|
71
|
+
"superseded": {
|
|
72
|
+
"$ref": "#/$defs/count",
|
|
73
|
+
"description": "Entries left out because a later entry names them in its supersedes list. An entry both retired and superseded counts as retired."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"decisions": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"maxItems": 8,
|
|
80
|
+
"items": {
|
|
48
81
|
"type": "object",
|
|
49
82
|
"additionalProperties": false,
|
|
50
|
-
"required": ["
|
|
83
|
+
"required": ["statement", "scope", "at", "rationale", "confidence"],
|
|
51
84
|
"properties": {
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"$ref": "#/$defs/
|
|
57
|
-
|
|
85
|
+
"statement": {
|
|
86
|
+
"$ref": "#/$defs/text"
|
|
87
|
+
},
|
|
88
|
+
"scope": {
|
|
89
|
+
"$ref": "#/$defs/scope"
|
|
90
|
+
},
|
|
91
|
+
"at": {
|
|
92
|
+
"$ref": "#/$defs/at"
|
|
93
|
+
},
|
|
94
|
+
"rationale": {
|
|
95
|
+
"type": ["string", "null"],
|
|
96
|
+
"maxLength": 240
|
|
58
97
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"description": "Entries left out because a later entry names them in its supersedes list. An entry both retired and superseded counts as retired."
|
|
98
|
+
"confidence": {
|
|
99
|
+
"enum": ["low", "medium", "high", null]
|
|
62
100
|
}
|
|
63
101
|
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"securityNotes": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"maxItems": 8,
|
|
107
|
+
"items": {
|
|
108
|
+
"$ref": "#/$defs/entry"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"learnings": {
|
|
112
|
+
"type": "array",
|
|
113
|
+
"maxItems": 8,
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": ["kind", "statement", "scope", "at"],
|
|
118
|
+
"properties": {
|
|
119
|
+
"kind": {
|
|
120
|
+
"enum": ["fact", "convention", "rejected-preference"]
|
|
121
|
+
},
|
|
122
|
+
"statement": {
|
|
123
|
+
"$ref": "#/$defs/text"
|
|
124
|
+
},
|
|
125
|
+
"scope": {
|
|
126
|
+
"$ref": "#/$defs/scope"
|
|
127
|
+
},
|
|
128
|
+
"at": {
|
|
129
|
+
"$ref": "#/$defs/at"
|
|
78
130
|
}
|
|
79
131
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"maxItems": 8,
|
|
89
|
-
"items": {
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"graph": {
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"type": "null"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
90
140
|
"type": "object",
|
|
91
141
|
"additionalProperties": false,
|
|
92
|
-
"required": ["
|
|
142
|
+
"required": ["builtAt", "hubs", "clusters", "surprising", "questions"],
|
|
93
143
|
"properties": {
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
"properties": {
|
|
118
|
-
"name": { "$ref": "#/$defs/cell" },
|
|
119
|
-
"kind": { "$ref": "#/$defs/cell" },
|
|
120
|
-
"degree": { "type": "number", "minimum": 0 },
|
|
121
|
-
"path": { "$ref": "#/$defs/cell" }
|
|
144
|
+
"builtAt": {
|
|
145
|
+
"$ref": "#/$defs/at"
|
|
146
|
+
},
|
|
147
|
+
"hubs": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"maxItems": 8,
|
|
150
|
+
"items": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["name", "kind", "degree", "path"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"name": {
|
|
156
|
+
"$ref": "#/$defs/cell"
|
|
157
|
+
},
|
|
158
|
+
"kind": {
|
|
159
|
+
"$ref": "#/$defs/cell"
|
|
160
|
+
},
|
|
161
|
+
"degree": {
|
|
162
|
+
"type": "number",
|
|
163
|
+
"minimum": 0
|
|
164
|
+
},
|
|
165
|
+
"path": {
|
|
166
|
+
"$ref": "#/$defs/cell"
|
|
122
167
|
}
|
|
123
168
|
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"
|
|
136
|
-
"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"clusters": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"maxItems": 8,
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": false,
|
|
177
|
+
"required": ["files", "cohesion", "around", "where"],
|
|
178
|
+
"properties": {
|
|
179
|
+
"files": {
|
|
180
|
+
"type": "number",
|
|
181
|
+
"minimum": 0
|
|
182
|
+
},
|
|
183
|
+
"cohesion": {
|
|
184
|
+
"type": "number"
|
|
185
|
+
},
|
|
186
|
+
"around": {
|
|
187
|
+
"$ref": "#/$defs/cell"
|
|
188
|
+
},
|
|
189
|
+
"where": {
|
|
190
|
+
"$ref": "#/$defs/cell"
|
|
137
191
|
}
|
|
138
192
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"surprising": {
|
|
196
|
+
"type": "array",
|
|
197
|
+
"maxItems": 8,
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "object",
|
|
200
|
+
"additionalProperties": false,
|
|
201
|
+
"required": ["from", "to", "kind", "links"],
|
|
202
|
+
"properties": {
|
|
203
|
+
"from": {
|
|
204
|
+
"$ref": "#/$defs/cell"
|
|
205
|
+
},
|
|
206
|
+
"to": {
|
|
207
|
+
"$ref": "#/$defs/cell"
|
|
208
|
+
},
|
|
209
|
+
"kind": {
|
|
210
|
+
"$ref": "#/$defs/cell"
|
|
211
|
+
},
|
|
212
|
+
"links": {
|
|
213
|
+
"type": "number",
|
|
214
|
+
"minimum": 0
|
|
152
215
|
}
|
|
153
216
|
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"questions": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"maxItems": 8,
|
|
222
|
+
"items": {
|
|
223
|
+
"$ref": "#/$defs/cell"
|
|
159
224
|
}
|
|
160
225
|
}
|
|
161
226
|
}
|
|
162
|
-
|
|
163
|
-
|
|
227
|
+
}
|
|
228
|
+
]
|
|
164
229
|
}
|
|
165
230
|
}
|
|
166
231
|
}
|
|
232
|
+
},
|
|
233
|
+
"properties": {
|
|
234
|
+
"contractVersion": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"pattern": "^1\\.[0-9]+\\.[0-9]+$",
|
|
237
|
+
"x-sensitivity": "none"
|
|
238
|
+
},
|
|
239
|
+
"generatedAt": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"format": "date-time",
|
|
242
|
+
"x-sensitivity": "none"
|
|
243
|
+
},
|
|
244
|
+
"repos": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"maxItems": 30,
|
|
247
|
+
"x-sensitivity": "local",
|
|
248
|
+
"items": {
|
|
249
|
+
"$ref": "#/$defs/shelf"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
"global": {
|
|
253
|
+
"description": "The global ledger (written only by learnings-ledger.mjs promote --accept) on a shelf of its own, in the same shape as a repository's with `repo` set to `_global` and `graph` null; null until a learning has been promoted. Never listed in `repos`.",
|
|
254
|
+
"x-sensitivity": "local",
|
|
255
|
+
"oneOf": [
|
|
256
|
+
{
|
|
257
|
+
"type": "null"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"$ref": "#/$defs/shelf"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
167
264
|
}
|
|
168
265
|
}
|
|
@@ -1189,6 +1189,18 @@
|
|
|
1189
1189
|
"type": "boolean",
|
|
1190
1190
|
"default": true,
|
|
1191
1191
|
"description": "Deduplicated PR review comments: before posting an inline comment, scan existing PR comments for a stable fingerprint marker (sha-16 of path|line|issue). If a comment with the same marker exists, skip - preserves audit trail without flooding the PR on re-runs. Provider-agnostic: GitHub /pulls/{n}/comments + /issues/{n}/comments and Bitbucket Server /pull-requests/{id}/activities?fromType=COMMENT are both checked. Set to false to restore the pre-v8.6 behavior (every run posts fresh comments, original spec)."
|
|
1192
|
+
},
|
|
1193
|
+
"personaWalk": {
|
|
1194
|
+
"type": "object",
|
|
1195
|
+
"additionalProperties": false,
|
|
1196
|
+
"description": "Spec persona walk in /multi-agent:review-analysis: up to four personas derived from the document walk its flows and report missing states, unhandled errors, accessibility gaps and conflicting rules. persona-walk-anchors.mjs drops every finding whose section or quote anchor is not in the document.",
|
|
1197
|
+
"properties": {
|
|
1198
|
+
"enabled": {
|
|
1199
|
+
"type": "boolean",
|
|
1200
|
+
"default": false,
|
|
1201
|
+
"description": "Run the persona walk as an extra review step. Off by default until a live run of eval-persona-walk.mjs meets the bar in pipeline/eval/README.md on the seeded-defect corpus."
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1192
1204
|
}
|
|
1193
1205
|
}
|
|
1194
1206
|
},
|
|
@@ -1471,6 +1483,18 @@
|
|
|
1471
1483
|
}
|
|
1472
1484
|
}
|
|
1473
1485
|
},
|
|
1486
|
+
"mcpFailures": {
|
|
1487
|
+
"type": "object",
|
|
1488
|
+
"additionalProperties": false,
|
|
1489
|
+
"description": "The local MCP failure log note-mcp-failure.sh writes after each failed MCP tool call (Claude Code only): the server and tool from the tool name, the time and a closed error class, never arguments, output or error text. Nothing is probed. It stays on this machine under ~/.claude/logs/multi-agent/mcp-failures.jsonl; doctor's mcp-failures check reads it and lights INFO for a server that failed five times or more in 24 hours. usageLog.optOut true turns it off as well.",
|
|
1490
|
+
"properties": {
|
|
1491
|
+
"enabled": {
|
|
1492
|
+
"type": "boolean",
|
|
1493
|
+
"default": true,
|
|
1494
|
+
"description": "false stops the hook writing rows; rows already written stay until removed by hand or by uninstall --all-data."
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1474
1498
|
"analysisPhase": {
|
|
1475
1499
|
"type": "object",
|
|
1476
1500
|
"additionalProperties": false,
|
|
@@ -1675,6 +1699,25 @@
|
|
|
1675
1699
|
}
|
|
1676
1700
|
}
|
|
1677
1701
|
},
|
|
1702
|
+
"productTree": {
|
|
1703
|
+
"type": "object",
|
|
1704
|
+
"additionalProperties": false,
|
|
1705
|
+
"description": "v20.41+ - the screen layer over the code graph (ADR-0019), built by pipeline/scripts/product-tree.mjs into ~/.claude/knowledge/<project>/product-tree.json: screens, routes, flows, localized strings, endpoints and tests, derived without a model. When enabled, Phase 0 locates the task text in it and Phase 1 injects the matching subtree. Off by default until the measured go / no-go in ADR-0019 says otherwise.",
|
|
1706
|
+
"properties": {
|
|
1707
|
+
"enabled": {
|
|
1708
|
+
"type": "boolean",
|
|
1709
|
+
"default": false,
|
|
1710
|
+
"description": "Master switch. When false, no tree is built, located or injected."
|
|
1711
|
+
},
|
|
1712
|
+
"maxChars": {
|
|
1713
|
+
"type": "integer",
|
|
1714
|
+
"minimum": 500,
|
|
1715
|
+
"maximum": 10000,
|
|
1716
|
+
"default": 6000,
|
|
1717
|
+
"description": "Character cap on the injected subtree. Lines are dropped whole, lowest ranked first, by fitToBudget."
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1678
1721
|
"devCritic": {
|
|
1679
1722
|
"type": "object",
|
|
1680
1723
|
"additionalProperties": false,
|
|
@@ -1957,6 +2000,46 @@
|
|
|
1957
2000
|
"default": [],
|
|
1958
2001
|
"description": "Absolute paths (a leading ~ is expanded) of checkouts kept as read-only references: agent-guard.sh refuses an Edit, Write or NotebookEdit whose target is inside one, and a git commit, push, merge, cherry-pick, revert, am, rebase or tag that runs in one (after any cd or git -C on the line). Attended and unattended alike. Empty means no repository is protected this way."
|
|
1959
2002
|
},
|
|
2003
|
+
"guardRules": {
|
|
2004
|
+
"type": "array",
|
|
2005
|
+
"maxItems": 64,
|
|
2006
|
+
"default": [],
|
|
2007
|
+
"description": "The user's own agent-guard rules (scripts/_user_guard_rules.py), applied after every built-in rule and only ever stricter: a rule never allows what the built-in guard refuses or asks about. Each rule searches its tool's text with a regex: the command for Bash, the target path for Edit (also NotebookEdit, and MultiEdit where the guard is registered on it), Write and Read, and the tool input as compact JSON for a toolkit tool. warn lets the call proceed with a note, ask raises the confirmation prompt, block refuses; unattended, ask is block. A pattern with a back-reference, or one that does not compile, is invalid; every other pattern runs under a 1-second budget, block rules first, each rule with its own share, and doctor names one with a slow shape. A rule that gives no answer (out of time, or input past 65,536 characters) refuses unattended and asks attended when it is an ask or block rule. A preferences file that does not parse, or a guardRules that is not a list, applies no rule: unattended it refuses every call a rule could govern when the file names guardRules, and attended each such call carries a note. An invalid rule is ignored and reported by doctor's guard-rules check, except that an invalid block rule refuses its tool unattended. Messages name the id and reason, never the matched text. A Read rule needs agent-guard.sh registered on Read, which the default hooks do not do; doctor reports it. A Read rule does not cover a shell read such as cat; that needs a Bash rule. Empty adds nothing.",
|
|
2008
|
+
"items": {
|
|
2009
|
+
"type": "object",
|
|
2010
|
+
"additionalProperties": false,
|
|
2011
|
+
"required": ["id", "tool", "match", "action", "reason"],
|
|
2012
|
+
"properties": {
|
|
2013
|
+
"id": {
|
|
2014
|
+
"type": "string",
|
|
2015
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
2016
|
+
"description": "Unique name shown in every message the rule produces."
|
|
2017
|
+
},
|
|
2018
|
+
"tool": {
|
|
2019
|
+
"type": "string",
|
|
2020
|
+
"pattern": "^(?:Bash|Edit|Write|Read|mcp__multi-agent-toolkit__[A-Za-z0-9_*?]{1,80})$",
|
|
2021
|
+
"description": "Bash, Edit (also NotebookEdit, and MultiEdit where the guard is registered on it), Write, Read, or a glob over toolkit tool names such as mcp__multi-agent-toolkit__web_*. A step of agent_run_steps is judged as a call of its own tool."
|
|
2022
|
+
},
|
|
2023
|
+
"match": {
|
|
2024
|
+
"type": "string",
|
|
2025
|
+
"minLength": 1,
|
|
2026
|
+
"maxLength": 512,
|
|
2027
|
+
"description": "Python regular expression searched anywhere in the tool's text; inline flags such as (?i) work."
|
|
2028
|
+
},
|
|
2029
|
+
"action": {
|
|
2030
|
+
"type": "string",
|
|
2031
|
+
"enum": ["warn", "ask", "block"]
|
|
2032
|
+
},
|
|
2033
|
+
"reason": {
|
|
2034
|
+
"type": "string",
|
|
2035
|
+
"minLength": 1,
|
|
2036
|
+
"maxLength": 300,
|
|
2037
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f]*\\S[^\\u0000-\\u001f\\u007f]*$",
|
|
2038
|
+
"description": "One line shown with the rule id when it applies."
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
1960
2043
|
"attendedCommitGate": {
|
|
1961
2044
|
"type": "object",
|
|
1962
2045
|
"additionalProperties": false,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/mmerterden/multi-agent-pipeline/schemas/product-tree-overlay.schema.json",
|
|
4
|
+
"title": "Product tree overlay row",
|
|
5
|
+
"description": "One line of ~/.claude/knowledge/<project>/product-tree-overlay.jsonl, the append-only record of nodes a model proposed and a person agreed to or rejected. A proposal always carries evidence that points into the repository; only a person at a terminal, in an attended run, writes agree or reject. A proposal without a later agree row is never used as fact.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["id", "ts", "op", "by"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"id": { "type": "string", "pattern": "^[PAR]:[0-9a-f]{8}$" },
|
|
11
|
+
"ts": { "type": "string" },
|
|
12
|
+
"op": { "enum": ["propose", "agree", "reject"] },
|
|
13
|
+
"by": { "enum": ["model", "human"] },
|
|
14
|
+
"node": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": ["kind", "name"],
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"properties": {
|
|
19
|
+
"kind": { "enum": ["journey", "flow", "screen", "feature", "rule", "scenario", "event"] },
|
|
20
|
+
"name": { "type": "string", "minLength": 1 },
|
|
21
|
+
"parent": { "type": "string" }
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"ref": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^P:[0-9a-f]{8}$",
|
|
27
|
+
"description": "agree / reject: the proposal this row decides."
|
|
28
|
+
},
|
|
29
|
+
"evidence": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"required": ["path", "line"],
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"properties": {
|
|
36
|
+
"path": { "type": "string", "minLength": 1 },
|
|
37
|
+
"line": { "type": "integer", "minimum": 1 },
|
|
38
|
+
"text": { "type": "string" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"note": { "type": "string" }
|
|
43
|
+
},
|
|
44
|
+
"allOf": [
|
|
45
|
+
{
|
|
46
|
+
"if": { "properties": { "op": { "const": "propose" } } },
|
|
47
|
+
"then": {
|
|
48
|
+
"required": ["node", "evidence"],
|
|
49
|
+
"properties": { "by": { "const": "model" }, "evidence": { "minItems": 1 } }
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"if": { "properties": { "op": { "enum": ["agree", "reject"] } } },
|
|
54
|
+
"then": { "required": ["ref"], "properties": { "by": { "const": "human" } } }
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|