mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
POLICY_CATEGORY_FOR_MESSAGE_TYPE mapped agent-handoff to the spawn floor only. A handoff also transfers work state, so when an operator sets minTrustLevelForWrite above minTrustLevelForSpawn, a handoff was admitted below the configured write floor (#4650, follow-up from #4580).\n\nAdd a write+spawn category whose threshold is max(minTrustLevelForWrite, minTrustLevelForSpawn), and map agent-handoff to it. Plain agent-spawn remains spawn-only.\n\nRegression uses write=PRIVILEGED, spawn=ATTESTED: handoff at TRUSTED is now refused and only PRIVILEGED is allowed; agent-spawn keeps its existing capability/floor behavior. Baseline fails the handoff case; candidate 2/2. Package suite 620 passed (one pre-existing missing-@noble suite); no tsc errors in the changed source.