@mmerterden/multi-agent-pipeline 23.3.0 → 23.4.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 (224) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +25 -6
  3. package/README.tr.md +26 -7
  4. package/docs/adr/0008-installer-modularization-and-secret-leak-defense.md +1 -1
  5. package/docs/adr/0010-own-code-graph.md +299 -8
  6. package/docs/architecture.md +3 -3
  7. package/docs/ecosystem.md +10 -10
  8. package/docs/engineering.md +4 -4
  9. package/docs/facts.json +8 -8
  10. package/docs/features.md +5 -5
  11. package/docs/performance.md +17 -17
  12. package/install/_dev-only-files.mjs +9 -0
  13. package/install/claude.mjs +28 -2
  14. package/install/templates/claude-hooks.json +32 -1
  15. package/manifest.json +223 -155
  16. package/package.json +11 -3
  17. package/pipeline/commands/multi-agent/SKILL.md +1 -1
  18. package/pipeline/commands/multi-agent/design-check/SKILL.md +2 -2
  19. package/pipeline/commands/multi-agent/diff-explain/SKILL.md +3 -3
  20. package/pipeline/commands/multi-agent/graph/SKILL.md +57 -24
  21. package/pipeline/commands/multi-agent/pair/SKILL.md +92 -0
  22. package/pipeline/commands/multi-agent/prune-prompts/SKILL.md +1 -1
  23. package/pipeline/commands/multi-agent/search/SKILL.md +7 -1
  24. package/pipeline/commands/multi-agent/status/SKILL.md +4 -0
  25. package/pipeline/commands/multi-agent/sync/SKILL.md +3 -3
  26. package/pipeline/contract/CHANGELOG.md +49 -0
  27. package/pipeline/contract/build.mjs +13 -1
  28. package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
  29. package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
  30. package/pipeline/contract/fixtures/runs-awaiting-question.json +4 -1
  31. package/pipeline/contract/fixtures/runs-empty.json +1 -1
  32. package/pipeline/contract/fixtures/runs-failed.json +4 -1
  33. package/pipeline/contract/fixtures/runs-old-schema.json +3 -0
  34. package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +4 -1
  35. package/pipeline/contract/fixtures/runs-pr-opened.json +4 -1
  36. package/pipeline/contract/fixtures/runs-running.json +4 -1
  37. package/pipeline/contract/manifest.json +28 -15
  38. package/pipeline/contract/types/index.d.ts +55 -3
  39. package/pipeline/lib/detach-self.mjs +95 -0
  40. package/pipeline/lib/public-mcp-servers.mjs +33 -0
  41. package/pipeline/lib/rotated-log.mjs +93 -0
  42. package/pipeline/lib/tls-trust.mjs +29 -0
  43. package/pipeline/lib/usage-lifecycle.mjs +9 -11
  44. package/pipeline/lib/usage-names.generated.mjs +614 -0
  45. package/pipeline/lib/usage-run-key.mjs +235 -0
  46. package/pipeline/lib/usage-vocab.mjs +210 -0
  47. package/pipeline/multi-agent-refs/analysis/intake.md +2 -2
  48. package/pipeline/multi-agent-refs/analysis/render.md +1 -1
  49. package/pipeline/multi-agent-refs/channels/generator.md +4 -5
  50. package/pipeline/multi-agent-refs/cross-cli-contract.md +3 -3
  51. package/pipeline/multi-agent-refs/design-check/scope-and-ledger.md +1 -1
  52. package/pipeline/multi-agent-refs/features/code-graph.md +146 -11
  53. package/pipeline/multi-agent-refs/features/code-intelligence.md +16 -14
  54. package/pipeline/multi-agent-refs/features/dev-critic.md +7 -7
  55. package/pipeline/multi-agent-refs/features/model-fallback.md +6 -4
  56. package/pipeline/multi-agent-refs/features/remote-control.md +252 -0
  57. package/pipeline/multi-agent-refs/features/review-delta.md +1 -1
  58. package/pipeline/multi-agent-refs/features/review-file-set.md +3 -3
  59. package/pipeline/multi-agent-refs/features/review-multi-repo.md +1 -1
  60. package/pipeline/multi-agent-refs/features/session-brief.md +42 -0
  61. package/pipeline/multi-agent-refs/features/skill-conformance.md +3 -3
  62. package/pipeline/multi-agent-refs/features/usage-reporting.md +252 -24
  63. package/pipeline/multi-agent-refs/help/en.md +3 -2
  64. package/pipeline/multi-agent-refs/help/tr.md +3 -2
  65. package/pipeline/multi-agent-refs/knowledge.md +1 -1
  66. package/pipeline/multi-agent-refs/orchestrator/dispatcher.md +1 -1
  67. package/pipeline/multi-agent-refs/phases/operations.md +2 -2
  68. package/pipeline/multi-agent-refs/phases/phase-0-init.md +13 -12
  69. package/pipeline/multi-agent-refs/phases/phase-1-plan.md +4 -4
  70. package/pipeline/multi-agent-refs/phases/phase-3-review.md +2 -0
  71. package/pipeline/multi-agent-refs/phases/phase-5-report.md +1 -1
  72. package/pipeline/multi-agent-refs/platform-parity.md +2 -2
  73. package/pipeline/multi-agent-refs/wiki-capture.md +3 -17
  74. package/pipeline/office/index.html +1207 -233
  75. package/pipeline/office/toolkit.json +1 -1
  76. package/pipeline/rules/outside-the-pipeline.md +1 -1
  77. package/pipeline/schemas/activity.schema.json +23 -0
  78. package/pipeline/schemas/agent-state.schema.json +6 -1
  79. package/pipeline/schemas/code-graph-calls.schema.json +254 -0
  80. package/pipeline/schemas/code-graph-docs.schema.json +223 -0
  81. package/pipeline/schemas/code-graph-infra.schema.json +227 -0
  82. package/pipeline/schemas/code-graph.schema.json +2 -2
  83. package/pipeline/schemas/examples/design-check-config.json +27 -0
  84. package/pipeline/schemas/learning-curve.schema.json +67 -0
  85. package/pipeline/schemas/office-jobs.json +69 -2
  86. package/pipeline/schemas/office-jobs.schema.json +8 -1
  87. package/pipeline/schemas/phases.json +5 -0
  88. package/pipeline/schemas/phases.schema.json +8 -0
  89. package/pipeline/schemas/prefs.schema.json +46 -12
  90. package/pipeline/schemas/runs-index.schema.json +17 -0
  91. package/pipeline/schemas/toolkit-path-params.json +84 -8
  92. package/pipeline/scripts/README.md +1 -0
  93. package/pipeline/scripts/_code-graph.mjs +184 -103
  94. package/pipeline/scripts/_contract-core.mjs +1 -1
  95. package/pipeline/scripts/_contract-routes-office.mjs +21 -0
  96. package/pipeline/scripts/_diff-impact.mjs +21 -2
  97. package/pipeline/scripts/_graph-sidecars.mjs +372 -0
  98. package/pipeline/scripts/_http-post.mjs +103 -115
  99. package/pipeline/scripts/_safe-read.mjs +57 -0
  100. package/pipeline/scripts/_skill-practices.mjs +26 -0
  101. package/pipeline/scripts/_strip-code.mjs +380 -0
  102. package/pipeline/scripts/activity-snapshot.mjs +13 -1
  103. package/pipeline/scripts/aggregate-metrics.mjs +3 -5
  104. package/pipeline/scripts/call-graph/index.mjs +78 -0
  105. package/pipeline/scripts/call-graph/lang/cpp.mjs +308 -0
  106. package/pipeline/scripts/call-graph/lang/csharp.mjs +130 -0
  107. package/pipeline/scripts/call-graph/lang/go.mjs +303 -0
  108. package/pipeline/scripts/call-graph/lang/java.mjs +370 -0
  109. package/pipeline/scripts/call-graph/lang/kotlin.mjs +397 -0
  110. package/pipeline/scripts/call-graph/lang/python.mjs +399 -0
  111. package/pipeline/scripts/call-graph/lang/rust.mjs +345 -0
  112. package/pipeline/scripts/call-graph/lang/shared.mjs +230 -0
  113. package/pipeline/scripts/call-graph/lang/swift.mjs +432 -0
  114. package/pipeline/scripts/call-graph/lang/typescript.mjs +692 -0
  115. package/pipeline/scripts/call-graph/lex.mjs +396 -0
  116. package/pipeline/scripts/call-graph/platform.mjs +86 -0
  117. package/pipeline/scripts/call-graph/profiles.mjs +89 -0
  118. package/pipeline/scripts/call-graph/resolve.mjs +1125 -0
  119. package/pipeline/scripts/call-graph/scan.mjs +267 -0
  120. package/pipeline/scripts/code-graph-rules/android.json +7 -2
  121. package/pipeline/scripts/code-graph-rules/cpp.json +99 -0
  122. package/pipeline/scripts/code-graph-rules/csharp.json +102 -0
  123. package/pipeline/scripts/code-graph-rules/go.json +2 -1
  124. package/pipeline/scripts/code-graph-rules/ios.json +3 -1
  125. package/pipeline/scripts/code-graph-rules/java.json +76 -0
  126. package/pipeline/scripts/code-graph-rules/node.json +7 -2
  127. package/pipeline/scripts/code-graph-rules/python.json +6 -2
  128. package/pipeline/scripts/code-graph-rules/rust.json +105 -0
  129. package/pipeline/scripts/contract-server.mjs +1 -0
  130. package/pipeline/scripts/feedback-send.mjs +26 -26
  131. package/pipeline/scripts/gate-ledger.mjs +2 -1
  132. package/pipeline/scripts/gen-usage-names.mjs +124 -0
  133. package/pipeline/scripts/graph-affected.mjs +109 -20
  134. package/pipeline/scripts/graph-build.mjs +95 -15
  135. package/pipeline/scripts/graph-export.mjs +272 -0
  136. package/pipeline/scripts/graph-hint.mjs +15 -2
  137. package/pipeline/scripts/graph-query.mjs +305 -26
  138. package/pipeline/scripts/graph-report.mjs +187 -1
  139. package/pipeline/scripts/health-report.mjs +3 -4
  140. package/pipeline/scripts/infra/docs.mjs +317 -0
  141. package/pipeline/scripts/infra/extract.mjs +998 -0
  142. package/pipeline/scripts/infra/graph.mjs +245 -0
  143. package/pipeline/scripts/infra/yaml-lite.mjs +311 -0
  144. package/pipeline/scripts/job-launch.mjs +67 -2
  145. package/pipeline/scripts/learning-curve.mjs +288 -178
  146. package/pipeline/scripts/log-metric.sh +10 -1
  147. package/pipeline/scripts/note-agent-event.mjs +3 -4
  148. package/pipeline/scripts/note-command-use.mjs +333 -0
  149. package/pipeline/scripts/note-command-use.sh +126 -0
  150. package/pipeline/scripts/note-mcp-call.sh +89 -0
  151. package/pipeline/scripts/note-mcp-failure.mjs +272 -1
  152. package/pipeline/scripts/note-session.sh +62 -3
  153. package/pipeline/scripts/note-skill-use.mjs +58 -2
  154. package/pipeline/scripts/office-build.mjs +115 -1
  155. package/pipeline/scripts/office-memory.mjs +14 -5
  156. package/pipeline/scripts/pair.mjs +333 -0
  157. package/pipeline/scripts/pre-push-check.sh +1 -1
  158. package/pipeline/scripts/remote/cbor.mjs +128 -0
  159. package/pipeline/scripts/remote/contract.mjs +98 -0
  160. package/pipeline/scripts/remote/handler.mjs +317 -0
  161. package/pipeline/scripts/remote/handles.mjs +57 -0
  162. package/pipeline/scripts/remote/lifecycle.mjs +186 -0
  163. package/pipeline/scripts/remote/listener.mjs +204 -0
  164. package/pipeline/scripts/remote/lockout.mjs +103 -0
  165. package/pipeline/scripts/remote/nonces.mjs +61 -0
  166. package/pipeline/scripts/remote/pairing.mjs +519 -0
  167. package/pipeline/scripts/remote/qr-encode.mjs +459 -0
  168. package/pipeline/scripts/remote/store.mjs +188 -0
  169. package/pipeline/scripts/remote/transport.mjs +211 -0
  170. package/pipeline/scripts/remote/verbs.json +70 -0
  171. package/pipeline/scripts/remote/verbs.mjs +217 -0
  172. package/pipeline/scripts/remote/webauthn.mjs +169 -0
  173. package/pipeline/scripts/remote/wire.mjs +364 -0
  174. package/pipeline/scripts/remote-listener.mjs +83 -0
  175. package/pipeline/scripts/route-learn.mjs +4 -4
  176. package/pipeline/scripts/run-kill.mjs +1 -1
  177. package/pipeline/scripts/run-write.mjs +13 -2
  178. package/pipeline/scripts/runs-index.mjs +30 -3
  179. package/pipeline/scripts/search-logs.sh +9 -0
  180. package/pipeline/scripts/session-brief.mjs +458 -0
  181. package/pipeline/scripts/session-brief.sh +130 -0
  182. package/pipeline/scripts/test-gap-rules/cpp.json +25 -0
  183. package/pipeline/scripts/test-gap-rules/csharp.json +20 -0
  184. package/pipeline/scripts/test-gap-rules/java.json +20 -0
  185. package/pipeline/scripts/test-gap-rules/rust.json +14 -0
  186. package/pipeline/scripts/token-budget-report.mjs +3 -2
  187. package/pipeline/scripts/uninstall.mjs +29 -0
  188. package/pipeline/scripts/usage-access.mjs +16 -31
  189. package/pipeline/scripts/usage-health.mjs +31 -62
  190. package/pipeline/scripts/usage-register-beacon.mjs +11 -22
  191. package/pipeline/scripts/usage-register.mjs +39 -29
  192. package/pipeline/scripts/usage-report.mjs +579 -178
  193. package/pipeline/scripts/validate-code-graph.mjs +361 -111
  194. package/pipeline/scripts/write-state.mjs +39 -0
  195. package/pipeline/skills/.skill-manifest.json +21 -17
  196. package/pipeline/skills/.skills-index.json +13 -2
  197. package/pipeline/skills/shared/README.md +5 -4
  198. package/pipeline/skills/shared/core/multi-agent-design-check/SKILL.md +1 -1
  199. package/pipeline/skills/shared/core/multi-agent-diff-explain/SKILL.md +3 -3
  200. package/pipeline/skills/shared/core/multi-agent-graph/SKILL.md +55 -21
  201. package/pipeline/skills/shared/core/multi-agent-pair/SKILL.md +41 -0
  202. package/pipeline/skills/shared/core/multi-agent-prune-prompts/SKILL.md +1 -1
  203. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +3 -3
  204. package/pipeline/skills/shared/external/app-store-optimization/SKILL.md +2 -3
  205. package/pipeline/skills/shared/external/app-store-optimization/references/keyword-research-methodology.md +2 -2
  206. package/pipeline/skills/shared/external/app-store-optimization/references/product-page-variants.md +2 -2
  207. package/pipeline/skills/shared/external/app-store-review/SKILL.md +11 -4
  208. package/pipeline/skills/shared/external/build-settings-audit/SKILL.md +1 -1
  209. package/pipeline/skills/shared/external/build-time-benchmark/SKILL.md +5 -5
  210. package/pipeline/skills/shared/external/build-time-fixes/SKILL.md +5 -5
  211. package/pipeline/skills/shared/external/build-time-optimizer/SKILL.md +6 -6
  212. package/pipeline/skills/shared/external/free-llm-apis/references/providers.md +1 -0
  213. package/pipeline/skills/shared/external/ios-coding-standard/references/STANDARD.md +2 -2
  214. package/pipeline/skills/shared/external/ios-haptics/references/core-haptics.md +1 -1
  215. package/pipeline/skills/shared/external/localization-reuse-map/references/publish-and-snapshot.md +1 -1
  216. package/pipeline/skills/shared/external/package-build-audit/SKILL.md +3 -3
  217. package/pipeline/skills/shared/external/reverse-engineer-own-app/SKILL.md +2 -3
  218. package/pipeline/skills/shared/external/swift-compile-hotspots/SKILL.md +2 -2
  219. package/pipeline/skills/shared/external/weatherkit/SKILL.md +5 -6
  220. package/pipeline/skills/skills-index.md +3 -2
  221. package/docs/FIGMA_PIPELINE.md +0 -137
  222. package/pipeline/lib/identifier-scan.mjs +0 -156
  223. package/pipeline/scripts/publish-staged.mjs +0 -324
  224. package/pipeline/skills/shared/external/ios-coding-standard/scripts/check_structure.py +0 -765
@@ -0,0 +1,227 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/schemas/code-graph-infra.schema.json",
4
+ "title": "Code graph infra sidecar",
5
+ "description": "Infrastructure and configuration nodes (Dockerfile, Compose, Kubernetes, Helm, Terraform, CI, env files, application config, dependency manifests) and the edges from code to the variables and keys it reads, stored beside code-graph.json (code-graph.infra.json). Names only; no value is stored. Opt in with graph-build.mjs --infra or the per-repo settings file.",
6
+ "type": "object",
7
+ "required": [
8
+ "sidecar",
9
+ "schemaVersion",
10
+ "parent",
11
+ "generatedAt",
12
+ "stats",
13
+ "truncated",
14
+ "nodes",
15
+ "edges",
16
+ "manifest"
17
+ ],
18
+ "additionalProperties": false,
19
+ "properties": {
20
+ "sidecar": {
21
+ "const": "infra"
22
+ },
23
+ "schemaVersion": {
24
+ "const": "1.0.0"
25
+ },
26
+ "parent": {
27
+ "type": "object",
28
+ "required": ["generatedAt"],
29
+ "description": "The build of the main graph this sidecar was made against. A reader that finds a different generatedAt in the main graph does not join it.",
30
+ "properties": {
31
+ "generatedAt": {
32
+ "type": "string"
33
+ },
34
+ "baseCommit": {
35
+ "type": ["string", "null"]
36
+ },
37
+ "stack": {
38
+ "type": "string"
39
+ },
40
+ "nodes": {
41
+ "type": "integer",
42
+ "minimum": 0
43
+ },
44
+ "edges": {
45
+ "type": "integer",
46
+ "minimum": 0
47
+ }
48
+ }
49
+ },
50
+ "generatedAt": {
51
+ "type": "string"
52
+ },
53
+ "stats": {
54
+ "type": "object",
55
+ "required": ["nodes", "edges"],
56
+ "properties": {
57
+ "nodes": {
58
+ "type": "integer",
59
+ "minimum": 0
60
+ },
61
+ "edges": {
62
+ "type": "integer",
63
+ "minimum": 0
64
+ },
65
+ "infra": {
66
+ "type": "integer",
67
+ "minimum": 0
68
+ },
69
+ "env": {
70
+ "type": "integer",
71
+ "minimum": 0
72
+ },
73
+ "config": {
74
+ "type": "integer",
75
+ "minimum": 0
76
+ }
77
+ }
78
+ },
79
+ "truncated": {
80
+ "description": "null when the layer is whole; otherwise how much a node or edge cap cut.",
81
+ "oneOf": [
82
+ {
83
+ "type": "null"
84
+ },
85
+ {
86
+ "type": "object",
87
+ "required": ["edges", "nodes", "reason"],
88
+ "properties": {
89
+ "edges": {
90
+ "type": "integer",
91
+ "minimum": 0
92
+ },
93
+ "nodes": {
94
+ "type": "integer",
95
+ "minimum": 0
96
+ },
97
+ "reason": {
98
+ "type": "string"
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ "nodes": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "object",
108
+ "required": ["id", "kind", "name", "degree"],
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "id": {
112
+ "type": "string",
113
+ "maxLength": 4096
114
+ },
115
+ "kind": {
116
+ "type": "string",
117
+ "enum": ["file", "infra", "env", "config", "module"]
118
+ },
119
+ "name": {
120
+ "type": "string",
121
+ "maxLength": 4096
122
+ },
123
+ "path": {
124
+ "type": ["string", "null"]
125
+ },
126
+ "line": {
127
+ "type": "integer",
128
+ "minimum": 1
129
+ },
130
+ "startLine": {
131
+ "type": "integer",
132
+ "minimum": 1
133
+ },
134
+ "endLine": {
135
+ "type": "integer",
136
+ "minimum": 1
137
+ },
138
+ "symbolKind": {
139
+ "type": "string"
140
+ },
141
+ "owner": {
142
+ "type": "string",
143
+ "description": "The type that declares a method."
144
+ },
145
+ "nested": {
146
+ "type": "boolean"
147
+ },
148
+ "isTest": {
149
+ "type": "boolean"
150
+ },
151
+ "degree": {
152
+ "type": "integer",
153
+ "minimum": 0,
154
+ "description": "Always 0 in a sidecar: a layer never changes the structural degree of a node."
155
+ }
156
+ }
157
+ }
158
+ },
159
+ "edges": {
160
+ "type": "array",
161
+ "items": {
162
+ "type": "object",
163
+ "required": ["from", "to", "kind"],
164
+ "additionalProperties": false,
165
+ "properties": {
166
+ "from": {
167
+ "type": "string"
168
+ },
169
+ "to": {
170
+ "type": "string"
171
+ },
172
+ "kind": {
173
+ "type": "string",
174
+ "enum": ["defines", "sets", "uses", "builds", "runs", "reads"]
175
+ },
176
+ "via": {
177
+ "type": "string",
178
+ "description": "How the edge was derived."
179
+ },
180
+ "confidence": {
181
+ "enum": ["certain", "high", "medium", "low"]
182
+ }
183
+ }
184
+ }
185
+ },
186
+ "manifest": {
187
+ "type": "object",
188
+ "description": "relpath -> {size, mtimeMs} of every file this layer read. An edit to one of them, a removal, or a new file of the kind the layer reads marks the layer stale.",
189
+ "additionalProperties": {
190
+ "type": "object",
191
+ "required": ["size", "mtimeMs"],
192
+ "additionalProperties": false,
193
+ "properties": {
194
+ "size": {
195
+ "type": "integer",
196
+ "minimum": 0
197
+ },
198
+ "mtimeMs": {
199
+ "type": "integer",
200
+ "minimum": 0
201
+ }
202
+ }
203
+ }
204
+ },
205
+ "coverage": {
206
+ "type": "object",
207
+ "properties": {
208
+ "skipped": {
209
+ "type": "array",
210
+ "description": "Files left unread because the collection time budget ran out.",
211
+ "items": {
212
+ "type": "object",
213
+ "required": ["path", "reason"],
214
+ "properties": {
215
+ "path": {
216
+ "type": "string"
217
+ },
218
+ "reason": {
219
+ "type": "string"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/schemas/code-graph.schema.json",
4
4
  "title": "Code graph",
5
- "description": "Deterministic, LLM-free code graph produced by graph-build.mjs and consumed by Phase 1 (Explore scope narrowing) and Phase 5 (knowledge capture). One file per project under ~/.claude/knowledge/<project>/code-graph.json.",
5
+ "description": "Deterministic, LLM-free code graph produced by graph-build.mjs and consumed by Phase 1 (Explore scope narrowing) and Phase 5 (knowledge capture). One file per project under ~/.claude/knowledge/<project>/code-graph.json. This file is schema 1.2.0: files, symbols, modules and the defines, imports, references and inherits edges between them. Optional layers live in sidecar files beside it (code-graph.calls.json, code-graph.docs.json, code-graph.infra.json), each with its own schema: code-graph-calls.schema.json, code-graph-docs.schema.json, code-graph-infra.schema.json.",
6
6
  "type": "object",
7
7
  "required": ["schemaVersion", "stack", "root", "generatedAt", "stats", "nodes", "edges"],
8
8
  "additionalProperties": false,
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "stack": {
15
15
  "type": "string",
16
- "enum": ["ios", "android", "node", "python", "go"]
16
+ "enum": ["ios", "android", "node", "python", "go", "rust", "java", "csharp", "cpp"]
17
17
  },
18
18
  "root": {
19
19
  "type": "string",
@@ -0,0 +1,27 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "platform": "ios",
4
+ "mock": {
5
+ "keys": ["MockMode"],
6
+ "launchArg": "-mockMode YES",
7
+ "buildConfig": "Debug"
8
+ },
9
+ "inventory": {
10
+ "extraLaunchArgs": ["-mockEmptyState YES"],
11
+ "extraTargets": [
12
+ {
13
+ "id": "config:gallery",
14
+ "kind": "config",
15
+ "label": "Gallery with three photos",
16
+ "screen": "Gallery",
17
+ "driver": { "type": "manual", "note": "Open the gallery from the debug menu." }
18
+ }
19
+ ],
20
+ "ignoreTargets": ["config:retired-banner"]
21
+ },
22
+ "coverage": { "floor": 0.9, "confirmAbove": 25 },
23
+ "figma": { "url": "https://www.figma.com/design/FILEKEY/Example?node-id=1-2" },
24
+ "variants": [{ "id": "filled", "label": "Filled", "figmaNodeId": "1:2" }],
25
+ "capture": { "cropTopLive": 59, "tolerancePx": 2, "colorTolerance": 3, "maxDiffPct": 1 },
26
+ "report": { "formats": ["html", "pdf"], "confluence": { "enabled": false } }
27
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/multi-agent-ecosystem/multi-agent-pipeline/pipeline/schemas/learning-curve.schema.json",
4
+ "title": "Learning curve",
5
+ "description": "What GET /v1/learning-curve returns and `learning-curve.mjs --json` prints: the metrics log folded per task and bucketed by the day each task first appeared, with the first-to-last trend of the headline numbers. A rate or ratio is null when nothing was recorded, never 0. ok is false, with a code, when there is no metrics log or no events in it; the CLI adds a reason, the server does not.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["contractVersion", "ok", "buckets"],
9
+ "$defs": {
10
+ "rate": { "type": ["number", "null"] }
11
+ },
12
+ "properties": {
13
+ "contractVersion": {
14
+ "type": "string",
15
+ "pattern": "^1\\.[0-9]+\\.[0-9]+$",
16
+ "x-sensitivity": "none"
17
+ },
18
+ "ok": { "type": "boolean", "x-sensitivity": "none" },
19
+ "code": { "enum": ["no-metrics", "no-events", "too-large"], "x-sensitivity": "none" },
20
+ "reason": { "type": "string", "x-sensitivity": "local" },
21
+ "skipped": {
22
+ "type": "array",
23
+ "x-sensitivity": "none",
24
+ "items": { "enum": ["previous", "current"] },
25
+ "minItems": 1,
26
+ "uniqueItems": true,
27
+ "description": "The log generations left out because they were over the size cap. Absent when every generation was read."
28
+ },
29
+ "bucketDays": { "type": "integer", "minimum": 1, "x-sensitivity": "none" },
30
+ "buckets": {
31
+ "type": "array",
32
+ "x-sensitivity": "none",
33
+ "items": {
34
+ "type": "object",
35
+ "additionalProperties": false,
36
+ "required": ["bucketStart", "tasks", "reworkPerTask", "tokensPerTask"],
37
+ "properties": {
38
+ "bucketStart": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" },
39
+ "tasks": { "type": "integer", "minimum": 0 },
40
+ "firstPassCleanRate": { "$ref": "#/$defs/rate" },
41
+ "avgReviewCycles": { "$ref": "#/$defs/rate" },
42
+ "reworkPerTask": { "type": "number" },
43
+ "tokensPerTask": { "type": "integer", "minimum": 0 },
44
+ "cacheRatio": { "$ref": "#/$defs/rate" },
45
+ "memoryPrecision": { "$ref": "#/$defs/rate" },
46
+ "minedLessonsPerTask": { "$ref": "#/$defs/rate" },
47
+ "offloadBytesSavedPerTask": { "$ref": "#/$defs/rate" }
48
+ }
49
+ }
50
+ },
51
+ "trend": {
52
+ "type": ["object", "null"],
53
+ "x-sensitivity": "none",
54
+ "additionalProperties": false,
55
+ "required": ["from", "to"],
56
+ "properties": {
57
+ "from": { "type": "string" },
58
+ "to": { "type": "string" },
59
+ "firstPassCleanRate": { "$ref": "#/$defs/rate" },
60
+ "avgReviewCycles": { "$ref": "#/$defs/rate" },
61
+ "tokensPerTask": { "$ref": "#/$defs/rate" },
62
+ "cacheRatio": { "$ref": "#/$defs/rate" },
63
+ "memoryPrecision": { "$ref": "#/$defs/rate" }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "./office-jobs.schema.json",
3
- "contractVersion": "1.0.0",
4
- "description": "The jobs a person can hand to someone in the office. A solo job is one command one agent does at a desk; a team job is a pipeline run that meets in a room. Each parameter has a kind that job-launch.mjs checks before anything starts, so no job takes free text, and `writes` names what the job changes outside this machine, shown in the confirmation. Commands not listed here stay terminal commands.",
3
+ "contractVersion": "1.1.0",
4
+ "description": "The jobs a person can hand to someone in the office. A solo job is one command one agent does at a desk; a team job is a pipeline run that meets in a room. Each parameter has a kind that job-launch.mjs checks before anything starts, so the only free text a job takes is the short search query, and `writes` names what the job changes outside this machine, shown in the confirmation. Commands not listed here stay terminal commands.",
5
5
  "jobs": [
6
6
  {
7
7
  "id": "pipeline",
@@ -273,6 +273,73 @@
273
273
  }
274
274
  ],
275
275
  "writes": "none"
276
+ },
277
+ {
278
+ "id": "fable-status",
279
+ "command": "fable-status",
280
+ "role": "Sysadmin",
281
+ "team": false,
282
+ "params": [],
283
+ "writes": "none"
284
+ },
285
+ {
286
+ "id": "health",
287
+ "command": "health",
288
+ "role": "Sysadmin",
289
+ "team": false,
290
+ "params": [],
291
+ "writes": "none"
292
+ },
293
+ {
294
+ "id": "help",
295
+ "command": "help",
296
+ "role": "Librarian",
297
+ "team": false,
298
+ "params": [],
299
+ "writes": "none"
300
+ },
301
+ {
302
+ "id": "search",
303
+ "command": "search",
304
+ "role": "Librarian",
305
+ "team": false,
306
+ "params": [
307
+ {
308
+ "name": "query",
309
+ "kind": "search-text",
310
+ "required": true
311
+ }
312
+ ],
313
+ "writes": "none"
314
+ },
315
+ {
316
+ "id": "address-review",
317
+ "command": "address-review",
318
+ "role": "Reviewer",
319
+ "team": false,
320
+ "params": [
321
+ {
322
+ "name": "target",
323
+ "kind": "pull-request",
324
+ "required": true
325
+ }
326
+ ],
327
+ "writes": "branch"
328
+ },
329
+ {
330
+ "id": "analysis-resolve",
331
+ "command": "analysis-resolve",
332
+ "role": "Planner",
333
+ "team": false,
334
+ "params": [
335
+ {
336
+ "name": "document",
337
+ "kind": "analysis-doc",
338
+ "required": true
339
+ }
340
+ ],
341
+ "writes": "none",
342
+ "fixedArgs": ["--autonomous"]
276
343
  }
277
344
  ]
278
345
  }
@@ -27,6 +27,11 @@
27
27
  "role": { "type": "string", "minLength": 1 },
28
28
  "team": { "type": "boolean" },
29
29
  "launch": { "enum": ["development", "analysis", "autopilot"] },
30
+ "fixedArgs": {
31
+ "type": "array",
32
+ "items": { "type": "string", "pattern": "^--[a-z][a-z-]{0,30}$" },
33
+ "description": "Flags the job always passes after its parameters, fixed in the catalog."
34
+ },
30
35
  "available": { "type": "boolean" },
31
36
  "reason": { "type": ["string", "null"] },
32
37
  "params": {
@@ -46,7 +51,9 @@
46
51
  "jira-key",
47
52
  "github-issue",
48
53
  "enum",
49
- "repo-path"
54
+ "repo-path",
55
+ "search-text",
56
+ "analysis-doc"
50
57
  ]
51
58
  },
52
59
  "values": { "type": "array", "items": { "type": "string" } },
@@ -29,6 +29,7 @@
29
29
  "name": "Plan",
30
30
  "doc": "phase-1-plan.md",
31
31
  "maxTokens": 10250,
32
+ "roles": ["critic"],
32
33
  "was": [1, 2]
33
34
  },
34
35
  {
@@ -36,6 +37,7 @@
36
37
  "name": "Dev",
37
38
  "doc": "phase-2-dev.md",
38
39
  "maxTokens": 10650,
40
+ "roles": ["critic"],
39
41
  "was": [3]
40
42
  },
41
43
  {
@@ -43,6 +45,7 @@
43
45
  "name": "Review",
44
46
  "doc": "phase-3-review.md",
45
47
  "maxTokens": 17260,
48
+ "roles": ["reviewer", "review panel", "triage", "triyaj"],
46
49
  "was": [4, 5]
47
50
  },
48
51
  {
@@ -50,6 +53,7 @@
50
53
  "name": "Commit",
51
54
  "doc": "phase-4-commit.md",
52
55
  "maxTokens": 6650,
56
+ "roles": ["commit step"],
53
57
  "was": [6]
54
58
  },
55
59
  {
@@ -57,6 +61,7 @@
57
61
  "name": "Report",
58
62
  "doc": "phase-5-report.md",
59
63
  "maxTokens": 5800,
64
+ "roles": ["triage", "triyaj"],
60
65
  "was": [7]
61
66
  }
62
67
  ],
@@ -71,6 +71,14 @@
71
71
  "type": "integer",
72
72
  "minimum": 0
73
73
  }
74
+ },
75
+ "roles": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ },
81
+ "description": "Words that name work done in this phase when written beside its number in prose (\"Phase 3 reviewer\"). A word listed under two phases is valid beside either. lint-phase-labels.mjs reads them."
74
82
  }
75
83
  }
76
84
  }
@@ -96,15 +96,6 @@
96
96
  }
97
97
  }
98
98
  },
99
- "gitIdentities": {
100
- "type": "array",
101
- "deprecated": true,
102
- "description": "DEPRECATED in v2.1.0 - renamed to 'identities'. Migration script converts automatically. Kept in schema temporarily for migration compatibility.",
103
- "items": {
104
- "type": "object",
105
- "additionalProperties": true
106
- }
107
- },
108
99
  "keychainMapping": {
109
100
  "type": "object",
110
101
  "additionalProperties": false,
@@ -1503,12 +1494,12 @@
1503
1494
  "includeTitle": {
1504
1495
  "type": "boolean",
1505
1496
  "default": false,
1506
- "description": "Send a one-line task title (at most 80 characters, code spans, markup and absolute paths removed) with each run record. Off by default: a title is the tracker's text, not pipeline metadata."
1497
+ "description": "Send a summary of the task title with each run record: the number of words, whether it has the shape of a ticket key, and its language (en, tr or other). The title itself is never sent. Off by default: a title is the tracker's text, not pipeline metadata."
1507
1498
  },
1508
1499
  "includePrUrl": {
1509
1500
  "type": "boolean",
1510
1501
  "default": false,
1511
- "description": "Send the PR URL with a run that opened one. Off by default because the URL names the repository; without it the record carries only whether a PR was opened."
1502
+ "description": "Send the PR URL with a run that opened one on github.com, gitlab.com, bitbucket.org or dev.azure.com (no query string or credentials); a pull request on any other host sends nothing. Off by default because the URL names the repository; without it the record carries only whether a PR was opened."
1512
1503
  },
1513
1504
  "trustedHosts": {
1514
1505
  "type": "array",
@@ -1517,6 +1508,11 @@
1517
1508
  "minLength": 1
1518
1509
  },
1519
1510
  "description": "Extra https hosts that may receive the GitHub login proof at registration, besides the default reporting host. Only for a self-hosted endpoint you trust with the account's gh token."
1511
+ },
1512
+ "reportedVersion": {
1513
+ "type": "string",
1514
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$",
1515
+ "description": "The last pipeline version whose install or update record the server accepted. Written by usage-report.mjs; when it differs from the installed version, one lifecycle record is sent and this moves forward."
1520
1516
  }
1521
1517
  }
1522
1518
  },
@@ -2083,6 +2079,44 @@
2083
2079
  }
2084
2080
  }
2085
2081
  },
2082
+ "sessionBrief": {
2083
+ "type": "object",
2084
+ "additionalProperties": false,
2085
+ "description": "Opt-in block a session can open with (pipeline/scripts/session-brief.sh, SessionStart on Claude Code): an index of the repo's learnings ledger with a pointer per line, one line about its code graph, the skill indexes of the enabled toolkits and, as a separate setting, a few working notes. Off until enabled is true; a repo with no ledger entries and no code graph gets nothing. Costs about 350 tokens per session at the defaults and again after each compaction. A detached process rebuilds a cache, the hook only prints it. Silent in unattended and pipeline contexts (MULTI_AGENT_UNATTENDED, MULTI_AGENT_TASK_ID, MULTI_AGENT_PHASE) and for non-interactive sessions. MULTI_AGENT_SESSION_BRIEF=0 turns it off for one process.",
2086
+ "properties": {
2087
+ "enabled": {
2088
+ "type": "boolean",
2089
+ "default": false,
2090
+ "description": "true turns the brief on. Absent or false = the hook prints nothing and starts nothing."
2091
+ },
2092
+ "maxEntries": {
2093
+ "type": "integer",
2094
+ "minimum": 0,
2095
+ "maximum": 10,
2096
+ "default": 5,
2097
+ "description": "Ledger lines shown. 0 leaves the ledger layer out."
2098
+ },
2099
+ "maxChars": {
2100
+ "type": "integer",
2101
+ "minimum": 400,
2102
+ "maximum": 4000,
2103
+ "default": 2400,
2104
+ "description": "Size of the whole block. Whole lines are dropped to fit: working notes first, then skill routing, the graph line, then ledger entries from the last."
2105
+ },
2106
+ "kinds": {
2107
+ "type": "array",
2108
+ "items": {
2109
+ "enum": ["fact", "convention", "rejected-preference", "decision", "security-note"]
2110
+ },
2111
+ "description": "Ledger kinds shown. Absent = all."
2112
+ },
2113
+ "discipline": {
2114
+ "type": "boolean",
2115
+ "default": false,
2116
+ "description": "true adds the working notes (lead with the answer; one question about why only when the goal is unclear; options with a recommendation; a check per step; time in minutes or hours)."
2117
+ }
2118
+ }
2119
+ },
2086
2120
  "stopGuard": {
2087
2121
  "type": "object",
2088
2122
  "additionalProperties": false,
@@ -2818,7 +2852,7 @@
2818
2852
  "lastIdentity": {
2819
2853
  "type": "integer",
2820
2854
  "minimum": 0,
2821
- "description": "Legacy field. Index into global.gitIdentities (v2.0.0). v2.1.0+ uses platformIdentityRouting."
2855
+ "description": "Legacy field. Index into the retired gitIdentities list (v2.0.0). v2.1.0+ uses platformIdentityRouting."
2822
2856
  },
2823
2857
  "jiraProjectKeys": {
2824
2858
  "type": "array",
@@ -141,6 +141,23 @@
141
141
  "x-sensitivity": "none",
142
142
  "description": "The step a paused run re-enters (agent-state waitingFor): maturity, user-channels-choice, local-test, attended-reply or question; null or absent when the run is not waiting. Added in 1.1.0."
143
143
  },
144
+ "waitingSince": {
145
+ "type": ["string", "null"],
146
+ "format": "date-time",
147
+ "x-sensitivity": "none",
148
+ "description": "When a run in the waiting group began to wait: the state's own waitingSince when it has one, else the state file's modification time. Null outside the waiting group. Added in 1.5.0."
149
+ },
150
+ "waitingSinceSource": {
151
+ "enum": ["state", "file-time", null],
152
+ "x-sensitivity": "none",
153
+ "description": "Where waitingSince came from: state is the run's own record of when it parked, file-time is the state file's modification time, which a rewrite moves, so a client shows it as approximate. Null when waitingSince is null. Added in 1.5.0."
154
+ },
155
+ "finishedAt": {
156
+ "type": ["string", "null"],
157
+ "format": "date-time",
158
+ "x-sensitivity": "none",
159
+ "description": "When the run finished or was stopped (agent-state finishedAt); null while it is going and when its state records no end. Added in 1.5.0."
160
+ },
144
161
  "pendingQuestion": {
145
162
  "x-sensitivity": "none",
146
163
  "description": "The question the run stopped on, present only with waitingFor question. Answer it with one of options[].id through `answer-question.mjs` or POST /v1/runs/{id}/answer. text and labels are scrubbed under --redact. Added in 1.1.0.",