car-runtime 0.33.0 → 0.35.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.
Files changed (2) hide show
  1. package/index.d.ts +21 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2288,6 +2288,27 @@ export function checkWorkflowPolicies(
2288
2288
  */
2289
2289
  export function checkPlan(requestJson: string): string;
2290
2290
 
2291
+ /**
2292
+ * Deterministic goal-condition evaluation — the Evaluator half of CAR's goal
2293
+ * loop (`docs/proposals/goal-loop.md`), CAR's answer to `/goal`. Decides "am I
2294
+ * done?" over runtime ground truth instead of a model reading its own
2295
+ * transcript.
2296
+ *
2297
+ * `requestJson` is `{ condition, inputs }`. `condition` is a composable
2298
+ * `GoalCondition`: `{ kind: "all_of" | "any_of", conditions: GoalCondition[] }`
2299
+ * or a leaf `{ kind: "tool_receipts_grounded" | "plan_achieved" |
2300
+ * "state_consistent" }` / `{ kind: "state_predicate", key: string, equals: any }`
2301
+ * / `{ kind: "command", id: string, expect_exit: number }` / `{ kind:
2302
+ * "model_judge", id: string }`. `inputs` is the gathered `GoalInputs` `{
2303
+ * receipts_grounded?: boolean, plan_achieved?: boolean, state_consistent?:
2304
+ * boolean, state?: Record<string, any>, command_exits?: Record<string, number>,
2305
+ * model_verdicts?: Record<string, boolean> }`. Returns the `GoalVerdict` JSON
2306
+ * `{ met: boolean, grounded: boolean, reason: string }` — `grounded` is false
2307
+ * iff a met verdict relied on a `model_judge`. A leaf whose input wasn't
2308
+ * gathered fails closed (unmet). Pure.
2309
+ */
2310
+ export function evaluateGoal(requestJson: string): string;
2311
+
2291
2312
  /**
2292
2313
  * Intent-grounded verify-before-commit (arXiv 2601.05755 "VIGIL" — defending
2293
2314
  * against tool stream injection). Flags actions that drift outside the user's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "car-runtime",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "description": "Common Agent Runtime — a deterministic execution layer for AI agents",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",