Skip to content

fix(harness-ops): bound the OTEL hot tier's total size, not only each file #9865

Description

@kyle-sexton

Refs: #6637

Parent

#6637

Depends on

  • none: on the frontier now

Outcome

prune-otel-store.sh keeps the hot tier (every cc-*.json file at the store root, taken together) at or under a
total size cap that matches the hot budget provisioning checks (1 GiB across those files). Today the size cap
applies per file, so three files can each stay under 1024 MiB while the tier is well over budget.

Context

  • CC_OTEL_HOT_MAX_MB (default 1024) is a cap "per hot file" (operator-setup-retention.md:50;
    prune-otel-store.sh:41, :104, :259).
  • provisioning's store-size row measures the hot tier as all cc-*.json files together against 1 GiB
    (melodic-software/provisioning#754: 1.09 GiB total with cc-logs.json about 648 MB, so no single file reached the cap).
  • harness-ops observability: add a documented reset action for the local OTEL store #6637 saw 1.28 GB on both hosts while the prune ran. That is the per-file versus total mismatch above.
  • Pick either a new total knob beside the per-file one or a change to the existing knob; the retention doc's
    table states which, its default, and how it interacts with the age windows. Oldest lines are compacted to cold
    first, as the per-file cap does today.

Done when

  • bash scripts/run-test-file.sh plugins/harness-ops/skills/observability/otel/prune-otel-store.test.sh exits 0.
  • That test file has a case with three hot files each under the per-file cap whose sum is over the total cap;
    it fails on origin/main and passes after the change, and the files' total after the prune is at or under the cap.
  • That test file has a stay-quiet case: files whose total is under the cap are not pruned for size.
  • operator-setup-retention.md names the total cap, its default and its unit.
  • bash scripts/check-changelog-fragments.sh --check-required origin/main exits 0.

Out of scope

Filed by AI while splitting the backlog (owner decisions Q93 to Q95 and C12, 2026-10-24).

Activity

  1. added
    status: ready
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
  3. added
    needs-triage
    on Oct 24, 2026
  4. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: prune-otel-store.sh applies its size cap per hot file, so several cc-*.json files can each stay under the cap while the hot tier as a whole exceeds the 1 GiB budget that provisioning checks. The fix is a total cap across all hot files, with the oldest lines compacted to cold first, plus tests and a retention doc update. The done-when items are all checkable in a lane run. The choice between a new total knob and changing the existing one is left to the implementer, and the retention doc must state the choice. No duplicates found among the open issues. Related: #6637.

    Automated triage, applied by the lanes App.

  5. added
    needs-human
    on Oct 24, 2026
  6. added
    needs-owner-decision
    and removed
    status: ready
    on Oct 24, 2026
  7. removed
    needs-owner-decision
    needs-human
    on Oct 25, 2026
  8. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.

    To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.

  9. added and removed
    needs-triage
    on Oct 25, 2026
  10. added
    status: ready
    agent-ready
    and removed on Oct 25, 2026
  11. melodic-automation-lanes commented on Oct 25, 2026

    @melodic-automation-lanes
    Contributor

    The token broker refused the work-resolve-issue run that agent-ready started because the lanes kill switch was on, so it did no work. work-unblock removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  12. added
    agent-ready
    and removed
    agent-ready
    on Oct 25, 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

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions