chore(consistency): register TEN-WP-0001/0002 in State Hub [auto]

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
tegwick 2026-07-23 21:56:43 +02:00
parent dbd0b8b17c
commit 7eb21c05b8
3 changed files with 34 additions and 0 deletions

View file

@ -9,6 +9,7 @@ owner: codex
topic_slug: netkingdom
created: "2026-07-23"
updated: "2026-07-23"
state_hub_workstream_id: "f2fcafb4-edef-4e8e-9401-d781b4d0c585"
---
# Service skeleton, domain model, and the three boundary-contract APIs
@ -35,6 +36,7 @@ enforcement.
id: TEN-WP-0002-T01
status: todo
priority: high
state_hub_task_id: "d22b0ce8-3f25-4c8d-b54f-ba44c65159c1"
```
Python 3.12 + FastAPI, matching `qonto-assistant`'s layout convention:
@ -51,6 +53,7 @@ FastAPI app with a `/health` endpoint.
id: TEN-WP-0002-T02
status: todo
priority: high
state_hub_task_id: "cfceea30-f383-4781-a7e4-226653aafca9"
```
Pure domain types, no framework dependency:
@ -87,6 +90,7 @@ no-plan-required exception, and grant/revoke as append-only operations.
id: TEN-WP-0002-T03
status: todo
priority: high
state_hub_task_id: "ade9374a-ed26-45da-a424-a0d21effe520"
```
In-memory store behind a `TenantStore` protocol/interface (mirrors
@ -105,6 +109,7 @@ store interface, plus event emission for each mutation.
id: TEN-WP-0002-T04
status: todo
priority: high
state_hub_task_id: "425cab98-ab7f-47fb-a8b6-ec0f52d62cd5"
```
`GET /tenants/{tenant_id}/roles` — returns current, non-revoked capability
@ -123,6 +128,7 @@ and returns the expected role set for a seeded tenant.
id: TEN-WP-0002-T05
status: todo
priority: high
state_hub_task_id: "2a04ce4c-c967-4540-8873-70ac419378e6"
```
`GET /tenants/{tenant_id}/roles/live` — same data as the cache-read
@ -145,6 +151,7 @@ signals failure distinctly from "zero roles", not silently as 200 + `[]`.
id: TEN-WP-0002-T06
status: todo
priority: medium
state_hub_task_id: "3a2d1ee7-6e66-4080-9345-32ba457acf5f"
```
`POST /tenants` (create), `POST /tenants/{id}/roles/grant`,
@ -168,6 +175,7 @@ when swapped.
id: TEN-WP-0002-T07
status: todo
priority: low
state_hub_task_id: "eecf4bc8-d20b-4b18-986a-6518f2f74d7b"
```
Confirm T01–T06 done; run `make test`/`make lint`; verify the three API