@aspectlylabs/mikka 0.0.653 → 0.0.654

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/cli.js CHANGED
@@ -5643,6 +5643,8 @@ var deviceReposResponse = z24.object({
5643
5643
  var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
5644
5644
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
5645
5645
  var runAssignmentSchema = z24.object({
5646
+ /** The server handles native model observations without transitioning run state. */
5647
+ acceptsModelObservations: z24.literal(true).optional(),
5646
5648
  runId: id3,
5647
5649
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
5648
5650
  traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
@@ -5848,9 +5850,14 @@ var runPatchSchema = z24.object({
5848
5850
  sessionId: z24.string().max(500).nullable().optional(),
5849
5851
  worktree: z24.string().max(4e3).nullable().optional(),
5850
5852
  error: z24.string().max(1e4).nullable().optional(),
5853
+ /** An observation-only patch never transitions the run state. */
5854
+ observedModel: z24.string().trim().min(1).max(500).optional(),
5851
5855
  /** Set on every terminal state. */
5852
5856
  stopReason: runStopReason.optional()
5853
- });
5857
+ }).refine(
5858
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
5859
+ { message: "A model observation requires the running session", path: ["observedModel"] }
5860
+ );
5854
5861
  var runEventBatchSchema = z24.object({
5855
5862
  fromSeq: z24.number().int().min(1),
5856
5863
  chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
@@ -6571,7 +6578,7 @@ import { join as join4 } from "node:path";
6571
6578
  // package.json
6572
6579
  var package_default = {
6573
6580
  name: "@mikka/daemon",
6574
- version: "0.0.653",
6581
+ version: "0.0.654",
6575
6582
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
6576
6583
  type: "module",
6577
6584
  private: true,
@@ -6639,7 +6646,7 @@ var package_default = {
6639
6646
  engines: {
6640
6647
  node: ">=22"
6641
6648
  },
6642
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
6649
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
6643
6650
  };
6644
6651
 
6645
6652
  // src/paths.ts
@@ -17833,7 +17840,7 @@ var MemoryServer = class {
17833
17840
  this.check();
17834
17841
  const run3 = this.runs.get(runId);
17835
17842
  if (!run3) return;
17836
- run3.state = patch.state;
17843
+ if (patch.observedModel === void 0) run3.state = patch.state;
17837
17844
  run3.patches.push(patch);
17838
17845
  },
17839
17846
  checkpointRun: async (runId, checkpoint) => {
@@ -19074,6 +19081,12 @@ var RunSupervisor = class {
19074
19081
  );
19075
19082
  run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
19076
19083
  const traceContext = daemonTracer.capture();
19084
+ const recordModel = (sessionId, model) => {
19085
+ const observedModel = model?.trim();
19086
+ if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
19087
+ run3.observedModel = observedModel;
19088
+ this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
19089
+ };
19077
19090
  const baseOptions = {
19078
19091
  traceContext,
19079
19092
  // The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
@@ -19101,7 +19114,9 @@ var RunSupervisor = class {
19101
19114
  skillReceipt: assignment.skillReceipt,
19102
19115
  profileSkills: assignment.profileSkills,
19103
19116
  repositorySkills: assignment.repositorySkills,
19104
- onRuntimeModel: assignment.skillReceipt ? (sessionId, observedModel) => {
19117
+ onRuntimeModel: (sessionId, observedModel) => {
19118
+ recordModel(sessionId, observedModel);
19119
+ if (!assignment.skillReceipt) return;
19105
19120
  const current = this.deps.journal.get(runId);
19106
19121
  if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
19107
19122
  if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
@@ -19109,7 +19124,7 @@ var RunSupervisor = class {
19109
19124
  runtime: { ...current.runtime, observedModel },
19110
19125
  ...current.execution ? { execution: { ...current.execution, observedModel } } : {}
19111
19126
  });
19112
- } : void 0,
19127
+ },
19113
19128
  fixture: assignment.fixture,
19114
19129
  model: assignment.model,
19115
19130
  effort: assignment.effort,
@@ -19379,6 +19394,7 @@ var RunSupervisor = class {
19379
19394
  worktree
19380
19395
  });
19381
19396
  }
19397
+ recordModel(session.sessionId, session.runtimeModel);
19382
19398
  if (run3.cancelRequested) await this.requestCancel(runId, run3);
19383
19399
  const iterator = session.events()[Symbol.asyncIterator]();
19384
19400
  const timedToolChunk = toolDuration();
package/client.js CHANGED
@@ -4319,6 +4319,8 @@ var deviceReposResponse = z24.object({
4319
4319
  var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
4320
4320
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
4321
4321
  var runAssignmentSchema = z24.object({
4322
+ /** The server handles native model observations without transitioning run state. */
4323
+ acceptsModelObservations: z24.literal(true).optional(),
4322
4324
  runId: id3,
4323
4325
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
4324
4326
  traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
@@ -4524,9 +4526,14 @@ var runPatchSchema = z24.object({
4524
4526
  sessionId: z24.string().max(500).nullable().optional(),
4525
4527
  worktree: z24.string().max(4e3).nullable().optional(),
4526
4528
  error: z24.string().max(1e4).nullable().optional(),
4529
+ /** An observation-only patch never transitions the run state. */
4530
+ observedModel: z24.string().trim().min(1).max(500).optional(),
4527
4531
  /** Set on every terminal state. */
4528
4532
  stopReason: runStopReason.optional()
4529
- });
4533
+ }).refine(
4534
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
4535
+ { message: "A model observation requires the running session", path: ["observedModel"] }
4536
+ );
4530
4537
  var runEventBatchSchema = z24.object({
4531
4538
  fromSeq: z24.number().int().min(1),
4532
4539
  chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
@@ -5097,7 +5104,7 @@ import { join } from "node:path";
5097
5104
  // package.json
5098
5105
  var package_default = {
5099
5106
  name: "@mikka/daemon",
5100
- version: "0.0.653",
5107
+ version: "0.0.654",
5101
5108
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
5102
5109
  type: "module",
5103
5110
  private: true,
@@ -5165,7 +5172,7 @@ var package_default = {
5165
5172
  engines: {
5166
5173
  node: ">=22"
5167
5174
  },
5168
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
5175
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
5169
5176
  };
5170
5177
 
5171
5178
  // src/paths.ts
package/http-link.js CHANGED
@@ -4751,6 +4751,8 @@ var deviceReposResponse = z26.object({
4751
4751
  var pendingRunsResponse = z26.object({ runIds: z26.array(id3) });
4752
4752
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
4753
4753
  var runAssignmentSchema = z26.object({
4754
+ /** The server handles native model observations without transitioning run state. */
4755
+ acceptsModelObservations: z26.literal(true).optional(),
4754
4756
  runId: id3,
4755
4757
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
4756
4758
  traceContext: z26.unknown().transform(sanitizeTraceContext).optional(),
@@ -4956,9 +4958,14 @@ var runPatchSchema = z26.object({
4956
4958
  sessionId: z26.string().max(500).nullable().optional(),
4957
4959
  worktree: z26.string().max(4e3).nullable().optional(),
4958
4960
  error: z26.string().max(1e4).nullable().optional(),
4961
+ /** An observation-only patch never transitions the run state. */
4962
+ observedModel: z26.string().trim().min(1).max(500).optional(),
4959
4963
  /** Set on every terminal state. */
4960
4964
  stopReason: runStopReason.optional()
4961
- });
4965
+ }).refine(
4966
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
4967
+ { message: "A model observation requires the running session", path: ["observedModel"] }
4968
+ );
4962
4969
  var runEventBatchSchema = z26.object({
4963
4970
  fromSeq: z26.number().int().min(1),
4964
4971
  chunks: z26.array(z26.looseObject({ type: z26.string() })).min(1).max(1e3)
@@ -5624,7 +5631,7 @@ var InvalidIdError = class extends DaemonError {
5624
5631
  // package.json
5625
5632
  var package_default = {
5626
5633
  name: "@mikka/daemon",
5627
- version: "0.0.653",
5634
+ version: "0.0.654",
5628
5635
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
5629
5636
  type: "module",
5630
5637
  private: true,
@@ -5692,7 +5699,7 @@ var package_default = {
5692
5699
  engines: {
5693
5700
  node: ">=22"
5694
5701
  },
5695
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
5702
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
5696
5703
  };
5697
5704
 
5698
5705
  // src/paths.ts
package/login.js CHANGED
@@ -4359,6 +4359,8 @@ var deviceReposResponse = z24.object({
4359
4359
  var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
4360
4360
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
4361
4361
  var runAssignmentSchema = z24.object({
4362
+ /** The server handles native model observations without transitioning run state. */
4363
+ acceptsModelObservations: z24.literal(true).optional(),
4362
4364
  runId: id3,
4363
4365
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
4364
4366
  traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
@@ -4564,9 +4566,14 @@ var runPatchSchema = z24.object({
4564
4566
  sessionId: z24.string().max(500).nullable().optional(),
4565
4567
  worktree: z24.string().max(4e3).nullable().optional(),
4566
4568
  error: z24.string().max(1e4).nullable().optional(),
4569
+ /** An observation-only patch never transitions the run state. */
4570
+ observedModel: z24.string().trim().min(1).max(500).optional(),
4567
4571
  /** Set on every terminal state. */
4568
4572
  stopReason: runStopReason.optional()
4569
- });
4573
+ }).refine(
4574
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
4575
+ { message: "A model observation requires the running session", path: ["observedModel"] }
4576
+ );
4570
4577
  var runEventBatchSchema = z24.object({
4571
4578
  fromSeq: z24.number().int().min(1),
4572
4579
  chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
@@ -5149,7 +5156,7 @@ var ServerUnreachableError = class extends DaemonError {
5149
5156
  // package.json
5150
5157
  var package_default = {
5151
5158
  name: "@mikka/daemon",
5152
- version: "0.0.653",
5159
+ version: "0.0.654",
5153
5160
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
5154
5161
  type: "module",
5155
5162
  private: true,
@@ -5217,7 +5224,7 @@ var package_default = {
5217
5224
  engines: {
5218
5225
  node: ">=22"
5219
5226
  },
5220
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
5227
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
5221
5228
  };
5222
5229
 
5223
5230
  // src/paths.ts
package/main.js CHANGED
@@ -5211,6 +5211,8 @@ var deviceReposResponse = z24.object({
5211
5211
  var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
5212
5212
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
5213
5213
  var runAssignmentSchema = z24.object({
5214
+ /** The server handles native model observations without transitioning run state. */
5215
+ acceptsModelObservations: z24.literal(true).optional(),
5214
5216
  runId: id3,
5215
5217
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
5216
5218
  traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
@@ -5416,9 +5418,14 @@ var runPatchSchema = z24.object({
5416
5418
  sessionId: z24.string().max(500).nullable().optional(),
5417
5419
  worktree: z24.string().max(4e3).nullable().optional(),
5418
5420
  error: z24.string().max(1e4).nullable().optional(),
5421
+ /** An observation-only patch never transitions the run state. */
5422
+ observedModel: z24.string().trim().min(1).max(500).optional(),
5419
5423
  /** Set on every terminal state. */
5420
5424
  stopReason: runStopReason.optional()
5421
- });
5425
+ }).refine(
5426
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
5427
+ { message: "A model observation requires the running session", path: ["observedModel"] }
5428
+ );
5422
5429
  var runEventBatchSchema = z24.object({
5423
5430
  fromSeq: z24.number().int().min(1),
5424
5431
  chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
@@ -6060,7 +6067,7 @@ import { join } from "node:path";
6060
6067
  // package.json
6061
6068
  var package_default = {
6062
6069
  name: "@mikka/daemon",
6063
- version: "0.0.653",
6070
+ version: "0.0.654",
6064
6071
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
6065
6072
  type: "module",
6066
6073
  private: true,
@@ -6128,7 +6135,7 @@ var package_default = {
6128
6135
  engines: {
6129
6136
  node: ">=22"
6130
6137
  },
6131
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
6138
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
6132
6139
  };
6133
6140
 
6134
6141
  // src/paths.ts
@@ -16716,7 +16723,7 @@ var MemoryServer = class {
16716
16723
  this.check();
16717
16724
  const run3 = this.runs.get(runId);
16718
16725
  if (!run3) return;
16719
- run3.state = patch.state;
16726
+ if (patch.observedModel === void 0) run3.state = patch.state;
16720
16727
  run3.patches.push(patch);
16721
16728
  },
16722
16729
  checkpointRun: async (runId, checkpoint) => {
@@ -17957,6 +17964,12 @@ var RunSupervisor = class {
17957
17964
  );
17958
17965
  run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
17959
17966
  const traceContext = daemonTracer.capture();
17967
+ const recordModel = (sessionId, model) => {
17968
+ const observedModel = model?.trim();
17969
+ if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
17970
+ run3.observedModel = observedModel;
17971
+ this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
17972
+ };
17960
17973
  const baseOptions = {
17961
17974
  traceContext,
17962
17975
  // The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
@@ -17984,7 +17997,9 @@ var RunSupervisor = class {
17984
17997
  skillReceipt: assignment.skillReceipt,
17985
17998
  profileSkills: assignment.profileSkills,
17986
17999
  repositorySkills: assignment.repositorySkills,
17987
- onRuntimeModel: assignment.skillReceipt ? (sessionId, observedModel) => {
18000
+ onRuntimeModel: (sessionId, observedModel) => {
18001
+ recordModel(sessionId, observedModel);
18002
+ if (!assignment.skillReceipt) return;
17988
18003
  const current = this.deps.journal.get(runId);
17989
18004
  if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
17990
18005
  if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
@@ -17992,7 +18007,7 @@ var RunSupervisor = class {
17992
18007
  runtime: { ...current.runtime, observedModel },
17993
18008
  ...current.execution ? { execution: { ...current.execution, observedModel } } : {}
17994
18009
  });
17995
- } : void 0,
18010
+ },
17996
18011
  fixture: assignment.fixture,
17997
18012
  model: assignment.model,
17998
18013
  effort: assignment.effort,
@@ -18262,6 +18277,7 @@ var RunSupervisor = class {
18262
18277
  worktree
18263
18278
  });
18264
18279
  }
18280
+ recordModel(session.sessionId, session.runtimeModel);
18265
18281
  if (run3.cancelRequested) await this.requestCancel(runId, run3);
18266
18282
  const iterator = session.events()[Symbol.asyncIterator]();
18267
18283
  const timedToolChunk = toolDuration();
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "version": 1,
3
- "sourceSha": "179d84df6e3364fac7bfcd4a8fe872a33a0adad5",
3
+ "sourceSha": "30629ee1f18fa70b3713836017b437c22af915ee",
4
4
  "repository": "alexj11324/Mikka",
5
- "buildRunId": "43682710168",
5
+ "buildRunId": "43686770050",
6
6
  "buildKind": "github-actions-main",
7
7
  "sourceLockSha256": "ef566c7e7ffb23a605b6f4c0c5b715caba7afed70b6155251db2eead6b9c426b",
8
- "createdAt": "2026-11-15T05:52:37.262Z",
8
+ "createdAt": "2026-11-15T06:47:39.468Z",
9
9
  "sbom": "sbom.cdx.json",
10
10
  "files": [
11
11
  {
@@ -35,13 +35,13 @@
35
35
  },
36
36
  {
37
37
  "path": "cli.js",
38
- "size": 1086259,
39
- "sha256": "39247c9b3026dfef48ce19ef65b620f50e203011f9c7a0f80a0e361f72939f29"
38
+ "size": 1087348,
39
+ "sha256": "f18318760ff8f3aa9a5932373ae0165d4a3f603cdaa252bf11a0b3538a824de7"
40
40
  },
41
41
  {
42
42
  "path": "client.js",
43
- "size": 210939,
44
- "sha256": "76a83d5bb5eaf208f340fbf724b3adfd9852c34db8e10265a1ca100e455b1b09"
43
+ "size": 211420,
44
+ "sha256": "4a90a2827d6b21437203d41a3f638b6b1e5bf92120168a99eec0acfc06cae42e"
45
45
  },
46
46
  {
47
47
  "path": "computer/driver.mjs",
@@ -160,8 +160,8 @@
160
160
  },
161
161
  {
162
162
  "path": "http-link.js",
163
- "size": 307782,
164
- "sha256": "421843bd1ff56cde43d2b722b6fd4c046ee29c8163ef45a442c4a81c9a35f123"
163
+ "size": 308263,
164
+ "sha256": "534571bc5755df0d6662bb95bb69561ba3c10b5d0732eaef487faed26070da1a"
165
165
  },
166
166
  {
167
167
  "path": "log.js",
@@ -170,13 +170,13 @@
170
170
  },
171
171
  {
172
172
  "path": "login.js",
173
- "size": 267759,
174
- "sha256": "fabd6b49b0fbf34fe9fdf5a4a33c67ef3e0e9fd763be123010eaa8eae14688df"
173
+ "size": 268240,
174
+ "sha256": "95fe6df1b93ef5c32bff4250cf3a33a2c30f49e67ef29340ad456ea08e978db9"
175
175
  },
176
176
  {
177
177
  "path": "main.js",
178
- "size": 1025160,
179
- "sha256": "7f9f1544f05507b3ab34fc03ba2a1e14f81d7a63ee078bdaf7b35d38cf2c52a1"
178
+ "size": 1026249,
179
+ "sha256": "66c44d70d3368e8237e0f8eed3a1f17a12413f912497f6763156ec26f623ac04"
180
180
  },
181
181
  {
182
182
  "path": "mcp-stdio-launcher.mjs",
@@ -205,23 +205,23 @@
205
205
  },
206
206
  {
207
207
  "path": "mikka.js",
208
- "size": 1086275,
209
- "sha256": "c9ea418d13bc4b31159440101e52eb555f7b0e693881c5b6d623435982941564"
208
+ "size": 1087364,
209
+ "sha256": "a9c2aefc1949e2656040dd2b87a35c1eb1560037ae420d356a14d7b177458845"
210
210
  },
211
211
  {
212
212
  "path": "npm-shrinkwrap.json",
213
213
  "size": 85262,
214
- "sha256": "52c64d58df20a18858d133283a3b7ec803fa393a536d5d6840f97b59934694dc"
214
+ "sha256": "6cde3857692fa50baacafcd5c766eed6c8215555a16b5422fc4414605b8356ce"
215
215
  },
216
216
  {
217
217
  "path": "package.json",
218
218
  "size": 1551,
219
- "sha256": "df037aa9039c85e5dcee04376c54c192b46f0afef48b2d5dcc9f7630076f3414"
219
+ "sha256": "cd60ef70ae2eb6ccc3eca2a3dd4d1495c1061ad3fe5a8abc1e4e2708b441116c"
220
220
  },
221
221
  {
222
222
  "path": "paths.js",
223
223
  "size": 4585,
224
- "sha256": "72f42515790cd4b3224a9348422ec2fb0c163befa0cd7ae97b309cf9533521ca"
224
+ "sha256": "ba00f0a7f40bdf16b0e70d2ac49b03574bf51462b8f1ce4c19279d134c6c745c"
225
225
  },
226
226
  {
227
227
  "path": "sandbox.js",
@@ -231,7 +231,7 @@
231
231
  {
232
232
  "path": "sbom.cdx.json",
233
233
  "size": 155689,
234
- "sha256": "e1bcb39549fa388d8c17556518334e374a29df4ef57a7ce2a905ba89ecfa0f17"
234
+ "sha256": "739aeee017a4e767d3a682ea6bde76bb7c8a26ae95067b1066a54bfb517c4a8e"
235
235
  }
236
236
  ]
237
237
  }
package/mikka.js CHANGED
@@ -5644,6 +5644,8 @@ var deviceReposResponse = z24.object({
5644
5644
  var pendingRunsResponse = z24.object({ runIds: z24.array(id3) });
5645
5645
  var RUN_KINDS = ["implement", "acceptance", "fix", "plan"];
5646
5646
  var runAssignmentSchema = z24.object({
5647
+ /** The server handles native model observations without transitioning run state. */
5648
+ acceptsModelObservations: z24.literal(true).optional(),
5647
5649
  runId: id3,
5648
5650
  /** Optional telemetry, never authorization. A malformed carrier cannot prevent a run. */
5649
5651
  traceContext: z24.unknown().transform(sanitizeTraceContext).optional(),
@@ -5849,9 +5851,14 @@ var runPatchSchema = z24.object({
5849
5851
  sessionId: z24.string().max(500).nullable().optional(),
5850
5852
  worktree: z24.string().max(4e3).nullable().optional(),
5851
5853
  error: z24.string().max(1e4).nullable().optional(),
5854
+ /** An observation-only patch never transitions the run state. */
5855
+ observedModel: z24.string().trim().min(1).max(500).optional(),
5852
5856
  /** Set on every terminal state. */
5853
5857
  stopReason: runStopReason.optional()
5854
- });
5858
+ }).refine(
5859
+ (patch) => patch.observedModel === void 0 || Boolean(patch.sessionId && patch.state === "running"),
5860
+ { message: "A model observation requires the running session", path: ["observedModel"] }
5861
+ );
5855
5862
  var runEventBatchSchema = z24.object({
5856
5863
  fromSeq: z24.number().int().min(1),
5857
5864
  chunks: z24.array(z24.looseObject({ type: z24.string() })).min(1).max(1e3)
@@ -6572,7 +6579,7 @@ import { join as join4 } from "node:path";
6572
6579
  // package.json
6573
6580
  var package_default = {
6574
6581
  name: "@mikka/daemon",
6575
- version: "0.0.653",
6582
+ version: "0.0.654",
6576
6583
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
6577
6584
  type: "module",
6578
6585
  private: true,
@@ -6640,7 +6647,7 @@ var package_default = {
6640
6647
  engines: {
6641
6648
  node: ">=22"
6642
6649
  },
6643
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
6650
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
6644
6651
  };
6645
6652
 
6646
6653
  // src/paths.ts
@@ -17834,7 +17841,7 @@ var MemoryServer = class {
17834
17841
  this.check();
17835
17842
  const run3 = this.runs.get(runId);
17836
17843
  if (!run3) return;
17837
- run3.state = patch.state;
17844
+ if (patch.observedModel === void 0) run3.state = patch.state;
17838
17845
  run3.patches.push(patch);
17839
17846
  },
17840
17847
  checkpointRun: async (runId, checkpoint) => {
@@ -19075,6 +19082,12 @@ var RunSupervisor = class {
19075
19082
  );
19076
19083
  run3.secretBridge = await startTaskSecretBridge({ current: () => assignment.taskSecrets, signal: run3.abort.signal });
19077
19084
  const traceContext = daemonTracer.capture();
19085
+ const recordModel = (sessionId, model) => {
19086
+ const observedModel = model?.trim();
19087
+ if (!assignment.acceptsModelObservations || !observedModel || observedModel.length > 500 || !sessionId || run3.session?.sessionId !== sessionId || run3.sessionEnded || run3.observedModel === observedModel) return;
19088
+ run3.observedModel = observedModel;
19089
+ this.push(runId, { kind: "run", patch: { state: "running", sessionId, observedModel } });
19090
+ };
19078
19091
  const baseOptions = {
19079
19092
  traceContext,
19080
19093
  // The owner's own GitHub credential reaches every run that was sent one (decision 2026-11-02-1600).
@@ -19102,7 +19115,9 @@ var RunSupervisor = class {
19102
19115
  skillReceipt: assignment.skillReceipt,
19103
19116
  profileSkills: assignment.profileSkills,
19104
19117
  repositorySkills: assignment.repositorySkills,
19105
- onRuntimeModel: assignment.skillReceipt ? (sessionId, observedModel) => {
19118
+ onRuntimeModel: (sessionId, observedModel) => {
19119
+ recordModel(sessionId, observedModel);
19120
+ if (!assignment.skillReceipt) return;
19106
19121
  const current = this.deps.journal.get(runId);
19107
19122
  if (!current?.runtime || isTerminalRunState(current.state) || current.sessionId !== sessionId || current.skillMount?.sessionId !== sessionId || current.skillMount.receiptId !== assignment.skillReceipt?.id) return;
19108
19123
  if (current.runtime.observedModel === observedModel && (!current.execution || current.execution.observedModel === observedModel)) return;
@@ -19110,7 +19125,7 @@ var RunSupervisor = class {
19110
19125
  runtime: { ...current.runtime, observedModel },
19111
19126
  ...current.execution ? { execution: { ...current.execution, observedModel } } : {}
19112
19127
  });
19113
- } : void 0,
19128
+ },
19114
19129
  fixture: assignment.fixture,
19115
19130
  model: assignment.model,
19116
19131
  effort: assignment.effort,
@@ -19380,6 +19395,7 @@ var RunSupervisor = class {
19380
19395
  worktree
19381
19396
  });
19382
19397
  }
19398
+ recordModel(session.sessionId, session.runtimeModel);
19383
19399
  if (run3.cancelRequested) await this.requestCancel(runId, run3);
19384
19400
  const iterator = session.events()[Symbol.asyncIterator]();
19385
19401
  const timedToolChunk = toolDuration();
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@aspectlylabs/mikka",
3
- "version": "0.0.653",
3
+ "version": "0.0.654",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@aspectlylabs/mikka",
9
- "version": "0.0.653",
9
+ "version": "0.0.654",
10
10
  "license": "AGPL-3.0-only",
11
11
  "dependencies": {
12
12
  "@agentclientprotocol/sdk": "1.9.0",
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@aspectlylabs/mikka",
3
- "version": "0.0.653",
3
+ "version": "0.0.654",
4
4
  "description": "Local Mikka daemon: runs agents through the user's own CLIs",
5
- "gitHead": "179d84df6e3364fac7bfcd4a8fe872a33a0adad5",
5
+ "gitHead": "30629ee1f18fa70b3713836017b437c22af915ee",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "license": "AGPL-3.0-only",
package/paths.js CHANGED
@@ -6,7 +6,7 @@ import { join } from "node:path";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@mikka/daemon",
9
- version: "0.0.653",
9
+ version: "0.0.654",
10
10
  description: "Local Mikka daemon: runs agents through the user's own CLIs",
11
11
  type: "module",
12
12
  private: true,
@@ -74,7 +74,7 @@ var package_default = {
74
74
  engines: {
75
75
  node: ">=22"
76
76
  },
77
- gitHead: "179d84df6e3364fac7bfcd4a8fe872a33a0adad5"
77
+ gitHead: "30629ee1f18fa70b3713836017b437c22af915ee"
78
78
  };
79
79
 
80
80
  // src/paths.ts
package/sbom.cdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:e8450ab5-4721-41f8-a4df-dca5559cde0d",
5
+ "serialNumber": "urn:uuid:583e3108-dfbd-4660-b34a-e45554ef17ca",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-11-15T05:52:36.263Z",
8
+ "timestamp": "2026-11-15T06:47:38.687Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "pre-build"
@@ -19,13 +19,13 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "@aspectlylabs/mikka@0.0.653",
22
+ "bom-ref": "@aspectlylabs/mikka@0.0.654",
23
23
  "type": "library",
24
- "name": ".retained-build-LyVzBS",
25
- "version": "0.0.653",
24
+ "name": ".retained-build-k8kimb",
25
+ "version": "0.0.654",
26
26
  "scope": "required",
27
27
  "description": "Local Mikka daemon: runs agents through the user's own CLIs",
28
- "purl": "pkg:npm/%40aspectlylabs/mikka@0.0.653",
28
+ "purl": "pkg:npm/%40aspectlylabs/mikka@0.0.654",
29
29
  "properties": [],
30
30
  "externalReferences": [
31
31
  {
@@ -4909,7 +4909,7 @@
4909
4909
  ],
4910
4910
  "dependencies": [
4911
4911
  {
4912
- "ref": "@aspectlylabs/mikka@0.0.653",
4912
+ "ref": "@aspectlylabs/mikka@0.0.654",
4913
4913
  "dependsOn": [
4914
4914
  "@agentclientprotocol/sdk@1.9.0",
4915
4915
  "@anthropic-ai/claude-agent-sdk@0.3.305",