This repository was archived by the owner on Oct 19, 2026. It is now read-only.
Repository navigation
URL guard: FORECASTER_BLOCK_URL_PATTERNS, off unless set - #5
Merged
Merged
Conversation
* tools: optional URL guard (FORECASTER_BLOCK_URL_PATTERNS), off unless set read_page refuses a matching URL without calling Tavily (neutral error); web_search drops matching results and AIRO-paper titles, and blanks the answer when it dropped anything. For AIRO's anchor-guard experiment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Box: airo-dev/anchor-guard (claude) * url guard: case-insensitive; note that commas separate patterns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Box: airo-dev/anchor-guard (claude) * Tests for the URL guard's contract, and a README line for the variable Cover unset and empty (nothing changes), one pattern, several patterns split on commas and newlines, case, and a blocked search result dropped while the others pass. One pi test hands FORECASTER_BLOCK_URL_PATTERNS to harness.run(env=...) and checks it reaches tools.py through pi, pi_tools.ts and the real tool_cli, with no Tavily key so nothing is fetched. tools.py is untouched: AIRO mirrors it verbatim. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Box: agent-box-dev/url-guard (claude) --------- Co-authored-by: Nick Merrill <nick@forecastingresearch.org> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit f425641)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An optional URL guard for the research tools, from AIRO's anchor-guard experiment (2026-10-16).
FORECASTER_BLOCK_URL_PATTERNSis a list of regular expressions separated by commas or newlines, matched case-insensitively against URLs.read_pagerefuses a matching URL before calling Tavily and returns the ordinary failure shape with a neutral reason;web_searchdrops matching results and blanks Tavily'sanswerwhen it dropped anything.harness.run(env=...).AIRO's next production condition asks its instrument with AIRO's own pages blocked, through this guard. Reviewed and merged on the development fork as elsehow#3; this is that squash, cherry-picked onto main. Tests are mocked: no network, no paid calls.
🤖 Generated with Claude Code