Files
ruflo/v3/@claude-flow
ClaudeandRuFlo a85efdf53a dream(security): #4618 enforce SecurityPolicy.minTrustLevelFor{Write,Memory,Spawn} in PolicyEngine
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
2026-10-31 06:25:05 +00:00
..
2026-10-23 13:20:20 -04:00
…