agentxchain 2.155.15 → 2.155.16
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
|
@@ -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,
|