Skip to content

Add configurable operation-history retention and resource bounds #190

Open

Description

@hyperpolymath

Problem

ShellState can accumulate operation history without a configurable production retention bound. Existing security and stress tests demonstrate 1,000 entries but do not enforce a maximum, eviction policy, or persistence behavior.

Scope

  • Define a configurable maximum history size with a safe default.
  • Specify whether eviction is count-, age-, or storage-based.
  • Preserve transaction/undo invariants when older entries are retired.
  • Define behavior for checkpoints that refer to retired operations.
  • Add boundary, stress, persistence, and undo tests.
  • Document any interaction with the audit log, which must not silently inherit lossy shell-history retention.

Origin

Split from #88 so that the removed TODO markers in the security and stress tests have a durable behavioral tracker.

Activity

  1. added
    enhancement
    on Aug 27, 2026
  2. added
    priority:p2
    scope:repo
    status:ready
    on Sep 30, 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

    enhancementpriority:p2scope:repostatus:ready

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions