Uh oh!
There was an error while loading. Please reload this page.
Wrap lever UUID in XML tags to prevent UUID leakage in free-text fields - #466
Merged
Conversation
Replace "Lever ID: {uuid}" with "<lever>{uuid}</lever>" in the
per-batch prompt. XML tags signal structural markup rather than text
content, so models are less likely to copy UUIDs into synergy/conflict
fields. The full UUID stays first in each lever block for reliable
positional matching.
Add positive framing ("refer to levers by their name") and exact-count
instruction. Update OPTIMIZE_INSTRUCTIONS with lessons from PRs #457-464.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>neoneye
commented
Mar 31, 2026
MemberAuthor
Self-improve iteration — analysis 65Verdict: YES UUID contamination: fully eliminated (15 → 0)
Haiku errors reduced: 7 → 5 (–29%). Remaining 5 are benign fabricated extras — all 35 real levers enriched. Content quality: llama3.1 synergy/conflict now uses clean lever-name prose. OPTIMIZE_INSTRUCTIONS updated and accurate. The XML tag approach ( |
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
Lever ID: {uuid}with<lever>{uuid}</lever>. XML tags signal structural markup — models treat it as metadata rather than text to copy into synergy/conflict fields. Full UUID preserved first in block for reliable matching.Previous attempts: negative prohibitions backfired (#458), hex prefixes broke haiku (#460), integer indices broke matching (#462), moving UUID to end broke positional heuristics (#464).
Test plan
🤖 Generated with Claude Code