@mmerterden/multi-agent-pipeline 24.0.0 → 24.1.1
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 +32 -0
- package/README.md +5 -3
- package/README.tr.md +5 -3
- package/docs/architecture.md +1 -1
- package/docs/ecosystem.md +1 -1
- package/docs/facts.json +3 -3
- package/docs/features.md +9 -1
- package/install/_dev-only-files.mjs +1 -0
- package/manifest.json +51 -50
- package/package.json +4 -2
- package/pipeline/commands/multi-agent/SKILL.md +1 -1
- package/pipeline/commands/multi-agent/analysis/SKILL.md +1 -1
- package/pipeline/contract/CHANGELOG.md +15 -0
- package/pipeline/contract/fixtures/error-invalid-request.json +1 -1
- package/pipeline/contract/fixtures/error-unauthorized.json +1 -1
- package/pipeline/contract/fixtures/runs-awaiting-question.json +6 -1
- package/pipeline/contract/fixtures/runs-empty.json +1 -1
- package/pipeline/contract/fixtures/runs-failed.json +21 -1
- package/pipeline/contract/fixtures/runs-old-schema.json +18 -3
- package/pipeline/contract/fixtures/runs-pr-opened-redacted.json +31 -1
- package/pipeline/contract/fixtures/runs-pr-opened.json +31 -1
- package/pipeline/contract/fixtures/runs-running.json +16 -1
- package/pipeline/contract/manifest.json +13 -13
- package/pipeline/contract/types/index.d.ts +19 -1
- package/pipeline/multi-agent-refs/analysis/render.md +12 -1
- package/pipeline/multi-agent-refs/features/local-model.md +2 -2
- package/pipeline/multi-agent-refs/features/model-fallback.md +1 -1
- package/pipeline/multi-agent-refs/help/en.md +10 -2
- package/pipeline/multi-agent-refs/help/tr.md +8 -2
- package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-3-review.md +1 -1
- package/pipeline/multi-agent-refs/phases/phase-4-commit.md +1 -0
- package/pipeline/multi-agent-refs/phases/phase-5-report.md +1 -1
- package/pipeline/multi-agent-refs/review/panel.md +1 -1
- package/pipeline/multi-agent-refs/sync/overview.md +1 -1
- package/pipeline/multi-agent-refs/tracker-contract.md +36 -10
- package/pipeline/office/index.html +75 -2
- package/pipeline/schemas/activity.schema.json +63 -4
- package/pipeline/schemas/hosts.json +1 -1
- package/pipeline/schemas/now-lines.json +103 -0
- package/pipeline/schemas/now-lines.schema.json +42 -0
- package/pipeline/schemas/runs-index.schema.json +22 -1
- package/pipeline/scripts/_contract-core.mjs +1 -1
- package/pipeline/scripts/activity-snapshot.mjs +27 -1
- package/pipeline/scripts/phase-tracker.sh +80 -12
- package/pipeline/scripts/render-work-summary.sh +51 -1
- package/pipeline/scripts/runs-index.mjs +2 -1
- package/pipeline/skills/.skill-manifest.json +1 -1
- package/pipeline/scripts/.doctor-mut.47076.mjs +0 -2253
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
Versions of the client contract (`manifest.json` `contractVersion`), separate
|
|
4
4
|
from the package version. See `README.md` for what counts as minor and major.
|
|
5
5
|
|
|
6
|
+
## 2.4.0
|
|
7
|
+
|
|
8
|
+
Added. Nothing existing changes shape.
|
|
9
|
+
|
|
10
|
+
- `runs-index` 1.6.0 (`GET /v1/runs`, `/v1/runs/{id}`): each phase carries its
|
|
11
|
+
own `tokens` (`in`, `out`, `cached`), from that phase's tracker counters. The
|
|
12
|
+
run total stays the `tokens` on the run record.
|
|
13
|
+
- `activity` 1.5.0 (`GET /v1/activity`, `/v1/activity/stream`): each
|
|
14
|
+
`phaseHistory` entry carries `model` (which model the phase ran on), `now`
|
|
15
|
+
(the phase's one-line current action, only while it is working or stopped
|
|
16
|
+
where it was working), `tokens` (that phase's own in plus out, null when it
|
|
17
|
+
has spent nothing) and `subs` (its sub-steps, each with `id`, `name` and
|
|
18
|
+
`status`). A page can now show per-phase spend and what a phase is doing,
|
|
19
|
+
which previously existed only on the terminal surfaces.
|
|
20
|
+
|
|
6
21
|
## 2.3.0
|
|
7
22
|
|
|
8
23
|
Added. Nothing existing changes shape.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.6.0",
|
|
3
3
|
"logsRoot": "/Users/example/.claude/logs/multi-agent",
|
|
4
4
|
"count": 1,
|
|
5
5
|
"runs": [
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
"now": "waiting for an answer",
|
|
60
60
|
"subs": 0,
|
|
61
61
|
"subList": [],
|
|
62
|
+
"tokens": {
|
|
63
|
+
"in": 0,
|
|
64
|
+
"out": 0,
|
|
65
|
+
"cached": 0
|
|
66
|
+
},
|
|
62
67
|
"progress": null,
|
|
63
68
|
"tasks": []
|
|
64
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.6.0",
|
|
3
3
|
"logsRoot": "/Users/example/.claude/logs/multi-agent",
|
|
4
4
|
"count": 1,
|
|
5
5
|
"runs": [
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"now": null,
|
|
41
41
|
"subs": 0,
|
|
42
42
|
"subList": [],
|
|
43
|
+
"tokens": {
|
|
44
|
+
"in": 1200,
|
|
45
|
+
"out": 340,
|
|
46
|
+
"cached": 900
|
|
47
|
+
},
|
|
43
48
|
"progress": 1,
|
|
44
49
|
"tasks": []
|
|
45
50
|
},
|
|
@@ -53,6 +58,11 @@
|
|
|
53
58
|
"now": null,
|
|
54
59
|
"subs": 0,
|
|
55
60
|
"subList": [],
|
|
61
|
+
"tokens": {
|
|
62
|
+
"in": 1200,
|
|
63
|
+
"out": 340,
|
|
64
|
+
"cached": 900
|
|
65
|
+
},
|
|
56
66
|
"progress": 1,
|
|
57
67
|
"tasks": []
|
|
58
68
|
},
|
|
@@ -66,6 +76,11 @@
|
|
|
66
76
|
"now": null,
|
|
67
77
|
"subs": 0,
|
|
68
78
|
"subList": [],
|
|
79
|
+
"tokens": {
|
|
80
|
+
"in": 1200,
|
|
81
|
+
"out": 340,
|
|
82
|
+
"cached": 900
|
|
83
|
+
},
|
|
69
84
|
"progress": 1,
|
|
70
85
|
"tasks": []
|
|
71
86
|
},
|
|
@@ -79,6 +94,11 @@
|
|
|
79
94
|
"now": null,
|
|
80
95
|
"subs": 0,
|
|
81
96
|
"subList": [],
|
|
97
|
+
"tokens": {
|
|
98
|
+
"in": 0,
|
|
99
|
+
"out": 0,
|
|
100
|
+
"cached": 0
|
|
101
|
+
},
|
|
82
102
|
"progress": null,
|
|
83
103
|
"tasks": []
|
|
84
104
|
}
|
|
@@ -36,7 +36,12 @@
|
|
|
36
36
|
"completedAt": "2026-09-17T10:05:00Z",
|
|
37
37
|
"now": null,
|
|
38
38
|
"subs": 0,
|
|
39
|
-
"subList": []
|
|
39
|
+
"subList": [],
|
|
40
|
+
"tokens": {
|
|
41
|
+
"in": 1200,
|
|
42
|
+
"out": 340,
|
|
43
|
+
"cached": 900
|
|
44
|
+
}
|
|
40
45
|
},
|
|
41
46
|
{
|
|
42
47
|
"id": "1",
|
|
@@ -47,7 +52,12 @@
|
|
|
47
52
|
"completedAt": "2026-09-17T10:05:00Z",
|
|
48
53
|
"now": null,
|
|
49
54
|
"subs": 0,
|
|
50
|
-
"subList": []
|
|
55
|
+
"subList": [],
|
|
56
|
+
"tokens": {
|
|
57
|
+
"in": 1200,
|
|
58
|
+
"out": 340,
|
|
59
|
+
"cached": 900
|
|
60
|
+
}
|
|
51
61
|
},
|
|
52
62
|
{
|
|
53
63
|
"id": "2",
|
|
@@ -58,7 +68,12 @@
|
|
|
58
68
|
"completedAt": null,
|
|
59
69
|
"now": null,
|
|
60
70
|
"subs": 0,
|
|
61
|
-
"subList": []
|
|
71
|
+
"subList": [],
|
|
72
|
+
"tokens": {
|
|
73
|
+
"in": 0,
|
|
74
|
+
"out": 0,
|
|
75
|
+
"cached": 0
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
],
|
|
64
79
|
"tokens": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.6.0",
|
|
3
3
|
"count": 1,
|
|
4
4
|
"runs": [
|
|
5
5
|
{
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"now": null,
|
|
36
36
|
"subs": 0,
|
|
37
37
|
"subList": [],
|
|
38
|
+
"tokens": {
|
|
39
|
+
"in": 1200,
|
|
40
|
+
"out": 340,
|
|
41
|
+
"cached": 900
|
|
42
|
+
},
|
|
38
43
|
"progress": 1,
|
|
39
44
|
"tasks": []
|
|
40
45
|
},
|
|
@@ -48,6 +53,11 @@
|
|
|
48
53
|
"now": null,
|
|
49
54
|
"subs": 0,
|
|
50
55
|
"subList": [],
|
|
56
|
+
"tokens": {
|
|
57
|
+
"in": 1200,
|
|
58
|
+
"out": 340,
|
|
59
|
+
"cached": 900
|
|
60
|
+
},
|
|
51
61
|
"progress": 1,
|
|
52
62
|
"tasks": []
|
|
53
63
|
},
|
|
@@ -61,6 +71,11 @@
|
|
|
61
71
|
"now": null,
|
|
62
72
|
"subs": 0,
|
|
63
73
|
"subList": [],
|
|
74
|
+
"tokens": {
|
|
75
|
+
"in": 1200,
|
|
76
|
+
"out": 340,
|
|
77
|
+
"cached": 900
|
|
78
|
+
},
|
|
64
79
|
"progress": 1,
|
|
65
80
|
"tasks": []
|
|
66
81
|
},
|
|
@@ -74,6 +89,11 @@
|
|
|
74
89
|
"now": null,
|
|
75
90
|
"subs": 0,
|
|
76
91
|
"subList": [],
|
|
92
|
+
"tokens": {
|
|
93
|
+
"in": 1200,
|
|
94
|
+
"out": 340,
|
|
95
|
+
"cached": 900
|
|
96
|
+
},
|
|
77
97
|
"progress": 1,
|
|
78
98
|
"tasks": []
|
|
79
99
|
},
|
|
@@ -87,6 +107,11 @@
|
|
|
87
107
|
"now": null,
|
|
88
108
|
"subs": 0,
|
|
89
109
|
"subList": [],
|
|
110
|
+
"tokens": {
|
|
111
|
+
"in": 1200,
|
|
112
|
+
"out": 340,
|
|
113
|
+
"cached": 900
|
|
114
|
+
},
|
|
90
115
|
"progress": 1,
|
|
91
116
|
"tasks": []
|
|
92
117
|
},
|
|
@@ -100,6 +125,11 @@
|
|
|
100
125
|
"now": null,
|
|
101
126
|
"subs": 0,
|
|
102
127
|
"subList": [],
|
|
128
|
+
"tokens": {
|
|
129
|
+
"in": 1200,
|
|
130
|
+
"out": 340,
|
|
131
|
+
"cached": 900
|
|
132
|
+
},
|
|
103
133
|
"progress": 1,
|
|
104
134
|
"tasks": []
|
|
105
135
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.6.0",
|
|
3
3
|
"logsRoot": "/Users/example/.claude/logs/multi-agent",
|
|
4
4
|
"count": 1,
|
|
5
5
|
"runs": [
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"now": null,
|
|
41
41
|
"subs": 0,
|
|
42
42
|
"subList": [],
|
|
43
|
+
"tokens": {
|
|
44
|
+
"in": 1200,
|
|
45
|
+
"out": 340,
|
|
46
|
+
"cached": 900
|
|
47
|
+
},
|
|
43
48
|
"progress": 1,
|
|
44
49
|
"tasks": []
|
|
45
50
|
},
|
|
@@ -53,6 +58,11 @@
|
|
|
53
58
|
"now": null,
|
|
54
59
|
"subs": 0,
|
|
55
60
|
"subList": [],
|
|
61
|
+
"tokens": {
|
|
62
|
+
"in": 1200,
|
|
63
|
+
"out": 340,
|
|
64
|
+
"cached": 900
|
|
65
|
+
},
|
|
56
66
|
"progress": 1,
|
|
57
67
|
"tasks": []
|
|
58
68
|
},
|
|
@@ -66,6 +76,11 @@
|
|
|
66
76
|
"now": null,
|
|
67
77
|
"subs": 0,
|
|
68
78
|
"subList": [],
|
|
79
|
+
"tokens": {
|
|
80
|
+
"in": 1200,
|
|
81
|
+
"out": 340,
|
|
82
|
+
"cached": 900
|
|
83
|
+
},
|
|
69
84
|
"progress": 1,
|
|
70
85
|
"tasks": []
|
|
71
86
|
},
|
|
@@ -79,6 +94,11 @@
|
|
|
79
94
|
"now": null,
|
|
80
95
|
"subs": 0,
|
|
81
96
|
"subList": [],
|
|
97
|
+
"tokens": {
|
|
98
|
+
"in": 1200,
|
|
99
|
+
"out": 340,
|
|
100
|
+
"cached": 900
|
|
101
|
+
},
|
|
82
102
|
"progress": 1,
|
|
83
103
|
"tasks": []
|
|
84
104
|
},
|
|
@@ -92,6 +112,11 @@
|
|
|
92
112
|
"now": null,
|
|
93
113
|
"subs": 0,
|
|
94
114
|
"subList": [],
|
|
115
|
+
"tokens": {
|
|
116
|
+
"in": 1200,
|
|
117
|
+
"out": 340,
|
|
118
|
+
"cached": 900
|
|
119
|
+
},
|
|
95
120
|
"progress": 1,
|
|
96
121
|
"tasks": []
|
|
97
122
|
},
|
|
@@ -105,6 +130,11 @@
|
|
|
105
130
|
"now": null,
|
|
106
131
|
"subs": 0,
|
|
107
132
|
"subList": [],
|
|
133
|
+
"tokens": {
|
|
134
|
+
"in": 1200,
|
|
135
|
+
"out": 340,
|
|
136
|
+
"cached": 900
|
|
137
|
+
},
|
|
108
138
|
"progress": 1,
|
|
109
139
|
"tasks": []
|
|
110
140
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "1.
|
|
2
|
+
"contractVersion": "1.6.0",
|
|
3
3
|
"logsRoot": "/Users/example/.claude/logs/multi-agent",
|
|
4
4
|
"count": 1,
|
|
5
5
|
"runs": [
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"now": null,
|
|
41
41
|
"subs": 0,
|
|
42
42
|
"subList": [],
|
|
43
|
+
"tokens": {
|
|
44
|
+
"in": 1200,
|
|
45
|
+
"out": 340,
|
|
46
|
+
"cached": 900
|
|
47
|
+
},
|
|
43
48
|
"progress": 1,
|
|
44
49
|
"tasks": []
|
|
45
50
|
},
|
|
@@ -53,6 +58,11 @@
|
|
|
53
58
|
"now": null,
|
|
54
59
|
"subs": 0,
|
|
55
60
|
"subList": [],
|
|
61
|
+
"tokens": {
|
|
62
|
+
"in": 1200,
|
|
63
|
+
"out": 340,
|
|
64
|
+
"cached": 900
|
|
65
|
+
},
|
|
56
66
|
"progress": 1,
|
|
57
67
|
"tasks": []
|
|
58
68
|
},
|
|
@@ -77,6 +87,11 @@
|
|
|
77
87
|
"status": "in_progress"
|
|
78
88
|
}
|
|
79
89
|
],
|
|
90
|
+
"tokens": {
|
|
91
|
+
"in": 0,
|
|
92
|
+
"out": 0,
|
|
93
|
+
"cached": 0
|
|
94
|
+
},
|
|
80
95
|
"progress": 0.5,
|
|
81
96
|
"tasks": [
|
|
82
97
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "2.
|
|
2
|
+
"contractVersion": "2.4.0",
|
|
3
3
|
"supportedMajors": [2, 1],
|
|
4
4
|
"description": "The pipeline's client contract: every surface a client reads or writes, the CLI invocation and the HTTP route that carry it, and the schema its JSON follows. Schemas are not copied here; schemasDir points at the one tree the producers validate against. Paths in cli are relative to the pipeline directory (installed: ~/.claude).",
|
|
5
5
|
"schemasDir": "../schemas",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"query": ["group", "redact"],
|
|
96
96
|
"cli": ["node", "scripts/runs-index.mjs", "--json", "[--group <group>]", "[--redact]"],
|
|
97
97
|
"schema": "runs-index.schema.json",
|
|
98
|
-
"version": "1.
|
|
98
|
+
"version": "1.6.0",
|
|
99
99
|
"remote": "read",
|
|
100
100
|
"risk": "read"
|
|
101
101
|
},
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"query": ["redact"],
|
|
107
107
|
"cli": ["node", "scripts/runs-index.mjs", "--json", "--task-id", "{id}", "[--redact]"],
|
|
108
108
|
"schema": "runs-index.schema.json",
|
|
109
|
-
"version": "1.
|
|
109
|
+
"version": "1.6.0",
|
|
110
110
|
"remote": "read",
|
|
111
111
|
"risk": "read"
|
|
112
112
|
},
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"body": "repo-request.schema.json",
|
|
205
205
|
"cli": ["node", "scripts/launch-request.mjs", "register-repo", "<path>"],
|
|
206
206
|
"schema": "repo-change.schema.json",
|
|
207
|
-
"version": "1.
|
|
207
|
+
"version": "1.5.0",
|
|
208
208
|
"note": "Two steps: the preview names the repository, the confirmation stores it in launch-repos.json. Only a git checkout that is neither the home directory nor the root is accepted.",
|
|
209
209
|
"remote": "local-only",
|
|
210
210
|
"risk": "high"
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"path": "/v1/repos/{id}",
|
|
216
216
|
"query": ["confirm"],
|
|
217
217
|
"schema": "repo-change.schema.json",
|
|
218
|
-
"version": "1.
|
|
218
|
+
"version": "1.5.0",
|
|
219
219
|
"note": "Two steps: without confirm the preview and a token; with ?confirm=<token> the registered entry is removed. Configured autopilot repositories are not touched.",
|
|
220
220
|
"remote": "local-only",
|
|
221
221
|
"risk": "high"
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"query": [],
|
|
398
398
|
"cli": ["node", "scripts/activity-snapshot.mjs", "--json"],
|
|
399
399
|
"schema": "activity.schema.json",
|
|
400
|
-
"version": "1.
|
|
400
|
+
"version": "1.5.0",
|
|
401
401
|
"note": "Derived from disk on every call; no field is machine-local, so redact changes nothing.",
|
|
402
402
|
"remote": "read",
|
|
403
403
|
"risk": "read"
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
"query": [],
|
|
410
410
|
"cli": ["node", "scripts/activity-snapshot.mjs", "--json"],
|
|
411
411
|
"schema": "activity.schema.json",
|
|
412
|
-
"version": "1.
|
|
412
|
+
"version": "1.5.0",
|
|
413
413
|
"note": "text/event-stream: an `activity` event carrying the document whenever it changes (checked every 2 seconds), a comment line as heartbeat. At most 4 streams at once (429 too-many-streams).",
|
|
414
414
|
"remote": "read",
|
|
415
415
|
"risk": "read"
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
"[--limit <n>]"
|
|
430
430
|
],
|
|
431
431
|
"schema": "activity-chat.schema.json",
|
|
432
|
-
"version": "1.
|
|
432
|
+
"version": "1.5.0",
|
|
433
433
|
"note": "agentId main is the session itself. Refused (403) to any Origin but the server's own page, even an allowed one. limit is 1 to 500, 200 by default; before is the offset the previous page returned.",
|
|
434
434
|
"remote": "read",
|
|
435
435
|
"risk": "read"
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
"query": [],
|
|
442
442
|
"cli": ["node", "scripts/routine-registry.mjs", "list", "--json"],
|
|
443
443
|
"schema": "routines.schema.json",
|
|
444
|
-
"version": "1.
|
|
444
|
+
"version": "1.5.0",
|
|
445
445
|
"remote": "read",
|
|
446
446
|
"risk": "read"
|
|
447
447
|
},
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
"query": ["confirm"],
|
|
453
453
|
"cli": ["node", "scripts/routine-registry.mjs", "remove", "--name", "{name}"],
|
|
454
454
|
"schema": "routine-delete.schema.json",
|
|
455
|
-
"version": "1.
|
|
455
|
+
"version": "1.5.0",
|
|
456
456
|
"note": "Two steps: without confirm the preview and a token; with ?confirm=<token> the removal. A shipped command is refused (409 not-removable). An unattended server refuses both steps with 409 unattended-refused.",
|
|
457
457
|
"remote": "local-only",
|
|
458
458
|
"risk": "high"
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
"query": [],
|
|
465
465
|
"cli": ["node", "scripts/routine-share.mjs", "browse"],
|
|
466
466
|
"schema": "shared-routines.schema.json",
|
|
467
|
-
"version": "1.
|
|
467
|
+
"version": "1.5.0",
|
|
468
468
|
"note": "The routines other site members shared that this machine may see, without bodies, read with the machine's usage token by routine-share.mjs. When sharing cannot answer the body says why (available false, reason) instead of an error. Local only: it spends this machine's token.",
|
|
469
469
|
"remote": "local-only",
|
|
470
470
|
"risk": "read"
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
"query": [],
|
|
477
477
|
"cli": ["node", "scripts/routine-share.mjs", "fetch", "--id", "{id}"],
|
|
478
478
|
"schema": "shared-routine.schema.json",
|
|
479
|
-
"version": "1.
|
|
479
|
+
"version": "1.5.0",
|
|
480
480
|
"note": "One shared routine with its body, version and payload digest, after the body was checked against its sha256; description and argumentHint are the values an import writes, unscrubbed. An unknown id is 404 not-found; a refusal from the sharing server is 502 upstream-failed.",
|
|
481
481
|
"remote": "local-only",
|
|
482
482
|
"risk": "read"
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"{name}"
|
|
500
500
|
],
|
|
501
501
|
"schema": "shared-routine-import.schema.json",
|
|
502
|
-
"version": "1.
|
|
502
|
+
"version": "1.5.0",
|
|
503
503
|
"note": "Two steps. {} or {as} previews the full body, its sha256, the description, descriptionTr and argument hint as they become frontmatter, the payload digest over all of them and the local name, and returns a token bound to that routine, sha256, digest and name; a taken name is 409 name-taken, answered with another as; an as that is not a valid local name (the reserved shared included) is 400 invalid-body; a shared routine that would fail the import checks (name, description, descriptionTr, argumentHint, body, sha256) is 502 upstream-failed naming the field. {confirmToken, sha256, digest} installs the routine only when both are the previewed ones (else 409 confirm-mismatch) and the routine still matches them and still passes the import checks (else 409 state-moved). The frontmatter is rebuilt locally and the routine is never run. An unattended server refuses both steps with 409 unattended-refused.",
|
|
504
504
|
"remote": "local-only",
|
|
505
505
|
"risk": "high"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by pipeline/contract/build.mjs from pipeline/schemas/*.schema.json.
|
|
2
2
|
// Do not edit: change the schema and run `node pipeline/contract/build.mjs --write`.
|
|
3
3
|
|
|
4
|
-
export type ContractVersion = "2.
|
|
4
|
+
export type ContractVersion = "2.4.0";
|
|
5
5
|
export type SurfaceId = "runs" | "run" | "commands" | "skills" | "questions" | "issues" | "worktrees" | "launch-spec" | "repos" | "repo-add" | "repo-remove" | "launch" | "answer" | "run-log" | "resume" | "kill" | "gc" | "autopilot" | "autopilot-off" | "autopilot-on" | "steer" | "activity" | "activity-stream" | "agent-chat" | "routines" | "routine-delete" | "routines-shared" | "routine-shared" | "routine-shared-import" | "jobs" | "job-start" | "stack" | "stack-set" | "ledger" | "system" | "prune-logs" | "disk-clean" | "settings" | "settings-set" | "learning-curve" | "credentials" | "memory" | "server-room" | "mcp-health" | "archive" | "run-results" | "run-evidence" | "review-verdict" | "issue-maturity" | "prs" | "prs-reach" | "tools" | "tool-call" | "service-confluence" | "service-crashlytics" | "service-figma" | "permissions";
|
|
6
6
|
|
|
7
7
|
/** What `runs-index.mjs --json` prints: every run under the log root and the unattended log root (one record per task id), grouped per status/SKILL.md 3b. Fields are only ever added - a decoder ignores keys it does not know. `--redact` drops every x-sensitivity local field (and `logsRoot`) and scrubs the free text in the title, `now`, sub-step names, task subjects and the pending question. */
|
|
@@ -123,6 +123,12 @@ export interface RunsIndexPhase {
|
|
|
123
123
|
name: string;
|
|
124
124
|
status: string;
|
|
125
125
|
}>;
|
|
126
|
+
/** What this one phase spent, from its own tracker counters. The run's total is the `tokens` beside it on the run record. Added in 1.6.0. */
|
|
127
|
+
tokens: {
|
|
128
|
+
in: number;
|
|
129
|
+
out: number;
|
|
130
|
+
cached: number;
|
|
131
|
+
};
|
|
126
132
|
/** 1 for a completed or skipped phase, 0 for a pending one; otherwise completed tasks over tasks, and null when the phase has no tasks. Added in 1.2.0. */
|
|
127
133
|
progress?: number | null;
|
|
128
134
|
/** The host's native task list for this phase (TaskCreate/TaskUpdate, update_plan steps, card rows) as `phase-tracker.sh task` mirrored it; empty when there are none. subject and activeForm are scrubbed under --redact. Added in 1.2.0. */
|
|
@@ -716,6 +722,18 @@ export interface ActivityTable {
|
|
|
716
722
|
status: string;
|
|
717
723
|
startedAt: string | null;
|
|
718
724
|
completedAt: string | null;
|
|
725
|
+
/** The model that spent this phase's tokens, as the tracker recorded it; null until one is set. */
|
|
726
|
+
model: string | null;
|
|
727
|
+
/** What the phase is doing, for a running or failed phase only. Falls back to the name of the in-progress sub-step, and is null when neither exists. */
|
|
728
|
+
now: string | null;
|
|
729
|
+
/** Input plus output tokens for this phase; null when none were recorded. */
|
|
730
|
+
tokens: number | null;
|
|
731
|
+
/** The phase's own steps, as the card and the subject counter use them. */
|
|
732
|
+
subs: Array<{
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
status: "pending" | "in_progress" | "completed";
|
|
736
|
+
}>;
|
|
719
737
|
}>;
|
|
720
738
|
startedAt: string | null;
|
|
721
739
|
elapsedSeconds: number | null;
|
|
@@ -94,7 +94,7 @@ options:
|
|
|
94
94
|
description: <resolved path, shown literally: "<repo>/analysis/<feature>-<platform>.md" per selected repo, or "~/Desktop/multiAgentAnalysis/<feature-name>/<feature>-<channel>.md" when no repo was selected>
|
|
95
95
|
- label: "Confluence page"
|
|
96
96
|
- label: "Jira issue"
|
|
97
|
-
description: <localized: "As a comment by default; writing the description is a separate, explicit choice">
|
|
97
|
+
description: <localized: "As a comment by default; writing the description is a separate, explicit choice. With Confluence also selected the comment carries the page link, not a second copy of the document.">
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
Conditional follow-ups:
|
|
@@ -141,6 +141,17 @@ Iterate `state.analysisSpec.outputs.requested`. For each target:
|
|
|
141
141
|
| Confluence | Re-humanize each draft with `formal-stakeholder` tone. One page per draft under the chosen parent, titled `<Feature> - <Platform>` - including a repo-less run, whose drafts are the derived channels (`<Feature> - Mobile` / `<Feature> - Web`, Locked 34). A single channel-agnostic draft becomes one page titled `<Feature>`, with no suffix implying a split that was not made. Cross-link siblings inside each page via `<ac:link><ri:page ri:content-title="<Feature> - <OtherPlatform>"/></ac:link>`; a lone page has no sibling block. Markdown -> storage XML via `$HOME/.claude/multi-agent-refs/channels/confluence.md`. Re-emit on existing pages uses PUT with version bump. |
|
|
142
142
|
| Jira | Re-humanize the combined body with `informal-technical` tone. Concatenate the drafts under `h2. Platform: <X>` separators in production order - `iOS`, `Android`, `Web`, `Backend` repo-backed, `Mobile` / `Web` for channels derived on a repo-less run (Locked 34). A single channel-agnostic draft gets no separator: a heading announcing a split of one is noise. then run the whole body through the markdown → Jira wiki conversion table in `$HOME/.claude/multi-agent-refs/channels/jira.md` - both the comment body and the `description` field render wiki markup, so raw `##`/`**`/backticks arrive as literal text. Write the converted body to a file; it is published by step 3 there, with `$HOME/.claude/lib/jira-publish.sh`, never with a hand-rolled `curl`: <br><br>`bash "$HOME/.claude/lib/jira-publish.sh" --issue "$KEY" --body-file "$F" --target comment` <br>`bash "$HOME/.claude/lib/jira-publish.sh" --issue "$KEY" --body-file "$F" --target description --mode append` <br><br>The script runs `jira-wiki-escape.mjs`, keeps host and token out of argv, and on the description path backs the current value up under `~/.claude/logs/multi-agent/jira-backups/` (path reported), appends below a `----` rule by default, and **refuses with exit 3** when `--mode replace` would discard a non-empty description unless `--confirm-overwrite` is passed. Exit 3 is reported with the backup path, never retried with the flag added: only the user's explicit "Description - replace" answer from Phase 3.5 supplies it. `--dry-run` previews the exact final body without writing. |
|
|
143
143
|
|
|
144
|
+
**When Confluence is selected too, the Jira body is a pointer, not a copy.** The
|
|
145
|
+
page is published first, and the Jira body is then a short lead - the feature,
|
|
146
|
+
the platforms covered, the date - followed by the page URL from
|
|
147
|
+
`outputs.confluencePageUrls[]`, one line per emitted document. A second full
|
|
148
|
+
copy in a ticket is stale from the first edit of the page, and the two then
|
|
149
|
+
disagree with nothing to say which is current. The lead is there because a
|
|
150
|
+
reader who cannot open the page, or finds it moved, is left with a bare URL and
|
|
151
|
+
no idea what it was. This orders the dispatch: Confluence before Jira, and a
|
|
152
|
+
Confluence write that failed leaves the Jira body as the full document, since a
|
|
153
|
+
link to a page that does not exist is worse than the copy.
|
|
154
|
+
|
|
144
155
|
**Jira write and Issue Links:** `$HOME/.claude/multi-agent-refs/features/analysis-issue-links.md`. Nothing reaches Jira before approval.
|
|
145
156
|
|
|
146
157
|
**Output capture**: fill `state.analysisSpec.outputs.localPaths[]` (one entry per per-platform-per-repo write, or one per derived channel on a repo-less run), `outputs.confluencePageUrls[]` (one entry per emitted document), `outputs.confluencePages[]` (the same pages by IDENTITY - `pageId`, `title`, `space`, `channel` - because a write-back needs the id and a `/display/SPACE/Title` URL cannot be parsed for one), `outputs.jiraIssueKey` (single string).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Local
|
|
1
|
+
# Local LLM host
|
|
2
2
|
|
|
3
3
|
A fourth install target: the Codex CLI engine pointed at a model served from
|
|
4
4
|
this machine, in a tree of its own. `npx @mmerterden/multi-agent-pipeline
|
|
@@ -59,7 +59,7 @@ inherit the session's. That is the one answer that cannot be wrong.
|
|
|
59
59
|
|
|
60
60
|
## What the run looks like
|
|
61
61
|
|
|
62
|
-
| | Local
|
|
62
|
+
| | Local LLM host |
|
|
63
63
|
|---|---|
|
|
64
64
|
| Rungs | all four collapse to the one model; no reasoning effort |
|
|
65
65
|
| Review panel | one reviewer, triage on the same model |
|
|
@@ -222,7 +222,7 @@ How a dispatch hands a child its model differs per host, and the registry
|
|
|
222
222
|
| Claude Code | export `CLAUDE_CODE_SUBAGENT_MODEL` | - | - | no stated ceiling | `.claude/agents/*.md` |
|
|
223
223
|
| Copilot CLI | pass `--model` | - | - | no stated ceiling | `.copilot/agents/*.md` |
|
|
224
224
|
| Codex CLI | `model` on the spawn call | `reasoning_effort` | `fork_turns: none` | 3 | `.codex/agents/*.toml` |
|
|
225
|
-
| Local
|
|
225
|
+
| Local LLM | `model` on the spawn call | - | `fork_turns: none` | 1 | `.codex-local/agents/*.toml` |
|
|
226
226
|
<!-- /hosts -->
|
|
227
227
|
|
|
228
228
|
`$HOME/.claude/lib/model-dispatch.sh` turns `prefs.global.modelRouting` into a
|
|
@@ -40,6 +40,12 @@ Develop
|
|
|
40
40
|
The approved plan goes on the issue: plan-<id>-v<N>.md on Jira, a
|
|
41
41
|
<details> comment on GitHub (prefs.global.planAttachment: ask|always|never).
|
|
42
42
|
|
|
43
|
+
While a run works, the phase line says which model is spending, how long it
|
|
44
|
+
has been going, its tokens and rough cost, which step of how many, and what
|
|
45
|
+
it is doing right now. At the end it prints a plain summary: what changed,
|
|
46
|
+
what was checked, what was delivered and what is left for you. The office
|
|
47
|
+
page shows the same per phase.
|
|
48
|
+
|
|
43
49
|
Continuous mode
|
|
44
50
|
|
|
45
51
|
/multi-agent:autopilot-on Pick repos; labelled items run to a PR on a schedule
|
|
@@ -53,8 +59,10 @@ Continuous mode
|
|
|
53
59
|
Analysis has a queue of its own, on its own label: agent-analysis, per
|
|
54
60
|
repository as analysisGithubLabel and analysisJiraLabel. An item there is
|
|
55
61
|
analysed unattended and ends at the document, recorded as doc-delivered; it
|
|
56
|
-
never opens a pull request.
|
|
57
|
-
that
|
|
62
|
+
never opens a pull request. It ranks the same way: agent-analysis:1 ..
|
|
63
|
+
agent-analysis:9 order that queue as agent-queue:1 .. :9 order development.
|
|
64
|
+
The two labels have to differ, and a repository that gives both the same
|
|
65
|
+
value is refused.
|
|
58
66
|
|
|
59
67
|
Jira and GitHub
|
|
60
68
|
|
|
@@ -40,6 +40,11 @@ Geliştir
|
|
|
40
40
|
Onaylanan plan issue'ya eklenir: Jira'da plan-<id>-v<N>.md, GitHub'da
|
|
41
41
|
<details> içinde yorum (prefs.global.planAttachment: ask|always|never).
|
|
42
42
|
|
|
43
|
+
Koşu sürerken faz satırı şunu söyler: hangi model harcıyor, ne kadar süre
|
|
44
|
+
geçti, kaç token ve yaklaşık ne kadar tuttu, kaçıncı adım kaçta, şu an ne
|
|
45
|
+
yapıyor. Sonunda yalın bir özet basar: ne değişti, ne denetlendi, ne teslim
|
|
46
|
+
edildi, sende ne kaldı. Ofis sayfası aynısını faz faz gösterir.
|
|
47
|
+
|
|
43
48
|
Sürekli mod
|
|
44
49
|
|
|
45
50
|
/multi-agent:autopilot-on Repo seç; etiketli maddeler zamanlamayla PR'a koşar
|
|
@@ -53,8 +58,9 @@ Sürekli mod
|
|
|
53
58
|
Analizin kendi kuyruğu ve kendi etiketi var: agent-analysis; repo bazında
|
|
54
59
|
analysisGithubLabel ve analysisJiraLabel. Oradaki madde analiz komutunu
|
|
55
60
|
gözetimsiz koşturur ve dokümanda biter; kuyruk bunu doc-delivered diye yazar,
|
|
56
|
-
PR açılmaz.
|
|
57
|
-
|
|
61
|
+
PR açılmaz. Sıralama da aynı: agent-analysis:1 .. agent-analysis:9 bu kuyruğu,
|
|
62
|
+
agent-queue:1 .. :9 geliştirmeyi sıralar. İki etiket farklı olmak zorunda;
|
|
63
|
+
ikisine aynı değeri veren repo reddedilir.
|
|
58
64
|
|
|
59
65
|
Jira ve GitHub
|
|
60
66
|
|
|
@@ -744,3 +744,4 @@ It asserts five things:
|
|
|
744
744
|
A failure is a halt, not a warning: fix the state, re-run the gate, and leave the phase
|
|
745
745
|
`in_progress` until it passes. Never close Phase 0 on the grounds that its steps ran -
|
|
746
746
|
the gate checks the output, which is what Phase 2 consumes.
|
|
747
|
+
|
|
@@ -245,7 +245,7 @@ Launch Agent instances **in parallel** using the shared `code-reviewer` subagent
|
|
|
245
245
|
|
|
246
246
|
The Codex CLI column is a per-slot override of the persona tier map in `features/model-fallback.md` ("Codex CLI"); the two differ on purpose and the panel is the one a review uses.
|
|
247
247
|
|
|
248
|
-
Reviewer count per host: **Claude Code 3, Copilot CLI 3, Codex CLI 3** - **2** on Claude Code with the fable rung off, per `$HOME/.claude/multi-agent-refs/features/model-fallback.md`.
|
|
248
|
+
Reviewer count per host: **Claude Code 3, Copilot CLI 3, Codex CLI 3, local model 1** - **2** on Claude Code with the fable rung off, per `$HOME/.claude/multi-agent-refs/features/model-fallback.md`.
|
|
249
249
|
|
|
250
250
|
#### Codex CLI - two constraints that fail silently
|
|
251
251
|
|
|
@@ -288,7 +288,7 @@ Print the closing report to the terminal. Two blocks, in this order - what the
|
|
|
288
288
|
|
|
289
289
|
```bash
|
|
290
290
|
bash $HOME/.claude/scripts/phase-tracker.sh report
|
|
291
|
-
bash $HOME/.claude/scripts/render-work-summary.sh "$TASK_ID" --worktree "$WORKTREE_PATH"
|
|
291
|
+
bash $HOME/.claude/scripts/render-work-summary.sh "$TASK_ID" --format terminal --worktree "$WORKTREE_PATH"
|
|
292
292
|
```
|
|
293
293
|
|
|
294
294
|
`report` prices the run phase by phase; `render-work-summary.sh` says what changed on disk. Both land in tool output, which the host collapses, so **reprint them in your reply** followed by this line:
|