← Back to Explore

for-jsonl-drift

JSONL source drift fails closed during FOR iteration

for-loops security

Rundown

# FOR JSONL Drift

## 1. Iterate source
- FOR item IN {{ items }}
- PASS ALL COMPLETE
- FAIL ANY STOP

### 1.1 Mutate after first item
- PASS CONTINUE
- FAIL STOP

```sh
if [ "{{ Index }}" = "1" ]; then
  printf '"changed"\n"two"\n' > data/drift-items.jsonl
fi
rd echo item={{ item }}
```

Run

Initializing...

Initializing...

Step/1