bot prompts: forbid LaTeX math delimiters in Tlon notes and messages - #6287
Open
patosullivan wants to merge 3 commits into
Open
bot prompts: forbid LaTeX math delimiters in Tlon notes and messages#6287patosullivan wants to merge 3 commits into
patosullivan wants to merge 3 commits into
Conversation
…on-skill to 0.5.1
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 709efbd7bb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
latter-bolden
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds guidance telling bot agents never to use LaTeX math delimiters when writing %notes bodies or message text. No Tlon surface renders math (no KaTeX/MathJax, no math story type, no remark-math), so
$...$displays literally and Markdown emphasis/mentions inside it can corrupt the surrounding text, while in note bodies the backslashes in\(and\[are eaten by CommonMark escaping so those delimiters vanish entirely (openclaw chat keeps the backslashes and can misparse bracket forms as links).Fixes TLON-6339
Changes
packages/tlon-skill/SKILL.md: guidance on the message-text line plus a paragraph under Notes covering the failure modes and the plain text/Unicode and code-block alternativespackages/tlon-skill/scripts/commands/notes.ts: same note intlon notesCLI helppackages/openclaw/index.ts: one line added to the tlon tool descriptionpackages/hermes-tlon-adapter/tlon_tool.pyandadapter.py: same line in the hermes tool description and in the platform hintpackages/hermes-tlon-adapter/test_tlon_tool.py: test asserting both the tool description and the platform hint carry the guidanceHow did I test?
dev/test.sh: 1038 tests pass, including the newtest_tool_description_includes_latex_guidancetsc --noEmitclean; eslint passes (0 errors; pre-existing warnings remain)tscclean\(...\)) even though the TS and Python sources double themRisks and impact
Rollout note: the tool-description and platform-hint lines ship on merge, but the deploy workflow auto-restarts only ships tagged
tlon-internal; others need a manual dispatch. SKILL.md and the CLI help reach production only with the next tlon-skill npm release (version bump +tlon-skill-v*tag, done separately) plus a harness restart.Rollback plan
Revert the commit. If the guidance has already gone out in a tlon-skill npm release, ship a follow-up patch release and restart harnesses (npm releases are immutable). No state, migrations, or data changes involved.