sangkyoonnam commented on issue #1190:
URL: https://github.com/apache/flink-agents/issues/1190#issuecomment-6031787435

   Thanks for the seed-controlled repro. I'd like to take this if no one else 
is working on it. It's related to the durable replay work in #1171.
   
   The fix belongs in `_compute_args_digest`: hash a canonical, type-aware 
representation instead of raw cloudpickle bytes. `model_dump` with sorted keys 
isn't enough on its own, since a set inside `extra_args` still serializes in 
hash-seed order, so the representation needs to recurse with an explicit policy 
for sets and unsupported values. I'll write that policy out in the PR. Tests 
would cover fresh processes under different `PYTHONHASHSEED` values for text, 
nested blocks, tool-call arguments and `extra_args` (including sets and an 
unsupported value), check that distinct values such as a tuple and a list or 
bytes and a string keep distinct digests, and run a journal recovery. One 
upgrade effect to call out: when an unfinished action recovers across the 
change and reaches a saved call whose digest changed, that call's saved result 
and every later one are cleared, so the calls reached afterward run again.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to