HumaneProxy Safety Benchmark
Version updated for https://github.com/Vishisht16/Humane-Proxy to version v0.5.0.
- This action is used across all versions by 0 repositories.
Action Type
This is a Composite action.
Go to the GitHub Marketplace to find the latest changes.
What’s Changed
Highlights
- π OpenTelemetry distributed tracing (#7) β export pipeline traces to Jaeger, Grafana Tempo, or Datadog via the new
[telemetry]extra. Every request produces apipeline.classifyspan with privacy-safe attributes (category, score, stage reached, message hash β never raw text). Zero overhead when disabled. - π Region-aware care response β set
safety.categories.self_harm.region: "IN"(any ISO country code) to surface that country’s crisis resources first, while always keeping the full international list. - βοΈ Crisis helplines for new countries (#26) β Japan, South Korea, Spain, Italy, Mexico, New Zealand and more join the existing US/IN/GB/AU/CA/DE/FR/BR/ZA resources.
- ποΈ Storage-backend consistency (#37) β the admin API, CLI, and MCP tools now route through the storage factory instead of raw SQLite, so Redis and PostgreSQL deployments see the same data everywhere.
- π Query upgrades β escalation queries support date filtering (
date_from/date_to) and sorting across all three backends.
Fixed
- Multimodal content arrays:
/chatextracts text from OpenAI-style content parts and no longer errors on string or malformed message content (#44, #45, #48). - Empty
/chatrequest bodies return a clean 400 (#41). - CodeQL SQL-injection alerts resolved with statically generated SQL templates; timezone conversion and CSV
triggersserialization fixed in escalation export.
Security
- Admin Bearer-token comparison hardened against timing attacks with
hmac.compare_digest(#18, #21). - HTTP MCP hardened: binds to
127.0.0.1by default, warns on public binds without a token, supports Bearer auth viaHUMANE_PROXY_ADMIN_KEY, and bounds audit-log queries (#17).
Docs & Tests
- Mermaid.js architecture diagram, README table of contents, corrected Stage-1 transition labels.
- New test coverage: Unicode/leet-speak heuristic edge cases, pipeline config validation, malformed payloads, decay-weighted-mean edge cases.
Full Changelog: https://github.com/Vishisht16/Humane-Proxy/compare/v0.4.0...v0.5.0