Add unreachable reference checkpoint to encode-policy-v2#126
Merged
hua7450 merged 1 commit intoPolicyEngine:mainfrom Mar 16, 2026
Merged
Add unreachable reference checkpoint to encode-policy-v2#126hua7450 merged 1 commit intoPolicyEngine:mainfrom
hua7450 merged 1 commit intoPolicyEngine:mainfrom
Conversation
After the document-collector phase, check for references that returned 403/redirect/timeout. Present them to the user for manual download before proceeding to consolidation. State agency websites (e.g., NH DHHS) commonly block automated access while working in a browser. This prevents implementation agents from using incomplete sources — NH CCAP had 24 of 45 rate values wrong because the official rate schedule (Form 2533) was inaccessible to automated fetches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a user checkpoint (Step 0E) to the
/encode-policy-v2command that surfaces references the document-collector could not automatically fetch (403, redirect, timeout). The user can then manually download and provide these files before the consolidation phase begins.Motivation
During NH CCAP implementation, the document-collector found URLs for the official rate schedule (BCDHSC Form 2533) and cost share table (Form 2532/SR 24-08) but couldn't fetch them — NH DHHS returns 403 for automated requests while working fine in a browser. The agents fell back on the CCDF State Plan and Cornell LII, which had incomplete/outdated data:
All of this was only discovered after the user manually downloaded Form 2533 and compared values.
Changes
Common blocked sources (by state agency)