bench / evals /REAL_PROBLEMS.md
usergraphtheory's picture
Sync from erdostack/bench at a7805c45d77258d316383c92bdc9f472498d255f
870fd80 verified
|
Raw History Blame Contribute Delete
17.6 kB

Real problems behind the cases

The repositories the eval cases run in are generated: this project may only use public or generated data, and the sandbox the evals were built in has no network, so no real user's repository or production data is in here. What a case can be is a faithful staging of a problem that really happens. This file is the register of those problems. A case that reproduces one names it in its case.yaml (sources: [RP-03]), and evals/PROVENANCE.md reports how much of each skill's evidence rests on registered problems.

Rules, following the repo's sourcing rule (ideas are free to use, wording is not):

  • An entry states the problem in our own words and points at where it is documented. Nothing is copied from a source: no text, example, schema or data.
  • Status says how strong the entry is. read means the page's own text was read on the date given (in a search excerpt; whole pages could not be opened where the register was written). executed means the behaviour was reproduced on this machine. bundled means a real public dataset that ships with an installed library. repo means the fact is already in a skill's SOURCES.md with its own status. memory means stated from prior knowledge of the documentation and not re-read: treat it as unverified.
  • An entry can also record when the alarming-looking thing is fine. Those are the source of restraint cases, where the right review says "leave it".

Checked on 2026-11-23 unless a row says otherwise.

Id The problem as it happens Also fine when Where it is documented Status
RP-01 A Cypher MATCH lists patterns that share no variable; the planner multiplies them and the query's rows and memory grow with the product of both sides Both sides are pinned to one row each (two indexed lookups before creating a relationship): the product is 1 x 1 and the warning is a false alarm Neo4j notification Neo.ClientNotification.Statement.CartesianProduct (status-codes manual, "List of notification codes"); Neo4j Knowledge Base, "Cross Product Cypher queries will not perform well"; Neo4j community thread "Neo4j browser exercises suggests queries that leads to cartesian product warning" (staff reply) read
RP-02 A node with a very large number of relationships (a country, a category, a status modelled as a node; a celebrity account) slows every traversal that passes through it and makes deleting it one enormous transaction The dense node is only ever an end point looked up by key, never traversed through, and the repo says so Neo4j Developer Blog, D. Allen, "Graph Modeling: All About Super Nodes"; Neo4j GraphAcademy, "Graph Data Modeling Core Principles" (country nodes as super nodes) read
RP-03 MERGE on a whole pattern with no bound variables creates the whole pattern again when only part of it exists, so nodes are duplicated; under concurrent writers MERGE guarantees existence, not uniqueness, unless a uniqueness constraint backs it The nodes are matched or merged first and only the relationship is merged between bound variables Neo4j Cypher Manual, MERGE; Neo4j Knowledge Base, "Understanding how MERGE works" read
RP-04 Deleting a large part of a graph in one transaction exhausts memory; batching by 10,000 nodes still fails when the nodes are dense, because each node brings all of its relationships into the batch The set is small and bounded by something the repo states Neo4j Knowledge Base, "Large Delete Transaction Best Practices in Neo4j" and "How to avoid using excessive memory on deletes involving dense nodes"; community thread "Deleting Large Amount of Nodes Results in Quarantined Database" read
RP-05 A recursive query over data with a cycle never finishes; switching UNION ALL to UNION only helps when repeated rows are identical, and a depth or path column makes every lap a new row The data cannot loop (a constraint or the loader guarantees a tree or a DAG), or the recursion carries a visited set or the CYCLE clause PostgreSQL documentation, 7.8 "WITH Queries", Cycle Detection read
RP-06 PostgreSQL indexes the referenced side of a foreign key and not the referencing side; deleting or re-keying a parent row scans the child table The parent table is never deleted from or re-keyed, and no query joins from parent to child PostgreSQL documentation, 5.5 "Constraints", Foreign Keys; pgsql-general replies by the core team read
RP-07 CALL { ... } IN TRANSACTIONS is rejected inside an explicit or driver-managed transaction; with ON ERROR CONTINUE or BREAK a failed batch is skipped and the statement still succeeds, so a migration tool records it as applied The statement runs auto-commit and a failure must stop the release (ON ERROR FAIL, the default) Neo4j Cypher Manual, "CALL subqueries in transactions"; Neo4j Spark connector docs, "Transactions, retries, and partial failures" read
RP-08 Cypher written for a newer server fails to parse on the pinned one (the CALL (x) { } scope clause needs 5.23; deprecated forms warn on newer versions) The repo pins a version on which the form is valid Neo4j Cypher Manual, "CALL subqueries"; see evals/query-review/SOURCES.md repo
RP-09 An agent installs or recommends the kuzu package after it was archived, instead of the maintained fork The repo is pinned to an old release on purpose and says so see evals/setup-graph/SOURCES.md repo
RP-10 An agent assumes SQL/PGQ graph queries exist in the PostgreSQL release in use The engine in use really ships it pgsql-committers, "Revert SQL Property Graph Queries (SQL/PGQ)" (P. Eisentraut, 2026-09-07): the feature committed for PostgreSQL 19 in March 2026 and listed in the beta 1 announcement was taken out before release. Read 2026-11-27. No eval case depends on this entry read
RP-11 SQLite does not enforce foreign keys unless PRAGMA foreign_keys = ON is set on each connection, so "the database guarantees it" is false and edges to missing nodes accumulate The application sets the pragma on every connection, or a job checks orphans sqlite.org, "SQLite Foreign Key Support" executed
RP-12 In a SQLite recursive CTE, UNION compares whole rows, so a row carrying a depth is new on every lap of a cycle Same as RP-05 sqlite.org, "The WITH Clause" executed
RP-13 A lookup that looks indexed is a full scan: the predicate wraps the column in a function, uses a collation the index does not have, or is a LIKE the index cannot serve An expression index or matching collation exists somewhere in the repo sqlite.org, "The SQLite Query Optimizer Overview" (LIKE optimization), "Indexes on Expressions"; see evals/query-review/SOURCES.md executed
RP-14 A variable-length pattern with no upper bound, or an all-paths search where a shortest-path or reachability check was meant, explodes on a connected graph The pattern is bounded, or the subgraph is provably small and acyclic Neo4j status-codes manual, "List of notification codes": the notification returned when a variable-length relationship has no upper bound (UnboundedVariableLengthPattern) read
RP-15 A relationship is stored as text or as a list of ids in a property (a path string, keys inside JSON), so the database cannot traverse, constrain or index it and every query splits strings The list is display-only and nothing matches on its parts Neo4j GraphAcademy, "Graph Data Modeling Core Principles" (complex data in properties) and "Eliminating Complex Data in Nodes"; Neo4j Getting Started, "Tutorial: Refactor a graph data model" (dealing with complex data) read
RP-16 An intermediate node sits between two others with nothing else attached: it is a relationship with properties, and costs a hop in every traversal A third thing attaches to it (an invoice to an enrolment, a review to a booking): then the node is the right model Neo4j GraphAcademy, "Adding Intermediate Nodes" (create one when more than two things meet or something must attach to a relationship); Neo4j Getting Started, "Modeling designs" (intermediate nodes) read
RP-17 An undirected MATCH returns each pair twice, and a merge written undirected can create a second relationship in the other direction The count is halved on purpose or the pattern is directed where it matters Neo4j Cypher Manual, "Patterns" memory
RP-18 MERGE fails on a null property value; a loader that passes optional fields into the merge key dies on the first incomplete row The key is coalesced or guarded before the merge Neo4j Knowledge Base, "Explanation of error Cannot merge node using null property value for"; Cypher Manual, MERGE (not usable on null property values); GQL error 22N31 read
RP-19 DELETE on a node that still has relationships fails; DETACH DELETE silently removes relationships the author did not think about The relationships are moved or removed deliberately first Neo4j Cypher Manual, DELETE: a node with relationships cannot be deleted without them; DETACH DELETE removes both read
RP-20 Merging two duplicate nodes turns an edge between them into a self-loop, and guarding one direction leaves the other Twin links are removed first, or the copy skips the kept node consequence of RP-03 and RP-19; reproduced on NetworkX (contracted_nodes keeps self-loops unless told not to) executed
RP-21 NetworkX shortest_path without weight counts hops; with weight naming an attribute that some edges lack, the missing ones count as 1; a Graph silently keeps one edge where the data has parallel ones The data has no parallel edges and the question is about hops NetworkX reference, shortest_path, Graph and MultiGraph (BSD-3) executed
RP-22 A hand-written traversal, component search or ranking reimplements what the engine or an installed library already provides, with a bug the library does not have The library is not available where the code runs, and the repo says so NetworkX reference, algorithms index (BSD-3) executed
RP-23 Real public networks with known answers, used where a case needs real data instead of generated data: Zachary's karate club (34 members, 78 ties), the Les Misérables co-appearance network, the Davis Southern Women bipartite graph, the Florentine families marriage network n/a bundled with NetworkX (karate_club_graph, les_miserables_graph, davis_southern_women_graph, florentine_families_graph); original studies: Zachary 1977; Knuth 1993; Davis, Gardner and Gardner 1941; Padgett and Ansell 1993 bundled
RP-24 A linter, scanner or reviewer flags a statement by rule ("unscoped delete", "no LIMIT", "DISTINCT is wasteful", "string in query") where the repo already guarantees what the rule protects; obeying the flag introduces the bug The flag's predicted harm really happens on the repo's data Bandit documentation, B608 hardcoded_sql_expressions (versions 1.7.5 and 1.8.6): the check reports string-built SQL at low confidence because legitimate uses are common; Bandit bug 1422907 on Launchpad (docstrings reported as SQL construction) and PyCQA/bandit issue 984 (a false SQL-injection report); Ruff issue 1646, where a maintainer notes that a security linter accepts false positives and that each finding is reviewed and, when it is not a real issue, suppressed. The false-alarm half of RP-01 is the graph-specific instance. Upgraded from repo on 2026-11-23 after reading these read
RP-25 The README, a design note or a manifest range names one engine or driver version while the lock file, image pin or build BOM installs another, and work proceeds on the version that was written down The written version and the pinned one agree, or the note was taken from the lock itself npm 10.9 documentation shipped with npm (package-lock.json: the lock records the exact installed tree, the manifest holds ranges), read on this machine; RP-09 for packages that were renamed or archived bundled
RP-26 What a repo knows about its own graph (engine, version, how to connect, the schema, a decision already taken) is not written down or is stale, so the next session re-derives it, contradicts it or trusts the stale note The note matches the repo as checked today No outside source. Seen in this project's own no-skill runs: second sessions redid or contradicted the first (evals/schema-first/EVALS.md and evals/graph-or-not/EVALS.md, handoff baselines) repo
RP-27 A query is written against a schema that was assumed, not read: a relationship matched the wrong way round, or a label, type or property that does not exist. Cypher runs it and returns nothing, with a notification at most The name and direction were read from the database or a current snapshot LangChain reference for CypherQueryCorrector (a class that exists to fix relationship direction in generated Cypher) and the "cypher-direction-competition" README it credits; Neo4j status-codes manual, notifications UnknownLabelWarning, UnknownRelationshipTypeWarning, UnknownPropertyKeyWarning read
RP-28 In SQLite a misspelled column name inside double quotes is read as a string literal, so the query runs and compares against a constant The name exists, or the build has double-quoted strings turned off Reproduced on SQLite 3.53.1 (Python 3.13). sqlite.org lists it among its quirks; that page was not re-read executed
RP-29 NetworkX adds any node an edge mentions, so a key that differs by case or spelling becomes a stray node; a misspelled attribute name returns an empty result; and which of successors and predecessors answers a question depends on the direction the edges were loaded in Keys are normalised on load and the direction was checked against a pair whose answer is known Reproduced on NetworkX 3.7 executed
RP-30 A graph database is adopted for a workload of shallow, repeatable lookups that a relational store handles, and the team later pays to move back; or the reverse, a graph kept in relational tables and application code until it cannot be changed Deep or variable-length traversal is the measured bottleneck Capacities developer blog, "Scaling Capacities: Why we swapped Dgraph for PostgreSQL"; Unoplat blog, "When Graphs Are Overkill" (Neo4j to PostgreSQL in v0.22.0); Trendyol Tech, "Migrating Graph Operations to Apache AGE"; DEV, A. Rankin, "Building a graph in SQL land", author's replies (the reverse case) read
RP-31 An UPDATE or DELETE whose condition is missing or wider than meant changes every row, or far more rows than the request was about Changing every row is the stated intent MySQL sql_safe_updates and the client's --safe-updates option, which exist to stop it; MySQL bug 3313 (the request that describes the accident); Percona blog, "MySQL: I Am a Dummy". A DELETE with no condition removed every row on SQLite 3.53.1 read
RP-32 A backfill or migration that is not keyed is run twice (a retry, a resumed job) and leaves doubled rows or edges The write is keyed: a unique constraint, INSERT ... ON CONFLICT, or the single-relationship form of MERGE in RP-03 Reproduced on SQLite 3.53.1 (the same INSERT ... SELECT run twice); RP-03 for Cypher executed
RP-33 In a graph shared by several tenants, a walk or lookup leaves out the tenant or owner condition and returns another tenant's rows through nodes both share Isolation is enforced below the query (a database per tenant) and the repo shows it OWASP Top 10 (2021), A01 "Broken Access Control", from memory memory
RP-34 A destructive command or statement is run by hand against production, often because the operator believes the session points at another host or a non-production copy; nothing between the keyboard and the data asks for a second look The target is a scratch or development copy and the repo shows which one the runner reaches GitLab, "Postmortem of database outage of January 31" (published 2017-02-10): an engineer cleared a data directory on the primary believing it was the secondary, and production data was lost; InfoQ and The Register reports of the same incident read

RP-25 to RP-33 were added on 2026-11-23 in a second pass. The first tagging of the existing cases against RP-01 to RP-24 left most of setup-graph, schema-first, graph-or-not and the bulk-change half of query-review without an entry, because the first register was built around query and model defects. evals/PROVENANCE.md reports both passes. RP-14, RP-15, RP-16, RP-18 and RP-19 were first entered from memory and were read later the same day, before the third roast-my-graph gate was run; their status changed from memory to read then. RP-34 was added, and RP-24 re-read and upgraded from repo, before the cases of query-review's sixth gate were written. RP-10 was entered from memory and read on 2026-11-27, after every gate; its status changed from memory to read then, and no case names it. That leaves 29 entries with outside evidence (18 read, 9 executed, 2 bundled), 3 repo and 2 memory.

What is not in this register

Problems that only exist in a private system, anything from an employer's code or data, and any text, example or dataset taken from a book, paper, vendor guide, forum answer or third-party repository. Forum threads are cited above only as evidence that a problem occurs; nothing in a case is taken from them.