nexus-agents 2.151.0 → 2.152.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.
@@ -4473,7 +4473,9 @@ function applyAbsoluteQuorumTelemetry(response, input, decision, degradeReason)
4473
4473
  function buildResponse(input, result, costSummary, voteRecord) {
4474
4474
  const proposalTruncated = input.proposal.length > 200 ? input.proposal.slice(0, 200) + "..." : input.proposal;
4475
4475
  const errorCount = result.votes.filter((v) => v.source === "error").length;
4476
- const { decision, degradeReason } = resolveVoteDecision(input, result, errorCount);
4476
+ const resolved = resolveVoteDecision(input, result, errorCount);
4477
+ const decision = result.decision ?? resolved.decision;
4478
+ const { degradeReason } = resolved;
4477
4479
  const response = {
4478
4480
  proposal: proposalTruncated,
4479
4481
  strategy: result.strategy,
@@ -5957,6 +5959,12 @@ async function maybeEscalateContrarian(input, outcome, ctx, logger10, opts) {
5957
5959
  return { escalated: await executeVoting({ ...input, quickMode: false }, logger10, opts) };
5958
5960
  }
5959
5961
  async function executeVoting(input, logger10, opts) {
5962
+ const result = await executeVotingInner(input, logger10, opts);
5963
+ const errorCount = result.votes.filter((v) => v.source === "error").length;
5964
+ result.decision = resolveVoteDecision(input, result, errorCount).decision;
5965
+ return result;
5966
+ }
5967
+ async function executeVotingInner(input, logger10, opts) {
5960
5968
  const strategy = resolveStrategy(input);
5961
5969
  const algorithm = strategyToAlgorithm(strategy);
5962
5970
  const roles = getVoterRoles(input.quickMode);
@@ -6370,6 +6378,7 @@ export {
6370
6378
  ErrorPolicySchema,
6371
6379
  VoteThresholdSchema,
6372
6380
  ConsensusVoteInputSchema,
6381
+ mapOutcomeToDecision,
6373
6382
  recordDecisionCost,
6374
6383
  warnIfSimulatedOutsideTests,
6375
6384
  resetCorrelationTracker,
@@ -6380,4 +6389,4 @@ export {
6380
6389
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
6381
6390
  registerConsensusVoteTool
6382
6391
  };
6383
- //# sourceMappingURL=chunk-UIL37D2V.js.map
6392
+ //# sourceMappingURL=chunk-447YUGJD.js.map