Reject pseudo-binary Office writes and index extracted text #34

Merged
weichen merged 2 commits from feature/binary-doc-index into main 2026-10-01 05:25:12 +00:00
2 Commits
Author SHA1 Message Date
weichen 34be855f24 Merge remote-tracking branch 'origin/main' into feature/binary-doc-index 2026-10-01 05:24:48 +00:00
weichenandCursor 3e5699c595 Reject pseudo-binary Office writes and index extracted text
Why: string writes of .docx/.xlsx/.pdf produce files that will not open,
and generated binary artifacts were skipped by search entirely.

Evidence: go test ./... 19 packages ok. Office extensions are refused
with a pointer to run_python plus register_artifact. A docgen docx is
searchable after WriteArtifact; unparseable bytes are not indexed.

Impact: write_artifact and fs_write_file no longer accept those
extensions. Text artifacts index as before. Merge after the interpreter
PR so the error text names tools that exist.

Refs: task feature/binary-doc-index; supersedes Dev #99 / Backend #27
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 04:12:12 +00:00