feat(terminology): prose sweep tool and custodian workplan cleanup (CUST-WP-0055 T04)
Add sweep_workstream_prose.py for agent-guidance files, sweep active workplan prose in-repo, tighten scan allowlist exclusions, and update ADR-001 closure protocol to workplan-first terminology.
This commit is contained in:
parent
3bdefb3c4a
commit
2e0deee2ef
42 changed files with 312 additions and 186 deletions
|
|
@ -104,7 +104,7 @@ New file: `state-hub/api/routers/domains.py`
|
|||
|
||||
Endpoints:
|
||||
- `GET /domains/` — list all (filter: ?status=active|archived|all)
|
||||
- `GET /domains/{slug}/` — get by slug with counts (topics, workstreams, EPs, TDs, repos)
|
||||
- `GET /domains/{slug}/` — get by slug with counts (topics, workplans, EPs, TDs, repos)
|
||||
- `POST /domains/` — create new (slug: unique, lowercase, underscored)
|
||||
- `PATCH /domains/{slug}/rename` — update slug + name; cascade EP/TD string columns
|
||||
- `PATCH /domains/{slug}/archive` — soft-delete; 409 if active topics exist
|
||||
|
|
@ -152,7 +152,7 @@ topic_id UUID FK topics(id) NULLABLE, created_at, updated_at.
|
|||
|
||||
Design: `domain_id` is the primary association (not `topic_id`) — a domain
|
||||
can have multiple repos without a topic for each. `topic_id` is optional,
|
||||
for workstream-level linkage.
|
||||
for workplan-level linkage.
|
||||
|
||||
Coordinate with v0.3 P2.2: if v0.3 runs first, extend rather than replace.
|
||||
Add to `models/__init__.py` and register router.
|
||||
|
|
@ -264,7 +264,7 @@ New file: `state-hub/dashboard/src/domains.md`
|
|||
|
||||
Layout:
|
||||
- KPI row: total domains, total repos, newest domain.
|
||||
- Domain cards: name, slug, status badge, repo count, workstream count,
|
||||
- Domain cards: name, slug, status badge, repo count, workplan count,
|
||||
EP count, TD count.
|
||||
- Repos sub-list per card: name, local_path, remote_url (linked), date.
|
||||
- Click → entity modal (extend `entity-modal.js` for domain type).
|
||||
|
|
@ -275,7 +275,7 @@ Data loaders:
|
|||
|
||||
Add to `observablehq.config.js` nav.
|
||||
|
||||
### P4.2 — Dashboard: domain filter on workstreams, EP, TD pages
|
||||
### P4.2 — Dashboard: domain filter on workplans, EP, TD pages
|
||||
|
||||
```task
|
||||
id: CUST-WP-0005-T11
|
||||
|
|
@ -285,7 +285,7 @@ priority: low
|
|||
```
|
||||
|
||||
Add `Inputs.select` domain filter to:
|
||||
- `workstreams.md` — filter by domain via topic.domain_slug
|
||||
- `workplans.md` — filter by domain via topic.domain_slug
|
||||
- `extensions.md` — wire existing API domain filter to UI
|
||||
- `techdept.md` — wire existing API domain filter to UI
|
||||
|
||||
|
|
@ -325,7 +325,7 @@ Check if `WorkstreamRead` already exposes `domain_slug`; add if missing.
|
|||
- CUST-WP-0005-T08 — MCP tools: domain lifecycle + repo registration
|
||||
- CUST-WP-0005-T09 — Live domain validation for EP/TD + domain stats in state summary
|
||||
- CUST-WP-0005-T10 — Dashboard: domains.md page
|
||||
- CUST-WP-0005-T11 — Dashboard: domain filter on workstreams, EP, TD pages
|
||||
- CUST-WP-0005-T11 — Dashboard: domain filter on workplans, EP, TD pages
|
||||
|
||||
### Cancelled (DB records only — legacy stale rows, not real cancellations)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue