Split from #3138.
Related:
#3131 improved the user-facing export path by stripping internal markers such as:
<system-reminder>
<memory>
<current_date>
<uploaded_files>
This is useful as a containment fix, but it is still based on hard-coded text markers.
The maintainability concern is that string/tag stripping is a fragile boundary. It can miss new internal markers added later, and it can also strip user-visible content if the same tag-like text appears in normal conversation content.
Longer term, internal context should ideally be represented with structured message metadata or hidden message semantics, and export should filter based on those semantics instead of matching strings.
Suggested follow-up:
Track a cleaner internal-message/export boundary so user-facing export does not depend only on string marker stripping.
This is a maintainability follow-up, not an immediate release blocker.
Split from #3138.
Related:
#3131 improved the user-facing export path by stripping internal markers such as:
<system-reminder><memory><current_date><uploaded_files>This is useful as a containment fix, but it is still based on hard-coded text markers.
The maintainability concern is that string/tag stripping is a fragile boundary. It can miss new internal markers added later, and it can also strip user-visible content if the same tag-like text appears in normal conversation content.
Longer term, internal context should ideally be represented with structured message metadata or hidden message semantics, and export should filter based on those semantics instead of matching strings.
Suggested follow-up:
Track a cleaner internal-message/export boundary so user-facing export does not depend only on string marker stripping.
This is a maintainability follow-up, not an immediate release blocker.