@yemi33/minions 0.1.791 → 0.1.793

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.791 (2026-04-10)
3
+ ## 0.1.793 (2026-04-10)
4
4
 
5
5
  ### Features
6
6
  - add open-source community sources to agentic research pipeline
@@ -8,6 +8,8 @@
8
8
  - cap review→fix cycles at evalMaxIterations (default 3)
9
9
 
10
10
  ### Fixes
11
+ - never downgrade reviewStatus from 'approved' unless explicitly rejected
12
+ - warn on invalid pipeline JSON instead of silently dropping + add test
11
13
  - repair invalid JSON in daily-arch-improvement pipeline
12
14
  - flush queued CC messages as single combined request
13
15
  - human feedback fixes are never capped (only minion review→fix loop is)
package/engine/ado.js CHANGED
@@ -306,6 +306,8 @@ async function pollPrStatus(config) {
306
306
  }
307
307
  }
308
308
  else if (votes.some(v => v >= 5)) newReviewStatus = 'approved';
309
+ // Never downgrade from 'approved' — only -10 (reject) can override it
310
+ else if (pr.reviewStatus === 'approved') newReviewStatus = 'approved';
309
311
  else if (votes.some(v => v === -5)) newReviewStatus = 'waiting';
310
312
  else newReviewStatus = 'pending';
311
313
  }
package/engine/github.js CHANGED
@@ -339,9 +339,9 @@ async function pollPrStatus(config) {
339
339
  }
340
340
  }
341
341
  else if (states.some(s => s === 'APPROVED')) newReviewStatus = 'approved';
342
+ // Never downgrade from 'approved' — only CHANGES_REQUESTED can override it
343
+ else if (pr.reviewStatus === 'approved') newReviewStatus = 'approved';
342
344
  else if (states.length > 0) newReviewStatus = 'pending';
343
- // If all reviews were COMMENTED (filtered out), states is empty but reviews exist.
344
- // Set to 'waiting' instead of leaving as 'pending' to prevent infinite review re-dispatch.
345
345
  else if (states.length === 0 && reviews.length > 0 && newReviewStatus === 'pending') newReviewStatus = 'waiting';
346
346
 
347
347
  if (pr.reviewStatus !== newReviewStatus) {
@@ -751,7 +751,10 @@ async function updatePrAfterReview(agentId, pr, project, config, resultSummary)
751
751
  if (!Array.isArray(prs)) return prs;
752
752
  const target = prs.find(p => p.id === pr.id);
753
753
  if (!target) return prs;
754
- if (postReviewStatus) target.reviewStatus = postReviewStatus; // only update if live check returned decisive result
754
+ // Only update if live check returned decisive result; never downgrade from 'approved' unless explicitly rejected
755
+ if (postReviewStatus && !(target.reviewStatus === 'approved' && postReviewStatus !== 'changes-requested')) {
756
+ target.reviewStatus = postReviewStatus;
757
+ }
755
758
  target.lastReviewedAt = ts();
756
759
  target.minionsReview = {
757
760
  reviewer: reviewerName,
@@ -20,7 +20,17 @@ function getPipelines() {
20
20
  if (!fs.existsSync(PIPELINES_DIR)) return [];
21
21
  return safeReadDir(PIPELINES_DIR)
22
22
  .filter(f => f.endsWith('.json'))
23
- .map(f => safeJson(path.join(PIPELINES_DIR, f)))
23
+ .map(f => {
24
+ const filePath = path.join(PIPELINES_DIR, f);
25
+ try {
26
+ const parsed = JSON.parse(fs.readFileSync(filePath, 'utf8'));
27
+ if (!parsed) log('warn', `getPipelines: ${f} parsed to null — skipping`);
28
+ return parsed;
29
+ } catch (e) {
30
+ log('warn', `getPipelines: ${f} is invalid JSON — skipping (${e.message})`);
31
+ return null;
32
+ }
33
+ })
24
34
  .filter(Boolean);
25
35
  }
26
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.791",
3
+ "version": "0.1.793",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"