fwdloop 0.6.0 → 0.7.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.
package/types/types.d.ts CHANGED
@@ -272,6 +272,11 @@ export type CloseVerdict = {
272
272
  };
273
273
  /**
274
274
  * One row appended to `runs/<run-id>/audit.jsonl` (M2 scope item 9).
275
+ * `at`/`tokens` were added by Amendment M4a-2 and `tools`/`ungranted` by
276
+ * Amendment M4a-3 (docs/wiki/the-module-ladder.md, "M4a" section) — every
277
+ * row `appendAudit` writes from here on carries `at`/`tokens`/`tools`; a row
278
+ * written before its amendment simply lacks the newer keys (read back as-is,
279
+ * never backfilled) — see `auditRowTokens`/`auditRowTools` in `src/books.js`.
275
280
  */
276
281
  export type AuditRow = {
277
282
  step: string | null;
@@ -285,6 +290,42 @@ export type AuditRow = {
285
290
  model: string | null;
286
291
  modelMatch: boolean | null;
287
292
  strike: boolean;
293
+ /**
294
+ * - ISO time this attempt finished.
295
+ */
296
+ at: string;
297
+ /**
298
+ * -
299
+ * summed over this attempt's model calls; `null` only when `model` is
300
+ * `null` (no model call this row).
301
+ */
302
+ tokens: {
303
+ inputTokens: number;
304
+ outputTokens: number;
305
+ cacheReadTokens: number;
306
+ } | null;
307
+ /**
308
+ * - a {toolName: count}
309
+ * tally of every GRANTED tool the model actually invoked this attempt,
310
+ * summed across every round; `{}` when the model called no tool; `null`
311
+ * only when `model` is `null` (no model call this row).
312
+ */
313
+ tools: Record<string, number> | null;
314
+ /**
315
+ * - tool names the model called that this
316
+ * step never granted; absent when empty, never an invented empty array.
317
+ */
318
+ ungranted?: string[] | undefined;
319
+ /**
320
+ * - bareguard
321
+ * fs-gate refusals during this attempt; `[]` (never omitted) on every row
322
+ * written by a model attempt, absent on rows with no model call.
323
+ */
324
+ refused?: {
325
+ verb: string;
326
+ path: string;
327
+ rule: string;
328
+ }[] | undefined;
288
329
  };
289
330
  /**
290
331
  * One row appended to `flows/<name>/history.jsonl` (M2 scope item 9).