feat(capability-registry): CUST-WP-0031 domain capability registry

- Migration p3k4l5m6n7o8: nullable repo_id FK on capability_catalog
- PATCH /capability-catalog/{id} endpoint for back-filling repo attribution
- register_capability MCP tool accepts optional repo_slug
- get_domain_summary now includes compact capabilities list (type+title+repo_slug)
- New get_capability_profile MCP tool: domain → repos → capabilities tree
- 6 repo descriptions populated; 25 catalog entries attributed to repos
- 9 new capabilities registered for personhood, foerster_capabilities, coulomb_social
- TOOLS.md: Capability Catalog & Requests section with full tool reference

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-31 17:23:45 +02:00
parent 1b886d9786
commit d58ef71339
7 changed files with 228 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Domain Capability Registry"
domain: custodian
repo: the-custodian
status: active
status: done
owner: custodian
topic_slug: custodian
created: "2026-03-31"
@@ -81,7 +81,7 @@ existing catalog entries; register capabilities for the three empty domains.
```task
id: T01
title: "Add repo_id FK to CapabilityCatalog"
status: todo
status: done
priority: high
description: >
1. Write Alembic migration: add `repo_id` UUID nullable FK column to
@@ -103,7 +103,7 @@ state_hub_task_id: "8d5e3e37-c753-4cdc-9211-83ee39f6b0f2"
```task
id: T02
title: "Include compact capabilities in get_domain_summary"
status: todo
status: done
priority: high
description: >
Extend the `get_domain_summary` MCP tool response to include a
@@ -122,7 +122,7 @@ state_hub_task_id: "ac47994c-efe9-404f-8065-9adf2e923d4c"
```task
id: T03
title: "New MCP tool: get_capability_profile"
status: todo
status: done
priority: high
description: >
Add a new MCP tool `get_capability_profile(domain_slug: str | None = None)`
@@ -159,7 +159,7 @@ state_hub_task_id: "b380fd2b-28fa-4c47-96d6-4c65a0300c44"
```task
id: T04
title: "Populate missing repo descriptions"
status: todo
status: done
priority: medium
description: >
Use PATCH /repos/{slug}/ to set `description` for the 8 repos that
@@ -184,7 +184,7 @@ state_hub_task_id: "00d44110-fcb4-45cc-8bc8-454af2629d2f"
```task
id: T05
title: "Back-fill repo_id on existing capability catalog entries"
status: todo
status: done
priority: medium
description: >
After T01 lands, update the 25 existing catalog entries to set repo_id
@@ -221,7 +221,7 @@ state_hub_task_id: "7f0748c7-bdee-4801-b870-d4940a5a2e63"
```task
id: T06
title: "Register capabilities for personhood, foerster_capabilities, coulomb_social"
status: todo
status: done
priority: medium
description: >
Register at least 3 capabilities per missing domain using
@@ -250,7 +250,7 @@ state_hub_task_id: "c6e1be52-961c-4e34-96b1-e450d64298df"
```task
id: T07
title: "Consistency gate and smoke test"
status: todo
status: done
priority: low
description: >
1. Run `make test` — all existing tests must pass.