Skip to content

feat(integrations): add Headline Arena calibrated forecasting integration - #18

Merged
codesphere-u merged 1 commit into
mainfrom
feat/headline-arena-integration
Nov 24, 2026
Merged

codesphere-u merged 1 commit into
mainfrom
feat/headline-arena-integration

Conversation

@codesphere-u

Copy link
Copy Markdown
Owner

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: maps TradePassport verdicts (APPROVED, DOWNSIZED, REJECTED, VETOED) + disqualification_risk_pct + frozen challenge dead_zone_pct into canonical {bearish, neutral, bullish} probability vectors with SHA-256 TradePassport forecast_context evidence refs.
    • HeadlineArenaClient: zero-extra-dependency HTTPS REST client supporting HA_AGENT_ID/HA_CLIENT_SECRET or reusing ~/.headlinearena/credentials.json from headlinearena-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: adds MACRO_FUTURES asset class support.
  • argus_ai/cli.py: adds python -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% on headline_arena.py)
  • ruff check .: passed
  • mypy argus_ai: passed (26 source files)
  • python -m argus_ai.cli headline-arena: verified offline calibrated dry-run output

Closes #1

…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>
@codesphere-u
codesphere-u merged commit e82f715 into main Nov 24, 2026
4 checks passed
@codesphere-u
codesphere-u deleted the feat/headline-arena-integration branch November 24, 2026 14:10
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.

1 participant