Repository navigation
Conversation
…pletes (#510) The streaming fix was validated on a test branch but did not make it into the merge to develop (#508), so develop still has the non-streaming .create() with a 2-minute timeout — which hangs facebook/instagram/tiktok. Step 1 (validateDocuments) calls Anthropic with the web_search server tool (max_uses: 10), a long tool-heavy request that can take ~13 min on large platforms. Non-streaming, it holds one HTTP connection open for the whole server-side search loop and trips the request timeout; the SDK retries timeouts and retryWithDelay wraps that again, so it thrashes to the job cap instead of completing. Switch callAnthropic to .stream().finalMessage() and drop maxRetries to 1. Verified end-to-end on facebook (run completed, quality check valid, PR opened). Leaves the JSON-unwrap logic from #508 intact. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…513) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…515) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…509) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…un real comparison (#516) Two root causes behind runs that hung on 'Step 1: validating current documents' and then reported 'no changes needed': 1. Step 1 used the AGENTIC web_search_20260209 (max_uses: 10), which runs a server-side code-execution/dynamic-filtering loop per use — highly variable, ~13 min on large platforms. Switch to the classic web_search_20250305 (~2-3s per search, no code-exec step); keep max_uses: 10 for thorough discovery. The latency came from the agentic version, not the search count. 2. The orchestrator short-circuited to completed_no_changes based on Step 1's LLM+web_search verdict. When the search underperformed, the model rubber-stamped every document 'valid', so the pipeline skipped the real work and reported 'no changes' even when policies had changed. Remove the short-circuit: always scrape + abstract + compare. Change detection is done authoritatively in Step 5 (comparePlatformPolicies) on real document content; Step 1 is now only for discovering new/removed documents. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…520) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…517) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…#518) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…#523) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…521) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This branch was successfully deployed
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.
This Pull Request includes changes from
developto be released intomain.Important: Merging this PR will trigger an automatic deployment to production.
📝 Summary of Changes (from
developtomain)(Last updated: Sat, 04 Jul 2026 14:42:57 GMT)
40ab6b7: Stream Anthropic calls so the web_search document-validation step completes (Fix policy validation streaming #510)e4d562a: fix policy validation formatting (fix policy validation formatting #512)c36445c: Update lib/platform-policies/pornhub.ts - Policy validation changes (Policy Update: Pornhub #513)4f75927: Update lib/platform-policies/onlyfans.ts - Policy validation changes (Policy Update: OnlyFans #515)cd57fd1: Update lib/platform-policies/facebook.ts - Policy validation changes (Policy Update: Facebook #509)6465bfe: Make policy validation Step 1 reliable: classic web_search + always run real comparison (Make policy validation Step 1 reliable: classic web_search + always run real comparison #516)5a33232: Update lib/platform-policies/facebook.ts - Policy validation changes (Policy Update: Facebook #520)842093d: Update lib/platform-policies/pornhub.ts - Policy validation changes (Policy Update: Pornhub #517)9b99cc2: Update lib/platform-policies/instagram.ts - Policy validation changes (Policy Update: Instagram #518)1416eed: Update lib/platform-policies/tiktok.ts - Policy validation changes (Policy Update: TikTok #524)adeac96: Update lib/platform-policies/instagram.ts - Policy validation changes (Policy Update: Instagram #523)694912f: Update lib/platform-policies/onlyfans.ts - Policy validation changes (Policy Update: OnlyFans #521)This PR is automatically managed by the
manage-release-pr.ymlworkflow.