You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7702fe4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(scenarios): each card persona's role states the writes its build prompt did not
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
The open card library (shipped in `dist/library`) gives thirteen personas a role that names the objects and verbs of the writes the card has them make or refuses them, where the card's build prompt did not state them: crm `sdr` and `partner_user`, invoice `sales_rep` and `warehouse_staff`, project `contractor` and `client_viewer`, leave `hr_officer` and `employee`, service desk `support_agent` and `team_lead`, asset `asset_admin` and `employee`, and travel `employee`. A build is judged on its permission sets against those writes (`persona-grant:*`), so the prompt now asks for each. The role also reads in each persona's run prompt ("You act for …"). No other card text changes.
it('the build prompt carries the seed, the persona sets and the handles — never a question or an outcome',()=>{
453
453
constp=buildPrompt(namespacedScenario(crm).card);
454
454
expect(p).toContain('"full_name": "Ana Ruiz"');
455
-
expect(p).toContain('`democrm_sdr` for `sdr` (Sales development representative): must not read the field `democrm_contact.email`');
455
+
expect(p).toContain('`democrm_sdr` for `sdr` (Sales development representative who adds, updates and removes contacts): must not read the field `democrm_contact.email`');
456
456
expect(dataContract(crm.card)).toContain('`u_sam` → the `sdr` user');
'asset_lifecycle:asset_admin:checkout:update': ['The asset administrator checks assets out to employees','a checkout records the checkout date, a due date'],
308
+
'asset_lifecycle:dept_manager:disposal_request:update': ["the manager of the asset's department decides a scrap request",'deciding it updates the request'],
309
+
'asset_lifecycle:asset_admin:disposal_request:update': ['once it is approved the asset administrator disposes of the asset'],
'leave_balances:employee:leave_request:create': ['An employee files a leave request'],
320
+
'leave_balances:employee:leave_day:update': ['An employee files a leave request with one line per date',"The day lines are details of the request (master-detail), edited inline on the request's form"],
321
+
'leave_balances:dept_manager:approval_step:update': ['up to 3 days needs only the department manager','approving or rejecting a step updates that record'],
'order_to_cash:sales_rep:sales_order:create': ['A rep enters sales orders for their own accounts'],
325
+
'order_to_cash:sales_rep:order_line:update': ['A rep enters sales orders',"The lines are details of the order (master-detail), edited inline on the order's form"],
326
+
'order_to_cash:sales_rep:sales_order:update': ['a rep cannot approve their own order'],
327
+
'order_to_cash:sales_manager:sales_order:update': ["goes to the rep's sales manager for approval",'approving updates the order'],
328
+
'order_to_cash:ar_clerk:invoice:update': ['Only Finance may write off a balance as bad debt','Accounts receivable clerk, Finance, organization-wide'],
'requisition_to_receipt:buyer:purchase_order:create': ['the buyer raises a purchase order to a supplier'],
334
+
'requisition_to_receipt:buyer:po_line:update': ['the buyer raises a purchase order to a supplier with several lines',"The lines are details of the order (master-detail), edited inline on the order's form"],
335
+
'requisition_to_receipt:dept_manager:approval_step:update': ['up to 5,000 the department manager alone','approving or rejecting a level updates that record'],
336
+
'requisition_to_receipt:buyer:purchase_order:update': ['the buyer raises a purchase order','Cancelling an order already sent to the supplier cannot be undone and is confirmed first'],
337
+
'service_desk:support_agent:ticket:create': ROLE,
338
+
'service_desk:team_lead:ticket:update': ROLE,
339
+
'service_desk:support_agent:ticket:update': ['once an agent takes it, it is open','resolving it sends the customer a satisfaction survey'],
340
+
'service_desk:support_agent:satisfaction_rating:update': ["no agent can change a customer's rating"],
341
+
'travel_expense:employee:expense_claim:create': ['Afterwards they file an expense claim with several lines'],
342
+
'travel_expense:employee:claim_line:update': ["The lines are details of the claim (master-detail), edited inline on the claim's form"],
343
+
'travel_expense:dept_manager:approval_step:update': ['the department manager first','approving or rejecting a step updates that record'],
344
+
'travel_expense:finance_officer:expense_claim:update': ['once Finance approves, Finance pays it','Finance officer, organization-wide'],
0 commit comments