Spaces:
Sleeping
Sleeping
Commit History
-
evolve: mutation accepted 2026-09-01
evolution-bot78a22e8
-
evolve: mutation accepted 2026-08-02
evolution-bota45f648
-
Engine: SEARCH/REPLACE mutations + graceful no-op; wire World Digest sibling bridge
Sam Cole +1: Claude Opus 4.8 (1M context)Evolution engine: - Replace fragile line-numbered diffs with exact-text SEARCH/REPLACE edits (models hallucinate hunk line numbers on a 2k-line file). A block matches verbatim or the cycle is a clean SKIP. Only the target file is ever written. - evolve.yml uses an evolution/.mutation_applied marker so an unusable-edit cycle is a green no-op (logs + pushes the skip) instead of a failed run; only an applied + test-passing mutation commits and deploys to the live Space. Sibling integration (co-developed): - main.py: /api/news/world-digest bridge (never-500 fallback, schema world-digest/news-exchange@1) reading contract/news_exchange.md. - static/globe_patch.js: globe "Digest view" calls the bridge. - tests/: 3 frozen tests pin the bridge route, fallback shape, and globe wiring. - evolution/prompts.md: priority #5 (sibling integration) + contract/ as a read-only shared interface. - scripts/sibling_dashboard.py + health.yml co-evolution dashboard step. Co-Authored-By: Claude O…660b778
-
Globe: live news from RSS aggregator with VADER sentiment
Sam Cole +1: Claude Opus 4.7 (1M context)Backend: pull 10 free RSS feeds (BBC, Guardian, Al Jazeera, NYT, DW, CNN, NPR, Reuters, AP, France24) in parallel via aiohttp, parse with feedparser, score with VADER (vaderSentiment). Match articles to the 40 globe countries via a substring + word-boundary alias dictionary (names, capitals, leaders, adjectives). Group articles by country, average sentiment, surface top-5 headlines per country sorted by polarisation. Endpoint behaviour: cache-first (30 min TTL). On cold cache, blocks for up to ~15s while the RSS pipeline runs; subsequent users hit the cache. A startup prewarm fires ~8s after boot so most users never wait. Falls back to synthesized values for any country with no matched articles. Initial local test: 27 of 40 countries got real headlines on first call, ~500ms after server startup. Replaces the GDELT integration that was rate-limited to ~1/40 countries. Frontend: 'live from GDELT' label corrected to 'live from RSS'. Frontend already consumed the same response shape so …40aab9f -
Mapping canvas + Share-to-Mapping across the platform
Sam Cole +1: Claude Opus 4.7 (1M context)Rename header button "Global Media Trends" -> "Global Trends". Add a proper Mapping tab: a sandbox mind-map canvas (static/mapping_canvas.js, ~440 lines) that overrides the stub functions in app_v30.js. Features: - Double-click empty canvas to add a card; type body text inline with #tag parsing - Drag cards freely; drag empty space to pan the viewport - Per-card link icon starts a connection wire; click target card to complete - Curved dashed arrows auto-update as cards move - Delete (X), Fit (recenter), Clear (with confirmation) toolbar actions - State persists to localStorage; migrates legacy keys from old app_v30 shape Wire "Share to Mapping" buttons across the platform. Each builds a payload (title, body, tags, color) and calls shareToMappingURI() which decodes JSON and adds the card with a toast confirmation. Coverage: - Explorer: Hero summary, Narrative panel, Risk + Opportunity banners, Insight Banners (Strongest/Inverse/Cross-Domain/Summary), Insight Cards - Rank: each top …45b6139 -
Globe: add detail panel, time scrubber, category filter, country-focused arcs
Sam Cole +1: Claude Opus 4.7 (1M context)Layer four new interactions onto the existing globe: - Detail panel slides in from the right when a country is pinned. Shows the current sentiment bar, a 30-day trend mini-chart with a marker on the scrubbed day, coverage mix across politics/economy/climate/conflict, and 5 synthesized headlines (title, source, sentiment, time-ago). - Time scrubber (bottom) walks all dots through a 30-day timeSeries — colors and sizes update from each day's sentiment + article count. - Category filter chips (top) multi-toggle: dots without meaningful coverage (>=22%) in the selected categories dim to ~18% opacity. - Pinning a country swaps the global similarity arcs for 8 focused arcs drawn from the pinned country to its sentiment neighbors (cyan for positive, rose for negative). Unpin restores the global arcs. All new data (headlines, timeSeries, categories) is synthesized deterministically from country index — no backend changes needed. Existing behavior preserved: hover tooltip, clic…23a93dc -
Globe: add hover/click tooltips, pulsing dots, sonar pings, starfield, atmosphere shimmer, sentiment arcs
Sam Cole +1: Claude Opus 4.7 (1M context)- Hover any dot to see country, sentiment label + score, article count, and a centered sentiment bar - Click to pin the tooltip; tooltip follows the country as the globe spins and hides cleanly on the back side - Dots gently breathe (stronger for high-article countries); hovered/pinned dots scale and brighten - Top 5 most-active countries emit periodic sonar-style ping rings - 240-star background field in 4 out-of-phase twinkling groups - Atmosphere glow opacity oscillates softly - Faint curved arcs connect country pairs with similar sentiment (cyan for positive, rose for negative) Drag-to-rotate, auto-rotation, close (X / Escape), coastlines, grid lines, and existing glow rings on high-traffic dots are all preserved. Click is distinguished from drag by total pointer delta (<6px = click). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>ad78fe8
-
Upload static/globe_patch.js
Verified signature74e2635 -
Upload static/globe_patch.js
Verified signature7b161a2 -
Upload static/globe_patch.js
Verified signature228428f
-
Upload static/globe_patch.js
Verified signature453d344