Conversation
Monthly automated system that reads ERA operational data (DB stats, BigMap Landscape Sheet, Town Hall Highlights Doc) and calls Claude Haiku to produce a concise portfolio health memo across four rebalancing inputs: funder interest, core competencies, impact evidence, context shifts. Key fixes from initial implementation: - Landscape Sheet uses 'nodes' and 'edges' tabs (not 'Sheet1') - Bio Research Sheet gracefully handles 403 (needs service account share) - max_tokens increased to 2048 to avoid truncated memos Validated with --dry-run locally: all accessible data sources load OK, analysis produces 400-600 word memo with actionable rebalancing recommendations. Deploy: create Render cron 'era2-strategy-pulse' per spec in docs/knowledge/ERA_Strategy_Pulse_Spec.md Co-Authored-By: Claude Sonnet 4.6 <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
Implements the Strategy Pulse system from issue #525 — monthly automated analysis that reads ERA's operational data and produces a portfolio health memo aligned to ERA's adaptive strategy framework (Act → Observe → Learn → Rebalance).
scripts/strategy_pulse.pydocs/knowledge/ERA_Strategy_Pulse_Spec.mdWhat it does
Collects data from four sources:
nodes+edgestabs): 999 network nodes, partnership relationshipsCalls Claude Haiku with a structured analyst prompt covering the four rebalancing inputs (funder interest, core competencies, impact evidence, context shifts)
Delivers via append to Pulse Log Google Doc + email to Jon
Validation
Ran
--dry-runlocally with real data:Sample output snippet from dry-run:
Key fixes from initial attempt
The previous timeout was likely due to the Landscape Sheet range fix:
'Sheet1!A1:J50'— wrong tab name → 400 error → collection failed silently'nodes!A1:J1000'and'edges!A1:H100'Deploy: Render cron setup
After merge, create Render cron
era2-strategy-pulse:0 9 1 * *(1st of each month, 9am UTC)pip install -r requirements.txtpython3 scripts/strategy_pulse.pyANTHROPIC_API_KEY,GOOGLE_SERVICE_ACCOUNT_JSON,DATABASE_URL,STRATEGY_PULSE_LOG_DOC_IDFull spec:
docs/knowledge/ERA_Strategy_Pulse_Spec.mdCost: ~$0.10/month (one Claude Haiku call + free-tier Google APIs)
Closes #525
🤖 Generated with Claude Code