Skip to content

security: Decide if the session archive is on by default on a laptop #1639

Closed as not planned

Description

@huang195

Problem

The session archive is on by default for a local install (ArchiveRunsOnLocalInstall).

  • It keeps full prompts, completions and tool results under ~/.cortex/sessions for 30 days (retention_days), up to 2 GiB.
  • The files are zstd-compressed, not encrypted. The modes are 0700 and 0600 (segment.go#L29-L30), so any process that runs as the user can read them.
  • A user who installs Cortex for cost tracking may not know that this history exists. This is important for users who handle confidential data.

Decision needed

One or more of these:

  • Make the archive opt-in.
  • Make agentop setup tell the user about the archive, and ask.
  • Use a shorter default retention.

Activity

  1. added
    laptop
    on Nov 3, 2026
  2. huang195 commented on Nov 3, 2026

    @huang195
    MemberAuthor

    Closing this for now. The default stays as it is: the archive is on for a local install bound to loopback only.

    • Other agent harnesses already keep full prompts on local disk. For example, Claude Code keeps every transcript under ~/.claude/projects. The archive does not add a new kind of exposure on a laptop.
    • The archive drives session history, figures that continue across a restart, the usage windows after a restart, and Bob's session claims. Turning it off by default would remove these for almost every user.
    • A user who does not want it can set session.archive.enabled: false in ~/.cortex/config.yaml and restart. X and x in agentop erase what is already stored. See docs/laptop-service.md.
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

    laptop

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions