nexus-agents 8.9.1 → 8.9.2

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.
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  DEFAULT_TASK_TTL_MS,
23
23
  clampTaskTtl
24
- } from "./chunk-KE5IGD6G.js";
24
+ } from "./chunk-6VGKI5QE.js";
25
25
  import {
26
26
  executeExpert
27
27
  } from "./chunk-4GSFZS6M.js";
@@ -48,7 +48,7 @@ import {
48
48
  simulationDeniedResult,
49
49
  toJobSummary,
50
50
  writeJobCancelled
51
- } from "./chunk-P64GQUQW.js";
51
+ } from "./chunk-JLCOIDJJ.js";
52
52
  import {
53
53
  allOf
54
54
  } from "./chunk-OQB3XC5O.js";
@@ -67,7 +67,7 @@ import {
67
67
  } from "./chunk-M33EQB7P.js";
68
68
  import {
69
69
  withPrerequisite
70
- } from "./chunk-FMKEGR6N.js";
70
+ } from "./chunk-I4TQ5VQ7.js";
71
71
  import {
72
72
  NOOP_NOTIFIER,
73
73
  RateLimiter,
@@ -92,7 +92,7 @@ import {
92
92
  withAuditTrail,
93
93
  withProgressHeartbeat,
94
94
  wrapToolWithTimeout
95
- } from "./chunk-P2DV7PDG.js";
95
+ } from "./chunk-MJHNCHJI.js";
96
96
  import {
97
97
  createAuditTrail,
98
98
  createGraphAuditBridge,
@@ -977,7 +977,11 @@ var NexusEnvSchema = z10.object({
977
977
  // Drives the auto-remediation cycle (resolveAutoRemediateMode); default audit
978
978
  // (zero-write soak, #3769) when unset, explicit `off` disables.
979
979
  NEXUS_AUTO_REMEDIATE: z10.enum(["off", "audit", "enforce"]).optional(),
980
- // Stage-boundary policy gate enforcement mode (getGateEnforcementMode); warn by default.
980
+ // Stage-boundary policy gate enforcement mode (getGateEnforcementMode); warn by
981
+ // default. Read by dev-pipeline's consensus→execute gate, and by any compiled
982
+ // gate node whose caller supplies a `policyEnforcement` bundle without a mode
983
+ // (no in-tree caller supplies a bundle today). The V2 delegate graph declares
984
+ // no gate (#4657); v2-orchestrate's execute check reads the V2 policy-mode variable instead (its own entry below; see CONFIGURATION.md).
981
985
  NEXUS_POLICY_GATE_MODE: z10.enum(["off", "warn", "block"]).optional(),
982
986
  // Path to a model-registry overlay manifest (buildDefaultRegistry / #3185 hot-reload).
983
987
  NEXUS_MODELS_OVERLAY_PATH: z10.string().optional(),
@@ -31627,15 +31631,7 @@ var logger24 = createLogger({ component: "V2Delegate" });
31627
31631
  function createDelegatePipeline(task) {
31628
31632
  const plan = buildDelegatePlan(task);
31629
31633
  const runner = new PipelineRunner();
31630
- return runner.compile(plan, { policyEnforcement: buildWarnPolicyEnforcement(task) });
31631
- }
31632
- function buildWarnPolicyEnforcement(task, overrides = {}) {
31633
- return {
31634
- engine: overrides.engine ?? createDefaultPolicyEngine(),
31635
- pipelineState: toPipelineStateSnapshot(task.metadata),
31636
- eventBus: overrides.eventBus ?? getPipelineEventBus(),
31637
- mode: getGateEnforcementMode()
31638
- };
31634
+ return runner.compile(plan);
31639
31635
  }
31640
31636
  function delegateInputToTaskContract(input, opts = {}) {
31641
31637
  const metadata = { source: "delegate_to_model" };
@@ -31721,12 +31717,6 @@ function formatViolation(v) {
31721
31717
  return v.escalateTo !== void 0 ? `${base} [escalate: ${v.escalateTo}]` : base;
31722
31718
  }
31723
31719
  var ROUTE_STAGE_ID = "route-model";
31724
- var ENTRY_GATE = {
31725
- id: "gate-delegate-entry",
31726
- afterStage: START,
31727
- beforeStage: ROUTE_STAGE_ID,
31728
- rules: ["trust-tier"]
31729
- };
31730
31720
  function buildDelegatePlan(task) {
31731
31721
  return {
31732
31722
  taskId: task.id,
@@ -31744,7 +31734,7 @@ function buildDelegatePlan(task) {
31744
31734
  }
31745
31735
  }
31746
31736
  ],
31747
- policyGates: [ENTRY_GATE],
31737
+ policyGates: [],
31748
31738
  estimatedCost: {
31749
31739
  totalTokensIn: 0,
31750
31740
  totalTokensOut: 0,
@@ -47395,7 +47385,7 @@ ${contextBlock}`;
47395
47385
  const strategy = config.votingStrategy ?? "higher_order";
47396
47386
  await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
47397
47387
  try {
47398
- const { executeVoting } = await import("./consensus-vote-3FCOFDON.js");
47388
+ const { executeVoting } = await import("./consensus-vote-T6D4XVUA.js");
47399
47389
  const votingResult = await executeVoting(
47400
47390
  {
47401
47391
  proposal: buildVoteProposal(plan, research),
@@ -56051,4 +56041,4 @@ export {
56051
56041
  shutdownFeedbackSubscriber,
56052
56042
  createEventBusBridge
56053
56043
  };
56054
- //# sourceMappingURL=chunk-MYERGZK3.js.map
56044
+ //# sourceMappingURL=chunk-2ZOPJGMY.js.map