Skip to content

PipelineConfig does not forward max_tokens_per_sync / max_cost_per_sync_usd #58

Description

@YellowSnnowmann

Surfaced by CodeRabbit on #48 (core/src/engine/sync.rs ~L312-353). Pre-existing — the engine's MemoryConfig.sync.budget carried these but no ported pipeline READ them (grep: only max_items and sync_depth_days are consumed), so they were unenforced before the move too. PipelineConfig was deliberately narrowed to what pipelines actually read.

MemorySourceEntry.max_tokens_per_sync and max_cost_per_sync_usd exist on the source and in the registry UI, but no sync path enforces them.

Fix: extend PipelineConfig with both, thread through run_composio_connection, and enforce in the orchestrator loop alongside max_items (the loop already tracks provider_cost_usd per run, so the cost cap is a comparison away).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions