Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@parcha/agentrun-decisions

Latest version: v0.1.0-beta.59

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: aj-parcha, miguel-parcha
1,263 Stars
105 Forks
29 Versions
8.4K Downloads
JavaScript Repo language

Scan summary

@parcha/agentrun-decisions was last scanned on 25 Nov 2026 at version 0.1.0-beta.59. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 29 versions; the latest 5 were published within 3 days (23–25 Nov 2026).
  • Findings: No rules fired in version 0.1.0-beta.59.
  • Downloads: 8,385 downloads.

Versions

29 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0-beta.59 LATEST 25 Nov 2026 No rules fired
0.1.0-beta.58 25 Nov 2026 No rules fired
0.1.0-beta.57 25 Nov 2026 No rules fired
0.1.0-beta.56 24 Nov 2026 Not shown
0.1.0-beta.55 23 Nov 2026 Not shown

No rules fired in 0.1.0-beta.59

Findings

Findings for v0.1.0-beta.59. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0-beta.59; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@parcha/agentrun-decisions

Published to npm from the next release (@latest), with AgentRun Server, which uses it. Until then it installs from this repository.

Third-party decision models for the AgentRun DSL's decision nodes (judge, pick, sift, a judged route, ask and a verify clause). Each is a DecisionProvider, the seam in @parcha/agentrun-dsl, and runs through judgeFromProvider, with no agent harness. Jev's provider is jevProvider in @parcha/agentrun-jev.

Parallel Decisions

parallelProvider() asks Parallel Decisions (POST https://api.parallel.ai/v1/decisions): yes/no (noul), choice and score questions about a JSON state, answered with probabilities and grounded in live web evidence.

import { judgeFromProvider, runWorkflow } from '@parcha/agentrun-dsl';
import { parallelProvider } from '@parcha/agentrun-decisions';

const result = await runWorkflow(workflow, input, { runJudge: judgeFromProvider(parallelProvider()) });

The key is PARALLEL_API_KEY, read by name when a request is made, or apiKey. With neither, the request fails with a DecisionProviderError of code configuration that names the variable, and nothing is sent.

What it does with Parallel's answers:

  • Types and limits. It answers noul, choice and score. Before sending, it refuses as invalid_request anything over Parallel's documented limits: more than 100 questions, a choice outside 2 to 255 options, a score outside 2 to 10 levels, a question that renders past 5,000 characters, or a state over 96,000 bytes. A choice option with no description is described by its own name.

  • Model. It asks Parallel's fast mode and declares the one model it serves, parallel-fast. A node that pins another model is refused before the run starts when the host passes its providers to the run's checks, and as invalid_request before anything is sent otherwise. modes (default PARALLEL_MODES, ["fast"]) lists the modes a node may pin as parallel-<mode>, for one Parallel adds before this package does; a node that pins none asks the first.

  • Refusals. Parallel may decline a question ({ "type": "refusal" }). It stays a refusal: the DSL never decodes it to a value. The run escalates for a person (decision_refused), or a route takes its unsure branch.

  • Confidence. A choice or score that comes back without a confidence gets one derived from its probabilities, and the decision receipt's confidence_source says so.

  • Evidence. Parallel's citations apply to the whole request, not to one answer, so each is evidence with scope: "call".

  • Grounding. Parallel answers from live web evidence as well as the state it is given. A claim the web knows nothing about (a private or fictional fact) can score lower than the state alone supports, with citations to unrelated pages. For a judgment that must rest on the state alone, use Jev (jevProvider), which judges only what it is given.

  • Cost. The response carries no cost, so the answered request is booked at Parallel's list price, PARALLEL_LIST_PRICE_USD ($0.001 per request), with cost_basis: "estimate". So is one sent whose outcome was lost (below). Its decision_id is the provider_request_id.

  • Replay. The API takes no idempotency key, so the provider declares replay: "never": a paid request is never re-sent unasked. It is sent again only when it provably never reached Parallel (no DNS answer, no connection, no TLS handshake), or on a 429 that says when to retry (Retry-After). A 408, a 5xx or a connection lost after sending is sent once and fails outcome_unknown, booked at list price as an estimate. The run then escalates the decision for a person as interrupted (decision_interrupted), and it is never asked again.

  • Errors. Each one is a DecisionProviderError:

    • 401 and 403 are auth;
    • 400 and 422 are invalid_request, with Parallel's ref_id as refId and the body dropped;
    • a 429 is retried after its Retry-After, and is rate_limited without one or once the attempts are spent;
    • a 408, a 5xx or a connection lost after sending is outcome_unknown, with costUsd and costBasis on the error;
    • a request that never reached Parallel is retried with backoff, then connection;
    • a body that is not JSON, or answers that do not match the questions, is invalid_response;
    • the host's own cancel is aborted. The deadline (timeoutMs, 30 s by default, or the host's shorter one) ending a request in flight is outcome_unknown, booked at list price, since Parallel may have answered it. One that ends a wait between attempts, with nothing in flight, is timeout.

    No message carries the key, a header or a body.

OpenRouter Decisions

openrouterProvider() asks any of OpenRouter's Decisions models (POST https://openrouter.ai/api/v1/systemone), the System One request Jev takes ({ state, model, questions }), sent to the model the node's model names, such as perplexity/pplx-decider-v1.2, liquid/d1, cloudflare/clef or typesafe/jev-1.14. A node that names none is refused before anything is sent, unless the provider was given a default model.

import { judgeFromProviders } from '@parcha/agentrun-dsl';
import { openrouterProvider, parallelProvider } from '@parcha/agentrun-decisions';

const runJudge = judgeFromProviders({ providers: { openrouter: openrouterProvider(), parallel: parallelProvider() }, default: 'openrouter' });

The key is OPENROUTER_API_KEY, read by name when a request is made, or apiKey.

  • Cost. The response's usage.cost is booked as reported; a response without one is an unknown cost (null, never 0).
  • Replay. As Parallel: replay: "never". A request is sent again only when it never reached OpenRouter, or on a 429 with Retry-After (up to maxAttempts, default 3). A 408, a 5xx, a connection lost after sending or a deadline in flight is outcome_unknown at an unknown cost.
  • Images (experimental). OpenRouter takes JSON only, so a request's images go in the body as assets ({ type: "image", format, data_base64 }) with the TypeSafe-Danger-Zone-Images header, and only to a model the public catalog (/v1/models?output_modalities=decisions) lists with image input (takesImages overrides the catalog). Jev reads an image token anywhere in the state or a question, and refuses an image over 1568 px on a side, which the provider refuses before sending. Every other model reads an image only as a top-level item of an array state: an object state whose tokens are whole top-level values goes as [{ the other fields, image_fields }, "<token>", ...], where image_fields names, in order, the field each image stood in ({ invoice: "<i1>", receipt: "<i2>" } goes as [{ image_fields: ["invoice", "receipt"] }, "<i1>", "<i2>"]), and a token anywhere else is refused before sending. A request waits for that image check only within its own deadline and cancel. The catalog read behind the check is shared by every request and is not cut with one: it goes on under its own 10 s timeout, and its answer serves the requests after it (a read that fails is tried again by the next one). OpenRouter documents image assets as alpha, so the provider lists image under experimental.inputs.

A prompted Claude model

anthropicProvider() asks a Claude model through the Messages API (POST {base}/v1/messages), Claude Haiku 5.5 by default: the System One request ({ state, questions }) as the user message, under a short system prompt (ANTHROPIC_SYSTEM) that states the task and nothing else, with the answers held to a JSON schema built from the questions. It is the prompted-LLM control for a decision model: the same request, answered by a general model.

The key is ANTHROPIC_API_KEY and the root ANTHROPIC_BASE_URL (default https://api.anthropic.com), both read when a request is made, or apiKey and baseURL.

  • Types. noul and choice. A choice's probabilities are read per option and normalized; its choice is the likeliest. Probabilities are the model's own (probability: "self_reported").
  • Sampling. One table decides, by model, what is sent (temperatureFor, takesEffort): temperature 0 to a model that takes one, none to Opus 4.7 and later, the Claude 5 family, Fable or Mythos, which refuse it; low effort to a model that takes effort (not Haiku 4.5 or Sonnet 4.5). No top_p or top_k. The outcome carries temperature_sent and temperature_applied: true direct to Anthropic, "unknown" through any other root (a proxy may drop the field), false when none was sent.
  • Refusal. stop_reason: "refusal" refuses every question, booked at its cost.
  • Cost. Usage at Anthropic's published price (ANTHROPIC_PUBLISHED_PRICING), as an estimate; long-prompt rates past 100,000 input tokens. A model it lists no price for costs null (unknown) unless pricing is given.
  • Replay and errors. As OpenRouter's: replay: "never", the same error codes, and an answer that is cut at max_tokens, is not JSON, or does not match the questions is invalid_response, booked at its cost.

@parcha/agentrun-decisions/testing/faux-system-one is a fake System One endpoint for a host's tests: its answers are made up but stable (drawn from a hash of the model, the question and the state), it lists a small Decisions catalog, and it reads images as OpenRouter does. No request leaves the process.

Tests

npm test -w @parcha/agentrun-decisions runs on a fake fetch. It registers the DSL's provider conformance suite, replays 28 responses recorded from Parallel's decision tool and the live Parallel and OpenRouter responses of 2026-10-30 (five OpenRouter models) through the seam, and checks the request as sent, the limits and the errors. test/parallel.live.test.mjs makes three decisions on the paid REST path (about $0.003) and runs only with PARALLEL_API_KEY set; without it, it is skipped and says so.

License

Apache-2.0

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @parcha/agentrun-decisions

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229