Observed conversation messages are smuggled through Event as "conversation_message", dropping trace and allowing spoofing
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Scala
- Stelle
- 0
- Fork
- 7
- Merge medio
- 2g 5h
- PR unite (30g)
- 11
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di salesforce/evalon
-
Upgrade Pekko to 2.0.0Apertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
salesforce/evalon#26 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
salesforce/evalon#15 ·
I maintainer di solito rispondono entro 1 giorno
-
Scored/Rubric criteria without a passThreshold always report passed=falseForse già presa @hippi345 l’ha presa 14 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
salesforce/evalon#13 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
salesforce/evalon#3 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di salesforce/evalon
Issue simili
-
easy first-contributor first-contributors good first issue help wanted scala up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
fork-commit-merge/fork-commit-merge#8751 ·
I maintainer di solito rispondono entro 1 giorno
-
CI/CD ⚒️ Flaky-tests 🐦
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
valkey-io/valkey-glide#7921 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Random.nextLongBounded uses u % (n - 1) in its rejection test, so some values are never returnedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno