Skip to content

Capture bounded Provider HTTP body evidence - #571

Merged
LioRael merged 1 commit into
mainfrom
feat/provider-http-body-evidence
Aug 13, 2026
Merged

Capture bounded Provider HTTP body evidence#571
LioRael merged 1 commit into
mainfrom
feat/provider-http-body-evidence

Conversation

@LioRael

@LioRael LioRael commented Aug 13, 2026

Copy link
Copy Markdown
Owner

What changed

  • capture Provider HTTP request and response JSON bodies before persistence
  • recursively redact sensitive fields and omit bodies above the 64 KiB evidence limit
  • persist explicit captured, not-applicable, and not-captured states with reasons and observed sizes
  • keep body content out of compact Story metadata while exposing coverage summaries
  • document the evidence policy and cover migration/persistence behavior with PostgreSQL tests

Why

Story Inspector could explain Provider calls but the runtime never retained safe request or response body evidence. Console therefore had no source-owned body content to display.

Validation

  • cargo fmt --all -- --check
  • cargo test -p lenso-platform-core -p lenso-platform-provider --all-targets --locked
  • cargo clippy -p lenso-platform-core -p lenso-platform-provider --all-targets --locked
  • real PostgreSQL provider-call persistence test
  • real PostgreSQL platform migration test
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 13, 2026 19:38
@changeset-bot

changeset-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 11ffab9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@LioRael
LioRael merged commit c148fb2 into main Aug 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants