mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
PolicyEngine.evaluateMessage() gated federation messages solely via the hardcoded CAPABILITY_GATES table; SecurityPolicy's minTrustLevelForWrite/ Memory/Spawn fields were declared, defaulted, and accepted as constructor overrides but never read. By default this let memory-query/memory-response messages through at TrustLevel.ATTESTED, one level below the policy's own stated minTrustLevelForMemory: TRUSTED. Adds a per-message-type policy-category check layered as an additional restriction on top of CAPABILITY_GATES (never a replacement — a loosened override cannot bypass that hardcoded floor). 10 new discriminating tests; 677/677 full package suite passes; stash-isolated baseline fails the 3 tests this fix targets. Co-Authored-By: RuFlo <ruv@ruv.net> Claude-Session: https://claude.ai/code/session_01ReiDH4ix1BStZRrZwPT81X