navigate
http://127.0.0.1:8000/portal/login?next=/portal/invoices%3Fvendor%3DNorthwind%2520Supplies%26status%3Dopen&reason=signed_outOpening the supplier portal filtered to Northwind Supplies open invoices.
{"url": "http://127.0.0.1:8000/portal/invoices?vendor=Northwind Supplies&status=open"}
→ opened http://127.0.0.1:8000/portal/login?next=/portal/invoices%3Fvendor%3DNorthwind%2520Supplies%26status%3Dopen&reason=signed_out (HTTP 200)

type
http://127.0.0.1:8000/portal/login?next=/portal/invoices%3Fvendor%3DNorthwind%2520Supplies%26status%3Dopen&reason=signed_outSession expired; signing in again.
{"id": 1, "text": "ops.agent"}
→ typed "ops.agent"

type
http://127.0.0.1:8000/portal/login?next=/portal/invoices%3Fvendor%3DNorthwind%2520Supplies%26status%3Dopen&reason=signed_outEntering the password.
{"id": 2, "text": "acme-ops-2026"}
→ typed "acme-ops-2026"

click
http://127.0.0.1:8000/portal/invoices?vendor=Northwind%20Supplies&status=openSubmitting the sign-in form.
{"id": 3}
→ clicked "Sign in"

note_fact
http://127.0.0.1:8000/portal/invoices?vendor=Northwind%20Supplies&status=openTarget invoice is NW-1043-R; noting it.
{"key": "invoice_number", "value": "NW-1043-R", "source": "http://127.0.0.1:8000/portal/invoices?vendor=Northwind%20Supplies&status=open"}
→ noted invoice_number = 'NW-1043-R' (source: http://127.0.0.1:8000/portal/invoices?vendor=Northwind%20Supplies&status=open)

click
http://127.0.0.1:8000/portal/invoices/3Opening invoice NW-1043-R.
{"id": 6}
→ clicked "View"

read_pdf
http://127.0.0.1:8000/portal/invoices/3Reading the invoice PDF, the document of record.
{"url": "/portal/invoices/3/pdf"}
→ PDF text: Northwind Supplies GSTIN 07AAACN1234F1Z5 | accounts@northwind.example TAX INVOICE (REVISED) Invoice number: NW-1043-R Invoice date: 2026-10-09 Due date: 2026-11-08 Purchase order: PO-7734 Bill to: Acme Robotics Pvt Ltd, New Delhi This invoice supersedes NW-1043. Item Qty Unit price Amount Linear actuator LA-220 8 Rs 7,475.00 Rs 59,800.00 Total due (INR): Rs 59,800.00

note_fact
http://127.0.0.1:8000/portal/invoices/3Noting pdf_total:NW-1043-R from the PDF.
{"key": "pdf_total:NW-1043-R", "value": "5980000", "source": "/portal/invoices/3/pdf"}
→ noted pdf_total:NW-1043-R = '5980000' (source: /portal/invoices/3/pdf)

note_fact
http://127.0.0.1:8000/portal/invoices/3Noting due_date:NW-1043-R from the PDF.
{"key": "due_date:NW-1043-R", "value": "2026-11-08", "source": "/portal/invoices/3/pdf"}
→ noted due_date:NW-1043-R = '2026-11-08' (source: /portal/invoices/3/pdf)

note_fact
http://127.0.0.1:8000/portal/invoices/3Noting po:NW-1043-R from the PDF.
{"key": "po:NW-1043-R", "value": "PO-7734", "source": "/portal/invoices/3/pdf"}
→ noted po:NW-1043-R = 'PO-7734' (source: /portal/invoices/3/pdf)

note_fact
http://127.0.0.1:8000/portal/invoices/3Noting vendor_gstin:NW-1043-R from the PDF.
{"key": "vendor_gstin:NW-1043-R", "value": "07AAACN1234F1Z5", "source": "/portal/invoices/3/pdf"}
→ noted vendor_gstin:NW-1043-R = '07AAACN1234F1Z5' (source: /portal/invoices/3/pdf)

navigate
http://127.0.0.1:8000/mail/login?next=/mail/inbox%3Fq%3DNorthwind&reason=signed_outPDF facts noted; checking the mailbox for revisions.
{"url": "http://127.0.0.1:8000/mail/inbox?q=Northwind"}
→ opened http://127.0.0.1:8000/mail/login?next=/mail/inbox%3Fq%3DNorthwind&reason=signed_out (HTTP 200)

type
http://127.0.0.1:8000/mail/login?next=/mail/inbox%3Fq%3DNorthwind&reason=signed_outSession expired; signing in again.
{"id": 1, "text": "ops.agent"}
→ typed "ops.agent"

type
http://127.0.0.1:8000/mail/login?next=/mail/inbox%3Fq%3DNorthwind&reason=signed_outEntering the password.
{"id": 2, "text": "acme-ops-2026"}
→ typed "acme-ops-2026"

click
http://127.0.0.1:8000/mail/inbox?q=NorthwindSubmitting the sign-in form.
{"id": 3}
→ clicked "Sign in"

click
http://127.0.0.1:8000/mail/1Opening the mail that mentions this invoice.
{"id": 4}
→ clicked "Revised invoice for PO-7734"

note_fact
http://127.0.0.1:8000/mail/1Noting what the mail says.
{"key": "mail_check:NW-1043-R", "value": "revision notice found: Revised invoice for PO-7734", "source": "http://127.0.0.1:8000/mail/1"}
→ noted mail_check:NW-1043-R = 'revision notice found: Revised invoice for PO-7734' (source: http://127.0.0.1:8000/mail/1)

navigate
http://127.0.0.1:8000/ledger/login?next=/ledger/vendors&reason=signed_outOpening the vendor master to match by GSTIN.
{"url": "http://127.0.0.1:8000/ledger/vendors"}
→ opened http://127.0.0.1:8000/ledger/login?next=/ledger/vendors&reason=signed_out (HTTP 200)

type
http://127.0.0.1:8000/ledger/login?next=/ledger/vendors&reason=signed_outSession expired; signing in again.
{"id": 1, "text": "ops.agent"}
→ typed "ops.agent"

type
http://127.0.0.1:8000/ledger/login?next=/ledger/vendors&reason=signed_outEntering the password.
{"id": 2, "text": "acme-ops-2026"}
→ typed "acme-ops-2026"

click
http://127.0.0.1:8000/ledger/vendorsSubmitting the sign-in form.
{"id": 3}
→ clicked "Sign in"

note_fact
http://127.0.0.1:8000/ledger/vendorsGSTIN 07AAACN1234F1Z5 belongs to Northwind Supplies.
{"key": "vendor_name:NW-1043-R", "value": "Northwind Supplies", "source": "http://127.0.0.1:8000/ledger/vendors"}
→ noted vendor_name:NW-1043-R = 'Northwind Supplies' (source: http://127.0.0.1:8000/ledger/vendors)

navigate
http://127.0.0.1:8000/ledger/bills?q=NW-1043-RSearching the ERP for this invoice number.
{"url": "http://127.0.0.1:8000/ledger/bills?q=NW-1043-R"}
→ opened http://127.0.0.1:8000/ledger/bills?q=NW-1043-R (HTTP 200)

note_fact
http://127.0.0.1:8000/ledger/bills?q=NW-1043-RNo duplicate; proceeding to record.
{"key": "duplicate_check:NW-1043-R", "value": "none", "source": "http://127.0.0.1:8000/ledger/bills?q=NW-1043-R"}
→ noted duplicate_check:NW-1043-R = 'none' (source: http://127.0.0.1:8000/ledger/bills?q=NW-1043-R)

navigate
http://127.0.0.1:8000/ledger/bills/newOpening the new bill form.
{"url": "http://127.0.0.1:8000/ledger/bills/new"}
→ opened http://127.0.0.1:8000/ledger/bills/new (HTTP 200)

select
http://127.0.0.1:8000/ledger/bills/newSelecting vendor Northwind Supplies.
{"id": 5, "option": "Northwind Supplies"}
→ selected "Northwind Supplies"

type
http://127.0.0.1:8000/ledger/bills/newEntering invoice.
{"id": 6, "text": "NW-1043-R"}
→ typed "NW-1043-R"

type
http://127.0.0.1:8000/ledger/bills/newEntering amount.
{"id": 7, "text": "59800.00"}
→ typed "59800.00"

type
http://127.0.0.1:8000/ledger/bills/newEntering due.
{"id": 8, "text": "2026-11-08"}
→ typed "2026-11-08"

type
http://127.0.0.1:8000/ledger/bills/newEntering po.
{"id": 9, "text": "PO-7734"}
→ typed "PO-7734"

commit
http://127.0.0.1:8000/ledger/bills/4?flash=savedAll fields entered; committing the bill through the policy gate.
{"id": 12, "intent": {"type": "create_bill", "system": "ledger", "vendor_name": "Northwind Supplies", "vendor_gstin": "07AAACN1234F1Z5", "invoice_number": "NW-1043-R", "amount_paise": 5980000, "due_date": "2026-11-08", "po_number": "PO-7734", "approved_by": ""}}
→ clicked "Save bill"; submitted. Now verify on the page that the record exists with the right values.

navigate
http://127.0.0.1:8000/ledger/bills?q=NW-1043-RSubmitted; verifying on the list page.
{"url": "http://127.0.0.1:8000/ledger/bills?q=NW-1043-R"}
→ opened http://127.0.0.1:8000/ledger/bills?q=NW-1043-R (HTTP 200)

done
http://127.0.0.1:8000/ledger/bills?q=NW-1043-RThe list shows the record; declaring what must now be true.
{"summary": "Recorded NW-1043-R (Northwind Supplies) for 59,800.00 INR due 2026-11-08 in ledger. Verified on the list page (record #4).", "assertions": [{"kind": "exists", "system": "ledger", "entity": "bill", "match": {"invoice_number": "NW-1043-R", "vendor_gstin": "07AAACN1234F1Z5"}, "expect": {"amount_paise": 5980000, "due_date": "2026-11-08", "status": "posted", "po_number": "PO-7734"}}]}
→ assertions recorded; verification will decide the status
