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

ErrorsTesting · rule

type.test_clock_context

The clock is moved outside a test.

Area 13, Testing; not declinable; the next step is usually the agent's.

Application code cannot move the clock:

example
type ShiftEnd = Instant {}action end_shift() -> ShiftEnd {    clock.advance(5m)    return ShiftEnd(clock.now)}
jadpo checkcheck failed: 1 error, 1 file

error An action can't move the clock

--> main.jadpo:4:5

  |4 |     clock.advance(5m)  |     ^^^^^^^^^^^^^ moves the clock
reason
Only a test moves its clock: elsewhere the time is the operation's clock.now, fixed while it runs, and a later request or schedule run reads a later one.
next
Move the clock in a test with clock.advance(...), or remove this line (agent)
rule
type.test_clock_context
help
https://jadpo.dev/docs/errors/type.test_clock_context

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