1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
This directory contains utility scripts for nanobook operations.
Publishable PII scrubber for nanobook audit logs.
Removes personally identifiable information (PII) from audit logs while preserving audit-log invariants needed for analysis:
- ---
- -
```bash
python3 scripts/sanitize-audit.py audit.jsonl
python3 scripts/sanitize-audit.py audit.jsonl audit_scrubbed.jsonl
python3 scripts/sanitize-audit.py --check audit.jsonl
```
The script is idempotent — safe to run multiple times. Running it on an already-scrubbed file will report 0 lines with PII.
- -
These placeholders are chosen to be clearly non-identifiable while preserving the data structure.