Skip to content

Phase 1.1: integrate real Anthropic Dreams API #5

@jim4226

Description

@jim4226

The current csis/dreams/ module is a local mock of the consolidation pipeline. Phase 1.1 replaces it with the real Anthropic Dreams API once available to the operator.

What needs to exist

  • A new csis/dreams/anthropic_dreams.py that implements the same interface as the local mock
  • Selection logic in the daemon: --dreams anthropic vs --dreams mock
  • Budget tracking integration — real Dreams calls bill the same BudgetTracker (cycle-9 H1 chokepoint discipline carries over)
  • Partial-output redaction: real Dreams returns partial output on cancel/failure; cycle-1 F-class findings put this front-and-center

Acceptance criteria

  • New adapter module
  • Plumbed into csis/daemon.py
  • Regression test (probably skipped without API key, like tests/test_anthropic_backend.py)
  • Updated README documenting the trade-offs (mock is free + offline + deterministic; real Dreams adds cost + non-determinism + actual consolidation)

Risks

  • Real Dreams may have different latency characteristics than the local mock — may force budget tracker reservation defaults to be re-tuned
  • Partial-output semantics may have changed since the cycle-4 critique was written; re-validate

Tracking

See ROADMAP.md P1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-1Phase 1 milestone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions