Skip to content

fix(rust-v2): Context extraction mapping and add decorator benchmarks#65

Open
eterna2 wants to merge 6 commits intomainfrom
fix/rust-v2-benchmarks-and-context
Open

fix(rust-v2): Context extraction mapping and add decorator benchmarks#65
eterna2 wants to merge 6 commits intomainfrom
fix/rust-v2-benchmarks-and-context

Conversation

@eterna2
Copy link
Copy Markdown
Owner

@eterna2 eterna2 commented Apr 13, 2026

Description

Fixes the bug preventing user context from correctly being evaluated natively in rust-v2 Kest pipelines by fetching the dict explicitly via the PyDict FFI.

Updates

  • Patched python decorators FFI passing of req_dict["context"].
  • Patched rust v2::PipelineRequest::new to fetch and map context to the global environment.
  • Added new realistic Cedear pipeline throughput tests up to 8 threads in bench_decorator_throughput.py.
  • Added a full FastAPI HTTP test for GIL locking under async workloads.

eterna2 added 6 commits April 12, 2026 23:57
This PR resolves the missing context injection across the Rust FFI boundary, preventing mapped values in the @kest_verified decorator from accurately reaching Policy Engines (Cedar). It also adds robust multi-threaded decorator benchmark testing and a new synchronous/asynchronous FastAPI execution benchmark to precisely graph GIL scaling under various workloads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant