potentialpaper

ROWGATE: DETERMINISTIC ROW-LEVEL ACCESS CONTROL FOR LLM QUERY AGENTS OVER FEDERATED SOURCES

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:07 UTC · 9251a5cc2570 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "WAk9zw63fO"
- }
- ],
- "title": "ROWGATE: DETERMINISTIC ROW-LEVEL ACCESS CONTROL FOR LLM QUERY AGENTS OVER FEDERATED SOURCES",
- "authors": [],
- "abstract": "Large language model agents that turn natural language into SQL are now being put in front of enterprise data, where the access policy has to hold at the row\nlevel and the data usually cannot leave the systems it already sits in. The common practice is to write the policy into the prompt and trust the model to follow\nit. We measured how well that works, and it breaks in two directions at once.\nOn a 150-probe adversarial benchmark covering five RBAC roles and ten models\nfrom four vendors, refusal rates on identical inputs run from 0.0% to 72.0% and\nschema fidelity from 54.4% to 100%. The two do not move together. The most\ncautious model turns away 72% of perfectly ordinary business queries; another\nturns away none and matches it on fidelity; a third turns away none but reaches\ninto unauthorized tables 45.6% of the time. Even when the caller’s scope is supplied as context, models leave the mandatory row filter off 23% to 32% of the\nSQL they do produce, and rewording the prompt moves that number. RowGate\ntakes the model out of the trust path instead. Policy is enforced at two deterministic layers built over a four-graph metadata substrate: unauthorized tables and\ncolumns are stripped from the prompt before generation, and the caller’s mandatory predicates are injected into every scope of the parsed SQL before execution,\nincluding the per-source sub-queries of a federated plan. We state the guarantee as a partition over outcomes and prove it under three conditions. Prior work\nchecks generated SQL statically; we instead run the rewritten queries against live\nSQL Server and PostgreSQL instances holding the real AdventureWorks database,\nand score exact result-set equality against an authorized-only ground truth. Over\nmore than 700 executed queries, covering complex query shapes, a 1,000-table\ncatalog, irregular naming, and a cross-engine join that falls from 121,317 rows to\nthe 5,976 authorized ones, RowGate returns 0 unauthorized rows every time, and\nexactly the authorized rows in all but 9 long-tail cases, which fail closed rather\nthan leak. Executing the queries also turned up four row-level leaks in our own\nrewriter that a static predicate check would have passed. We then overlay policies\nmechanically onto the Spider benchmark and run 495 queries over 17 databases\nthe rewriter has never seen: all exact, 0 leaks, against 192 that a rewriter injecting\nnothing would leak on. Enforcement matches database-native row-level security\non a single engine, and extends where that cannot reach, across engines and ahead\nof generation. The rewrite is a pure function of the query and the policy; its output\nis byte-identical at 33 tables and at 1,000. We release the benchmark, the invariant\ntaxonomy, and the harness.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "f206991a-ad36-421f-befb-3e0a7338941e"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "ROWGATE: DETERMINISTIC ROW-LEVEL ACCESS CONTROL FOR LLM QUERY AGENTS OVER FEDERATED SOURCES",
+ "authors": [],
+ "abstract": "Large language model agents that turn natural language into SQL are now being put in front of enterprise data, where the access policy has to hold at the row\nlevel and the data usually cannot leave the systems it already sits in. The common practice is to write the policy into the prompt and trust the model to follow\nit. We measured how well that works, and it breaks in two directions at once.\nOn a 150-probe adversarial benchmark covering five RBAC roles and ten models\nfrom four vendors, refusal rates on identical inputs run from 0.0% to 72.0% and\nschema fidelity from 54.4% to 100%. The two do not move together. The most\ncautious model turns away 72% of perfectly ordinary business queries; another\nturns away none and matches it on fidelity; a third turns away none but reaches\ninto unauthorized tables 45.6% of the time. Even when the caller’s scope is supplied as context, models leave the mandatory row filter off 23% to 32% of the\nSQL they do produce, and rewording the prompt moves that number. RowGate\ntakes the model out of the trust path instead. Policy is enforced at two deterministic layers built over a four-graph metadata substrate: unauthorized tables and\ncolumns are stripped from the prompt before generation, and the caller’s mandatory predicates are injected into every scope of the parsed SQL before execution,\nincluding the per-source sub-queries of a federated plan. We state the guarantee as a partition over outcomes and prove it under three conditions. Prior work\nchecks generated SQL statically; we instead run the rewritten queries against live\nSQL Server and PostgreSQL instances holding the real AdventureWorks database,\nand score exact result-set equality against an authorized-only ground truth. Over\nmore than 700 executed queries, covering complex query shapes, a 1,000-table\ncatalog, irregular naming, and a cross-engine join that falls from 121,317 rows to\nthe 5,976 authorized ones, RowGate returns 0 unauthorized rows every time, and\nexactly the authorized rows in all but 9 long-tail cases, which fail closed rather\nthan leak. Executing the queries also turned up four row-level leaks in our own\nrewriter that a static predicate check would have passed. We then overlay policies\nmechanically onto the Spider benchmark and run 495 queries over 17 databases\nthe rewriter has never seen: all exact, 0 leaks, against 192 that a rewriter injecting\nnothing would leak on. Enforcement matches database-native row-level security\non a single engine, and extends where that cannot reach, across engines and ahead\nof generation. The rewrite is a pure function of the query and the policy; its output\nis byte-identical at 33 tables and at 1,000. We release the benchmark, the invariant\ntaxonomy, and the harness.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}