How to Automate Supply Chain Risk Reports: A Guide for Developers
Do you use Python? If so, this guide will help you automate supply chain risk reports using AI Chat GPT and our News API.
A news assistant can expose the purpose of an internal tool without ever calling it. If results of one user’s tool discovery are cached and served to another user they may see names and descriptions of tools they shouldn’t. Blocking execution later does not retract metadata already delivered to the model or user interface.
On December 4, 2026, LangChain released development version 1.5.3.dev1 of their library. Its release notes list support for searching tools added per user, search-only loading and dispatch loading.
From a security standpoint it would be prudent for developers of news assistants to determine which catalog the caller is permitted to search prior to performing tool discovery, and to limit the results of the tool discovery to capabilities within that catalog.
Tools, once discovered, are used to perform the news search. One such tool is Webz.io’s News Search API. Given a natural language question the API returns relevant news articles and passages, with options to filter by publication date and language.
The descriptions of catalog entries surrounding the wrapper may be for different audiences. One tool description may be suitable for every employee, another may contain confidential business information. In either case the metadata should be restricted based on the application’s visibility policy.
OWASP’s Authorization Cheat Sheet states that by default access to an application should be denied and authorized on a per request basis. Applying this to the discovery service means that, after a user has logged in, the service should not assume the user is authorized to see all the descriptions in the catalog.
In this constructed example, a briefing assistant provides both a public news search wrapper and an internal acquisition research wrapper. An analyst is permitted to discover both. A general employee is permitted to discover only the public news wrapper.
An analyst asks the discovery service to locate tools pertinent to battery plant closures. The service returns both descriptions and caches the result using the query ‘battery plant closures’. Later a different user, who is not an analyst, asks the same question and gets the analyst’s results from the cache.
The execution layer correctly blocks the employee’s attempt to execute the internal research wrapper, thus preventing the employee from accessing any of the data associated with that wrapper. However, the description of the wrapper has already been returned to the employee, and thus the employee knows about the existence of the internal research capability.
Get the catalog defined by the current user’s identity and apply policy to it, before returning any results. Don’t accept a user identifier invented in the model’s search arguments as authority to choose another user’s catalog.
When the briefing assistant executes the employee’s discovery request it should return only the public news wrapper and not the acquisition research entry. If the same tools are represented in a shared index the visibility of those tools should also be restricted when selecting candidate results to return.
If results from a discovery request are cached, they should be scoped to the user that made the request. If the user’s role or authorization changes the previously returned results may also become inappropriate to return to that user. Compare the cache policy to the application’s authorization model to determine which, if any, of the previously returned results should be removed.
If no authorized results are returned from a search to the tool retrieval component, that component should report the empty result rather than search restricted entries to populate the result set.
First, replay the constructed case with the analyst to warm up the query cache. Next, using the general employee’s identity, perform the query to discover and inspect the response. At this point you should not see any names, descriptions or schemas restricted by the visibility policy.
Next, change the analyst’s entitlements and repeat the query as the analyst. The results should reflect the new policy, even though the query and tool descriptions have not changed. Capture the policy version or equivalent authorization reference used to produce the results.
Execution still needs its own permission check. Webz.io has an article explaining how to approve or deny the API request made by the tool to perform the query. For this release check, retain the discovery results alongside the applicable visibility decision to show what the model actually sees.
Do you use Python? If so, this guide will help you automate supply chain risk reports using AI Chat GPT and our News API.
Use this guide to learn how to easily automate supply chain risk reports with Chat GPT and news data.
A quick guide for developers to automate mergers and acquisitions reports with Python and AI. Learn to fetch data, analyze content, and generate reports automatically.