Observed conversation messages are smuggled through Event as "conversation_message", dropping trace and allowing spoofing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start with ScenarioRunner.scala:259, EvaluatedAgent.scala:109, EvaluatedAgent.generating, and EventSourceActor; trace how observed messages and emitted events flow through them. Add the dedicated participant command described in the issue, preserve the full Message, replace the string match noted in #24, and filter undeclared event names. Done when traces survive, spoofed events are dropped and logged, and missing fields no longer silently become fallback values.
Written by the indexing model from the issue text.
Description
Problem
The runner forwards observed conversation messages to observers by packing them into an Event named "conversation_message" (ScenarioRunner.scala:259). EvaluatedAgent.absorbEvents then string-matches on that name and unpacks the JSON back into a history turn (EvaluatedAgent.scala:109). This overloads Event, which is otherwise meant for things event sources emit, and causes three bugs:
- The trace is dropped. The runner only puts
conversation,senderandcontentinto the event data, butabsorbEventsreadsdata.get("trace"). Observed messages always reach the agent with no trace, even when the sender attached one. - The name can be spoofed.
EventSourceActoraccepts any event name the LLM returns, without checking it against the source's declaredemits, and the loader doesn't reserveconversation_message. An event source that emits an event with that name gets recorded in the agent's history as a real conversation turn, with conversation and sender defaulting to"unknown". - Silent fallbacks. Missing fields are replaced with
"unknown"or""instead of failing.
Proposed fix
- Add a dedicated participant command, e.g.
Participant.ReceiveObserved(conversation: String, message: Message), and have the runner send it to observers instead of aconversation_messageevent. The fullMessage(includingtrace) travels intact and the agent dispatches on type, not on a string. - Keep
Eventfor event-source emissions only. After this, the code has no built-in event names, soEvent.namecan stay aString(its values come from scenario YAML and the LLM at runtime, so a closed enum wouldn't fit). - In
EventSourceActor, drop (and log) emitted events whose name isn't in that source'semits.
Observed messages are already turned into history before a step, so StepRequest and remote agents are unaffected.
Notes
#24 adds a third string match on "conversation_message" in EvaluatedAgent.generating; this change should replace it too.
- Dominant language
- Scala
- Stars
- 0
- Forks
- 7
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from salesforce/evalon
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
salesforce/evalon#26 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
salesforce/evalon#15 ·
Maintainers usually reply within 1 day
-
Scored/Rubric criteria without a passThreshold always report passed=falsePossibly taken @hippi345 claimed this 14 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
salesforce/evalon#13 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
salesforce/evalon#3 ·
Maintainers usually reply within 1 day
All issues in salesforce/evalon
Similar issues
-
CI/CD ⚒️ Flaky-tests 🐦
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
valkey-io/valkey-glide#7921 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Random.nextLongBounded uses u % (n - 1) in its rejection test, so some values are never returnedOpen
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
ci: retry setup-java / setup-sbt in release.yml and the other workflows outside the merge queueOpentask
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day