[{"id":"write_ns","kind":"ns_push","record_type":"itempricing","fields":{"customer":"?customer_id","item":"?sku","price":"?new_price","effective":"?effective_date"},"queue":"NS_PUSH_QUEUE","on_failure":"retry_3_then_alert"},{"id":"write_d1","kind":"d1_write","parallel_with":"write_ns","operations":["UPDATE pricing_master SET case_price=?, cost_basis=?, margin_pct=?, updated_at=now WHERE id=?","INSERT INTO pricing_history (customer_id,item_code,case_price,changed_at,changed_by) VALUES (?,?,?,now,?)"]},{"id":"update_bid_lines","kind":"d1_write","if":"bid_id present","operations":["UPDATE bid_lines SET proposed_price=?, updated_at=now WHERE bid_id=? AND item_code=?"]},{"id":"regen_bid_artifact","kind":"http_call","if":"bid_id present AND artifact_r2_key exists","method":"POST","path":"/api/bids/:bid_id/regenerate","produces":["updated bid PDF","updated price-quotes tab"]},{"id":"invalidate_hub_cache","kind":"kv_invalidate","if":"bid_id IN active_hub_bids","keys":["hub:nycdoe:bid_?bid_id","hub:nycdoe:summary"]},{"id":"spec_sheet_check","kind":"flag","if":"abs(price_change_pct) > 5","action":"INSERT proposed_actions (action_type=spec_review_needed, entity_ref=?sku)"},{"id":"customer_notify","kind":"hitl_email_draft","if":"customer has open quote AND price_increase","tool":"propose_email_to_customer"}]