Scan your whole stack
Are you using @jive-sh/workflow-platform?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.6.1
@jive-sh/workflow-platform was last scanned on 28 Nov 2026 at version 0.6.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.6.1 LATEST | 28 Nov 2026 | No rules fired |
| 0.6.0 | 21 Nov 2026 | No rules fired |
| 0.5.1 | 19 Nov 2026 | No rules fired |
| 0.5.0 | 19 Nov 2026 | Not shown |
| 0.4.0 | 19 Nov 2026 | Not shown |
Findings for v0.6.1. 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.6.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Durable workflows on Effect's workflow engine (effect/workflow), where every step of every run is measured and every
item a workflow works on is a task in a queue.
A project defines its workflows here and supplies only what it alone knows: its files, its process runner, its words for items. The platform does the rest the same way for every workflow:
defineSubWorkflow: the step starts it as a run
of its own and waits for it, the engine suspending the run above until it ends. One record in the workflow above names
that run, its steps work on the item the run above works on, and its agent steps count against the agents' limit of the
workflow at the top. The top of a project is one workflow, which a page enters at and drills down from.src/tasks.ts). Done means its workflow's final check passed. A queue is first in, first out,
and one call reorders it by hand (moveToFront). Blocking is the logic of the step that picks: 10 failed tries, flipping
between two versions, nothing new since its last failed try, or a reason of the workflow's own, each in words on the task.steps.ts gatedExecute): a new run
starts only while fewer are going, 0 starts none, and none set is no limit, or for a workflow with an agent step and a list
of work its agents' limit. That kind of workflow also keeps its run limit's number of runs going, and at most its agents'
limit of them are in an agent step at once: a run at an agent step whose agents are all in use waits there, its task kept and its
record saying so, until one frees. At 0 agents nothing gets past a first agent step: a run with a task ends there, its task marked as needing an agent (below). Setting either limit
(runPlanChanged) has the run planner plan again at once. The run limit is the one way to stop a workflow: at 0 no run
of it starts, and a run already going ends before it takes on more work (steps.ts standDownIfSurplus). In a workflow
its budget keeps going that is before an agent step: the run still picks and tests with no agent, and ends at a Pick
that finds nothing. In any other it is before a Pick, before an agent step, or at its first step when the engine
resumes it after a restart. A step between those still runs, so what an agent step just made is checked and recorded.
There is no pause beside it.steps.ts untilAgentSlot). Where no agent
can be had (its workflow's agents' limit is 0, or the spending limit holds), a run with a task ends at its agent step
instead of waiting there: its task goes to the back of its queue, marked "needs an agent" with why in words, and its
slot goes to work that needs none. Its Pick passes over marked tasks while no agent can be had, and takes them in queue
order once one can. Something new from outside the workflow clears the mark (a return to its queue, a move to the
front, any note by a person or another workflow), and so do an agent step that ran on the task and its final check
passing. A run with no task, or one waiting for an agent another run holds, still waits. The status table's queued row
says how many need agent, "804 queued (12 need agent)", and an open workflow lists them by reason.spending-limit.ts, 95 when none is
set). While the newest good reading of the week is at or past X, every agent step of every workflow waits before its
agent call, as at an agents' limit of 0, its record saying "waits: the week's use is N%, at or past the spending limit of
X%", and goes on by itself once a reading is below X. It judges the account's week, not the step records' tokens,
because the week also counts what no workflow runs (agent threads run by hand). The project gives the reading
(WorkflowProject.weekUsage) and tells the platform of each one it takes (platform.spending.readingTaken); a project
that gives none has no spending limit. A failed or old reading never lifts it: the limit keeps the newest good reading's
verdict, however old, and the page says the reading is stale and why. An unreadable one holds every agent step.queue-counts.ts, queue_counts). A page reads the newest rows and their history and never counts.platform.view, under 100 ms for 52 workflows and 166,000 step records); one workflow's
steps, costs, graph and funnel are read from its own records when a page opens it (platform.figures). Nothing is built
on a schedule or stored for a page.
Nothing else decides how many run, and a page can set both (WorkflowsDashboard's setLimit).inputs); its trigger starts a run only
when their fingerprint differs from its last successful run's, whose result stands meanwhile. A timer is only the fallback
that checks. A workflow with a list of work can declare what each task runs on (taskInputs): each outcome records the
task's fingerprint as its run left it, and its Pick blocks a task nothing new has reached since its last failed try.makeCpuLimiter). The project says only what it
alone knows: where its pool lives, which commands are light, which processes are its own. The dashboard shows where the
project stands against it.StorageError, so
another database (Convex) can stand behind any of them; a step whose record cannot be written goes on and says so. The
platform's tables, the CPU limit's pool and the engine's records live in the project's own database, beside the schema
the project declares (STORAGE.md); a held lock is tried again while yielding, never waited on inside SQLite. The
engine gets that from lockRetryingSingleRunner, effect/cluster's single runner on SQL storage whose every call is
retried this way, with a client set to wait 0 ms (busyTimeout: Duration.zero).It runs today inside the aoe2-in-browser decompilation service, its first project
(aoe2-in-browser/decomp-service/src/workflows/platform.ts).
import { createWorkflowPlatform, sqliteStorage, RUN_STARTS, RUN_ENDS } from '@jive-sh/workflow-platform';
import { Effect, Schema } from 'effect';
const platform = createWorkflowPlatform<'main', never>({
project: {
sourceRoot: ROOT,
tree: { root: ROOT, snapshots: `${ROOT}/local/step-files`, notTree: ['local'] },
texts: { write: storeText, read: readText },
runLightNow,
processes: { thisProcess, isAlive },
stepRecordVariable: 'MY_STEP_RECORD',
isTransientFailure: (e) => String(e).includes('database is locked'),
},
storage: sqliteStorage({ stepRecordsFile: () => `${ROOT}/local/app.db`, engineFile: () => `${ROOT}/local/app.db`, budgetsFile: () => `${ROOT}/local/app.db`, processes: { thisProcess, isAlive } }),
});
const { defineStep, defineWorkflow } = platform.steps;
const COUNT = defineStep({ name: 'Count', runs: 'deterministic', shared: true, description: 'Counts the files.', at: import.meta.path, success: Schema.Number });
export const CountFiles = defineWorkflow({
phase: 'main', item: null, description: 'Counts the files.', at: import.meta.path, steps: () => [COUNT],
graph: () => [{ from: RUN_STARTS, to: COUNT.name, when: 'each run' }, { from: COUNT.name, to: RUN_ENDS, when: 'always' }],
})('Count files', { payload: { turn: Schema.Number }, idempotencyKey: ({ turn }) => String(turn), success: Schema.Number, error: Schema.String });
export const CountFilesLive = CountFiles.toLayer(() => COUNT.run(Effect.succeed(42)));
The step's record (start, end, outcome, CPU) is written by COUNT.run; the workflow body has no measuring code.
bun add @jive-sh/workflow-platform effect
It runs on Bun (its stores are bun:sqlite) and shares its consumer's effect 4, a peer dependency. Each push to main
with a new version publishes it to npm through Jive's pipeline (.github/workflows/pipeline.yml, the six jive:cicd:*
scripts of jive-abstract-library); a push without a version bump publishes nothing.
The package runs inside its consumer's processes and must share their one copy of effect, so a checkout beside its
consumer has no packages of its own: node_modules here is a link to the consumer's (aoe2-in-browser/install/setup.ts
makes it). Never run bun install in such a checkout: it would write through the link into the consumer's packages. The
pipeline installs the package's own devDependencies from bun.lock, on a clean runner. The consumer imports
it by path, through its tsconfig ("@jive-sh/workflow-platform": ["../../workflow-platform/src/index.ts"]).
bun test # the package's own tests
node_modules/.bin/tsc --noEmit # its typecheck
Each module's inputs come from createWorkflowPlatform (src/index.ts), which builds them in this order.
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.