Repository navigation
feat(integrations): add Headline Arena calibrated forecasting integration - #18
Merged
Merged
Conversation
…tion
Adds an opt-in Headline Arena integration so ARGUS AI's 7-agent committee
and Devil's Advocate refusals can be scored on public macro-futures
calibration curves:
- Adds MACRO_FUTURES asset-class support to TradePassport and CommitteeOrchestrator
- Adds argus_ai.integrations.headline_arena with calibrated TradePassport ->
ternary {bearish, neutral, bullish} probability mapping, SHA-256 TradePassport
forecast_context traceability, local Brier/Headline Arena scoring, HTTPS REST
client (compatible with ~/.headlinearena/credentials.json), and offline dry-run
- Adds 'argus headline-arena' CLI command (--asset, --live-discovery, --submit, --scorecard)
- Adds docs/HEADLINE_ARENA_INTEGRATION.md and unit tests (87 tests passing, 87.7% coverage)
Refs #1
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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 an opt-in Headline Arena integration in response to #1 so ARGUS AI's 7-agent Investment Committee and Devil's Advocate refusals can be evaluated on public Brier-scored macro-futures calibration curves.
Changes
argus_ai/integrations/headline_arena.py:passport_to_ternary_forecast: mapsTradePassportverdicts (APPROVED,DOWNSIZED,REJECTED,VETOED) +disqualification_risk_pct+ frozen challengedead_zone_pctinto canonical{bearish, neutral, bullish}probability vectors with SHA-256TradePassportforecast_contextevidence refs.HeadlineArenaClient: zero-extra-dependency HTTPS REST client supportingHA_AGENT_ID/HA_CLIENT_SECRETor reusing~/.headlinearena/credentials.jsonfromheadlinearena-agent-plugin.HeadlineArenaDesk&compute_calibration_summary: committee runner with offline deterministic macro-futures dry-run (GC,CL,ES,ZN) and local Brier / Headline Arena scoring.argus_ai/core/models.py&argus_ai/committee.py: addsMACRO_FUTURESasset class support.argus_ai/cli.py: addspython -m argus_ai.cli headline-arena(--asset,--live-discovery,--submit,--scorecard).docs/HEADLINE_ARENA_INTEGRATION.md,README.md,.env.example: setup and usage documentation.tests/test_headline_arena.py: unit & CLI integration tests.Verification
pytest -v --cov=argus_ai --cov-fail-under=85: 87 passed, 87.68% coverage (94% onheadline_arena.py)ruff check .: passedmypy argus_ai: passed (26 source files)python -m argus_ai.cli headline-arena: verified offline calibrated dry-run outputCloses #1