Skip to content

Offer opt-in unified decisions in Node middleware - #111

Merged
cport1 merged 1 commit into
mainfrom
fix/unified-sdk-decisions
Nov 21, 2026
Merged

cport1 merged 1 commit into
mainfrom
fix/unified-sdk-decisions

Conversation

@cport1

@cport1 cport1 commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Add opt-in unified_v1 decisions to the Node SDK and its adapters. Use ingest's synchronous verdict and expose its score. Keep the legacy default and respect explicit local confidence minimums.
  • Check the negotiated response shape. Preserve fail-open behavior, local rules, and adapter monitor mode. Unified mode evaluates eligible requests individually so a prior path's decision cannot be reused for a different request.
  • Trace cloud admission and local-gate exclusions through the existing OpenTelemetry integration. The forwarding predicate remains in place and the trace fields have bounded values.

Verification

The full Node build, lint, test suite, and edge checks passed locally. Fixtures cover both modes, monitor and enforce behavior, requests with no TLS material, local rule short circuits, response validation, and cloud outages.

Refs WebDecoy/app#1944. Keep the issue open for external shadow comparison and request-volume measurement. No package release is included.

@cport1
cport1 merged commit 1dba8c8 into main Nov 21, 2026
2 checks passed
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