xihaian251 commented on issue #1017:
URL: https://github.com/apache/burr/issues/1017#issuecomment-6571974615

   Thanks, Mohit — I appreciate the explanation of your approach and your 
willingness to coordinate.
   
   Forwarding `_processed_inputs` into `_step()` / `_astep()` seems like a 
sensible way to reuse the processed inputs and avoid redundant dependency 
factory calls. I'm happy to help validate the combined behavior using the 
regression matrix in #1018, particularly the input-validation and 
lifecycle-hook cases from #1017.
   
   I took another look at the current head of #1019 and noticed one subtle 
sequencing detail that I think is worth verifying before we settle on the 
implementation.
   
   Currently, `_process_inputs()` is called before `_increment_sequence_id()`. 
However, `_process_inputs()` invokes dependency factories using 
`self.sequence_id`, including the factory that creates the injected 
`__context`. This means the injected `ApplicationContext.sequence_id` appears 
to be captured before the increment, whereas `pre_run_step` receives the 
incremented sequence ID.
   
   In comparison, `step()` and `astep()` increment the sequence ID before 
processing inputs.
   
   Could we add a small regression test to verify that the injected context's 
sequence ID remains consistent with the sequence ID observed by the lifecycle 
hooks and the action, including when an application is resumed?
   
   I'd also be happy to help test the interaction with #979 / #980 / #995, so 
we can avoid duplicated work and ensure the final implementation handles both 
streaming and non-streaming execution paths consistently.
   
   I'm open to whichever implementation the maintainers prefer. My main goal is 
to make sure we have complete regression coverage and consistent behavior 
across all entry points.
   
   Thanks again for coordinating!


-- 
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