I/O, Capabilities, and Explicit Effects

Use deterministic Lispex output procedures and connect files, network, time, randomness, and external actions through the host application.

Lispex separates the rule observation from application effects. Guest output is part of the deterministic transcript, while the host application owns its operational environment.

Output procedures

LISPEX
(begin (display "answer=") (write 42) (newline) 0)

Observed result

OUTPUT
answer=42
0

display writes human-facing text, write uses readable guest notation, newline writes one line break, and println combines display with that line break. All four return zero values. Explicit output remains ordered with CLI auto-print, and receipts record completed root values separately.

The named resource profile sets the output-byte cap. A later diagnostic keeps the output already written in the observation.

Capability owners

OperationOwner
readable value outputLispex write
human-facing text outputLispex display, newline, and println
source file and stdin selectionCLI invocation
files and networkhost application adapter
clock and randomnessexplicit application input
database and transactionhost application state machine
payment, deployment, or other external actionapplication policy after the local gate

Native MCP carries source and optional datum through local stdio and returns an observation under its declared byte and time values. Application adapters pass reviewed data into the rule and consume the returned decision.

Choosing Where to Run · Decision Rules

I/O, Capabilities, and Explicit Effects · Lispex