Skip to content

feat(storage): store the redacted form in the session log #596

Closed

Description

@ajianaz

What problem does this solve?

The durable JSONL keeps tool results raw ("the durable log keeps the original", E11). Logs get exported, summarized into memory and shared, so a secret read once persists in them.

Proposed solution

Owner decision 2026-11-11 (docs/secrets-integrations-design.md §5, §8):

  • Redact known secret values (SecretSet) before an entry is appended.
  • Record the names of redacted secrets in an entry field (never values).
  • Replay stays exact: once every sink redacts, the provider saw the same redacted text ("the log stores what the provider saw", as the memory loop already does).
  • Old sessions stay readable unchanged; no rewrite of existing logs (append-only).
  • CHANGELOG entry for the behaviour change; threat-model update.

Alternatives considered

Keep raw logs (rejected by the owner); encrypt logs at rest (does not stop leakage through exports and summaries).

Are you willing to contribute the implementation?

Yes, I can do it

Before submitting

  • I searched existing issues and didn't find a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions