Skip to content

connector_log: no rotation or size cap (unbounded growth) #66

Description

@jordanrburger

Severity: medium
Location: engine/scout/hooks/connector_log.py
Type: disk usage

What

connector-calls-YYYY-MM-DD.jsonl rotates by date but has no per-day size cap and no historical cleanup. Long-lived sessions in CI/automation can produce huge files.

Why it matters

Disk fill risk over time; no pruning of older days.

Suggested fix

Add an optional max-bytes cap (drop or rotate on overflow) and a configurable retention window (delete files older than N days at the start of each day).


From engine audit, 2026-05-24.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditFrom engine auditbugSomething isn't workingperformanceCPU/memory/wall-clock optimizationseverity:mediumCorrectness gap or edge case

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions