Q&A: Phase 12.5 CoalitionFormation — capability scoring, invitation TTL, consensus integration, and observer access #366
Unanswered
web3guru888
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Community Q&A thread for Phase 12.5
CoalitionFormation. Post your implementation questions, design concerns, and integration scenarios below.Q1: How do I set
required_capabilitiesvspreferred_capabilities?A: Use
required_capabilitiesfor hard dependencies — if an agent lacks any of these, it is excluded from the coalition entirely. Usepreferred_capabilitiesas a soft tiebreaker (weight 0.5 vs 1.0):requiredpreferredQ2: What happens if not enough agents accept within
invitation_ttl_secs?A:
form_coalition()raisesRuntimeErrorand sets the coalition toFAILED. The partially openedCollaborationChannelis closed immediately:The caller (
CognitiveCycle._coordinate_via_coalition) should catch this and fall back to single-agent execution or re-queue the goal.Q3: Can I change the leader after coalition formation?
A: No —
Coalitionis a frozen dataclass;leader_idis immutable afterform_coalition()returns. The leader is always the highest-scoring agent from_select_candidates(). If the leader becomes unavailable, dissolve the coalition and form a new one:Q4: How does
ConsensusVotingintegrate withCoalitionFormation?A:
CoalitionFormationcalls_ratify_high_stakes_goal()fromCognitiveCycle, which callsConsensusVoting.open_ballot()witheligible = coalition.members. The flow:Q5: What is
coalition_ttl_secsand when should I tune it?A: The TTL is a hard deadline for the entire coalition lifecycle — from formation to dissolution. After
coalition_ttl_secsseconds,_ttl_taskcallsdissolve()regardless of task state.Q6: How do I add
OBSERVERagents to an existing coalition?A: Phase 12.5 does not expose a direct "add observer" API on the immutable
Coalitionrecord. Instead, you can manually subscribe an agent to the coalition'sCollaborationChannelwith read-only access (nopublishpermission). TheCoalitionRole.OBSERVERenum exists for role-tracking in_roles, but the invitation mechanism in Phase 12.5 only handlesLEADERandMEMBER:Q7: How do I set up a Grafana alert for coalition formation failures?
A: Use the
coalition_formations_failed_totalcounter:Also track
coalition_active_gaugefor a real-time view of coordination load.Beta Was this translation helpful? Give feedback.
All reactions