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

ErrorsConfiguration · rule

type.clock_context

The operation clock is unavailable in this context.

Area 10, Configuration; not declinable; the next step is usually the agent's.

example
type ReminderCutoff = Instant {}function cutoff() -> ReminderCutoff {    return ReminderCutoff(clock.now)}
jadpo checkcheck failed: 1 error, 1 file

error A function can't read clock.now

--> main.jadpo:4:27

  |4 |     return ReminderCutoff(clock.now)  |                           ^^^^^^^^^ reads the clock
reason
A function is pure: it gives the same result for the same arguments, so the time it needs arrives as a parameter; only actions read the clock.
next
Pass the time in as a parameter, read in the action that calls this (agent)
rule
type.clock_context
help
https://jadpo.dev/docs/errors/type.clock_context

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