Evidence and archive

compaction.ts · part 1

Full reference
Topics
Status
Showing all 19

19 text occurrences from packages/core/src/session/compaction.ts, part 1. Every entry preserves the shipped literal and its saved verdict or selection reason.

File contents and all parts · All files

Shipped text

Output exactly the Markdown structure shown inside template and keep the secti

Source: packages/core/src/session/compaction.ts, characters 601–1710, SHA-256 b6f627a298a166bd.

Jev judged not model-facing (confidence 0.93; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Output exactly the Markdown structure shown inside <template> and keep the section order unchanged. Do not include the <template> tags in your response. <template> ## Objective - [one or two brief sentences describing what the user is tryin…

Output exactly the Markdown structure shown inside <template> and keep the section order unchanged. Do not include the <template> tags in your response.
<template>
## Objective
- [one or two brief sentences describing what the user is trying to accomplish]

## Important Details
- [constraints/preferences, decisions and why, important facts/assumptions, exact context needed to continue, or "(none)"]

## Work State
### Completed
- [finished work, verified facts, or changes made; otherwise "(none)"]

### Active
- [current work, partial changes, or investigation state; otherwise "(none)"]

### Blocked
- [blockers, failing commands, or unknowns; otherwise "(none)"]

## Next Move
1. [immediate concrete action, or "(none)"]
2. [next action if known, or "(none)"]

## Relevant Files
- [file or directory path: why it matters, or "(none)"]
</template>

Rules:
- Keep every section, even when empty.
- Use terse bullets, not prose paragraphs.
- Preserve exact file paths, symbols, commands, error strings, URLs, and identifiers when known.
- Do not mention the summary process or that context was compacted.

The prior-summary summarizes everything that happened before the conversation

Source: packages/core/src/session/compaction.ts, characters 1747–2701, SHA-256 2cf2bc5408c4cf81.

Jev judged model-facing (confidence 0.95; role instructions). This is a classifier judgment, not proof of delivery.

Readable text: The <prior-summary> summarizes everything that happened before the <conversation>. Construct a new summary that combines both. The <prior-summary> is discarded after this: anything you do not carry into the new summary is lost. When combin…

The <prior-summary> summarizes everything that happened before the <conversation>. Construct a new summary that combines both. The <prior-summary> is discarded after this: anything you do not carry into the new summary is lost.

When combining:
- Carry forward objectives, constraints, user directives, decisions, and parallel workstreams from the <prior-summary> even when the <conversation> does not mention them. Drop only what is finished and no longer needed.
- The <conversation> is more recent than the <prior-summary>. Where they conflict, the conversation wins: state the corrected fact and drop the old claim.
- Add new progress, decisions, constraints, and context from the conversation.
- Move completed work from "Active" to "Completed".
- If a blocker has been resolved, update the summary to reflect that while keeping any details still needed to continue the work.
- Update "Objective" and "Next Move" to reflect the current work state.

${value.slice(0, TOOL OUTPUT MAX CHARS)} n truncated

Source: packages/core/src/session/compaction.ts, characters 3403–3458, SHA-256 82a1a73bcbfaca29.

Jev judged not model-facing (confidence 0.15; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: ${value.slice(0, TOOL_OUTPUT_MAX_CHARS)}\n[truncated]

${value.slice(0, TOOL_OUTPUT_MAX_CHARS)}\n[truncated]

Attached ${item.mime}${item.name === undefined ? "" : : ${item.name} }

Source: packages/core/src/session/compaction.ts, characters 3625–3700, SHA-256 65fa5c56463736ea.

Jev judged not model-facing (confidence 0.29; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Attached ${item.mime}${item.name === undefined ? "" : ': ${item.name}'}]

[Attached ${item.mime}${item.name === undefined ? "" : `: ${item.name}`}]

Attached ${file.mime}: ${file.name ?? file.uri}

Source: packages/core/src/session/compaction.ts, characters 3862–3913, SHA-256 119a2b98fafb03b8.

Jev judged not model-facing (confidence 0.3; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Attached ${file.mime}: ${file.name ?? file.uri}]

[Attached ${file.mime}: ${file.name ?? file.uri}]

User : ${message.text}

Source: packages/core/src/session/compaction.ts, characters 3933–3958, SHA-256 220f50d14659d376.

Jev judged not model-facing (confidence 0.62; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [User]: ${message.text}

[User]: ${message.text}

Assistant : ${part.text}

Source: packages/core/src/session/compaction.ts, characters 4119–4146, SHA-256 b5bcc06a67aa9482.

Jev judged not model-facing (confidence 0.57; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Assistant]: ${part.text}

[Assistant]: ${part.text}

Assistant reasoning : ${part.text}

Source: packages/core/src/session/compaction.ts, characters 4207–4244, SHA-256 a6a0540bd01b9a63.

Jev judged not model-facing (confidence 0.55; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Assistant reasoning]: ${part.text}

[Assistant reasoning]: ${part.text}

Assistant tool call : ${part.name}(${input})

Source: packages/core/src/session/compaction.ts, characters 4442–4489, SHA-256 fd491e3bc632a9b0.

Jev judged not model-facing (confidence 0.5; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Assistant tool call]: ${part.name}(${input})

[Assistant tool call]: ${part.name}(${input})

Tool result : ${truncate(serializeToolContent(part.state.content))}

Source: packages/core/src/session/compaction.ts, characters 4503–4573, SHA-256 f852baccbd06b066.

Jev judged not model-facing (confidence 0.62; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Tool result]: ${truncate(serializeToolContent(part.state.content))}

[Tool result]: ${truncate(serializeToolContent(part.state.content))}

Assistant tool call : ${part.name}(${input}) · character 4648

Source: packages/core/src/session/compaction.ts, characters 4648–4695, SHA-256 fd491e3bc632a9b0.

Jev judged not model-facing (confidence 0.34; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Assistant tool call]: ${part.name}(${input})

[Assistant tool call]: ${part.name}(${input})

Tool error : ${part.state.error.message}

Source: packages/core/src/session/compaction.ts, characters 4697–4740, SHA-256 43c0f6ebd1d6ab74.

Jev judged not model-facing (confidence 0.33; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Tool error]: ${part.state.error.message}

[Tool error]: ${part.state.error.message}

Assistant tool call : ${part.name}(${input}) · character 4758

Source: packages/core/src/session/compaction.ts, characters 4758–4805, SHA-256 fd491e3bc632a9b0.

Jev judged not model-facing (confidence 0.46; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Assistant tool call]: ${part.name}(${input})

[Assistant tool call]: ${part.name}(${input})

System update : ${message.text}

Source: packages/core/src/session/compaction.ts, characters 4878–4912, SHA-256 f6996d14e0a6d379.

Jev judged not model-facing (confidence 0.65; role context). This is a classifier judgment, not proof of delivery.

Readable text: [System update]: ${message.text}

[System update]: ${message.text}

Synthetic context : ${message.text}

Source: packages/core/src/session/compaction.ts, characters 4956–4994, SHA-256 660b49d539fa30e0.

Jev judged not model-facing (confidence 0.45; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Synthetic context]: ${message.text}

[Synthetic context]: ${message.text}

Shell : ${message.command} n${truncate(message.output)}

Source: packages/core/src/session/compaction.ts, characters 5034–5092, SHA-256 1fdeedaddf0d8e51.

Jev judged not model-facing (confidence 0.39; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: [Shell]: ${message.command}\n${truncate(message.output)}

[Shell]: ${message.command}\n${truncate(message.output)}

Here is the conversation so far: n n conversation n${input.context.join(" n n")

Source: packages/core/src/session/compaction.ts, characters 6490–6590, SHA-256 743cbc108627273d.

Jev judged not model-facing (confidence 0.78; role context). This is a classifier judgment, not proof of delivery.

Readable text: Here is the conversation so far:\n\n<conversation>\n${input.context.join("\n\n")}\n</conversation>

Here is the conversation so far:\n\n<conversation>\n${input.context.join("\n\n")}\n</conversation>

Create a new anchored summary from the conversation history in the conversation

Source: packages/core/src/session/compaction.ts, characters 6660–6801, SHA-256 114397d3e0a39661.

Jev judged model-facing (confidence 0.89; role instructions). This is a classifier judgment, not proof of delivery.

Readable text: Create a new anchored summary from the conversation history in the <conversation> tags above so another coding agent can continue the work.

Create a new anchored summary from the conversation history in the <conversation> tags above so another coding agent can continue the work.

Here is the summary of the conversation before the conversation above: n n pri

Source: packages/core/src/session/compaction.ts, characters 6879–7016, SHA-256 7d0f73aa2b80b61e.

Jev judged not model-facing (confidence 0.8; role code_data). This is a classifier judgment, not proof of delivery.

Readable text: Here is the summary of the conversation before the <conversation> above:\n\n<prior-summary>\n${input.previousSummary}\n</prior-summary>

Here is the summary of the conversation before the <conversation> above:\n\n<prior-summary>\n${input.previousSummary}\n</prior-summary>