Uh oh!
There was an error while loading. Please reload this page.
Use integer lever indices to eliminate UUID contamination in enrich step - #462
Closed
neoneye wants to merge 1 commit into
Closed
Use integer lever indices to eliminate UUID contamination in enrich step#462neoneye wants to merge 1 commit into
neoneye wants to merge 1 commit into
Conversation
Replace full UUIDs with integer indices (1, 2, 3...) in the per-batch prompt to prevent UUID contamination in free-text fields. Map indices back to full UUIDs when processing the response. Integer indices work universally for both text-completion and function-calling models, unlike 6-char hex prefixes which degraded haiku (PR #460) or negative prohibitions which backfired on llama3.1 (PR #458). Add positive framing ("refer to levers by their name") and exact-count instruction ("Return exactly N characterizations"). Update OPTIMIZE_INSTRUCTIONS with lessons from PRs #457-460. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
neoneye
commented
Mar 31, 2026
MemberAuthor
Self-improve iteration — analysis 63Verdict: NO UUID contamination: eliminated (0 across all models) — the integer index approach works for preventing UUID leakage. Bug: prompt/mapping key mismatch causes catastrophic failures. Prompt shows
The design is sound but the implementation has a fixable bug. Need to normalize the returned lever_id (strip "Lever " prefix) before lookup. |
neoneye
commented
Mar 31, 2026
MemberAuthor
Closing — prompt/mapping key mismatch (Lever 1 vs 1) causes 3 models to fail. Will fix normalization in next PR. |
5 tasks
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}withLever 1,Lever 2, etc. in per-batch prompt. Map indices back to full UUIDs when processing the response. Works universally for both text-completion and function-calling models.Supersedes #458 (negative prohibition backfired on llama3.1) and #460 (6-char prefix degraded haiku).
Test plan
🤖 Generated with Claude Code