Skip to content

Make automatic session retention configurable and inspectable #591

Description

@JAORMX

Part of #583. Depends on the shared retention planner.

Problem

mecated has retention flags while embedded mecatui hard-codes a destructive policy. Operators cannot inspect or consistently configure effective cleanup behavior.

Acceptance criteria

  • Expose child/main/scheduled age and count limits plus sweep cadence through a versioned operator configuration surface, with existing flags remaining compatible.
  • 0 has consistent disabled semantics; negative values and unknown keys fail validation.
  • Defaults, config, and explicit CLI precedence are documented and tested.
  • Effective policy is inspectable without secrets.
  • Unknown sessions remain protected.
  • First enablement or destructive tightening for main chats requires explicit acknowledgement after a plan summary.
  • Embedded mecatui has explicit local policy rather than hard-coded hidden behavior.
  • Connected mecatui only manages a remote daemon when the server advertises that capability.
  • Do not add an external deletion scheduler; the existing in-process sweep owns cadence.

Activity

  1. self-assigned this
    on Aug 17, 2026
  2. added
    enhancement
    config
    on Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

configenhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions