inter-hub-haskell/Web/Controller
Bernd Worsch ce42607fca fix(WP-0014/A2): close remaining pure-param and structural compilation errors
Convert all remaining `<- paramOrNothing / param / paramOrDefault /
currentUserOrNothing` monadic binds to `let` — these functions are pure
(ImplicitParams-based) in IHP v1.5, so `<-` is a type error in an IO
do-block.

Controllers fixed:
  AgentDelegations, AiGovernancePolicies, Annotations, ApiConsumers,
  CollectiveProposals, DecisionRecords, DeploymentRecords,
  HubCapabilityManifests, HubRoutingRules, InstitutionalKnowledge,
  OutcomeCorrelations, RequirementCandidates, TypeRegistries,
  WebhookSubscriptions, Widgets,
  Api/V2/{Annotations,InteractionEvents,Token}

WebhookSubscriptions: remove orphaned `Right () ->` case arm that was
left inside a bare `unless` block (structural parse error).

Also carries forward all in-progress fixes from the working tree:
  helpers (AgentBridge, ApiRateLimit, BottleneckDetector,
            CrossHubPropagation, FrictionScore),
  views (CanSelect instances, HSX lambda extraction, formFor wrappers),
  env/build (envrc GHCi perms, flake.nix Tailwind + GHC resource limits,
             static/app.css additional Tailwind output).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 01:14:08 +00:00
..
Api/V2 fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
AdaptiveThresholds.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
AgentDelegations.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
AgentProposals.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
AgentRegistrations.hs feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
AiGovernancePolicies.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Annotations.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
AnnotationThreads.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
ApiConsumers.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
ApiDashboard.hs feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs 2026-04-01 19:52:20 +00:00
ApiInteractionEvents.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
ApiKeys.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
ArchiveRecords.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
CollectiveProposals.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
CrossHubPropagations.hs feat(P7): IHF Phase 7 complete — advanced observability and operational integration 2026-03-29 21:49:22 +00:00
DecisionRecords.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
DeploymentRecords.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
EnvelopeEmissionContracts.hs feat(P6/T02-T03): EnvelopeEmissionContract and InteractionReportingContract 2026-03-29 21:11:03 +00:00
FederatedGovernance.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
FederatedPolicyOverlays.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
GovernanceTemplates.hs feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
HubCapabilityManifests.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
HubRegistry.hs fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed 2026-04-04 09:55:12 +00:00
HubRoutingRules.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Hubs.hs feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts 2026-03-31 21:17:39 +00:00
InstitutionalKnowledge.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
InteractionEvents.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
InteractionReportingContracts.hs feat(P6/T02-T03): EnvelopeEmissionContract and InteractionReportingContract 2026-03-29 21:11:03 +00:00
LearningDashboard.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
LineageEnrichment.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
MarketplaceDashboard.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
ModelRoutingPolicies.hs feat(WP-0012): IHF Phase 11 — Advanced AI Federation 2026-04-01 20:57:17 +00:00
OutcomeCorrelations.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
PatternPerformance.hs feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning 2026-04-03 12:34:07 +00:00
RequirementCandidates.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
Requirements.hs feat(P3): IHF Phase 3 complete — Governance and Decision Linkage 2026-03-29 10:42:56 +00:00
Sessions.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
StaticPages.hs feat(WP-0015/B1-B6): StaticPages controller and public intro/tutorial UI 2026-04-08 02:02:44 +00:00
StewardshipRoles.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
TypeRegistries.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
WebhookSubscriptions.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00
WidgetAdapterSpecs.hs feat(P6/T04): WidgetAdapterSpecsController, registry, widget adapter integration 2026-03-29 21:14:57 +00:00
WidgetOwnerships.hs feat(P8): IHF Phase 8 complete — Federated Hub Maturity 2026-03-29 22:53:01 +00:00
WidgetPatterns.hs feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace 2026-04-01 20:14:43 +00:00
Widgets.hs fix(WP-0014/A2): close remaining pure-param and structural compilation errors 2026-04-10 01:14:08 +00:00