@foldrun/core 23.0.0 → 23.0.1

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.
@@ -2,7 +2,7 @@
2
2
  // account's content (FOL-121).
3
3
  //
4
4
  // A hosted pod's stdout and stderr leave the cluster: they are our
5
- // operations log (Grafana Cloud, through Alloy), read by us, not by the
5
+ // operations log (CloudWatch Logs on the hosted platform), read by us, not by the
6
6
  // account whose run it was. An account's prompts, replies, files, tool
7
7
  // arguments and the words of its errors belong in that account's own run
8
8
  // trace — never here.
@@ -118,8 +118,8 @@ export declare function runWideEvent(tenant: string, workspace: string, run: Run
118
118
  /** Seconds between two marks of an event, or null when either is missing
119
119
  * (or the later reads earlier: two clocks). */
120
120
  export declare function funnelSecs(ev: Pick<RunWideEvent, "at">, from: FunnelMark, to: FunnelMark): number | null;
121
- /** The ops-log fields an ops span may carry — the collector's allowlist
122
- * (foldrun-infra alloy-config.yaml) is held to this list by its test. */
121
+ /** The ops-log fields an ops span may carry: the whole list, so whatever
122
+ * collects the ops trace can be held to it. */
123
123
  export declare const OPS_SPAN_FIELDS: readonly ["runId", "tenant", "workspace", "flow", "agent", "kind", "outcome", "errorClass", "verdict", "reason", "image", "size", "model", "usd", "step", "attempt", "phase", "ms"];
124
124
  /** Every name an ops span may have. */
125
125
  export declare const OPS_SPAN_NAMES: readonly ["run", "submit", "queue.wait", "drive", "pod.start", "sandbox.start", "first_output", ...("startup.applied" | "startup.driver" | "startup.files" | "startup.go" | "startup.imports" | "startup.ready" | "startup.room" | "startup.services" | "startup.shim" | "startup.system" | "startup.tools")[]];
@@ -319,8 +319,8 @@ export function funnelSecs(ev, from, to) {
319
319
  // rule a log line leaving the cluster keeps (FOL-121). Span names are
320
320
  // fixed. No status message, no events, no links: a failure is its class
321
321
  // (`error.type`, one of ERROR_CLASSES).
322
- /** The ops-log fields an ops span may carry — the collector's allowlist
323
- * (foldrun-infra alloy-config.yaml) is held to this list by its test. */
322
+ /** The ops-log fields an ops span may carry: the whole list, so whatever
323
+ * collects the ops trace can be held to it. */
324
324
  export const OPS_SPAN_FIELDS = [
325
325
  "runId", "tenant", "workspace", "flow", "agent", "kind", "outcome", "errorClass", "verdict",
326
326
  "reason", "image", "size", "model", "usd", "step", "attempt", "phase", "ms",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldrun/core",
3
- "version": "23.0.0",
3
+ "version": "23.0.1",
4
4
  "description": "Agents are just folders. The format, the runner, the checks.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",
package/src/ops-log.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // account's content (FOL-121).
3
3
  //
4
4
  // A hosted pod's stdout and stderr leave the cluster: they are our
5
- // operations log (Grafana Cloud, through Alloy), read by us, not by the
5
+ // operations log (CloudWatch Logs on the hosted platform), read by us, not by the
6
6
  // account whose run it was. An account's prompts, replies, files, tool
7
7
  // arguments and the words of its errors belong in that account's own run
8
8
  // trace — never here.
package/src/run-event.ts CHANGED
@@ -397,8 +397,8 @@ export function funnelSecs(ev: Pick<RunWideEvent, "at">, from: FunnelMark, to: F
397
397
  // fixed. No status message, no events, no links: a failure is its class
398
398
  // (`error.type`, one of ERROR_CLASSES).
399
399
 
400
- /** The ops-log fields an ops span may carry — the collector's allowlist
401
- * (foldrun-infra alloy-config.yaml) is held to this list by its test. */
400
+ /** The ops-log fields an ops span may carry: the whole list, so whatever
401
+ * collects the ops trace can be held to it. */
402
402
  export const OPS_SPAN_FIELDS = [
403
403
  "runId", "tenant", "workspace", "flow", "agent", "kind", "outcome", "errorClass", "verdict",
404
404
  "reason", "image", "size", "model", "usd", "step", "attempt", "phase", "ms",