Skip to content

Command log store grows without bound (6.4 GB on stephens.page) #1155

Open

Description

@JacobStephens2

~/.thirdshift/logs on stephens.page has grown to 6.4 GB across 5,366 files with no retention policy, and 15 single files are over 50 MB. 5,156 of those files are from October 2026 alone, so at the current Run volume the store grows by several GB a month.

Evidence (2026-10-23)

  • Largest repos: chart35 877 MB, thirdshift 756 MB, keeplore 755 MB, thereish 547 MB, fareloch 508 MB.
  • Largest files are Security review logs and spans, e.g. chart35/commands/secure/secure-20261022T154011+0000~sqCTN3qNGj0s1v0m-security-audit.logs.jsonl at 111 MB and its .spans.jsonl at 89 MB.
  • Directory sizes: thirdshift/commands/pickup 445 MB, keeplore/commands/architect 725 MB.

The size feeds the Console CPU problem in #1153, since the Console scans this store, but #1153 should be fixed without depending on this issue.

Expected

The log store stays bounded without manual cleanup, and old Command logs are pruned or compacted under a documented policy.

Acceptance criteria

  • A documented retention policy for Command logs, Session traces and spans (by age, count per Command, total size, or a mix)
  • thirdshift applies it automatically, or through a command that can run on a timer
  • Logs for Runs still in progress, and any log the Console or thirdshift show still links to, are never pruned out from under a reader
  • Very large single files (e.g. Security review .logs.jsonl over 50 MB) are compressed, truncated, or justified

Activity

  1. added
    enhancement
    needs-triage
    on Oct 23, 2026
  2. added
    ready-for-human
    and removed
    needs-triage
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions