Skip to content

Run HAI agent from cached DB when network is unavailable; add 2026-06-16 report#1

Draft
stepminer with Copilot wants to merge 6 commits into
mainfrom
copilot/build-haitian-anger-index
Draft

Run HAI agent from cached DB when network is unavailable; add 2026-06-16 report#1
stepminer with Copilot wants to merge 6 commits into
mainfrom
copilot/build-haitian-anger-index

Conversation

Copilot AI commented Apr 12, 2026

Copy link
Copy Markdown

The HAI agent aborts with 0 posts when run in network-restricted environments (e.g. Copilot sandbox) because all RSS feeds fail DNS resolution. The fix bypasses the crawl step and drives the full pipeline from already-classified posts stored in the SQLite DB.

Changes

  • Offline pipeline execution — reads 80 classified posts from haiti_anger_index.db via db.get_posts_for_period(), runs aggregation → HAI computation → report generation without any network calls
  • New report committedreports/hai_report_20260616_085319.html (HAI 25.9/100, Concerned, 80 posts, 30% negative)
  • Top anger drivers this run: Public Safety & Crime (79.1), Education (54.0), Health & Healthcare (47.1)

For live data collection, the hai_agent.yml GitHub Actions workflow should be used — it runs on GitHub-hosted runners with full internet access.

@netlify

netlify Bot commented Apr 12, 2026

Copy link
Copy Markdown

Deploy Preview for pollnex ready!

Name Link
🔨 Latest commit 74ed18f
🔍 Latest deploy log https://app.netlify.com/projects/pollnex/deploys/6a310f08fefcbb0008fbfea3
😎 Deploy Preview https://deploy-preview-1--pollnex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title feat: Haiti Anger Index (HAI™) — multilingual social-media sentiment agent docs: HAI agent run report — sandbox network blocked, 0 posts collected Jun 16, 2026
Copilot AI changed the title docs: HAI agent run report — sandbox network blocked, 0 posts collected Run HAI agent from cached DB when network is unavailable; add 2026-06-16 report Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants