feat(WP-0012): IHF Phase 11 — Advanced AI Federation
Some checks failed
Test / test (push) Has been cancelled

- Schema: AgentRegistration, ModelRoutingPolicy, AgentDelegation,
  CollectiveProposal, CollectiveProposalContribution, AiGovernancePolicy,
  AgentPerformanceRecord + ALTER TABLE agent_proposals
  (migration 1744156800; CHECK constraints on trust_level, status,
  consensus_status — GAAF compliant)

- Bridge: scripts/llm_bridge.py (llm-connect subprocess seam) +
  Application/Helper/AgentBridge.hs (callBridge, callAgent,
  checkGovernancePolicy, jsonArrayTexts)

- Routing: Application/Helper/ModelRouter.hs (resolveAgent,
  resolveAllAgents) + ModelRoutingPolicies CRUD

- Registry: AgentRegistrations CRUD (Index/Show/New/Edit/Performance),
  DeactivateAgentAction, ComputeAgentPerformanceAction

- Delegation: AgentDelegations controller + views, DelegateSubtaskAction
  with token budget enforcement at bridge call time

- Collective: CollectiveProposals controller + views,
  CreateCollectiveProposalAction (fan-out → synthesis → consensus detection)

- Governance: AiGovernancePolicies CRUD + ToggleAiGovernancePolicyAction;
  checkGovernancePolicy enforced at all 4 Phase 5 invocation points

- Phase 5 wiring: replaced callClaudeApi in Widgets, DecisionRecords,
  RequirementCandidates with resolveAgent + callAgent + token tracking

- llm-connect feature requests: ~/llm-connect/FEATURE_REQUESTS.md
  (FR-1 HTTP serve, FR-2 RoutingPolicy, FR-3 async, FR-4 BudgetTracker)

- GAAF scorecard: 3.61 (up from 3.56); Functional 3.4→3.6, Extensions 3.8→3.9

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 20:57:17 +00:00
parent 4e4e994659
commit 133dae3d23
32 changed files with 1959 additions and 102 deletions

View File

@@ -4,7 +4,7 @@ type: workplan
title: "IHF Phase 11 — Advanced AI Federation"
domain: inter_hub
repo: inter-hub
status: todo
status: done
owner: custodian
topic_slug: inter_hub
created: "2026-04-01"
@@ -225,7 +225,7 @@ ALTER TABLE agent_proposals
```task
id: IHUB-WP-0012-T01
status: todo
status: done
priority: high
state_hub_task_id: "d86574f0-f0a4-4217-b4de-d020442de7e4"
```
@@ -242,7 +242,7 @@ Includes the ALTER TABLE on `agent_proposals` to add `agent_registration_id`,
```task
id: IHUB-WP-0012-T02
status: todo
status: done
priority: high
state_hub_task_id: "404d1a89-aae2-49ea-a565-90261001a633"
```
@@ -361,7 +361,7 @@ callAgent agent prompt =
```task
id: IHUB-WP-0012-T03
status: todo
status: done
priority: high
state_hub_task_id: "3ae5b3b1-e644-444d-ae72-8eef07318c49"
```
@@ -392,7 +392,7 @@ Add nav link ("Agents") next to existing "Agent" proposals link.
```task
id: IHUB-WP-0012-T04
status: todo
status: done
priority: high
state_hub_task_id: "20bcff74-1923-4c11-95ef-2b37a7a10dd8"
```
@@ -439,7 +439,7 @@ resolveAgent hubId taskType = do
```task
id: IHUB-WP-0012-T05
status: todo
status: done
priority: high
state_hub_task_id: "45fec21a-47d3-4381-99bc-88dcf0f117cb"
```
@@ -488,7 +488,7 @@ queries `ai_governance_policies` for the hub + agent + artifact_type combination
```task
id: IHUB-WP-0012-T06
status: todo
status: done
priority: medium
state_hub_task_id: "9fe1c284-ecb7-4777-98f3-253224df704c"
```
@@ -512,7 +512,7 @@ Actions:
```task
id: IHUB-WP-0012-T07
status: todo
status: done
priority: medium
state_hub_task_id: "37782cec-2d42-44b8-8bda-2049a7bf4898"
```
@@ -546,7 +546,7 @@ detectConsensus contribs =
```task
id: IHUB-WP-0012-T08
status: todo
status: done
priority: medium
state_hub_task_id: "50d05787-9629-4f94-ac55-50a6e417f730"
```
@@ -587,7 +587,7 @@ count of blocked invocations in the last 7 days per hub.
```task
id: IHUB-WP-0012-T09
status: todo
status: done
priority: medium
state_hub_task_id: "6ef63612-f913-4a13-b683-f44929cb1b2d"
```
@@ -621,7 +621,7 @@ calibration indicator.
```task
id: IHUB-WP-0012-T10
status: todo
status: done
priority: medium
state_hub_task_id: "41a64c6c-0ce8-4c63-9175-6b8d28143f81"
```