Skip to content

fix(omp): sanitize duration metadata#35

Merged
cooper (czxtm) merged 1 commit into
mainfrom
fix/omp-rpc-duration-sanitize
Jul 24, 2026
Merged

fix(omp): sanitize duration metadata#35
cooper (czxtm) merged 1 commit into
mainfrom
fix/omp-rpc-duration-sanitize

Conversation

@czxtm

Copy link
Copy Markdown
Member

Summary

  • remove caller-supplied trace_metadata.max_duration_ms unconditionally
  • reinsert only the validated top-level execution duration when configured
  • preserve unrelated trace metadata and trusted ownership fields

Regression

The new None-duration test failed before the fix because the caller value survived; it now passes.

Verification

  • cargo test --manifest-path services/api-rs/Cargo.toml -p centaur-session-runtime (140 passed)
  • cargo clippy --manifest-path services/api-rs/Cargo.toml -p centaur-session-runtime --all-targets -- -D warnings
  • built centaur-api-rs:latest

@czxtm
cooper (czxtm) merged commit df4a91c into main Jul 24, 2026
18 checks passed
@czxtm
cooper (czxtm) deleted the fix/omp-rpc-duration-sanitize branch July 24, 2026 17:31
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