xihaian251 commented on PR #980:
URL: https://github.com/apache/burr/pull/980#issuecomment-6488717484

   Independently verified on `50653808` with Python 3.12.14 and 3.13.14 — all 
six of my checks pass on both versions:
   
   - **input filtering** — the hook receives `{"__context"}`, not the caller's 
`{"unused": "ignored"}`
   - **validation before hooks** — a missing required input raises before 
`pre_run_step` runs at all
   - **exactly one factory call** — the `__context` factory runs once per step
   - **object identity** — `hook_inputs["__context"] is action_context`, for 
both sync and async actions
   - **`step()` control case** — unchanged
   
   `tests/core/test_application.py` goes from 142 to 146 passed (your four new 
tests included), on both versions.
   
   One implementation note, in case it comes up in review: `_processed_inputs` 
is the right shape for this. I checked whether the parameter could be dropped 
by passing `action_inputs` straight into `_step(inputs=...)`, and it cannot — 
`_process_inputs` rejects any key starting with `__`, so feeding it its own 
output raises `ValueError: Inputs starting with a double underscore ... are 
reserved`. Worth keeping the explicit bypass.
   
   I have a standalone regression test (6 cases: factory-called-once plus 
hook/action identity, parametrised over sync and async, with a `step()` 
control). It fails 3/6 on `main` and passes 6/6 here. Happy to open it against 
your branch or paste it here — whichever you prefer.
   
   ---
   
   <sub>Disclosure: this verification was produced with AI assistance against 
the pinned commit above. Every number comes from a reproducible local `pytest` 
run; happy to provide the test file and exact commands.</sub>
   


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