feat(terminology): prose sweep tool and custodian workplan cleanup (CUST-WP-0055 T04)
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 6s

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:
codex 2026-07-08 16:35:37 +02:00
parent 3bdefb3c4a
commit 2e0deee2ef
42 changed files with 312 additions and 186 deletions

View file

@ -152,14 +152,14 @@ description: >
Import refCell from ./components/ref-cell.js.
For each of the three entity tables (By Repo, By Workplan, Top Tasks):
- Prepend a "REF" column using refCell(i+1, recordType, row.id).
Record types: "repos" for By Repo (using repo_id), "workstreams" for
Record types: "repos" for By Repo (using repo_id), "workplans" for
By Workplan (using scope_id), "token-events" for Top Tasks (using
task_id — note: links to the task landing page, not a token event page,
until T04 is done; use recordType "tasks").
- Add a Name column as the second data column:
- By Repo: repo_slug (no truncation needed, slugs are short)
- By Workplan: scope_id displayed as first 8 chars + "…" (unchanged)
→ replace with workstream title if available; for now show scope_id
→ replace with workplan title if available; for now show scope_id
truncated to 36 chars with full UUID tooltip.
- Top Tasks: task_id truncated to 80 chars with full-id tooltip.
Keep all existing columns unchanged.
@ -200,7 +200,7 @@ description: >
Implement as a client-side sort applied after filtering and before slicing for
max-results. For the first four options sort descending by the named field.
For "Most Recent", sort each table's rows by the most recent created_at among
the individual token events belonging to that row's group (repo/workstream/task).
the individual token events belonging to that row's group (repo/workplan/task).
Derive a lastEventAt lookup map from the already-fetched /token-events/ data;
rows with no events sort last. The sort applies uniformly to all three tables.
state_hub_task_id: "84183245-5016-4d87-ad6a-9cd5f6873245"
@ -257,7 +257,7 @@ defining `eventId`, cascading into a `RuntimeError: wsId is not defined`
on the next cell. Fixed by replacing all `FileAttachment` calls in landing
pages with direct `fetch(${API}/...)` calls.
### A03 — amendment — Workstream and repo landing pages missing
### A03 — amendment — Workplan and repo landing pages missing
T04 only created a token-event landing page. The By Workplan and By Repo
tables also had REF links (to `/workstreams/<id>` and `/repos/<slug>`),
@ -283,7 +283,7 @@ landing page returned "Token event not found". Fixed by:
### I02 — improvement — Entity FK fields on detail pages link to their targets
On every detail page (token-event, task, workstream, repo), fields that hold
On every detail page (token-event, task, workplan, repo), fields that hold
a foreign-key UUID (`task_id`, `workstream_id`, `repo_id`) now render as
clickable links with an async-loaded bubble-help showing the entity title.
@ -322,11 +322,11 @@ come from the already-fetched `/repos/` list plus "All repos" at the top.
Selecting a repo filters all three tables client-side to show only rows
attributable to that repo. No API change needed.
### I01 — improvement — Workstream and task Name columns show titles
### I01 — improvement — Workplan and task Name columns show titles
T05 originally showed truncated UUIDs in the Workstream and Task name
T05 originally showed truncated UUIDs in the Workplan and Task name
columns (the summary data carries only IDs, not titles). Improved by
fetching `/workstreams/` and `/tasks/` in parallel with the token-event
poll and building lookup maps (`wsMap`, `taskMap`). The Name column now
displays `workstream.title` and `task.title` (truncated to 80 chars) with
displays `workplan.title` and `task.title` (truncated to 80 chars) with
the full UUID as tooltip.