Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 5 Nov 2026. What's built · Install 0.3.0
jadpo
ReferenceErrors

ErrorsBackground work · rule

type.batch_context

Batch operation called outside an action.

Area 12, Background work; not declinable; the next step is usually the agent's.

Only an action starts a run, reads its progress or cancels it, keeping what it does in the action's transaction:

example
action sweep_shelf(page: ItemPage) -> BatchRun {    return batches.each(from: items(page), each: item -> mark_seen(item))}/// How far a sweep has got, for a report.function shelf_report(shelf_run: BatchRun) -> BatchProgress {    return batches.status(shelf_run)}
jadpo checkcheck failed: 1 error, 2 files

error A function can't call batches.status

--> main.jadpo:7:12

  |7 |     return batches.status(shelf_run)  |            ^^^^^^^^^^^^^^ outside an action
reason
batches.status reads a run the runtime keeps in the store an action writes, so only an action calls it.
next
Call batches.status in an action (agent)
rule
type.batch_context
help
https://jadpo.dev/docs/errors/type.batch_context

Markdown for agents: /docs/errors/type.batch_context.md.Built from Jadpo main at aee2e8f.