A listing conjunct that is path = '...', path GLOB '...' or under(path, '...') MUST bound where the objects can be: one path, a prefix ending at a whole segment (the literal start of a glob up to its last /), or nowhere where the bounds cannot all hold; LIKE MUST NOT bound, since it ignores case and a prefix does not. A run MUST list below the deepest prefix that is within the prefix of its place, ask stat of one path where the store has it, and ask nothing where the bound is nowhere or does not meet the place.
Enforced (check): .github: cd commons/anyfs-query && bun run verify — suite/planning.test.ts
Proved by: anyfs-query/suite/planning.test.ts
Written in: anyfs-query/src/logical/execute.ts, anyfs-query/src/logical/pushdown.ts
Tests: passed: suite/planning.test.ts the operations a query makes follow its bound: a prefix lists below it, one path is a stat; passed: suite/planning.test.ts the paths a filter names say where to list: one path, a prefix, or nowhere
Cited by: AnyFS Query, logical/pushdown