Who may do what
Every action in the workshop desk, and who can take it: customers, mechanics, the lead mechanic, and the agent.
The agent never sees personal data. It works with references like C-1042 and a car's make, model and year. Names, phone numbers, emails and plates stay on staff screens.
The server enforces this table. It's rendered from the same file the server's
check()reads, so the table and the checks can't drift apart. The section below shows how each rule holds.
How each rule is enforced
Almost never by the prompt. A rule holds because the server calls check(), because the agent has no tool for it, because only a person's click can do it, or because the data is never selected. Open a rule to see which, and the code that does it. Where a rule rests on the agent's instructions, or the feature isn't built yet, the entry says so.
See customer personal data (name, phone, email, plate)Agent: Never
- People
- The board shows names and plates only when check() allows customer.view_personal, so the lead mechanic sees them and a mechanic sees references; a customer's My car reads only their own cars.
- The agent
- Data never selected: the workshop agent's job queries use AGENT_JOB_COLUMNS, with no names, phones, emails or plates, and the front desk reads only the make, model and year of the signed-in customer's cars.
Create or edit customer detailsAgent: Never
- People
- Not built yet: customer details are written once, when a customer signs up, and no screen or route edits them afterwards.
- The agent
- No tool exists: neither agent has a tool that writes customer details.
See jobs and the workshop boardAgent: Allowed
- People
- The board API answers only to staff, and advisorBoard calls check() for board.view, then keeps a mechanic to their own jobs; customers see their own bookings on My car.
- The agent
- Allowed, without personal data: get_day_plan reads the day through agentDayPlan, which selects AGENT_JOB_COLUMNS only.
Book a simple job from the service catalogAgent: Needs approval
- People
- Only a signed-in customer can book, for a car on their own account (staff have no booking screen yet): the bookings route calls check() for booking.simple, checks the car's owner and re-checks the slot.
- The agent
- No booking tool exists: the front desk finds slots, and confirm_booking is a browser tool, so only the customer's click books.
Book a diagnostic appointment with a mechanicAgent: Needs approval
- People
- The same bookings route, with check() for booking.diagnostic, and customer text with personal data is stored as “details withheld”.
- The agent
- It can only redirect_to_mechanic and offer the diagnostic appointment; the booking happens on the customer's click in confirm_booking.
Move an appointmentAgent: Needs approval
- People
- The move route takes ownership from the signed session, never from an id the agent passes, and calls check() for booking.move_own; another customer's booking is refused and logged.
- The agent
- find_new_times only lists free times; confirm_move is a browser tool, so only the customer's click moves the booking.
Diagnose a complex or vague faultAgent: Never
- People
- Diagnosis happens at the workshop, by a mechanic: the app only books the diagnostic appointment.
- The agent
- No diagnosis tool exists, and complex problems go to redirect_to_mechanic. What the agent writes in its own words is held by its instructions only; docs/triage-eval.md measures it.
Report a disruption (lift down, delay, absence)Agent: Never
- People
- The workshop chat and Report a problem exist only for staff: the agent runtime builds the workshop agent for staff sessions only.
- The agent
- It can't record a disruption by itself: a lift outage is written only by applyProposal, after the lead mechanic approves.
Mark a job as started or doneAgent: Never
- People
- setJobStatus calls check() for job.update_status with “own” set only when the job is the mechanic's; refusals are logged.
- The agent
- No tool exists: the agent can't mark a job started or done.
Re-plan the workshop's jobsAgent: Needs approval
- People
- A mechanic can report the problem, but a re-plan reaches the board only after the lead mechanic approves it, through decideProposal.
- The agent
- createReplanProposal and applyProposal call check() for job.replan, the server validates every change, and applyProposal refuses any proposal that isn't approved in the database.
Order a partAgent: Needs approval
- People
- Not built yet: no screen or route orders parts.
- The agent
- No tool exists. The 300 RON limit is in the table and in the agent's instructions, but no code checks it, because there is no order to check.
Send a customer messageAgent: Needs approval
- People
- No one types customer messages in the app: the server queues the agent's approved drafts when a re-plan is applied, and a fixed “ready for pickup” message when a job is marked done.
- The agent
- It only drafts, with {{customer_name}}: drafts with phone numbers, emails or plates are refused, and applyProposal queues them only after approval, filling in the name on the server.
Change an estimate the customer acceptedAgent: Never
- People
- Not built yet for people: the app has no estimate editor.
- The agent
- changeEstimate calls check() for estimate.change_accepted, refuses and logs the attempt; you can see it under Refused on the activity log.
Cancel a bookingAgent: Never
- People
- Not built yet: no screen or route cancels a booking, for anyone.
- The agent
- No tool exists: neither agent has a cancel tool.
Approve a re-plan of the workshop's dayAgent: Never
- People
- The lead mechanic's click goes straight to the decision route, never through the model, and decideProposal calls check() for proposal.approve.
- The agent
- No approval tool exists: request_approval is a browser tool that pauses the run until a person decides.
Reset the demo data to the starting dayAgent: Never
- People
- The reset route calls check() for demo.reset and logs refusals.
- The agent
- No tool exists: the agent can't reset the demo.