You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Strengthen compaction summaries and user-message provenance #4242
The default Harness compaction prompt has no stable section for every unfinished task, and user-message attribution can become unreliable after a summary is flattened into transcript text. Explicit constraints, including security rules, may be weakened or omitted; assistant-quoted role labels, prior summaries, and framework-injected USER messages may be mistaken for genuine user requests or approvals.
Expected behavior
Use a fixed summary structure covering the user's request, technical context, changed files, pitfalls, pending tasks, and next step.
Preserve active security-relevant instructions in the user's wording.
List genuine user messages and distinguish them from assistant text, prior summaries, and synthetic framework notifications.
Keep all unfinished requested tasks and clarify that preserved tail messages are newer than the summary.
Acceptance criteria
Regression tests cover assistant text that looks like a transcript boundary, prior summaries, and synthetic user-role notifications.
The default prompt requests all pending tasks and preserves active security constraints verbatim.
English and Chinese Harness context documentation describe the summary behavior.
Activity
feat(harness): strengthen compaction summaries and provenance (agents…
feat(harness): strengthen compaction summaries and provenance (agents…