/claim #12
Summary
Adds a self-contained collaborative LaTeX macro safety guard for the real-time collaborative research editor.
This slice validates synchronized Markdown/LaTeX editor packets before live preview or named-version export by checking:
- conflicting collaborator macro definitions
- unsafe macro commands such as raw HTML helpers, links, and image/resource includes
- recursive macro expansion cycles that can hang live render/export
- unapproved macro edits in shared named versions
- raw active HTML and unapproved external render resources in Markdown/LaTeX blocks
- locked-section render holds when risky macro packets affect controlled sections
Non-overlap
This targets collaborative LaTeX/KaTeX macro render safety. It does not implement a broad editor foundation, operation replay, offline conflict handling, notebook workbench/kernel lease, reference formatting or reference merge, authorship governance, freeze/recovery, discussion sidebar, autosave, round-trip fidelity, review decision gates, task dependency, equation/figure anchors, presence privacy/liveness, accessibility, manuscript evidence binding, embargo release, or notification visibility.
Safety
- Synthetic fixtures only in
collaborative-latex-macro-safety-guard/sample-data.js
- No live users, private manuscripts, browser sessions, credentials, external services, wallet material, or payment data
- Dependency-free evaluator/tests; ffmpeg is only optional for regenerating the committed demo video
Demo artifacts
collaborative-latex-macro-safety-guard/reports/demo.json
collaborative-latex-macro-safety-guard/reports/demo.md
collaborative-latex-macro-safety-guard/reports/demo.svg
collaborative-latex-macro-safety-guard/reports/demo.mp4
Validation
npm run check
npm test
npm run demo
npm run demo:video with FFMPEG_PATH pointing to a temporary ffmpeg-static binary outside the repo
ffmpeg -v error -i collaborative-latex-macro-safety-guard/reports/demo.mp4 -f null -
git diff --check
git diff --cached --check
rg -n "token|secret|password|private key|BEGIN|sk-|ghp_|github_pat|wallet|seed phrase" README.md collaborative-latex-macro-safety-guard -> no matches