agentxchain 2.155.15 → 2.155.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentxchain",
3
- "version": "2.155.15",
3
+ "version": "2.155.17",
4
4
  "description": "CLI for AgentXchain — governed multi-agent software delivery",
5
5
  "type": "module",
6
6
  "bin": {
@@ -4497,11 +4497,14 @@ function _acceptGovernedTurnLocked(root, config, opts) {
4497
4497
  }
4498
4498
  }
4499
4499
 
4500
+ const idleExpansionResultSummary = summarizeIdleExpansionResult(turnResult);
4501
+ const isIdleExpansionNewIntakeProposal = idleExpansionResultSummary?.kind === 'new_intake_intent';
4502
+
4500
4503
  // ── Gate semantic coverage validation (BUG-36) ────────────────────────────
4501
4504
  // When a turn proposes a phase transition, pre-evaluate the gate. If the gate
4502
4505
  // would fail AND the failing files are not in files_changed, reject the turn
4503
4506
  // early — the agent didn't do the work required for the transition.
4504
- if (turnResult.phase_transition_request) {
4507
+ if (turnResult.phase_transition_request && !isIdleExpansionNewIntakeProposal) {
4505
4508
  const preGateResult = evaluatePhaseExit({
4506
4509
  state,
4507
4510
  config,
@@ -4885,7 +4888,6 @@ function _acceptGovernedTurnLocked(root, config, opts) {
4885
4888
  }
4886
4889
 
4887
4890
  const acceptedSequence = (state.turn_sequence || 0) + 1;
4888
- const idleExpansionResultSummary = summarizeIdleExpansionResult(turnResult);
4889
4891
  const historyEntry = {
4890
4892
  turn_id: turnResult.turn_id,
4891
4893
  run_id: turnResult.run_id,
@@ -5255,6 +5257,7 @@ function _acceptGovernedTurnLocked(root, config, opts) {
5255
5257
  suppressed_needs_human: suppressIdleExpansionNeedsHuman,
5256
5258
  },
5257
5259
  });
5260
+ updatedState.next_recommended_role = currentTurn.assigned_role;
5258
5261
  }
5259
5262
 
5260
5263
  // BUG-70: clear charter_materialization_pending when a non-idle-expansion turn