Files
ruflo/docs
rUvandClaude 1b783e0c98 dream(security): gate admin-plane trust-change/topology-change below ATTESTED (evaluated) #4633 (#4634)
* dream(security): #4633 gate admin-plane trust-change/topology-change below ATTESTED (evaluated)

PolicyEngine.evaluateMessage()'s getOperationForMessageType() had no case
for trust-change/topology-change (the two federation message types that
mutate a peer's trust level or the mesh topology itself) — both fell
through to the generic 'send' operation, granted from TrustLevel.ATTESTED,
the same floor as ordinary data-plane messages. Unlike write/memory/spawn,
there was no SecurityPolicy-configurable threshold for this category.

Adds a dedicated 'admin-change' CAPABILITY_GATES entry (TRUSTED+ only) and
a new minTrustLevelForAdmin SecurityPolicy field (default TRUSTED),
mirroring the write/memory/spawn pattern fixed last night (#4619). The
hardcoded floor cannot be bypassed by a loosened policy override, matching
the existing defense-in-depth shape for remote-spawn/PRIVILEGED.

7 new tests (4 discriminating, 3 controls). Stash-isolated baseline:
4/17 fail exactly as predicted. Candidate: 17/17 pass. Full package suite:
684/684 (677 existing + 7 new), 0 regressions. tsc --noEmit: unchanged
5 pre-existing unrelated module-resolution errors, 0 in changed files.

Independent adversarial critique (fresh context, re-ran stash isolation
and the full suite itself): CONFIRMED core bug, PASS shippability. Two
non-blocking caveats disclosed: (1) claim-event/agent-handoff still fall
through the same default branch — pre-existing, already covered by their
separate absence from DEFAULT_SECURITY_POLICY.allowedMessageTypes, not
in scope tonight; (2) an uncited editorial comment citing "Identiverse
2026" — trimmed in this commit.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf

* docs(dream-cycle): 2026-11-01 security gist + ledger row (#4633)

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf

* docs(dream-cycle): record PR #4634 in ledger row

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01ReiDH37Jrnfnkp5K5kF5vf

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 10:26:18 -05:00
..