Files
ruflo/v3/@claude-flow/plugin-agent-federation/src/application
马建彤 a19171eb0e fix(federation): require both handoff trust floors
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.
2026-11-02 18:06:00 +08:00
..