A library boundary between shared hub infrastructure and host-specific hub implementations.
Find a file
tegwick d789a2f1a8 Add repo classification (CUST-WP-0050 T02)
First-pass agent classification per the Repo Classification Standard v1.0
(canon-repo-classification); pending human review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 02:44:46 +02:00
hub_core Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
registry Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
tests Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
workplans Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
.custodian-brief.md Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
.gitignore Initial commit 2026-06-16 00:31:20 +00:00
.repo-classification.yaml Add repo classification (CUST-WP-0050 T02) 2026-06-22 02:44:46 +02:00
AGENTS.md Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
INTENT.md Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
LICENSE Initial commit 2026-06-16 00:31:20 +00:00
pyproject.toml Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
README.md Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00
SCOPE.md Add hub-core package, docs, and State Hub integration scaffold 2026-06-16 02:39:36 +02:00

Hub Core

Reusable FastAPI, SQLAlchemy, and MCP primitives for FOS hubs.

hub-core is being extracted from the standalone State Hub repository as part of CUST-WP-0025. The initial package slice contains only the generic database models and schemas that can move without importing dev-hub concepts such as topics, workstreams, tasks, decisions, SBOM, or token accounting.

Source boundary notes live in:

/home/worsch/the-custodian/docs/hub-core-extraction-boundary.md

First Slice

  • SQLAlchemy base metadata and timestamp helpers.
  • Domain and managed-repository registry primitives.
  • Agent message inbox primitives.
  • Progress-event and capability-request primitives with generic JSON context fields for hub-specific references.
  • Third-party service catalog and snapshot primitives.
  • Matching Pydantic schemas for those primitives.
  • Generic DoI report and summary schemas used by the MCP DoI tools.
  • Router factory functions for domains, repos, messages, policy lookup, and progress, capability, and TPSC catalog/snapshot/report endpoints.
  • Canonical FOS §10 risk and alert event types with /progress/risks and /progress/alerts read views.
  • Shared utility helpers for slugs, pagination, repo path resolution, and trailing-slash path normalization.
  • Alembic templates plus an initial core-schema migration for hub adopters.
  • FastMCP base-server wrapper for generic orientation, messaging, capability, repo, DoI, TPSC/GDPR, risk/alert, and progress tools.

Domain-specific MCP tools follow in each hub package.