Skip to content

feat(federation): add latent Mixture of Roles composition contract - #3126

Draft
ruvnet wants to merge 5 commits into
mainfrom
sota/latent-role-composition
Draft

feat(federation): add latent Mixture of Roles composition contract#3126
ruvnet wants to merge 5 commits into
mainfrom
sota/latent-role-composition

Conversation

@ruvnet

@ruvnet ruvnet commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Implements the reusable latent role composition contract tracked in #3125.

The federation plugin now supports deterministic top K role selection from caller supplied logits, numerically stable normalized weights, explicit steering vector references, strict malformed input rejection, and an explicit fallback when hidden state access is unavailable. The result carries no execution authority.

Unit tests cover fallback behavior, normalization, additive logit shift invariance, deterministic ties, very large finite logits, duplicate identities, invalid top K, and non finite scores. An ADR and reproduction protocol compare this path against single agent and the existing textual mixture of agents.

This PR is draft. It does not train role vectors or integrate a model backend. Do not merge until the published result is independently reproduced and steering artifacts are provenance and digest bound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant