- Scan Markdown preview links with linear regexes instead of rendering
through python-markdown; a 40 KB crafted input took ~45 s before.
- Accept only UUID-shaped ids from free text and treat text-linked files
as best-effort: lock them when the tenant owns them, ignore them
otherwise, so foreign or stale preview links no longer fail writes.
Structured references keep hard validation.
- Drop the exclusive Redis lock from the jieba keyword read path.
- Treat pipeline invoke-entity file cleanup as best-effort.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>