﻿# How traceback local capture changes a private support report

A practical investigation of how traceback local capture changes a private support report, with explicit observations, control cases and evidence limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-sovereign-traceback-local-capture-support-export/
Language: en

## The deployment scenario

A local retrieval worker fails while processing a confidential document. Its support exporter formats the exception into an attachment sent outside the private environment. The exporter adds local variables to make debugging easier. The privacy question is not whether inference ran locally, but whether the diagnostic representation now contains request text, credentials, document fragments or object attributes that were never intended to leave the worker.

## The data and control mechanism

Python TracebackException supports capture_locals, whose default is false. When enabled, frame locals are captured as object representations and shown in formatted tracebacks. CPython FrameSummary implements that conversion through repr-based handling. This is a content transformation rather than a harmless list of variable names: the representation chosen by an object can expose values or summaries of its internal state, depending on its class.

## Define the intended boundary

Define an export contract for exception type, permitted stack locations and approved diagnostic fields. Treat local capture, exception text, notes, chained exceptions and source lines as separate content paths. Turning off locals does not remove a document excerpt placed directly in an exception message. Keep the original detailed diagnostic under its intended access controls if needed, rather than assuming a later visual preview proves that every serialized field is safe.

## A step-by-step review

Build a harmless fixture containing distinct markers in a local variable, an exception message and an attached note. Format the same failure with local capture enabled and disabled through the actual exporter. Compare the serialized attachment, not only the terminal display. Then exercise chained failures and the exporter’s own error path. Perform this review with invented text so that a failed redaction test does not become a disclosure itself.

## Evidence required for acceptance

Retain the Python version, exporter configuration, synthetic input markers and exact outbound representation. Acceptance should state which marker categories were absent, which were deliberately retained, and whether nested exception handling was covered. A negative control with enabled local capture demonstrates that the fixture can expose the local marker. This makes a missing marker meaningful and prevents a test that never reached the relevant formatter from appearing successful.

## Failure cases and limits

Object representations can change between dependencies and application versions, and custom logging or monitoring integrations may bypass this formatter. An exception without captured locals can still contain private paths or values. Conversely, a captured object need not reveal every field or original byte. The supported conclusion is a reviewed diagnostic export contract for a specified path, not a universal claim that Python traceback output is anonymous or that local execution guarantees private support artifacts.

## Primary references and related reading

Disabling capture_locals removes one traceback content path; messages, notes and chained exceptions still need review. [Python traceback local capture and exception formatting](https://docs.python.org/3/library/traceback.html); [CPython FrameSummary local representation capture](https://raw.githubusercontent.com/python/cpython/main/Lib/traceback.py).

The proposed investigation of traceback local capture support export is a proposed technical boundary review; no production workload or private data was used. Related reading: [Bound crash dumps from large model-serving processes](/journal/guide-linux-coredump-space/); [Comparing LLM-router data policies](/journal/router-data-policy-comparison/).
