Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 30 Oct 2026. What's built · Install 0.1.0
jadpo
Reference: Testing

Testing · 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)}
text
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_contextcheck failed: 1 error, 1 file

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