Keep internal agent traffic out of transcript - #940
Merged
TheGreatAxios merged 2 commits intoSep 12, 2026
Merged
Conversation
Persisted turns carry no message flags, so the resume path dropped any user block starting with a wake line - including verbatim operator text. turns-to-blocks now marks wake-shaped user turns origin system at persist time, and rowFromHistoryBlock drops only marked blocks. Bare-prefix operator text paints, but an enveloped verbatim-wake operator turn (deliberate paste of the full wake line plus report JSON) still drops on resume: the mark derives from the same content predicate it gates. Narrow trigger, cosmetic consequence (one scrollback row; model history intact). The live path is untouched.
TheGreatAxios
force-pushed
the
cl-7797-keep-internal-agent-traffic-out-of-the-transcript
branch
from
September 12, 2026 05:37
829b8cd to
00f2895
Compare
TheGreatAxios
deleted the
cl-7797-keep-internal-agent-traffic-out-of-the-transcript
branch
September 12, 2026 05:40
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves CL-7797: https://linear.app/abklabs/issue/CL-7797/keep-internal-agent-traffic-out-of-the-transcript
Re-review waive request (residual provenance gap)
Residual: an operator turn carrying a byte-verbatim occupancy wake still drops from the scrollback on resume. The resume mark derives from the same content predicate it gates: persisted turns carry no message flags (
createInboundTurnstores only{role, content, timestamp}), soturns-to-blocksmarks wakes by content and a verbatim operator-typed wake is markedorigin:systemand dropped byhydrateHistoryRows. Provenance exists live (OPERATOR_ORIGINATED_FLAGon operator submits vs empty flags +mailbox:systemon occupancy wakes) but is erased at the persistence boundary; carrying it through would mean rebuilding vendor turn persistence — out of scope for this PR.Trigger (narrow): only a full wake line byte-verbatim (incl. em-dash) plus the JSON payload shape — i.e. a deliberate paste of a wake into the prompt box. A bare wake prefix and all ordinary operator text paint normally.
Consequence (cosmetic): one missing scrollback row on resume; model history is intact.
Locked by test:
history-hydrate.test.ts→ "an enveloped verbatim-wake operator turn drops end to end" asserts the drop through the fullturnsToContentBlocks→hydrateHistoryRowspipeline, so any future claim that verbatim operator text always paints fails loudly. Commit message and code comments now state the actual behavior.Done-when (3) letter: wakes no longer drop by content prefix alone (origin-keyed suppression); benign operator text paints; verbatim-wake operator paste is the documented exception above. Parent/operator decides: merge with this waive, or schedule provenance-persistence work.