TacoTip v1.1.2
What's new
[1.1.2] — 2026-11-27
Code
- Identity-restricted world hover recovered (
main.lua,TT.resolveRestrictedWorldUnit,onTooltipSetUnit). Reported symptom: in a battleground, friendly-player tooltips were enhanced and enemy-player tooltips showed Blizzard's plain box. Cause, traced through the client at the pin:GameTooltip:GetUnit()isTooltipUtil.GetDisplayedUnit(Blizzard_GameTooltip/Mainline/GameTooltip.lua:1035), which rebuilds the unit token asUnitTokenFromGUID(tooltipData.guid)(Blizzard_SharedXMLGame/Tooltip/TooltipUtil.lua:34-40).UnitTokenFromGUIDisSecretWhenUnitIdentityRestricted(UnitDocumentation.lua:3296-3298), whose contract is "Guarded APIs and events produce secret values when the unit isn't player-controlled or in the party/raid" (SecretPredicatesDocumentation.lua:130-132). In a battleground the player is in the raid, so self/party/raid/pet tokens stay plain and every enemy token comes back secret;UnitGUIDcarries the same predicate (UnitDocumentation.lua:1241-1244). NoUnit*API accepts a secret token from tainted code (SecretArguments = "AllowedWhenUntainted"), and the two remaining proofs inresolveTooltipUnitcould not fire: a world-hover tooltip has no unit-frame owner, andGameTooltip:IsUnitdoes not exist on Camelot at all (absent from the generated docs and from the UI code). Resolution therefore returnednilwith causeunresolved-guid, and the render tookclearTooltipVisuals(..., "unresolved-unit", ...)andreturned beforeTT:ApplyTooltipAppearance— no border, background, font, portrait or rows.TT.resolveRestrictedWorldUnit(tooltip, data)is the recovery, built from plain reads only: readable tooltip data whoseguidis secret, a unit tooltip type, no unit-frame owner,TT:GetMouseFocus() == WorldFrame, and plainUnitExists("mouseover")+UnitIsPlayer("mouseover"). It returns"mouseover", the only unit a unit tooltip can describe while the cursor is over the 3D world, which is the same structural inferenceisUnitHoverTargetalready relies on (main.lua,focus == WorldFrame and safeUnitExists("mouseover")). It is gated on the capability (a secret guid) rather than onisForever: Camelot and live share the contract and the branch is unreachable where secrets do not exist, so no classic path enters it.- Restricted to players on purpose. An enemy pet or NPC also has a secret identity there, but no report asks to re-attribute those and a wrong guess would paint one unit's data onto another.
- The recovered render flows through the existing pipeline unchanged, so every row that needs withheld data degrades on its own through the
safe*helpers: the tooltip gains the configured border/background/alpha/font/scale/position, the level line and the 3D portrait, and shows no GearScore, talents, guild or class colour becauseUnitClass,UnitGUIDand the guild APIs are withheld for that unit. onTooltipSetUnitclassifies the state: a secretdata.guidwith no recovery incrementsTT.ev.unitRestrictedand notTT.ev.resolveTooltipUnitFailed, with causerestricted-unit. The header-guard early returns now callTT:ApplyTooltipAppearancefor a restricted render, so a header the client withheld cannot leave the frame bare.
- Portrait identity for a restricted unit (
main.lua,TT.restrictedUnitNameKey,applyPortrait3DUnit,TT:ApplyTooltipAppearance).applyPortrait3DUnitkeys the mesh onUnitGUID, and falls back to the unit token when there is no GUID. For a restricted unit that fallback is wrong:"mouseover"is one string for every enemy, so the second opponent hovered would keep the first one's face.applyPortrait3DUnittakes an optional identity argument and the restricted render supplies the readable name (UnitNameisSecretArguments = "AllowedWhenTainted"and carriesSecretWhenUnitNameIdentityRestricted, whose contract keeps a player's name readable in PvP —SecretPredicatesDocumentation.lua:135-137). With no readable identity at all the model is cleared and counted asportraitNoIdentity; a hidden portrait is correct, a stale one is not.- The same-token re-render is treated as
keepModelwhen both sides have no GUID and the token is unchanged, so a 0.2s tooltip re-drive does notClearModel+SetUnitfive times a second. A genuinely different hover still reloads, because the model key is the name. clearTooltipVisualsdropsstate.restrictedUniton a genuine recycle so the flag cannot leak onto a later non-unit tooltip.
- The same-token re-render is treated as
Diagnostics
identity-restricted unitsrow (diagnostics.lua). Reportsrecovered=andunresolved=counts with the note "client withheld unit identity in a restricted map", atinfoseverity, and only when either count is non-zero. The failure rate, the problems list and the verdict no longer treat these hovers as addon defects — a battleground report that previously read "1 problem, highest: error — Unit resolution failed 21 time(s)" now reads healthy plus the restriction line.- Three saved-variable rows read keys nothing writes (
diagnostics.lua, saved-variables section). Every report from a real session claimedinspect cache: absentand warned, andprogression history: absent, regardless of what the session had collected. The rows readTacoTipConfig.recentandTacoTipConfig.progression_history; the addon writesTacoTipConfig.recentCache(SaveRecentInspectEntry,main.lua) andTacoTipConfig.progression[<character key>].history(main.lua, progression record), and the history cap isprogression_history_capwith a500default. The rows now read the real shapes and reportN players/N record(s), M entr(ies), cap 500. A key audit of all 15cfg.*reads indiagnostics.luaagainst every write inmain.lua/options.luafound exactly these and no others. zone rowno longer warns when no tooltip is on screen (diagnostics.lua). A report is normally taken with no tooltip shown, soowner unit=noneproducedzone=The Barrens(the player's own map, from theactiveUnitfallback) and awarn— which reads as a failure in every report ever filed. With no owner the row is now informational and evaluates nothing;warnis reserved for the only real defect, an eligible owner that produced no zone. TheactiveUnitfallback was also dropped from the zone read: the row is a property of the owner frame, so reporting the player's own zone besideowner unit=nonewas misleading.- Unresolved renders are sampled (
main.lua,TT:SampleUnresolvedUnit;diagnostics.lua,unresolved sample #N). A normal-play log reported2 of 429unresolved with only the cause code, which is not diagnosable. The last four unresolved shown renders now keep the facts that were available at that instant — cause, line count, owner frame name, whether the owner yielded a unit, mouse-focus frame,UnitExists("mouseover"), whetherUnitGUID("mouseover")answered plainly, whetherUnitTokenFromGUIDexists, andtype()of the tokenGetUnitreturned. No secret is read or stored: every field is a boolean, a count, a frame name, or thetype()of a value (safe on a secret), and the onlyUnit*calls use the literal"mouseover"token. - Proximity-scan liveness (
Libs/LibForeverInspector/LibForeverInspector.lua,diagnostics.lua).enqueued=0could mean three very different things and the row could not tell them apart.scanTicks,scanTicksWithPlatesandscanGuardedare now counted and reported, so "the ticker never ran", "it ran with no nameplates" and "it ran but every tick was suppressed" are distinguishable. - Item post-call attribution (
main.lua,diagnostics.lua). The item hook fired 18,005 times in 43 minutes (about 7 per second of play) and the report named neither a rate nor a source. The row now printsrate=N/minandlast owner=<frame>, so the next log attributes the count instead of leaving it unexplained. Nothing in this addon drives item tooltips: the onlySetHyperlinkcall is the progression-history hover inoptions.lua, so the source is outside TacoTip. portrait suppressedrow (diagnostics.lua). Printed only when a restricted render had no readable identity to key the 3D mesh on, so a report explains a missing portrait instead of leaving it looking like a failure.- Trace log parity (
diagnostics.lua,TT.GetDiagnosticTraceLog). The exported trace carriesIdentity-Restricted Hovers: N recovered | M unresolved (client withheld identity)next to the existing unit-render/failure line. ClearDiagnosticLogsresets both counters.
Tests
- Eight
lua5.1pins inTests/harness/forever_tooltip_test.lua(v1.1.2 restricted hover:prefix; FOREVER pins 295 → 303). A secret guid over the world resolves tomouseover; that recovery is not counted as a resolution failure; the 3D model keys on the readable name rather than the token; a second identical render keeps the model (no per-render strobe); a non-playermouseoveris not re-attributed; the unrecoverable case is counted as restricted and not as failed; a non-world cursor is not re-attributed; and no readable name means no model at all. - Nine pins total for the restricted path (the ninth,
v1.1.2 restricted hover: the unresolved render is sampled for the next report, asserts the sample carriescause=restricted-unit, a frame name for the focus, and the plainmouseoveranswer), so FOREVER pins are 304/304. - Two
load_testpins for the saved-variables rows (v1.1.2: inspect cache row reads TacoTipConfig.recentCache,v1.1.2: progression history row reads TacoTipConfig.progression): withrecentCacheandprogressionpopulated the report must show1 players/3 entr(ies), cap 500and no warning. Red proof: the same invocation againstgit show HEAD:diagnostics.luain a scratch copy of the tracked tree fails both pins and nothing else. - Red proof (
TACOTIP_MAIN_OVERRIDEwithgit show HEAD:main.lua): five of the eight fail on the pre-fix tree —recovered=nil,fails=0 -> 1,key=nil,restricted=0 -> nil,noIdentity=0 -> nil— and the two refusals pass there by construction (pre-fix code never resolved anything, so it could not mis-attribute). Scratch copy removed after the run.
Docs-Config
- Version
1.1.2acrossTacoTip.toc,main.lua(2 fallbacks),options.lua,README.md(header, badge, status, gates),CHANGELOG.mdandTests/harness/load_test.lua(TOC pin and the printed-report pin). README.mdgains a What's New in v1.1.2 section written for users: what now appears on an enemy tooltip, what cannot and why, and the new/tt diagline.AGENTS.mdrecords the client contract and the recovery as a rule in forever secrets, including why the gate is evidence-based rather thanisForever-based and why the model is name-keyed.workshop.mdbaseline line moved tov1.1.2with Forever pins303/303.
Verification
bash Tests/harness/run_all.sh→ TOTAL 75 invocations: 75 passed, 0 failed.lua5.1 Tests/harness/forever_tooltip_test.lua→ FOREVER pins: 304/304 passed.wowlua_ls check .→ 70 warnings / 0 errors, identical to the recorded baseline (no suppression added).bash Tools/verify_release.sh --worktree→ PASS, including version 1.1.2 is consistent (TOC, main.lua, options.lua, README).luac5.1 -p main.lua diagnostics.lua→ clean. The first build of this change hit Lua 5.1's 60-upvalue ceiling inonTooltipSetUnit; both new helpers were moved ontoTT(the documented remedy) rather than by trimming the function.- Not verified in game: no client was available for this session. The hover that fires the recovery needs a restricted map with an enemy player present — a battleground, or the engine's forced-restriction cvars (
addonPvPMatchRestrictionsForced/addonMapRestrictionsForced).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

