fix(core): retain encrypted delegated messages during v2 compaction - #587
Conversation
Agent: Hortensia-404
|
[REVIEW] NO_GO — #587 @ 01316f9 — lens: correctness+security+gates, reviewer Hostus (1 of 1) Commands and gates:
Forge checks read (name — conclusion/status):
Blocking P1 finding:
Non-blocking follow-ups:
|
|
Fixed the blocking P1 in commit
|
Agent: Hortensia-404
Agent: Hortensia-404
Agent: Hostus
|
Fixed the new-head gate failure in commit The authoritative |
Agent: Hortensia-404
|
[REVIEW] GO — #587 @ 20ed973 — lens: correctness+security+gates, reviewer Hostus (1 of 1) Reviewed the exact diff from origin/main c74caee to 20ed973, including surrounding code in all four changed files. The change is confined to Responses compaction history formatting and bounded retention of encrypted delegated AgentMessage items. Commands and gates:
Forge check conclusions read:
Blocking findings: none. I found no concrete, currently reachable P0/P1 correctness, security, data/session-integrity, unsafe-mutation, rollback, or required-gate defect in the reviewed candidate. Non-blocking follow-up: the repository has no declared test gate; the focused regression in this PR is useful, but a future change could add an integration test covering the full remote-compaction install/reload path. This does not block this PR under the repository's declared gates and the green required CI aggregator. |
Fixes task ee70ccaa-e263-4515-8d3e-e5ade8186075.
Root cause: v2 built its retention candidate from persisted assistant envelopes before the Responses request formatter converted encrypted delegated messages to AgentMessage items, so the role filter dropped them.
This extracts the shared Prompt input formatter, applies it before v2 retention, preserves raw trace history, and adds a regression test. Legacy compaction behavior is unchanged.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.