@sagentlab/navarch-runtime 0.1.184 → 0.1.187

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/dist/session.cjs CHANGED
@@ -88,10 +88,12 @@ function resolveSessionExecution(config, claimed) {
88
88
  : "claude-opus-5-5",
89
89
  reasoning_effort: "medium",
90
90
  };
91
- return {
92
- ...execution,
93
- ...(runtime === config.agentType && config.model ? { model: config.model } : {}),
94
- };
91
+ // The machine pin stands in for project policy on its own adapter. A model
92
+ // the task itself pinned wins: running the machine's model there would be a
93
+ // silent substitution.
94
+ const machinePin = runtime === config.agentType && config.model && !execution.model_pinned
95
+ ? config.model : undefined;
96
+ return { ...execution, ...(machinePin ? { model: machinePin } : {}) };
95
97
  }
96
98
  /**
97
99
  * Runs one claimed task end to end (implementation-plan.md WP-07):
@@ -162,6 +164,9 @@ async function runClaimedSession(deps, claimed, sessionId, lifecycle) {
162
164
  const { lease_id: leaseId, task, context_bundle: bundle } = claimed;
163
165
  const runtime = claimed.runtime ?? config.agentType;
164
166
  const execution = resolveSessionExecution(config, claimed);
167
+ if (execution.model_pinned && runtime === config.agentType && config.model && config.model !== execution.model) {
168
+ log.info(`session ${leaseId}: the task pins model ${execution.model}; this machine's --model pin (${config.model}) is not applied`);
169
+ }
165
170
  // Isolation posture reported on every completion so `sessions` records what
166
171
  // a run actually executed under (#660). Derived from config alone, so the
167
172
  // pre-start failure paths below can stamp it too. Host mode records
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sagentlab/navarch-runtime",
3
- "version": "0.1.184",
3
+ "version": "0.1.187",
4
4
  "description": "Navarch machine-side session manager: claims delivery tasks and runs them through local coding agents.",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",