This section is at https://rollingedition.com/securing-llm-applications-and-agents/attack-and-measure#scoring-in-code.