From 20c0fd0d455d157791670d0023c7b678180a6c5b Mon Sep 17 00:00:00 2001 From: JasonFraser Date: Sat, 3 Oct 2026 23:03:00 -0400 Subject: [PATCH] Drop Technician system accounts; document Stock Viewer across the personas Propagates this session's permissions-review decision through every doc that described the old three-persona model: Technician's own Stock User login is removed entirely (full create/submit/cancel rights with no restriction tying a transaction to who it's "for" meant nothing stopped a technician from issuing stock to themselves) in favor of phone-based reporting through the Dispatcher, who now also raises Material Requests on a technician's behalf (CLIENT_DEMO_GUIDE.md Stage 4, previously scripted as the technician logging in and raising it themselves). Also documents the new Stock Viewer role everywhere the old personas were: CLAUDE.md's persona table, INSTALLATION_PLAYBOOK.md Stage 8 (now optional, alongside Dispatcher/Store Manager), and CLIENT_DEMO_GUIDE.md Stage 7, which no longer demos a Technician "look don't touch" login (there's no such login anymore) and instead demos the real Stock Viewer account against the Damage & Cost Report / Serial No Ledger / a read-only Stock Entry form. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_012pc2x7vyuUofdT3kLuqF3Y --- CLAUDE.md | 30 +++++++++++++++++------- playbook/CLIENT_DEMO_GUIDE.md | 39 ++++++++++++++++++++----------- playbook/INSTALLATION_PLAYBOOK.md | 27 ++++++++++++++++----- 3 files changed, 68 insertions(+), 28 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index e1760b9..bd09e1a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -354,15 +354,27 @@ screen time for field staff. ### The three daily personas -- **Dispatcher** (office) — logs jobs as they come in, raises a Material Request against the - property or site that needs it. Their system involvement ends the moment they hit Submit; the - system routes the request from there. -- **Technician / Stock User** (field) — signs for tools at checkout, does the actual repair - off-system, signs again at return. Can look up what's on hand at their own site, can't edit - Items or Warehouses. Deliberately close to zero screen time. -- **Store Manager** — approves requests, fulfills them (issues parts, checks out tools with a - signature and photo), receives returns, runs the physical store, watches reorder and - maintenance alerts, pulls the Damage & Cost Report. +- **Dispatcher** (office, system Role: `Stock User`) — logs jobs as they come in, raises a + Material Request against the property or site that needs it, and also fulfills approved + requests (creates the Stock Entry) — fulfillment isn't gatekept to the Store Manager alone. +- **Technician** (field, **no system account at all**) — signs for tools at checkout, does the + actual repair off-system, signs again at return; the signature is captured on whichever + transaction the Dispatcher or Store Manager is creating, not a transaction of the technician's + own. To check what's on hand at their site, they call the Dispatcher rather than logging in + themselves — deliberately zero screen time, not just close to it. (An earlier design gave + Technicians their own `Stock User` login for read-only stock lookups; dropped after review + surfaced that `Stock User` carries full create/submit/cancel rights with no restriction tying a + transaction to who it's "for" — nothing stopped a Technician from issuing stock to themselves. + Removing the account entirely closes that risk outright rather than trying to carve out a + narrower role for a need (self-service lookup) that phone-based reporting already covers.) +- **Store Manager** (system Role: `Stock Manager`) — approves requests, fulfills them (issues + parts, checks out tools with a signature and photo), receives returns, runs the physical store, + watches reorder and maintenance alerts, pulls the Damage & Cost Report. +- **Stock Viewer** (optional, system Role: `Stock Viewer`) — read-only visibility for a + stakeholder who isn't day-to-day staff (a board member, an investor): every stock report and + record, cost/value figures included, with no ability to create, edit, submit, cancel, or delete + anything. Not part of daily operations — provisioned per client only when that kind of + visibility is actually wanted. Every guide below lives in [`playbook/`](./playbook/) — see [`playbook/playbook.md`](./playbook/playbook.md) for the full index with live links and reading diff --git a/playbook/CLIENT_DEMO_GUIDE.md b/playbook/CLIENT_DEMO_GUIDE.md index dad09c0..8e3605d 100644 --- a/playbook/CLIENT_DEMO_GUIDE.md +++ b/playbook/CLIENT_DEMO_GUIDE.md @@ -1,4 +1,4 @@ -# Field Ops Walkthrough — Dispatcher, Technician, Store Manager +# Field Ops Walkthrough — Dispatcher, Store Manager, Stock Viewer A live, click-through demo script for the sightbox.localhost test environment, showing tools from the moment they first arrive at Main Store through checkout, the job, the return — or a @@ -12,8 +12,10 @@ In production this becomes the client's own domain — nothing else about the wa | Role | Email | Password | |---|---|---| | Dispatcher | dispatcher@sightbox.local | Dispatch2026! | -| Technician (Stock User) | site.supervisor@sightbox.local | FieldTech2026! | | Store Manager | store.manager@sightbox.local | StoreMgr2026! | +| Stock Viewer (optional — board/investor visibility) | board.member@sightbox.local | BoardView2026! | + +Technicians have no system account at all — see Stage 7. ## The scenario @@ -84,13 +86,14 @@ each tool's own Serial No record afterward. --- -## Stage 4 — Technician requests what the job needs +## Stage 4 — Technician calls in what the job needs For anything less routine — planned ahead, or needing sign-off — it goes through a formal -request instead of a direct handout. The technician assigned to the Riverside Plaza job raises -it themselves, the same way a technician requests parts in the Consumables Runbook. +request instead of a direct handout. The technician assigned to the Riverside Plaza job has no +system account (Stage 7) — they call the Dispatcher, who raises the request on their behalf, the +same way a Dispatcher raises a request for consumable parts in the Consumables Runbook. -Log in as the **Technician**. +Log in as the **Dispatcher**. 1. Click the search bar at the top of the screen. Type **New Material Request** and press Enter. 2. Set **Material Request Type** to **Material Transfer**. @@ -138,16 +141,26 @@ isn't gatekept behind one role; anyone with the same stock access already has it ## Stage 7 — Technician is on site -The technician's system time is deliberately close to zero — they sign for the tool at handover -(Stage 6) and sign again at return (Stage 8). The repair itself happens off-system. +The technician's system footprint is **zero, not just close to it** — they don't have a login at +all. They sign for the tool at handover (Stage 6) and sign again at return (Stage 8); the +signature is captured on whichever transaction the Dispatcher or Store Manager is creating, not a +transaction of their own. The repair itself happens off-system. If a technician needs to know +what's on hand at their site, they call the Dispatcher — no self-service lookup, deliberately: an +earlier design gave technicians their own login for exactly that, but `Stock User` carries full +create/submit/cancel rights with no restriction tying a transaction to who it's "for," so nothing +stopped a technician from issuing stock to themselves. Dropping the account entirely closed that +risk outright. -Optionally, log in as the **Technician** to show the "look, don't touch" permission level: +Optionally, log in as **Stock Viewer** instead to show the read-only stakeholder view (a board +member, an investor — someone who needs visibility but isn't day-to-day staff): -1. Search **Stock Balance**, press Enter. -2. Filter **Warehouse** to **Property - Riverside Plaza - JPT**. +1. Search **Damage & Cost Report** or **Serial No Ledger**, press Enter — both open with real + figures, cost/value included. +2. Open any **Stock Entry** — note there's no Save or Submit option anywhere on the form. -**What this shows:** the technician (or any Stock User) can check what's on hand at their site -without needing to call the store — but they can't edit Items or Warehouses. +**What this shows:** full visibility into stock data and cost figures, with no path to create, +edit, submit, cancel, or delete anything — a materially different guarantee than "please don't +touch this." --- diff --git a/playbook/INSTALLATION_PLAYBOOK.md b/playbook/INSTALLATION_PLAYBOOK.md index 5b51e44..fc21dae 100644 --- a/playbook/INSTALLATION_PLAYBOOK.md +++ b/playbook/INSTALLATION_PLAYBOOK.md @@ -420,14 +420,29 @@ until you check. ## Stage 8 — Roles & staff accounts -Create real staff Users, assign **Stock User** (technicians/dispatchers who raise requests and -view stock) or **Stock Manager** (whoever runs the store), and set each one's **Default -Workspace** to **Stock** — except Administrator, which stays on the general home page. +Create real staff Users, assign **Stock User** (dispatchers who raise and fulfill requests) or +**Stock Manager** (whoever runs the store), and set each one's **Default Workspace** to **Stock** +— except Administrator, which stays on the general home page. + +⚠ **Confirmed the hard way, changed this session:** field technicians do **not** get a system +account at all, even a read-only one. The original design gave them `Stock User` for self-service +stock lookups — but `Stock User` carries full create/submit/cancel rights with no restriction +tying a transaction to who it's "for," so nothing actually stopped a technician from issuing +stock to themselves. Since the only real need was checking what's on hand at their site, dropping +the account entirely (they call the Dispatcher instead) closes that risk outright rather than +trying to carve out a narrower role for a need phone-based reporting already covers. **Worth knowing:** ERPNext's native Stock Entry permissions give Stock User full -create/write/submit/cancel rights, identical to Stock Manager — this is left as the default. -Stock Manager's *elevated* rights (Item/Warehouse create+write, never delete) are already handled -by Stage 5's provisioning script. +create/write/submit/cancel rights, identical to Stock Manager — this is left as the default for +the roles that actually need it (Dispatcher, Store Manager). Stock Manager's *elevated* rights +(Item/Warehouse create+write, never delete) are already handled by Stage 5's provisioning script. + +**Optional — a read-only account for a stakeholder** (a board member, an investor) who needs +visibility but should never alter anything: assign the **Stock Viewer** role instead, also +created by Stage 5's provisioning script. Read/report/export/print only — cost and value figures +included — on Stock Entry, Material Request, Serial No, Item, Warehouse, and Stock Ledger Entry, +plus both the Damage & Cost Report and Serial No Ledger; no create/write/submit/cancel/delete +anywhere. Not part of daily operations — skip this for a client who doesn't need it. ## Stage 9 — Wire up billing