todo-53.5-event-prompt-order-independent-identity.md 824 B

Todo 53.5: EventPrompt Order-Independent Identity

Problem

Todo 53.4 distinguishes managed and impostor content, but tests only the ordering where the impostor precedes the managed item. An incorrect collector that keeps the last generated-signature item could still pass.

Scope

  • Change only the EventPrompt payload behavior test.
  • Run the same assertions with managed-before-impostor and managed-after-impostor prompt arrays.
  • In both orderings, dual_agent must retain ordinary custom prompts plus the managed content.
  • In both orderings, chat_agent_tools must retain ordinary custom prompts only.
  • Do not change production code.

Verification

  • Focused payload test passes for both orderings.
  • Full WebSocket test file, Node syntax, and diff checks pass.
  • Repeat the bounded code-quality review.