```python
# /// intent
# goal   = "For each line of data/rows.jsonl, print 'bad' if the line is not valid JSON, else the row id."
# reads  = ["data/rows.jsonl"]
# writes = []
# output = "printed"
# ///

import json
from pathlib import Path

def process_lines():
    text = Path('data/rows.jsonl').read_text()
    lines = text.splitlines()
    for line in lines:
        try:
            row = json.loads(line)
            row_id = row['id']
            print(row_id)
        except (json.JSONDecodeError, KeyError):
            print('bad')

process_lines()
```