Skip to content

Retention docs omit that index_recording sidecars in recordings/ and edits/ are pruned #304

Closed

Description

@TMHSDigital

Summary

README, server.json and the .mcpb manifest say retention deletes "screenshots, frames, and leftover raw event logs ... (never recordings or edits)", but the code also deletes old *.index.json files in recordings/ and edits/.

Where

  • README.md:195
  • server.json:69
  • scripts/mcpb-manifest.mjs:99
  • src/utils/retention.ts:66-68

Details

prune(join(root,"recordings"), (name) => !/\.events\.raw(\.stop)?$/.test(name) && !INDEX_FILE.test(name), false) with INDEX_FILE = /\.index\.json(\.\d+\.tmp)?$/; the same keep-predicate is used for edits/ and edits/indexes/.

Impact

After an index is pruned, search_recording fails with "No index for ... Run index_recording on it first." and the user must redo costly OCR/transcription indexing, which the docs say never happens.

Steps to reproduce

  1. Set SCREENCAST_RETENTION_DAYS=1, run index_recording, back-date the .index.json, restart
  2. search_recording fails

Suggested fix

Add "and index_recording indexes" to the deleted list in all three places (or change retention to keep index files, and say so).

Acceptance criteria

  • All three docs match the retention code

Related: #266

Getting started

  • Relevant files: README.md, server.json, scripts/mcpb-manifest.mjs, src/utils/retention.ts
  • How to run tests: npm run build && npm test (also npm run typecheck and npm run lint)
  • Related docs: CONTRIBUTING.md, AGENTS.md

Filed by repo-audit/full-audit at f2fda28. Severity: medium. Effort: S. audit-key: documentation|src/utils/retention.ts|SCREENCAST_RETENTION_DAYS

Activity

  1. added
    documentation
    good first issue
    on Nov 9, 2026
  2. TMHSDigital commented on Nov 10, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in bdd4697: README, server.json and scripts/mcpb-manifest.mjs now say retention also deletes old index_recording indexes (never recordings or edits). Verified: serverJson/mcpb tests and npm run docs:check pass.

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

    documentationgood first issuepriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions