Scan your whole stack
From OX Research Newsroom
Are you using @parcha/agentrun-decisions?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0-beta.59
@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.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
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:
auth;invalid_request, with Parallel's ref_id as refId and the body dropped;Retry-After, and is rate_limited without one or once the attempts are spent;outcome_unknown, with costUsd and costBasis on the error;connection;invalid_response;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.
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.
usage.cost is booked as reported; a response without one is an unknown cost (null, never 0).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.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.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.
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").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.stop_reason: "refusal" refuses every question, booked at its cost.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: "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.
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.
Apache-2.0
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.