Urgent.News

What's breaking now, across thousands of outlets.

AI

Don't give your agent the production database

The second you hit Enter Friday night. You ask Cursor for a query: join orders to users, sort by last login. Three seconds later, an answer arrives with DBA-level confidence: SELECT o . id , o . amount , u . last_login_at FROM biz_order o JOIN sys_user u ON u . id = o . user_id ORDER BY u . last_login_at DESC ; Paste it into your client. Enter: ERROR: column "last_login_at" does not exist LINE 2:…

Don't give your agent the production database. A recent incident demonstrated how a model can generate invented columns, even when the production database does not contain them. When the agent asked Cursor for a query joining orders to users, sorted by last login, the model used the fabricated column "last_login_at" in the JOIN.

This failure, known as an invented column, appears plausible and is not easily spotted by the agent. To avoid this issue, the recommended approach is to use an approved version of the schema instead of the production database. This can be done by saving a version in ERD Online, where schema changes are saved as named versions with human review and no database passwords.

The agent reads from this approved contract, eliminating stale drift and accountability issues. The tools provided allow the agent to list tables and describe fields on demand, preventing context overload. By reading the approved contract rather than the production database, the agent can avoid inventing columns and the associated risks.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

BTS Partners with Google Gemini: Four Special Features for Fans to Try

Tech giant Google has partnered with K-Pop trailblazer BTS to promote its AI model Gemini. They offer four special features for fans to try.

  • Google partners with BTS for four AI-powered features
  • Features include prompts, song guessing, news updates, Korean phrases
  • Unlock BTS or 7777 to access exclusive experience

Texas Gov. Greg Abbott says China isn't behind the anti-data-center debate

Texas Gov. Greg Abbott said his data center pivot was driven by legitimate concerns from Texans, not by Chinese propaganda.

  • Texas Governor Greg Abbott denies China's involvement in anti-data center debate.
  • Decision to pause data center construction based on Texan concerns, not Chinese propaganda.
  • Abbott's pivot not influenced by Chinese social media campaign.

More from Saturday 29 August →