Abstract
Problem An AI agent with a valid database credential can still make the wrong change. Suppose a maintenance agent is cleared to correct one customer's address, but a malformed tool request updates the account status instead. A normal WRITE permission allows both. A correct ACID commit only proves the change is internally consistent, not that it was the change the task allowed. Permissions, roles and transactions answer "may this account write?" They do not answer "is this exact operation the one that was approved, and is that approval still current?"
Basis Based on Indian Provisional Filing 202631125689, filed 22 October 2026 (a continuation of Indian application 202631124028), and disclosed with the Mothership (PCT/IB2026/055615) on 16 July 2026. Also related: the ALF PCT, PCT/IB2026/053385 (WO 2026/115520), filed 7 April 2026, disclosed 4 June 2026.
Technical solution Paper 04 develops mechanism C-09 of the Indian application, called inline transaction finality (Claims 9 to 14). The resource side holds the agent's request in a staged, uncommitted state. It rebuilds the real operation (target, field, value, expected version, task) and checks it against current authority held in protected state. It records the result inside the database and enables one transaction only. Consuming the approval and changing the data happen in the same atomic commit, so replayed, duplicated or stale approvals fail and no portable token is sent. Denials are kept even after a rollback. Cached approvals carry a generation number, and unknown outcomes after a lost acknowledgement are resolved by a recovery record.
The paper covers 12 implementation variations and a reproducible local SQLite test. The test is a local model only and is not production evidence.
How it fits existing technology infrastructure (AI-generated; not an endorsement, validation or infringement statement) This section was produced with AI assistance from public vendor documentation. Cross-check it against the original PCT filings and each vendor's own documentation before drawing any conclusion.
- PostgreSQL: the gate is a narrow SECURITY DEFINER function. It locks the authority row and the resource row, then commits the evidence, the quota and the change together. It rejects a different target, a stale version or a reused approval.
- Oracle Database: the gate is a protected PL/SQL package that keeps the evidence inside the main transaction, so the check and the change commit or roll back as one.
- AWS DynamoDB: the gate is a TransactWriteItems call. It makes a conditional update on an authority item and applies the data change in the same transaction.
- MySQL, Microsoft SQL Server, Google Cloud Spanner, MongoDB and SQLite: the paper maps each to a gate position. Examples are an InnoDB controlled mutation, multi-document writes and a local protected service.
- AI platforms: where agents built with Anthropic Claude, OpenAI, Google Gemini or Microsoft Copilot call a database tool, the gate sits behind that tool, inside the transaction. It checks the actual operation and rejects a different target, a stale version or a reused approval.
- Why it matters: role and consistency controls stay in place. The gate adds a per-operation check at the last step before commit.
- Limits: the paper marks every mapping NOT VERIFIED. No product was tested, vendor internals are not inferred, and no adoption, partnership or infringement is stated.
Disclaimer The underlying invention is human-originated and based on PCT/IB2026/055615. AI-assisted tools were used to create this document, including summaries and threat scenarios. It may contain errors, inaccuracies or omissions. Readers must cross-check every technical statement, and the industry-relevance material, against the original publicly available PCT filings before drawing any conclusion.
Patent and disclosure details
- Status: patent-pending concept (India). The filings are pending applications only. Nothing here states or implies that any patent has been granted. Check current status only on WIPO PATENTSCOPE and the national patent offices.
- First disclosed: 22 October 2026 (two IETF Internet-Drafts, revision 00, not endorsed by the IETF) and 27 October 2026 (Zenodo record https://zenodo.org/records/24534152).
- Draft 1: Protected Execution Finality for Sandboxed AI Agents, Credential Mediation, Process Lineage, and Network Egress (draft-das-sandbox-credential-egress-finality-00): https://datatracker.ietf.org/doc/html/draft-das-sandbox-credential-egress-finality-00
- Draft 2: Distributed Authority and Execution-Finality for Multi-Agent Systems, Delegated Operations, and Cross-Domain Gateways (draft-das-distributed-agent-authority-finality-00): https://datatracker.ietf.org/doc/html/draft-das-distributed-agent-authority-finality-00
- Mothership application: PCT/IB2026/055615, filed 4 June 2026 and publicly disclosed 16 July 2026. Full text at https://www.tdcommons.org/dpubs_series/12542/. You can also search "Sangam Das" or PCT/IB2026/055615 (pctib202655615) on PATENTSCOPE.
- European Zenodo disclosure (16 November 2026): "EUROPE'S NEXT AI SECURITY CHALLENGE: WHO CONTROLS THE FINAL ACTION? — From EU AI Act and NIS2 to 6G, the Digital Euro, Industrial AI and Critical Infrastructure", https://zenodo.org/records/24274259.
- Licence: CC BY-NC 4.0. Contact: [email protected].
Keywords (full) AI safety; AI agent security; agentic AI; database security; database transactions; ACID; transaction commit control; authorization; fine-grained access control; least privilege; confused deputy; time-of-check to time-of-use; atomic compare-and-swap; optimistic concurrency; row-level security; policy enforcement point; stored procedure security; idempotency; rollback and recovery; in-doubt transactions; payment ledger security; PostgreSQL; Oracle Database; Microsoft SQL Server; MySQL; Amazon DynamoDB; Google Cloud Spanner; MongoDB; SQLite; Model Context Protocol; tool-call authorization
Related Zenodo records
- Computation Is Not Authority https://zenodo.org/records/23245054
- A Skill Is Not a Capability: Hardware-Measured Robotic Capability Envelopes, Independent Safety Evaluation, and Capability Downgrade During Actuation https://zenodo.org/records/23793254
Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial 4.0 License
Recommended Citation
Das, Sangam Kumar, "AI Safety Beyond Database Permissions: Stopping the Wrong Commit by an AI Agent", Technical Disclosure Commons, ()
https://www.tdcommons.org/dpubs_series/13450