Repository navigation
Commit 8c65e50
committed
test(dogfood): the persona matrix hangs its invoice lines off an unpaid invoice
The admin payload control created a showcase_invoice_line under
firstId('showcase_invoice'), whichever invoice a limit-1 read returned.
With random ids that is a different invoice on every boot, and several
seeded invoices are paid. Since the showcase locks a paid invoice's lines
(its showcase_guard_paid_invoice_line_* hooks), the control answered 400
"This invoice is paid, so its lines are locked" on some boots and not
others.
The seeded parent is now chosen by the state the lock reads (status not
paid), the way the account above it is chosen by its rule. Every line the
file creates under a seeded invoice hangs off this one parent. The lock is
unchanged.
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6
Co-authored-by: Claude <noreply@anthropic.com>1 parent ab98901 commit 8c65e50
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
328 | 340 | | |
329 | 341 | | |
330 | 342 | | |
| |||
0 commit comments