Skip to content

hardening: normalize fusion weights and bound combined scores#32

Closed
Djain912 wants to merge 5 commits intomainfrom
feat/hardening-fusion-safety
Closed

hardening: normalize fusion weights and bound combined scores#32
Djain912 wants to merge 5 commits intomainfrom
feat/hardening-fusion-safety

Conversation

@Djain912
Copy link
Copy Markdown
Collaborator

@Djain912 Djain912 commented Apr 17, 2026

Summary

Hardens combined fusion behavior by normalizing unsafe weight inputs and bounding merged scores.

Changes

  • Normalize and sanitize lexical/embedding fusion weights.
  • Add safe defaults when provided weights are invalid.
  • Bound combined scores into [0,1].
  • Add robust regression tests around weight semantics and score bounds.

Validation

  • go test ./...

Stack Flow

@luigiagent
Copy link
Copy Markdown
Collaborator

Thanks for this work, it’s still useful. We’ve opened #39 as a superseding PR that carries the same hardening direction forward on top of the newer stacked branch history, so review/merge should continue there instead. We’ll use #39 as the replacement path for this change set.

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.

3 participants