Linora

0702. Query semantics and guards in doc workers

Status: Accepted (2026-11-27). Agreed with WP-F (MCP) and WP-A (docQueries). nameRegex amended by 0704 (SR-01): find() runs nameRegex only on the linear engine (no backtracking fallback), with a time budget, and every query runs under a wall-clock guard.

Context

shared/src/api.ts fixes the request/response schemas but leaves value formats, paging and abuse limits open. The MCP feeds query rows back into ops (undo, duplicate), and the worker runs user-supplied patterns over 600K+ names.

Decision

Alternatives

Consequences