1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 02: Rename to the glossary and generalise the render gate, no behaviour change
**What to build:** A prefactor. The code, config, schema, client and tests use
the glossary's words (`CONTEXT.md`) and the new status names, and the
"worker is busy" gate can carry more than one kind of render job — while the
old stamping and routing logic keeps working exactly as before. After this
ticket a fresh session can implement the new model without fighting names.
See `docs/REBUILD.md` §2 (schema), §3 (roles) for the target shapes.
**Blocked by:** None (can start immediately; ticket 01 is recommended first
because it makes SQL errors visible).
**Status:** ready-for-agent
- [ ] Roles are `drafter`, `signer`, `admin`, `pim_admin` in config, `GET /me`, dev groups and tests; no `maker`/`approver` remains anywhere
- [ ] Statuses are `DRAFT, PENDING, CORRECTION_REQUIRED, DISAPPROVED, RELEASED`; a resubmit logs a `RESUBMITTED` event instead of entering a `CORRECTED` status
- [ ] `customer` is gone from schema, API, save payload, side panel, dashboard and e2e
- [ ] `drafter_user`, `current_party`, `released_at` replace the old column names; `render_seq`/`rendered_seq`/`render_kind` replace `rendered_revision`, with submit and retry setting `render_kind = 'stamp'` and the worker completing by `seq`
- [ ] Decision values are `SIGNOFF / CORRECTION / DISAPPROVE`; the UI says "Sign off", "Request correction", "Disapprove"
- [ ] The old route (`levels`, `any`/`all`) and stamp-at-submit behaviour are untouched; `e2e.sh` (renamed where needed) ends with "all passed"
- [ ] `grep -rn 'maker\|approver\|customer\|current_level\|rendered_revision\|PENDING_APPROVAL\|CORRECTED\b\|APPROVED' src www sql test etc pim` returns nothing