Skip to content

Commit e59e216

Browse files
committed
docs: clarify dcp message-id metadata tags in prompts
1 parent 0bd9771 commit e59e216

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/prompts/compress.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,12 @@ Rules:
9393
ID SOURCES
9494

9595
- User messages include a text marker with their `mNNNN` ID.
96-
- Assistant messages include a `context_info` tool marker with their `mNNNN` ID.
96+
- Assistant messages usually include an XML metadata tag in the last tool output: `<dcp-message-id>mNNNN</dcp-message-id>`.
97+
- Assistant messages without tool outputs use a synthetic `context_info` marker instead.
9798
- Compressed blocks are addressable by `bN` IDs.
9899

100+
Treat `<dcp-message-id>...</dcp-message-id>` as metadata only. It is not part of the tool result semantics.
101+
99102
Do not invent IDs. Use only IDs that are present in context.
100103

101104
PARALLEL COMPRESS EXECUTION

lib/prompts/system.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Treat token counts and context growth as soft signals, not hard triggers.
2323
BOUNDARY MATCHING
2424
`compress` uses inclusive ID boundaries via `content.startId` and `content.endId`. IDs are injected in context as message refs (`mNNNN`) and compressed block refs (`bN`).
2525

26+
Assistant tool outputs may include metadata tags like `<dcp-message-id>mNNNN</dcp-message-id>`.
27+
Treat these tags as boundary metadata only, not as tool result content.
28+
2629
Only choose IDs currently visible in context. Do not invent IDs.
2730

2831
RESPECT THE CHRONOLOGY OF THE RANGE

0 commit comments

Comments
 (0)