Public graph export built from allowed fields, not by deleting private ones

A DEV Community article argues that exports should be constructed from an explicit list of allowed fields rather than produced by deleting sensitive ones, since deletion leaks any newly added field. The author demonstrates this with a synthetic Python example in which a debug field survives deletion but is never copied during construction. The example also includes a strict validator that enforces exact key sets and rejects booleans masquerading as integers. The article cites SessionGraph's privacy documentation, which says public snapshots exclude conversation text, code, paths and native IDs, while warning that timestamps and activity can still reveal work patterns. The author notes that local discovery of Claude Code sessions is a separate boundary from what public exports include.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in