toga-ai 1.0.993 → 1.0.994

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,7 +59,10 @@ A line is **empty** when it has no row in any table of `CUSTOMER_PO_LINE_REFEREN
59
59
  ## Gotchas
60
60
  - **Billed line cannot be deleted.** `BillItems` has no api2 route (not a Core Record; `GET /bill-items` returns `EV-7 "ACL Record could not be loaded"`, not 404), so the merge cannot see it. FK `BillItems_purchaseOrderItemId` is ON DELETE NO ACTION (verified prod `Client_Nychh`) → the delete fails loud.
61
61
  - **Root cause of NYCHH duplicates was the SO import, not the TO matcher.** PO 129 (EIT0012493): `syncSalesOrderFromNetsuite` on 2026-09-08 made new cost-0 lines because SO lines had price 0 and reuse needed equal quantity.
62
- - Prod-verified 2026-10-09: EIT0012493 lines 7–12 (cost 0, no links) deleted; 6 lines left, all 23 TO links intact. Dry run on EIT0012016: 388 lines → 31 item+cost groups (357 deletes), qty conserved.
62
+ - Prod-verified 2026-10-09: EIT0012493 lines 7–12 (cost 0, no links) deleted; 6 lines left after scheduled syncs, all 23 TO links intact.
63
+ - **Old duplicates do not clean themselves.** The merge runs for a customer PO only when a linked TO syncs; the cursor catch-up replays only changed TOs. To clean a PO, re-process its TOs with `process_netsuite_order.php` — dry run first, capture with `2>&1 | tee` ([reprocessing workflow](../../worker/workflows/reprocessing-one-netsuite-order.md)). Snapshot after deploy 2026-10-09: NYCHH still had 1,573 extra lines in 48 POs (EIT0012016 388 → 31 groups; EIT0007930 409 → 190), plus 22 groups with 2+ stocked lines that never merge by design.
64
+ - **Ship library + worker together.** The earlier library on `_production` made GroWrk's TO sync (client 33) fail every 5 min: `consolidateCustomerPurchaseOrderLines: failed reading /bill-items [EV-7 ...]` (Logs.Issue 12A / 12C). After library PR #893 (~11:55 2026-10-09): no `/bill-items` calls, 0 API errors, links writing again. After any deploy of this step, check `Logs.Event` + `Logs_<Tenant>.Api`.
63
65
 
64
66
  ## Change history
65
67
  - 2026-10-09 — Created: merge step (all TO clients), matcher cost rank, SO-QTY opt-in (hh only), `--dry-run`. CTO: agree with conditions, all applied. TRUE-82606. (jcardinal)
68
+ - 2026-10-09 — Post-deploy gotchas: old duplicates need TO re-process; library + worker must ship together (GroWrk `/bill-items` failures). TRUE-82606. (jcardinal)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.993",
3
+ "version": "1.0.994",
4
4
  "description": "TOGA Technology Team Claude Knowledge System — shared AI coding harness with skills, knowledge base CLI, and project installer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",