nexus-agents 8.15.0 → 8.15.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.
@@ -23,10 +23,10 @@ import {
23
23
  toolSuccessStructured,
24
24
  withProgressHeartbeat,
25
25
  wrapToolWithTimeout
26
- } from "./chunk-XC2J6JRK.js";
26
+ } from "./chunk-MTJ7LRGT.js";
27
27
  import {
28
28
  VERSION
29
- } from "./chunk-DPPOV7OE.js";
29
+ } from "./chunk-PQ3W4EXO.js";
30
30
  import {
31
31
  assessPanelIndependence,
32
32
  countDistinctModels,
@@ -6464,9 +6464,13 @@ async function maybeEscalateContrarian(input, outcome, ctx, logger10, opts) {
6464
6464
  }
6465
6465
  async function executeVoting(input, logger10, opts) {
6466
6466
  const result = await executeVotingInner(input, logger10, opts ?? {});
6467
+ const correlationAlreadyRecorded = result.decision !== void 0;
6467
6468
  const errorCount = result.votes.filter((v) => v.source === "error").length;
6468
6469
  applyOptionGate(input, result);
6469
6470
  result.decision = resolveVoteDecision(input, result, errorCount).decision;
6471
+ if (!correlationAlreadyRecorded && (result.decision === "approved" || result.decision === "rejected")) {
6472
+ recordVotesToTracker(result.votes, result.decision, logger10);
6473
+ }
6470
6474
  return result;
6471
6475
  }
6472
6476
  function applyOptionGate(input, result) {
@@ -6530,7 +6534,6 @@ async function executeVotingInner(input, logger10, opts) {
6530
6534
  log: logger10
6531
6535
  }
6532
6536
  );
6533
- recordVotesToTracker(votes, outcome, logger10);
6534
6537
  const escalation = await maybeEscalateContrarian(
6535
6538
  input,
6536
6539
  outcome,
@@ -6974,4 +6977,4 @@ export {
6974
6977
  CONSENSUS_VOTE_TOOL_SCHEMA,
6975
6978
  registerConsensusVoteTool
6976
6979
  };
6977
- //# sourceMappingURL=chunk-VA3SFFJJ.js.map
6980
+ //# sourceMappingURL=chunk-3RZE42WN.js.map