Spaces:
Sleeping
Sleeping
Commit History
-
Sync from GitHub main — ERP priority, WMCA/Shropshire watchlist, network preserve-owners fix (a7395ea)
Verified signaturea87217c
-
Closed-loop feedback: recipients reply, system digests, recap surfaces
Piers Lyon +1: Claude Opus 4.7 (1M context)Adds a feedback round-trip so each weekly digest learns from the recipient's reply to the previous one. Capture - Every lead in the email gets a stable feedback token (lead-<company-slug>-<isoYYYYwWW>) printed as a small grey tag next to the company name. - A "Help us tune this — just reply" footer is appended to every email body, telling recipients they can either quote a lead token ("lead-bentley-motors-2026w19 — already knew") or write naturally ("more food manufacturing", "loved the FDE theme"). - Reply-To remains the existing ADMIN_EMAIL convention; no recipient workflow change required. Ingest (feedback_ingest.py) - Polls the mailbox via the SAME Microsoft Graph app registration used for sendMail. Requires Mail.Read permission to be granted on the app — fails cleanly with a 403 in logs otherwise (digest still ships, recap section just renders empty). - Mailbox priority: FEEDBACK_INBOX > MS_GRAPH_REPLY_TO > ADMIN_EMAIL > MS_GRAPH_FROM_EMAIL. - For each new re…3395614 -
Lead-gen + market research quality upgrade (Phases 1-4)
Piers Lyon +1: Claude Opus 4.7 (1M context)Brings digest + briefing output up to the layout and specificity of a manually-researched intel pack: macro context → cross-sector themes → cited reports → company-specific news with quantified facts and exec quotes weaved in. Phase 1 — Extraction - brain.py / news_radar.py prompts now extract quantified_facts (£/$ figures, headcount, %, timelines), executive_quotes (named attribution), confidence (official|confirmed|rumour), impact_scope (company_wide|divisional|site_specific|individual). - New signal_facts table + JSON columns on signals_news / signals_jobs. - Wired through hunter.py, council_scanner.py callsites. Existing no-LLM scraped-post paths default to None — backwards compatible. Phase 2 — UK macro pulse - New macro_intel.py: 10 free UK macro feeds (BoE, ONS, BBC, Sky, FT, Reuters, CIPD, Personnel Today, Construction News, Building) → keyword filter → Claude extracts 4-8 quantified weekly indicators with category, value, change, Curium-relevant implication, so…9d92f64
-
Move B (Web Discovery) + Move D (hunt summary on Dashboard)
Piers Lyon +1: Claude Opus 4.7 (1M context)Move B — Web Discovery as the 10th hunt source - New web_discovery.py module: one Claude call with web_search (max 6 searches, ~£0.30) hunts for senior moves, restructures, and contract awards in Curium's target sectors over the last 30 days. Targets the gap left by scrapers and APIs (exec announcements on company pages, regional press, niche industry pubs). - Persists each discovered signal into the existing signals_news table via collator.add_news_signal with source='web_discovery', so the discoveries show up across the same dossier surfaces (with deduplication via the existing 30-day same-headline check). - hunter.AutonomousHunter: registers 'web_discovery' in source_status, runs as the 10th hunt step, marks count from the raw signals list (not the post-dedup persisted count, which would under-report on second runs). - collator.SOURCE_API_KEYS / SOURCE_SETUP_INSTRUCTIONS: registers 'web_discovery' as a source with ANTHROPIC_API_KEY…d6882c4 -
Use Adzuna API as primary jobs source — scraping was being blocked
Piers Lyon +1: Claude Opus 4.7 (1M context)Post-hunt result showed 'Jobs ✓ 0' — the Playwright scraping of Reed / Indeed / Totaljobs is being blocked by Cloudflare bot detection on shared cloud IPs (HF Spaces). Adding more keywords would not help — every term hits the same bot wall. Fix: prefer Adzuna's UK jobs API (single JSON feed aggregating Reed, Indeed, Totaljobs, CV-Library into one reliable source). Free tier = 500 calls/day, more than enough for daily hunts (~10-20 calls each). Falls back to scraping when Adzuna isn't configured, and skips the slow + blocked scrape phase entirely when Adzuna already returned 20+ jobs (saves 60-90s per hunt). - adzuna_jobs.py: new module with search_adzuna() + search_many() - hunter._hunt_jobs_fast: try Adzuna first, fall back to scraping - collator.SOURCE_API_KEYS: register ADZUNA_APP_ID for the 'jobs' source so the Source Health card shows missing/set status accurately - collator.SOURCE_SETUP_INSTRUCTIONS: tell users how to register - .env.example: document the two new secrets Use…10ba18c -
Fold COUNCIL SCAN into HUNT NOW as a 9th source
Piers Lyon +1: Claude Opus 4.7 (1M context)User requested: 'I want that included in the hunt not a separate action.' - hunter.AutonomousHunter: add 'councils' to source_status; new _hunt_councils method that wraps the existing council_scanner. run_council_scan() so all the targeted-council logic (~70 councils, per-council Network/Tenders/Jobs/News/People with per-council network warm-intro mapping) is reused unchanged. Council scan runs as the 9th step in the hunt sequence after the 8 broad sources. Updates set_last_council_scan_at for backward compatibility with existing watchers of that timestamp. - collator.SOURCE_API_KEYS / SOURCE_SETUP_INSTRUCTIONS: register 'councils' as a tracked source so the Source Health card shows it. - ui_components.SOURCE_LABELS: add 'councils' label + emoji. - app.py sidebar: drop the separate COUNCIL SCAN button, the cooldown helper, and the 'which scan should I run?' expander. Update the HUNT NOW tooltip to reflect 9 sources and the longer 10–20 min runtime. Drop the no…055f393
-
Include all modified source files missing from initial deploy
Piers Lyon +1: Claude Opus 4.6 (1M context)Fixes ImportError for draft_change_launchpad_outreach and ensures all module changes (brain, collator, config, hunter, news_radar, email_engine, Approach Brief page) are deployed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>9c6926e
-
Refactor into multipage Streamlit app with new intelligence features
Piers Lyon +1: Claude Opus 4.6Split monolithic app.py into multipage architecture with dedicated pages for Dashboard, Approach Brief, Tenders, Councils, LinkedIn Hub, Intelligence Query, and Source Health. Extract shared UI components into ui_components.py. Add AI query engine (query_engine.py) for natural-language lookups and LinkedIn activity generator (linkedin_activity.py) for daily engagement playbooks. Remove deprecated cqc_radar.py. Expand config.yaml with new source definitions and enhance collator, email engine, network loader, hunter, and LinkedIn modules. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b8f40ca
-
Add 9 intelligence platform improvements: critical bug fix + 8 enhancements
Piers Lyon +1: Claude Opus 4.61. Fix trigger type validation whitelist (news_radar.py) — was silently downgrading ai_automation, closure, appointment, digital, sustainability, public_sector to "other", blocking all scoring bonuses for new trigger types 2. Add signal deduplication — news (30-day window) and jobs (14-day window) prevent score inflation from duplicate signals across runs 3. Add signal freshness decay — time-based multiplier (100%→80%→50%→25%→10%) ensures priority list reflects current intelligence, not stale data 4. RSS-first broad trigger scanning — RSS now Phase 1 (free/unlimited), NewsAPI reserved for targeted company queries, GDELT as fallback 5. Temporal urgency scoring — bonus for signal clustering (+15), leadership + restructuring combo (+20), M&A + integration combo (+15) 6. AI call batching — 5 items per API call + ThreadPoolExecutor parallelism, targeting ~80-100 calls instead of ~390 (~3x faster hunts) 7. Pipeline/stage tracking — 8-stage CRM pipeline (new→won/los…7922906
-
Add colleague email buttons and enhance LinkedIn intelligence UI
Piers Lyon +1: Claude Opus 4.6Adds template-based email drafting for LinkedIn route-in actions: per-card "Email {colleague}" buttons and a batch "Email All Routes" button with copyable drafts and mailto links. Also enhances the LinkedIn Intelligence tab with action-scored cards, urgency tiers, route-in messages, and a transformation alerts column. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e94e59d
-
Add LinkedIn deep intelligence scan (stage 9)
Piers Lyon +1: Claude Opus 4.6Authenticated LinkedIn scraping via persistent Playwright browser profile to gather relationship strength data from live profiles, activity feeds, and company pages. Includes anti-ban strategy (daily limits, human-like delays, rate-limit detection), relationship scoring engine (0-100 with 5 tiers), and full UI integration (login setup, status indicator, LI Intel dossier tab). New files: linkedin_intel.py, linkedin_relationship.py Modified: collator.py, hunter.py, config.yaml, app.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e86b850 -
Add annual report text mining and CQC inspection triggers
Piers Lyon +1: Claude Opus 4.6Add two new high-value data sources to the sales intelligence tool: 1. Annual Report Text Mining - downloads annual reports from Companies House, extracts text (XHTML/PDF), and uses Claude to identify transformation signals (restructuring, leadership changes, strategy shifts, culture programmes) 2. CQC Inspection Triggers - monitors Care Quality Commission ratings for healthcare organisations rated "Requires Improvement" or "Inadequate", which typically trigger transformation programmes Both sources integrate into the existing scoring engine with combo bonuses (report+job, CQC+job) and display in new dashboard tabs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>aa0f1ab