Files
hermes-agent/tests
unsupportedpastels 872cea386b fix(gateway): keep trust clauses out of the chat refusal reply
The native admission refusal reply reaches everyone in the chat, so naming
the failed trust or provenance check (multiplex_without_provenance,
authorization_home_without_provenance, ...) helped a sender probing forged
trust fields. The reply now names only an explicit allowlist of content
clauses (text, media_*, auto_skill, channel_*, reply_expected); every other
clause, including any added later, gets the generic invalid_params notice.
gateway.log still records the full clause at WARNING and the wire reason is
unchanged.

Also read exc.detail directly, and express the _validate_native event
checks as one ordered if chain (_event_clause) like _media_clause, with the
same order, short-circuits and truthiness.

Addresses review by @kshitijk4poor on #139271.

Refs #134889 (MSG-5)
Refs #139162
2026-10-15 16:33:59 -04:00
..
2026-10-15 05:23:51 -07:00