validate_nodes.py¶
Cross-checks every generated AKMS node in Packages/Nodes_Vault/ against
its source NotebookLM notebook by submitting the node content as a
validation query and recording the per-node JSON report.
Location¶
Packages/AKMS_nodes_gen/validate_nodes.py
Run it¶
# Validate every node
python Packages/AKMS_nodes_gen/validate_nodes.py
# Limit to one batch
python Packages/AKMS_nodes_gen/validate_nodes.py --batch R7_B2
# Preview without submitting
python Packages/AKMS_nodes_gen/validate_nodes.py --dry-run
# Concurrency knob
python Packages/AKMS_nodes_gen/validate_nodes.py --concurrency 4
What it does¶
- Walks
Packages/Nodes_Vault/<domain>/<id>.mdfor every generated node. - Looks up the source notebook via the
generation_plan.mdtracker (the same plan the picker reads). - Submits the node content to the notebook as a validation query.
- Saves a per-node JSON report.
- Emits a summary CSV.
Resumability¶
The script skips any node whose validation report already exists on disk. Safe to interrupt and re-run.
See also¶
- Pipeline integration
akms_node_promote.py— the next step once a node passes validation