@mmerterden/multi-agent-pipeline 23.6.0 → 23.7.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 (45) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +6 -5
  3. package/README.tr.md +6 -5
  4. package/docs/architecture.md +7 -5
  5. package/docs/ecosystem.md +6 -6
  6. package/docs/engineering.md +1 -1
  7. package/docs/facts.json +4 -3
  8. package/package.json +1 -1
  9. package/pipeline/commands/multi-agent/SKILL.md +3 -2
  10. package/pipeline/commands/multi-agent/resume/SKILL.md +2 -0
  11. package/pipeline/commands/multi-agent/review-rounds/SKILL.md +94 -0
  12. package/pipeline/commands/multi-agent/sync/SKILL.md +3 -3
  13. package/pipeline/lib/usage-names.generated.mjs +3 -0
  14. package/pipeline/multi-agent-refs/_input-parser.md +1 -1
  15. package/pipeline/multi-agent-refs/component-dispatch.md +2 -2
  16. package/pipeline/multi-agent-refs/cross-cli-contract.md +3 -3
  17. package/pipeline/multi-agent-refs/features/autopilot-circuit-breaker.md +4 -4
  18. package/pipeline/multi-agent-refs/features/review-delta.md +1 -1
  19. package/pipeline/multi-agent-refs/features/review-rounds.md +40 -0
  20. package/pipeline/multi-agent-refs/features/rework-escalation.md +5 -4
  21. package/pipeline/multi-agent-refs/help/en.md +3 -1
  22. package/pipeline/multi-agent-refs/help/tr.md +3 -1
  23. package/pipeline/multi-agent-refs/orchestrator/copilot-pipeline.md +1 -1
  24. package/pipeline/multi-agent-refs/phases/operations.md +1 -1
  25. package/pipeline/multi-agent-refs/phases/phase-0-init.md +1 -1
  26. package/pipeline/multi-agent-refs/phases/phase-2-dev.md +4 -4
  27. package/pipeline/multi-agent-refs/phases/phase-3-review.md +7 -3
  28. package/pipeline/multi-agent-refs/resume/details.md +2 -0
  29. package/pipeline/office/index.html +2 -2
  30. package/pipeline/schemas/agent-state.schema.json +19 -1
  31. package/pipeline/schemas/phases.json +2 -2
  32. package/pipeline/schemas/prefs.schema.json +15 -3
  33. package/pipeline/schemas/token-budget.json +2 -2
  34. package/pipeline/scripts/gen-facts.mjs +9 -4
  35. package/pipeline/scripts/review-rounds.mjs +592 -0
  36. package/pipeline/scripts/rework-escalation.mjs +7 -3
  37. package/pipeline/scripts/validate-state.mjs +19 -11
  38. package/pipeline/skills/.skill-manifest.json +9 -5
  39. package/pipeline/skills/.skills-index.json +12 -1
  40. package/pipeline/skills/shared/README.md +4 -3
  41. package/pipeline/skills/shared/core/multi-agent/SKILL.md +3 -3
  42. package/pipeline/skills/shared/core/multi-agent-resume/SKILL.md +1 -1
  43. package/pipeline/skills/shared/core/multi-agent-review-rounds/SKILL.md +92 -0
  44. package/pipeline/skills/shared/core/multi-agent-sync/SKILL.md +3 -3
  45. package/pipeline/skills/skills-index.md +2 -1
@@ -905,6 +905,12 @@
905
905
  "type": "boolean",
906
906
  "default": false
907
907
  },
908
+ "reviewRounds": {
909
+ "type": "integer",
910
+ "minimum": 1,
911
+ "maximum": 3,
912
+ "description": "This run's review rework limit, recorded from --review-rounds N. Read by scripts/review-rounds.mjs ahead of the repo and global settings; absent when the run did not pass the flag."
913
+ },
908
914
  "localMode": {
909
915
  "type": "boolean",
910
916
  "default": false,
@@ -1303,7 +1309,19 @@
1303
1309
  "retryCount": {
1304
1310
  "type": "integer",
1305
1311
  "minimum": 0,
1306
- "maximum": 3
1312
+ "maximum": 3,
1313
+ "description": "Build and component-dispatch retries in this phase; the build-retry cap is 3. Review reworks are counted in reworkCount."
1314
+ },
1315
+ "reworkCount": {
1316
+ "type": "integer",
1317
+ "minimum": 0,
1318
+ "maximum": 3,
1319
+ "description": "Phase 2 only: how many times review sent work back to development. Incremented by Phase 3 Step 4 (review-rounds.mjs next) before each rework dispatch; the run rules on its open findings once it reaches the review limit (1 to 3, default 2)."
1320
+ },
1321
+ "reworkForIteration": {
1322
+ "type": "integer",
1323
+ "minimum": 0,
1324
+ "description": "Phase 2 only: the number of review iterations (length of reviewIterations) at the moment review-rounds.mjs next decided a rework. A rework is decided and not yet reviewed while this equals the current length of reviewIterations; resume re-enters the rework in that case, and a repeated Step 4 for the same iteration answers rework without counting it twice."
1307
1325
  },
1308
1326
  "trackerStatus": {
1309
1327
  "type": "object",
@@ -36,7 +36,7 @@
36
36
  "id": 2,
37
37
  "name": "Dev",
38
38
  "doc": "phase-2-dev.md",
39
- "maxTokens": 10650,
39
+ "maxTokens": 10410,
40
40
  "roles": ["critic"],
41
41
  "was": [3]
42
42
  },
@@ -44,7 +44,7 @@
44
44
  "id": 3,
45
45
  "name": "Review",
46
46
  "doc": "phase-3-review.md",
47
- "maxTokens": 17260,
47
+ "maxTokens": 17500,
48
48
  "roles": ["reviewer", "review panel", "triage", "triyaj"],
49
49
  "was": [4, 5]
50
50
  },
@@ -1175,8 +1175,7 @@
1175
1175
  "type": "integer",
1176
1176
  "minimum": 1,
1177
1177
  "maximum": 3,
1178
- "default": 3,
1179
- "description": "Phase 3 -> Phase 2 rework cycles before trigger 3 trips. Bounded above by the Phase 2 retryCount hard-kill."
1178
+ "description": "Optional lower bound for trigger 3. The rework limit itself is global.review.maxReworkCycles; this value only lowers the cycle count at which the breaker trips and never raises it."
1180
1179
  }
1181
1180
  }
1182
1181
  },
@@ -1211,8 +1210,15 @@
1211
1210
  "review": {
1212
1211
  "type": "object",
1213
1212
  "additionalProperties": false,
1214
- "description": "v8.6+ - Standalone /multi-agent:review knobs. Only affects the post-pr-review.sh path (PR-mode comment posting); does not change Phase 3 reviewer dispatch inside the full pipeline.",
1213
+ "description": "Review knobs. dedupeInlineComments and personaWalk belong to the standalone /multi-agent:review path. maxReworkCycles is the number of rework rounds Phase 3 may send back to Phase 2 in a pipeline run, resolved by scripts/review-rounds.mjs.",
1215
1214
  "properties": {
1215
+ "maxReworkCycles": {
1216
+ "type": "integer",
1217
+ "minimum": 1,
1218
+ "maximum": 3,
1219
+ "default": 2,
1220
+ "description": "How many times review may send work back to development before the run stops. 3 is the hard ceiling (the cap on phases.2.reworkCount). Run flag --review-rounds, then projects.<slug>.maxReworkCycles, then this. Set with /multi-agent:review-rounds."
1221
+ },
1216
1222
  "dedupeInlineComments": {
1217
1223
  "type": "boolean",
1218
1224
  "default": true,
@@ -2802,6 +2808,12 @@
2802
2808
  "enum": ["ask", "always", "never"],
2803
2809
  "description": "This project's override of global.planAttachment: whether the approved plan is attached to the run's Jira or GitHub issue."
2804
2810
  },
2811
+ "maxReworkCycles": {
2812
+ "type": "integer",
2813
+ "minimum": 1,
2814
+ "maximum": 3,
2815
+ "description": "This project's override of global.review.maxReworkCycles: how many times review may send work back to development before the run stops. Set with /multi-agent:review-rounds --repo."
2816
+ },
2805
2817
  "testPolicy": {
2806
2818
  "type": "string",
2807
2819
  "enum": ["tdd", "tests-after", "none"],
@@ -10,10 +10,10 @@
10
10
  "max_tokens": 10250
11
11
  },
12
12
  "phase-2-dev": {
13
- "max_tokens": 10650
13
+ "max_tokens": 10410
14
14
  },
15
15
  "phase-3-review": {
16
- "max_tokens": 17260
16
+ "max_tokens": 17500
17
17
  },
18
18
  "phase-4-commit": {
19
19
  "max_tokens": 6650
@@ -19,7 +19,8 @@
19
19
  * pluginSkillCount every SKILL.md in the plugin marketplace, when checked out,
20
20
  * except the aliases a rename leaves under the old name
21
21
  * reworkCap the maximum pipeline/schemas/prefs.schema.json allows for
22
- * global.autopilotCircuitBreaker.maxReworkCycles
22
+ * global.review.maxReworkCycles
23
+ * reworkDefault the default that same schema field carries
23
24
  * version package.json
24
25
  *
25
26
  * Counts come from the filesystem at the moment of writing, never from a README
@@ -89,17 +90,20 @@ try {
89
90
  }
90
91
 
91
92
  let reworkCap;
93
+ let reworkDefault;
92
94
  try {
93
95
  const prefsSchema = JSON.parse(
94
96
  readFileSync(join(ROOT, "pipeline", "schemas", "prefs.schema.json"), "utf8"),
95
97
  );
96
- reworkCap =
97
- prefsSchema.properties?.global?.properties?.autopilotCircuitBreaker?.properties?.maxReworkCycles
98
- ?.maximum;
98
+ const field = prefsSchema.properties?.global?.properties?.review?.properties?.maxReworkCycles;
99
+ reworkCap = field?.maximum;
100
+ reworkDefault = field?.default;
99
101
  } catch (err) {
100
102
  die(`cannot read the prefs schema - ${err.message}`);
101
103
  }
102
104
  if (!Number.isInteger(reworkCap)) die("prefs schema has no integer maximum for maxReworkCycles");
105
+ if (!Number.isInteger(reworkDefault))
106
+ die("prefs schema has no integer default for maxReworkCycles");
103
107
 
104
108
  let pkg;
105
109
  try {
@@ -218,6 +222,7 @@ const facts = {
218
222
  phaseCount: contract.phases.length,
219
223
  modes: Object.fromEntries(Object.entries(contract.modes).map(([k, v]) => [k, v.phases])),
220
224
  reworkCap,
225
+ reworkDefault,
221
226
  commandCount: countSkillDirs("pipeline/commands/multi-agent"),
222
227
  // Two populations: `skillCount` is the external set a user installs;
223
228
  // `skillCountAll` is every SKILL.md the repo ships, mirrors included. The site