ndg-html: link custom scripts where they are copied #298
All Vouch review confidence checks passed
Residual risk 0.11 = Change Risk (0.35) × (1 − Review Confidence (0.68)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 53 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.35 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.239
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
2 items
Approved
LGTM, thank you :)
NotAShelf
KiaraGrouwstra
copy_script_filescopies each script inscript_pathstoassets/<file name>. Butgenerate_custom_scriptslinked the configured source path, with the root prefix in front. A script from outside the output directory, such as/nix/store/<hash>-scripts/custom.js, then got a link that does not resolve, so the script did not load.This change links
{root_prefix}assets/<file name>, the same name thatcopy_script_filesuses.crates/ndg-html/tests/custom_scripts.rs. It fails before the change and passes after.CHANGELOG.md.We found this when we added Mermaid diagrams to a site built with ndg: we give a small loader script through
script_paths.Assisted-by: Claude:claude-opus-5-5
https://claude.ai/code/session_01RJvbghuj5GtCBiCjmBepNJ