2c22766cd6
fix(WP-0017/E5): Layer 3 error fixes — round 3 (24 files)
...
Int16→Int in score/stars functions; uuid-based readMay→UUID.fromText;
autoRefresh do-notation fix; id→\x->x ambiguity in HubRoutingRules;
MarketplaceDashboard replaced raw SQL with IHP query builder; optional
hub selector in TypeRegistry views via CanSelect (Text, Maybe Id) instance
added to Web.View.Prelude; import consolidations to Web.View.Prelude.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-12 13:11:32 +00:00
3737845e02
fix(WP-0017/E4): Layer 3 error fixes — round 2 (18 files)
...
Fixes 46 compile errors across 18 controllers and views:
- BridgeResponse missing from explicit import lists (Widgets, RequirementCandidates,
DecisionRecords, AgentDelegations) — dot-notation HasField resolution fails without
the type in scope under DuplicateRecordFields
- unId not in IHP v1.5 — replaced all fmap (Id . unId) with fmap coerce
- respondWith not in IHP — replaced with plain redirectTo in 5 controllers
- [hubId] list param to sqlQuery — replaced with (Only hubId) tuple
- deleteWhere not in IHP — replaced with query/filterWhere/fetch/deleteRecords
- fill @'["label"] mismatch — field is label_ in generated types, not label
- PersistUUID/toUUID (persistent-style) — replaced with (Only id)
- intercalate + jsonArrayTexts ambiguity in GovernanceTemplates — hid Index import,
removed local duplicates, added Data.Text (intercalate)
- Int16 not in scope in AntifragilityDashboard — changed to Int (score :: Int)
- typeArraySection type mismatch in HubCapabilityManifests/Edit — unified to [Text]
- renderForm arity mismatch — added action param to DecisionRecords/New.renderForm
- Missing qualified Data.Aeson import in AdaptiveThresholds
- Missing ?request::Request constraint in Api/V2/WidgetPatterns.renderJsonWithStatus
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-12 12:17:45 +00:00
c40f11d657
fix(WP-0017/E3): Layer 3 error fixes — controllers and views
...
Fix compilation errors across 6 controllers and 29 views: import cleanup,
ResponseException pattern for API auth, type fixes, unused import removal.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-11 23:40:31 +00:00
58cad31042
fix(WP-0017/E1): Layer 2 + Sessions fixes
...
- CrossHubPropagation: IHP.Prelude.head returns Maybe a; use List.head
(Data.List.head, already imported qualified) for non-empty-guarded lists
- Sessions: currentUserOrNothing is pure Maybe, not IO; use case...of instead of >>=
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-11 08:37:04 +00:00
34be62de04
feat(WP-0016/C2-C3): close build infrastructure workplan
...
C2: document actual GHC cache behavior (-fbyte-code, no .o files, .hi
caching via -fwrite-interface) and correct CLAUDE.md cache claim.
C3: create IHUB-WP-0017 error-fix loop workplan (ralph-compatible,
5 tasks E1-E5, runs inside devenv shell).
WP-0016 status → done.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 23:36:06 +00:00
469ed6c758
fix(WP-0016): Layer 3 compilation fixes — Sessions auth, Widgets import consolidation, Scientific type
...
- Sessions: replace raw authenticate/unsetSession with IHP login/logout/verifyPassword
- Widgets/New, Widgets/Show: consolidate imports to Web.View.Prelude
- Widgets/Show: unwrap Id newtype for childrenOf comparison, Double → Scientific in renderSignalValue
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 23:13:09 +00:00
563983fa7f
feat(WP-0016/C5): compilation layers docs and -fwrite-interface flag
...
- CLAUDE.md: add "Compilation Layers" section (C5) — layer map,
compile-check tool usage, cache location, error-fix discipline
- .ghci: add -fwrite-interface so interface files are cached even
on partial-success builds (completes C4 spec)
- WP-0016: mark C5 done; annotate C4 ✓ note in workplan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 20:03:54 +00:00
64a9d4eeb4
feat(WP-0016/C1-C4): Layer 2 isolation and clean-base infrastructure
...
- Add Web/Controller/Prelude.hs (was missing; 8 controllers failed to import it)
- Add .ghci-core and scripts/compile-check-core to compile Layer 1+2 in
isolation without loading Main.hs or any controller/view (Layer 3)
- Fix Application/Helper/BottleneckDetector.hs: replace coerce :: Id' -> UUID
with unpackId (IHP Id' wraps a type family; Data.Coerce cannot cross it)
- Fix devenv.nix: add pkgs.nodePackages.tailwindcss so devenv process scripts
find the tailwindcss binary (devenv v2 builds scripts with only local packages)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 15:38:01 +00:00
3d2e8ec9e1
fix(WP-0014/A1): add devenv.nix required by devenv v2+
...
devenv v2 requires devenv.nix to exist even when the full shell
configuration lives in flake.nix via IHP's devenv.flakeModule.
Contains project-specific overrides (GHCRTS, tailwind process);
IHP core (postgres, ghcid, RunDevServer) still comes from the flake module.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 11:31:00 +00:00
a6baab7080
feat(WP-0016): build infrastructure — ghcid standalone script and error-fix loop workplan
...
- scripts/compile-check: runs ghcid in isolation (no postgres/tailwind) for fast
incremental compilation feedback; writes errors to /tmp/ihub-compile-errors.txt
- .ghci: add -fkeep-going so GHC reports all module errors in one pass
- WP-0016 workplan: documents module dependency layers, error-fix SOP,
and autonomous ralph-loop approach for iterative error fixing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 09:46:56 +00:00
a2e9b5b52f
fix(WP-0014/A2): replace Prelude import in AgentRegistrations controller
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 08:41:26 +00:00
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
5510ae22da
feat(WP-0015/B1-B6): StaticPages controller and public intro/tutorial UI
...
B1 — Web/Controller/StaticPages.hs: LandingAction, CapabilitiesAction,
TutorialAction, ExtensionGuideAction (no auth guard)
B2 — Web/View/StaticPages/Landing.hs: hero, traceability chain, capability
grid, GAAF status bar, CTAs to capabilities and management UI
B3 — Web/View/StaticPages/Capabilities.hs: 12-phase capability map, GAAF
scorecard, API v1/v2 surface table, learning loop, type registry system
B4 — Web/View/StaticPages/Tutorial.hs: 6-step developer tutorial (widgets,
events, governance, deployment, learning, federation)
Web/View/StaticPages/ExtensionGuide.hs: 6-step hub extension guide
(HubCapabilityManifest, type registry, widgets, patterns, agents)
with GAAF rules summary
B5 — Web/Routes.hs: StaticPagesController manual routes; "/" → Landing,
"/capabilities", "/tutorial", "/extension-guide"
Web/Types.hs: StaticPagesController data type
B6 — Web/FrontController.hs: import StaticPagesController; register route
(last, catches root); nav adds About/Tutorial/Extend links and
separator; logo now links to LandingAction
B7 (deployment verification) remains pending until devenv up is available.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-08 02:02:44 +00:00
74bab5f6f2
fix(WP-0014/A2): continued type-correctness fixes and Tailwind CSS output
...
- Schema.sql: add FK constraints for phases 6–12 so IHP generates Id X
instead of UUID for FK columns (widget_adapter_specs, friction_scores,
hub_routing_rules, agent_proposals, hub_capability_manifests, etc.)
- HubHealth, ModelRouter, ApiInteractionEvents: remove toUUID() wrappers
now that FK columns carry proper Id types
- FederatedGovernance/Dashboard, HubRoutingRules/Index: same Id comparison fix
- AgentProposals/Index, DecisionRecords/Index, ApiConsumers/Edit: Id type fixes
- BottleneckDetector: add Data.Coerce import; CrossHubPropagation: add guard
- ApiKeys: qualify cryptohash-sha256 import to resolve package ambiguity
- WebhookDeliveryJob: use LBS.fromStrict; remove duplicate diffUTCTime
- Sessions/New: use renderFlashMessages (IHP built-in)
- ArchiveRecords/LineageInspector: simplify renderChainStep signature
- static/app.css: Tailwind CSS output (2011 lines) — A3 confirmed
- workplans/IHUB-WP-0015-local-deployment-intro-ui.md: add workplan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-08 01:49:41 +00:00
34cc18b4c7
chore(WP-0014): update workplan — A2/A3/A4 complete, A1/A5 pending build
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-04 09:55:41 +00:00
f1978c3888
fix(WP-0014): pre-flight compilation fixes, Tailwind pipeline, and admin seed
...
A2 — Compilation fixes:
- Remove inline FK constraints from Schema.sql; IHP schema compiler cannot
parse them. Add 1744329600-restore-fk-constraints.sql migration to restore
referential integrity at the DB level.
- Rename `#label` → `#label_` throughout to avoid clash with Haskell built-in.
- Fix `hub.id == hid` UUID comparisons to use `toUUID hub.id`.
- Replace non-existent `setStatus`/`respondJson` calls with
`renderJsonWithStatusCode` throughout Api controllers.
- Fix qualified package import for `cryptohash-sha256` in Auth.hs.
- Add `CanSelect (Text, Text)` instance in Helper.View.
- Refactor HSX inline lambdas to named helper functions in 100+ views
(GHC cannot infer types for anonymous functions inside quasi-quoted HSX).
- Fix missing imports (IHP.QueryBuilder, IHP.Fetch, Web.Routes, Only, etc.)
across helpers and controllers.
- Remove duplicate `diffUTCTime` definition in BottleneckDetector.
- Change `createEventForHub` return type from `IO ResponseReceived` to `IO ()`.
- Seed type-registry vocabulary via 1744502400-seed-type-registries.sql
(moved from Schema.sql where IHP does not execute INSERT statements).
A3 — Tailwind build pipeline:
- Add `tailwindcss` to flake.nix native packages.
- Uncomment `tailwind.exec` process in devenv shell config.
- Add tailwind/tailwind.config.js (scans Web/View/**/*.hs).
- Add tailwind/app.css with @tailwind directives.
A4 — Admin user seed:
- Add 1744416000-seed-admin-user.sql: inserts admin@inter-hub.local
with bcrypt-hashed password admin1234! (cost 10).
- Add .env.example documenting all required environment variables
and default admin credentials.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-04 09:55:12 +00:00
ffd5fbb900
fix: migrate DetectPolicySensitivityAction to routed agent pattern
...
Test / test (push) Has been cancelled
The last action still calling callClaudeApi directly. Now routes through
resolveAgent (task_type="policy_sensitivity") + checkGovernancePolicy +
callAgent, consistent with all other Phase 11 AI invocations. Adds
agentRegistrationId, tokensIn, tokensOut to the created AgentProposal and
handles blocked_by_policy the same way as the other 4 actions.
Remove callClaudeApi and its direct HTTP imports from
Application/Helper/Controller.hs — no longer referenced anywhere.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-03 12:34:07 +00:00
0f505feb2d
feat(WP-0013): IHF Phase 12 — Platform Memory and Continuous Learning
...
Closes the long-range feedback loop: outcome signals now enrich the full
traceability chain and feed back into routing, triage, and AI proposals.
Schema (T01):
- outcome_correlations (CHECK correlation_type)
- pattern_performance_records
- adaptive_threshold_configs
- institutional_knowledge_entries (GIN tsvector FTS)
- learning_insights (CHECK insight_type)
- ALTER TABLE decision_records + requirement_candidates: outcome_summary JSONB
- AFTER INSERT trigger trg_enrich_lineage on outcome_signals
- contracts/core/ updated (outcome-summary-columns-v1, append-only addendum)
Correlation engine (T02):
- Application/Helper/CorrelationEngine.hs: pure annotation→outcome SQL
- Web/Controller/OutcomeCorrelations.hs: ComputeCorrelationsAction + index
Pattern performance (T03):
- Web/Controller/PatternPerformance.hs: ComputePatternPerformanceAction
Adaptive thresholds (T04):
- Web/Controller/AdaptiveThresholds.hs: CalibrateThresholdsAction
- Application/Helper/FrictionScore.hs: applyAdaptiveWeights
Institutional knowledge (T05):
- DistilDecisionAction in DecisionRecords controller
- Web/Controller/InstitutionalKnowledge.hs: QueryKnowledgeBaseAction
Lineage enrichment (T06):
- Web/Controller/LineageEnrichment.hs: EnrichLineageAction (batch backfill)
- enrich_lineage_on_outcome_batch() PL/pgSQL helper in migration
Learning dashboard (T07):
- Web/Controller/LearningDashboard.hs: 5-panel autoRefresh view
- "Learning" nav link in FrontController
API v2 learning endpoints (T08):
- GET /api/v2/outcome-correlations, /pattern-performance, /knowledge-base/{id}
- OpenAPI schemas: OutcomeCorrelation, PatternPerformanceRecord, InstitutionalKnowledgeEntry
GAAF scorecard + docs (T09):
- Core 3.8→3.9, Functional 3.6→3.8, overall 3.61→3.68
- CLAUDE.md: IHF v0.2 complete, no active workplan
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-03 12:34:07 +00:00
9643173618
chore(consistency): sync task status from DB [auto]
...
Test / test (push) Has been cancelled
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T09: todo → done
2026-04-03 14:32:09 +02:00
c0e79f29dc
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T08: todo → done
2026-04-03 14:32:08 +02:00
0f3313a614
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T07: todo → done
2026-04-03 14:32:08 +02:00
fae7c676ba
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T06: todo → done
2026-04-03 14:32:08 +02:00
87dd81bbee
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T05: todo → done
2026-04-03 14:32:08 +02:00
2e8fbf6d4e
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T04: todo → done
2026-04-03 14:32:08 +02:00
876feb8ce3
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T03: todo → done
2026-04-03 14:32:08 +02:00
eb6f6faef0
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T02: todo → done
2026-04-03 14:32:08 +02:00
0c77c1e125
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-03:
- IHUB-WP-0013-T01: todo → done
2026-04-03 14:32:08 +02:00
eb0803b8d7
chore(WP-0013): create Phase 12 workplan — Platform Memory and Continuous Learning
...
Test / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 22:59:56 +00:00
4a32593990
chore(consistency): sync task status from DB [auto]
...
Test / test (push) Has been cancelled
Updated by fix-consistency on 2026-04-02:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
a5a83f6c03
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-02:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
38dea6cb5f
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-02:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
6df1d35724
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-02:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
0167bce5d0
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-01:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
0dbbf6ea51
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-01:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
f9604a304c
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-01:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
09b5965b29
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-04-01:
- update .custodian-brief.md for inter-hub
2026-04-02 00:51:48 +02:00
674f5da0e1
feat: integrate llm-connect FR-1/FR-3/FR-4 into IHF bridge
...
Test / test (push) Has been cancelled
FR-3 (async_execute_prompt): CollectiveProposals now invokes all agents
concurrently via callAgentsBatch → single bridge subprocess with
asyncio.gather. Latency scales with slowest agent, not sum.
FR-4 (BudgetTracker): AgentDelegations passes tokenBudget to bridge;
llm-connect enforces it natively via BudgetTracker in RunConfig.
BudgetExceededError is a first-class BridgeError variant with total/
consumed/requested fields surfaced to the operator.
FR-1 (LLMServer passthrough): bridge accepts optional serverUrl field;
if present, calls POST {serverUrl}/execute instead of spawning a new
adapter. Infrastructure ready for hot-agent pre-warming (no schema
change required).
AgentBridge.hs: adds callAgentsBatch, callAgentWithBudget,
BudgetExceededError constructor, bridgeErrorMessage helper, defaultRequest,
requestToJson. All controllers updated to use bridgeErrorMessage.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 22:48:29 +00:00
a400365d50
chore(consistency): sync task status from DB [auto]
...
Test / test (push) Has been cancelled
Updated by fix-consistency on 2026-04-01:
- update .custodian-brief.md for inter-hub
2026-04-01 23:03:27 +02:00
133dae3d23
feat(WP-0012): IHF Phase 11 — Advanced AI Federation
...
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 >
2026-04-01 20:57:17 +00:00
4e4e994659
chore(WP-0012): create Phase 11 workplan — Hub Registry and Widget Marketplace
...
Test / test (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 20:32:04 +00:00
6e8972f828
feat(WP-0011): IHF Phase 10 — Hub Registry and Widget Marketplace
...
Test / test (push) Has been cancelled
Delivers the hub registry discovery UI, widget pattern library,
governance template library, and marketplace dashboard.
Key changes:
- Schema: widget_patterns (widget_type FK to registry), widget_pattern_versions,
pattern_adoptions, governance_templates (categories JSONB, validated at
controller), governance_template_clones — all GAAF-compliant, no bare TEXT
type discriminators
- Migration: 1743897600-ihf-phase10-hub-registry.sql
- HubRegistry controller + views: browsable view over hub_capability_manifests,
hub_health_snapshots, hubs with per-hub GAAF compliance indicator
- WidgetPatterns controller + views: publish, version, adopt; adoption
triggers manifest amendment draft when new types are introduced
- GovernanceTemplates controller + views: CRUD, clone with category
validation against annotation_category_registry
- MarketplaceDashboard controller + view: full-text search, widget-type
filter, sort, trending panel, autoRefresh
- API v2: /api/v2/hub-registry, /api/v2/widget-patterns (+ adopt endpoint)
- OpenAPI spec updated with Phase 10 paths
- GAAF scorecard: Customization 2.5 → 3.2; overall 3.41 → 3.56 (Strong)
- CLAUDE.md: Phase 10 complete; active workplan → Phase 11
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 20:14:43 +00:00
254fd04fd0
chore(WP-0011): create Phase 10 workplan — Hub Registry and Widget Marketplace
...
Test / test (push) Has been cancelled
10 tasks covering:
- T01: Schema (WidgetPattern, WidgetPatternVersion, PatternAdoption,
GovernanceTemplate, GovernanceTemplateClone)
- T02: Hub Registry UI (manifest + health snapshot join, GAAF indicator)
- T03: Widget Pattern Library (publish, list, show with version history)
- T04: Pattern versioning (WidgetPatternVersion, pin/follow-latest)
- T05: Pattern adoption with manifest amendment draft workflow
- T06: Governance Template Library (CRUD + clone + manifest amendment)
- T07: Adoption tracking and aggregate friction/outcome view
- T08: Marketplace dashboard (search, browse, trending)
- T09: API v2 hub-registry and widget-pattern endpoints
- T10: ARCHITECTURE-LAYERS.md scorecard update + exit criteria validation
State hub workstream: bc81e097-e91c-4750-80b6-c809ebcf7ef9
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 19:58:41 +00:00
3cac021213
feat(WP-0010): IHF Phase 9 — External API Surface and Consumer SDKs
...
Test / test (push) Has been cancelled
Delivers the full Phase 9 external API layer:
- Versioned REST API (/api/v2/) with OpenAPI 3.1 spec; enum arrays for
widget_type, event_type, annotation category drawn live from registry tables
- OAuth 2.0 client credentials flow (/api/v2/token); hub:*:write scopes
gated on active HubCapabilityManifest FK
- API key management: SHA256-hashed tokens, key_prefix for display,
one-time reveal on creation, revocation support
- TypeScript and Python consumer SDKs generated from registry tables
(/api/v2/sdk/ihf-client.ts, /api/v2/sdk/ihf-client.py)
- Webhook delivery: HMAC-SHA256 signing, append-only webhook_deliveries,
fire-and-forget dispatch via forkIO, 3-retry logic
- Admin API dashboard with 24h stats (request count, error rate, last seen)
- Rate limiting (per-minute) and daily quota enforcement via api_request_log
- Schema migration: api_consumers, api_keys, webhook_subscriptions (CHECK
constraint on 6 framework lifecycle topics), webhook_deliveries
(append-only trigger), api_request_log
- ARCHITECTURE-LAYERS.md scorecard: 3.34 → 3.41 (approaching Strong)
- contracts/functional/interaction-reporting-v1.md extended with Phase 9
endpoint catalogue and 422 validation error format
GAAF: no bare TEXT discriminators; webhook event_type uses CHECK constraint
over 6 allowed framework lifecycle topic strings (not widget event types).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 19:52:20 +00:00
286d33923a
chore(consistency): sync task status from DB [auto]
...
Test / test (push) Has been cancelled
Updated by fix-consistency on 2026-03-31:
- update .custodian-brief.md for inter-hub
2026-04-01 16:05:38 +02:00
4fb87a461e
updated workplan effort
Test / test (push) Has been cancelled
2026-03-31 21:32:37 +00:00
c80bac40a9
chore(WP-0009): sync state_hub IDs and update custodian brief
...
Test / test (push) Has been cancelled
Consistency checker wrote workstream/task IDs into workplan frontmatter.
state_hub_sync: pending → resolved; workstream 24ad18c7 marked completed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-31 23:19:31 +02:00
ba7cb1b675
chore(consistency): sync task status from DB [auto]
...
Updated by fix-consistency on 2026-03-31:
- update .custodian-brief.md for inter-hub
2026-03-31 23:18:15 +02:00
b5d73aa18b
feat(WP-0009): IHF GAAF Compliance Foundation — type registries, extension manifests, architectural contracts
...
Test / test (push) Has been cancelled
Implements IHUB-WP-0009: closes four GAAF-2026 gaps before domain hub work begins.
- TypeRegistry helper + controllers/views (hub_kind, hub_capability_manifest)
- HubCapabilityManifest entity with validation and registry linkage
- ARCHITECTURE-LAYERS.md + CI-enforced boundary contracts
- Alembic migration 1743724800, fitness tests (Test/Architecture/)
- GAAF spec, Operational Architecture spec, domain hub extension guide
- Updates to CLAUDE.md, SCOPE.md, Schema.sql, Routes, FrontController, Types
state_hub_sync: pending (tunnel was STALE at completion time; run fix-consistency)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-31 21:17:39 +00:00
1a7732d7da
Ralph-Loop Local removed
Test / test (push) Has been cancelled
2026-03-31 11:41:41 +00:00
9265ca2d9c
feat(P8): IHF Phase 8 complete — Federated Hub Maturity
...
Implements the final phase of the IHF v0.1 specification:
- WidgetOwnership: delegated ownership registry (local/delegated/global),
append-only audit artefacts, ownership badge on widget show page
- HubRoutingRule + RoutingEngine: priority-ordered inter-hub routing engine;
null-inclusive category/widget-type matching; RouteNowAction for manual
re-evaluation; RoutedCandidates view per hub
- FederatedPolicyOverlay: draft → active → retired lifecycle; activated
overlays are immutable (same pattern as Phase 6 contracts); policy
compliance dashboard with decision coverage metrics
- StewardshipRole: named governance roles per hub; point-in-time revocation
pattern; hub and ops-board integration
- ArchiveRecord + is_archived: soft-delete on widgets; lineage inspector
traces full traceability chain (Widget → Events → Annotations → Candidates
→ Requirements → Decisions → Deployments → Signals + ArchiveRecord)
- FederatedGovernanceDashboard: 5-panel autoRefresh org-wide governance view
(ownership coverage, routing activity, policy compliance, stewardship
coverage, archive activity)
Schema: widget_ownerships, hub_routing_rules, federated_policy_overlays,
stewardship_roles, archive_records; ALTER widgets ADD is_archived;
ALTER requirement_candidates ADD routed_to_hub_id
Migration: 1743638400-ihf-phase8-federated-hub-maturity.sql
Tests: Phase 8 integration tests appended to Test/Integration.hs
Docs: docs/phase8-summary.md; SCOPE.md updated to Phase 8 complete
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-29 22:53:01 +00:00