Skip to content

AI Purchase Order triage tools (ai 1.10.0) — Production Readiness Audit

FieldValue
Date2026-09-15
Re-audited2026-09-15
StatusGo for production — Backend + Docs; no SPA/Mobile code
ScopeAsk EloSync Purchase Order tools: get_purchase_order plus confirmed writes update_purchase_order_status / assign_purchase_order / add_purchase_order_note; get payload assigned_to (user id) + assignee_name; catalog ai 1.9.0 → 1.10.0
CompanionAI deployment · AI Project triage · AI Payment triage · AI tools · Tenant AI API · User guide · Purchase Orders · CHANGELOG

Executive summary

Additive AI tools depth on the existing AIGateway + AIToolRegistry + PendingAiActionService path. Reads: fetch one purchase order. Writes: three low-risk tools that propose pending actions; mutations run only after POST /ai/actions/{id}/confirm. Status changes call PurchaseOrderService::changeStatus (same as HTTP POST …/status). Status auth mirrors the controller: Sent→send, PartiallyReceived/Received→receive, Cancelled→cancel, else→update. Registry visibility for status uses AiToolAnyOfPermissions (purchase-orders.update | send | receive | cancel). Assign uses purchase-orders.assign + EligiblePurchaseOrderAssignee at propose and confirm. Notes are text-only with confirm-time max:5000. No new Spatie permissions, no Purchase Orders catalog bump, no Frontend/Mobile changes.

Go / No-Go: Go. Cutover: migrate-only catalog bump to 1.10.0, entitle ai + purchase-orders, staging smoke propose→confirm.

GateResult
Platform freeze (no parallel AI stack)Pass
UUID PO lookup; soft-deleted excludedPass
Status propose/confirm: target-dependent send/receive/cancel/update + changeStatusPass
Status tool visible with any of update/send/receive/cancelPass
Assign gated by purchase-orders.assign + eligible assignee (propose and confirm)Pass
Note gated by purchase-orders.update + policy update + body max 5000 on confirmPass
Propose does not mutatePass
Get payload exposes assigned_to (id) + assignee_namePass
Catalog migrate-only ai 1.10.0 + CatalogSeeder syncPass
Docs (tools, API, user tip, PO cross-links, ops, roadmap, changelog, upgrade, VitePress)Pass
Pest write confirmation + registryPass
Playwright AI e2eN/A — no SPA surface change

Locked-decision matrix

DecisionBackendFrontendMobileDocs
Read tool get_purchase_orderPassPass
Confirmed writes via existing pending actionsPassPass (generic UI)Pass (generic UI)Pass
Status via HTTP /status semanticsPassPass
AiToolAnyOfPermissions for status visibilityPassPass
Catalog MINOR ai 1.10.0 only (not purchase-orders)PassPass

Authz map (HTTP ↔ AI)

ActionHTTPAI tool / confirm
Get oneviewget_purchase_order
Change statustarget-dependent (send / receive / cancel / update) + POST …/statusupdate_purchase_order_statusPurchaseOrderAiSupport::authorizeStatusChange + changeStatus
Assign / unassignassignassign_purchase_order + eligible assignee at propose and confirm
Note (text)updateadd_purchase_order_note + confirm max:5000

Upgrade / staging smoke

After migrate (2026_09_15_100000_bump_ai_module_version_to_1_10_0):

  1. Confirm central catalog ai.version = 1.10.0 (do not db:seed).
  2. Workspace has AI + Purchase Orders entitled; user has ai.use, ai.confirm, and PO domain perms as needed.
  3. Ask EloSync: fetch PO → propose status/assign/note → Confirm.
  4. Send-only can propose Draft→Sent; receive/cancel need matching perms; view-only never gets writes.

See Upgrade Guide · AI deployment.


Rollback

Redeploy previous Backend release. Catalog version may remain 1.10.0 (display-only); tools disappear with the code rollback. Pending actions for removed tools fail confirm with unsupported tool — cancel or let expire (24h).

Official documentation for the EloSync SaaS Platform.