Skip to content

harness-ops observability: add a documented reset action for the local OTEL store #6637

Closed as duplicate
2 of 2 issues completed
Closed as duplicate

Description

@kyle-sexton

Problem

On 2026-10-08 the local Claude Code OTEL hot store was over its 1 GiB budget on both hosts: 1.28 GB on melo-desk-001 and 1.28 GB on melo-lap-001. provisioning's "CC OTEL hot store size" row flagged it even though ClaudeCodeOtelPrune runs. The observability skill's clean action only prunes by age, and there is no documented full reset. A wipe took a manual sequence:

  1. Stop the otelcol-contrib Windows service (the only writer).
  2. Empty C:\ProgramData\local-otel\cc-store\cc-{logs,metrics,traces}.json and delete cold\.
  3. Restart the service.
  4. Restart the local-otel-relay and local-otel-dashboard-* containers (the dashboards keep data in memory).

On the laptop, the store's ACL (console user and SYSTEM only) also refused the wipe when run as ssh-admin.

Proposed fix

  • Add a reset action to the observability skill that runs that sequence, confirms first with the byte count, and verifies afterwards that telemetry flows again and the dashboards respond.
  • Look at why age-based pruning lets the store exceed the size budget. Retention may need a size cap as well as an age limit.

Decided

Owner decision recorded 2026-10-25 (issuecomment-6422092149) and the 2026-10-24 split: provisioning owns the Collector and every long-running service and dashboard (plugins/harness-ops/skills/observability/SKILL.md:83-84), so the reset lives in provisioning (melodic-software/provisioning#849) and harness-ops gets no reset action. The size cap is #9865, on main.

Done when

🤖 Generated with Claude Code

https://claude.ai/code/session_01VpghSisoXHTi6Wa4FtutNN

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    needs-triage
    on Oct 8, 2026
  2. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

    Proposed work class: none

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

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    [quote truncated; the full decision is at the link]

    #6637 (comment)

    The decision settles the open question. This issue stays open as a tracker. The size cap is already on main, and the reset action is provisioning#849 in another repository. harness-ops gets no reset action, and no lane work is left here.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Oct 15, 2026
  4. added
    needs-human
    on Oct 19, 2026
  5. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Hold: the observability skill says machine provisioning owns the Collector configuration and the long-running services (plugins/harness-ops/skills/observability/SKILL.md:83). So whether a reset action belongs in harness-ops or in the provisioning repo is a cross-repo ownership decision for the owner, and the reset can only be checked on the Windows hosts.

  6. kyle-sexton commented on Oct 24, 2026

    @kyle-sexton
    MemberAuthor

    Split into the pieces below. The ownership question this was held on is answered on main: "Machine provisioning owns the Collector configuration and all long-running service and dashboard lifecycle" (plugins/harness-ops/skills/observability/SKILL.md:83-84), so the reset is filed in provisioning and harness-ops gets no reset action. The overage has a code cause: CC_OTEL_HOT_MAX_MB caps each hot file (operator-setup-retention.md:50), while provisioning's budget is all cc-*.json files together (provisioning #754: 1.09 GiB total, cc-logs.json about 648 MB). That fix is lane work with Linux tests.

    This issue keeps its hold label until admission has a guard that refuses an issue with open sub-issues; the slices are Tasks, so they are admitted on their own. Lane slices carry status: ready and admission-deferred; operator-host slices carry neither and say so in their first line.

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

  7. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI.

    Releasing the hold. This issue is a split parent: its work lives in its sub-issues. The hold was kept until admission refused a parent with open sub-issues, and that guard is now on main: .github/scripts/intake-triage/admit.mjs:438-441 ("A split issue's work is its sub-issues' (owner Q93)"), so admission waits while any sub-issue is open. refine.mjs:292 also declines to split an issue that already has sub-issues. needs-human comes off. Nothing is re-queued: the parent stays open as the tracker until its sub-issues close.

    This split was filed by hand, so it has no lanes App split record, and work-unblock's closeSplitParent will not close it on its own when the last sub-issue closes. That gap is reported to the coordinator.

  8. removed
    needs-human
    on Oct 26, 2026
  9. added
    needs-triage
    and removed
    needs-triage
    on Oct 26, 2026
  10. added
    status: ready
    on Oct 26, 2026
  11. 4 remaining items

  12. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: This issue stays open as a tracker; the size cap is done in #​9865 and the reset action in provisioning issue 849, with no harness-ops reset action.

    Dependencies

    • #​9865: bound the OTEL hot tier's total size
    • melodic-software/provisioning#​849: documented reset of the local OTEL store (outside this repo)

    Related work

    Open questions

    1. Should this parent be closed by a person once #​9865 and provisioning#​849 close, since it has no lanes App split record and no lane run can do the work itself?
      RECOMMENDED: Yes: keep it as a tracker, with no lane work and no harness-ops reset action. Basis: plugins/harness-ops/skills/observability/SKILL.md:83 says machine provisioning owns the Collector configuration and the long-running services; the 2026-10-24 and 2026-10-26 maintainer comments say the same.

    Sources read

    • plugins/harness-ops/skills/observability/SKILL.md:83: Machine provisioning owns the Collector configuration and all long-running service lifecycle, so a reset belongs in provisioning
    • context.json maintainer comments: work was split into #​9865 and provisioning#​849

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  13. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner answered in the Refinement and Issue Triage sessions (2026-10-25), deciding the open items below on the facts:

    go with whatever the facts/data/metrics + /discovery:research says and ensure we're aligned with SOLID, DRY/SSOT principles

    I should only ever be in the loop ONLY when necessary (intent/vision changed, something came up during implementation that impacts trajectory/alignment, OR a high security risk) - I've covered this all before

    One owner ledger row names this issue, and it decides nothing on the substance. Q40 in the Issue Triage owner sweep (.work/issue-triage-owner-sweep-1/interview-checklist.md:65) asked who owns resetting the local OTEL store and was left deferred:

    owner 2026-10-22 "Go with recommendations" + pipeline-only focus: outside the pipeline focus; issue not touched

    Main answers that ownership question (below), so nothing here overrides Q40.

    The admission refusal of 2026-10-26T02:13Z (#6637 (comment)) predates #10274 (84894c96b6, merged 2026-10-26T12:55Z). On main, admission collects open sub-issues and returns wait before any refusal unless the refusal holds for a person (.github/scripts/intake-triage/admit.mjs:509-514). Missing criteria and Size large do not hold, so this issue now waits on its open sub-issue, provisioning#849.

    This repository's share of the body is done on main:

    This answers the question in intake's refinement (#6637 (comment)).

    1. Is this parent closed by a person once fix(harness-ops): bound the OTEL hot tier's total size, not only each file #9865 and provisioning#849 close?
      Decided: Yes. It stays open as the tracker with no lane work and no harness-ops reset action. closeSplitParent closes only a parent that carries a lanes App split record (.github/scripts/work-unblock/label-unblocked.mjs:1493), and this split was filed by hand, so no lane closes it.

    Acceptance criteria: none a lane can run. The size cap is on main, and the reset is provisioning#849's work in another repository.

    Close:

    • When provisioning#849 closes, Issue Triage closes this issue as completed (closes run under R12).
  14. added
    needs-triage
    and removed
    needs-owner-decision
    needs-triage
    on Oct 26, 2026
  15. added
    status: ready
    status: confirmed
    and removed
    status: ready
    on Oct 26, 2026
  16. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    Gate check 2026-11-01: still gated on https://github.com/melodic-software/provisioning/issues/849, which is open. This repository's share is on main: CC_OTEL_HOT_TOTAL_MAX_MB (operator-setup-retention.md, prune-otel-store.sh, #10137 for #9865). Per the 2026-10-26 decision, Issue Triage closes this as completed when provisioning#849 closes. No lane work remains here.

    This was generated by AI.

  17. self-assigned this
    on Nov 6, 2026
  18. kyle-sexton commented on Nov 6, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  19. kyle-sexton commented on Nov 6, 2026

    @kyle-sexton
    MemberAuthor

    Item 3 is done: #13766 merged the observability skill's pointer to provisioning's reset runbook. The only open item is the two-host reset run, which is the same work as melodic-software/provisioning#849's done-when 3, so this closes as its duplicate and that issue carries the scope. Status there: provisioning#917, #918 and #920 shipped the reset with -ConfirmBytes and a private -BackupTo; the laptop run is launched and waits on the owner's elevation prompt, the desk run is with the hub.

  20. removed
    status: confirmed
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

Work status

confirmed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions