SwedgeTimer v2.2.2
What's new
Changelog
[2.2.2]
Verification status: offline gate only — bash tests/run.sh 60 steps / 0 failed (incl. toc_check and the new stance_icon_state suite); luacheck . 5 warnings / 0 errors in 107 files; wowlua_ls check . 0 errors. ALL in-client behaviour on WoW Forever/Camelot and the classic clients is UNCONFIRMED until the operator runs the validation matrix in bench/inclient_validation_matrix_v222_2026-11-16.md. No in-client pass is recorded for 2.2.2.
Changed
- Version 2.2.2:
SwedgeTimer.tocandmain.luareport version2.2.2(the single TOC and its frozen Interface line —11509, 20506, 38002, 40402, 50500, 120100, 120105, 16001— are unchanged). - Client scope correction (Forever = Camelot): the primary target is WoW Forever = Camelot, Interface 16001,
WOW_PROJECT_CAMELOT = 18, Mainline-code but not retail. Forever is never gated onst.is_mainline(which is also true for retail); the swing/guide paths gate onst.family == "FOREVER", a capability probe, or swing activity. Era, TBC Anniversary 20506 and Wrath/Titanforge 38002 must keep working; Cata/MoP/superseded/retail swing-timer concerns are deprioritised. The full rationale is inbench/scope_lock_v222_2026-11-16.md. - Hunter bottom distance bar removed (
main.lua,option_tables.lua,config_presets.lua): the standalone horizontal ranged-distance bar (weave_range.lua) is no longer created for hunters — the left-side range helper (hunter_ui.lua) is their single range aid. A wiring-layer gate makesST:init_weave_rangea no-op forHUNTER(including the world-entry retry); a one-timerawget/rawsetmigration forces a saved hunter key OFF, and the "Ranged distance bar" option is hidden for hunters. Non-hunters keep the opt-in bar unchanged. The runtime diag names the retirement with aweave_hunter=retired(left-helper-only,v2.2.2)receipt.
Added
- Left-side aspect/stance icon (
stance_icon.lua,config_presets.lua,option_tables.lua,SwedgeTimer.toc): one 20 px icon beside the swing bars shows the player's active aspect / stance / seal / shield / form / stealth for WARRIOR, PALADIN, SHAMAN, DRUID and ROGUE. It is visible in and out of combat (it anchors to the never-hidden primary-hand anchor frame, not to an activity-gated bar), and hides rather than guess when no anchor exists. Hunter is deliberately excluded — its existing aspect icon (hunter_ui.update_aspect_icon) is the hunter renderer. The state contract is explicit and documented:nil= the client could not answer,false= the scan completed and no stance is active, astring= the matched state key. Reference id lists come frombench/aura_row_reference_2026-11-08.md§4.8 (WARRIOR 3, PALADIN 36, SHAMAN 8, DRUID 6, ROGUE 4 ids; multi-rank ids collapse to one key). Ships on by default (the operator request is the gate); the option is "Stance icon" under the shared Behaviour page and is hidden for hunters. Backed bytests/stance_icon_state.lua(277 checks).
Performance
- HUD/layout micro-optimisations (t21):
hud.luapasses its already-read tick clock intoHUD.spell_known_allows(one fewerget_timecall per icon per 20 Hz tick);power_bar.luaresolves each hand's enabled row once instead of twice per poll;aura_icons.luahoists per-poll anchor-order table literals to module constants;rotationtext.luauses the pcall-guarded font chain. No throttle or secret-gate behaviour changed. - Safe input-query caching (
classes/rogue.lua): unresolved APL aura-name probes are negative-cached with the existing bounded 5 s retry, removing per-frameGetSpellInfocalls while retaining cold-spellbook recovery.
Fixed
- Hunter ranged-bar GCD underlay restored on Forever (
bars.lua,main.lua; t22): the "range bar used to show a GCD" report was the ranged swing bar's GCD underlay, not the distance bar. On Forever restricted states the numericself.gcd.expiresgate never fires (LibGlobalCooldown takes its opaque duration-object channel), so the underlay never painted. The ranged bar now carries a real Cooldown frame;ST:set_gcd_object_underlayhandsgcd_objectstraight to the sanctionedCooldownFrame:SetCooldownFromDurationObject(obj, true)sink — no number is ever derived from the opaque object — with a compatis_secretprobe and object latching. The legacy numeric path is unchanged for classic-line clients and Forever out of restriction. The rogue HUD consumer (t36) uses the same plain-handle provider shape as the Forever guide. - Druid (
classes/druid.lua): guide gather publishesinputs_unknownon every tick (a stale unknown bit no longer suppresses the guide); evaluate/input threading reconciled. - Paladin (
classes/paladin.lua): restored the unreachable Holy Shock FCFS slot-5 eligibility and display arm; routed the CLEU player-identity check throughapi.UnitGUIDfor secret-safe identity; consolidated the guide gather to one unconditional unknown write. - Rogue (
classes/rogue.lua):get_time_to_dienow clears the TTD velocity whenever the health baseline is unreadable/dead (no stale EMA-driven verdict); APL aura-name misses are negative-cached; the Forever HUD GCD borrow supplies the plain object handle with no object-to-number derivation and clears both fields on reused tables. - Shaman (
classes/shaman.lua): the weave-aura scan's early-exit set now includes Clearcasting (a trailing proc is no longer skipped); the gather publishesinputs_unknownevery tick. Both fixes carry load-bearing pins in the owning suite. - Warrior (
classes/warrior.lua): pcall-guarded the name-pathGetSpellInfoand Forever Victory Rush reads and the CleaveIsCurrentSpellpredicate (a cold/restricted throw no longer aborts the guide tick); the gather now clears the stale unknown bit on reused profile tables. - Hunter (
classes/hunter.lua): guide gather publishesinputs_unknownon every tick; no object-to-number derivation was introduced. - Swing bars no longer pop at the old position then jump (
main.lua,hunter_ui.lua,classes/hunter.lua): the hunter melee stack is now a layout invariant applied at build, on the always-running anchor tick, and from a newST:class_prepare_bar_showseam called byST:show_barbefore the firstShow(). The stale LibWindow row is repaired before the frame becomes visible, so combat start no longer paints the MH/OH bars at the old row for a frame and then moves them. The pass is idempotent and reentrancy-guarded; no saved key is written. - Power bar visible in and out of combat, at the bars' width (
power_bar.lua): the bar now mounts on the hand's never-hiddenanchor_framewith a relativeTOPLEFT → BOTTOMLEFTpoint (not on an activity-gatedbar_framewith an absolute rect copy), so it is visible whenever the class has an enabled melee row, follows a drag/resize/melee-stack move with no re-point, and defaults to the swing bars' own 275 px width (creation/fallback width; height stays 14 px). On Forever a restricted width read degrades to that default instead of throwing the tick. Row choice is still offhand-first when the class can use an offhand. - Hunter melee hands hide at ranged, ranged hides in melee (
main.lua,classes/hunter.lua): a new class hand veto runs after the shared show/activity gates. On WoW Forever the decision uses the client's ownC_SwingTimer.IsTargetWithinSwingRangequery throughapi.is_target_in_swing_range(the Blizzard auto-attack range API); the UnitDistance/UnitPosition state is only the fallback for clients where that query answers nil. With an attackable target and a readable answer, the mainhand/offhand hide outside melee range and the ranged hand hides inside it (an armed Auto Shot can no longer keep the ranged bar up in the dead zone). No target, an unknown distance or an active practice session is a no-op; the newrangereason is recorded for/st diag. Never force-shows. - Hunter aspect icon stays visible out of combat (
hunter_ui.lua): the aspect icon is evaluated even when the ranged show rule is false (the ranged widget set still hides), so the identity display is visible in and out of combat. Its aura read now consumes the full eleven-valueapi.UnitAuraRawshape (ten values +restricted), checksapi.is_secretbefore any nil test/table key, treats a restricted row as keep-scanning rather than end-of-list, and stops at a genuine empty row instead of walking all 40 indices. - Forever geometry hardening (
power_bar.lua,hunter_ui.lua): frame-width reads that feed comparisons are guarded withapi.is_secret; a restricted width falls back to the configured/default width instead of throwing and quarantining the power bar or the hunter melee stack.
Hardening
- Forever runtime diagnostics (
diag.lua): the scalar renderers (show/flag/number_text/progress_text/yes_no) now degrade a secret to?through compat'sis_secretprobe beforetostring/string.format/comparison, so a restricted read can never throw out of a/st diagline. - Forever guide cooldown contract (
forever_guide.lua):is_readyprobescanaccessvaluebefore comparing a numeric cooldown, captures the fifthrestrictedreturn ofGetSpellCooldownin its fallback, and flags the tick unknown — a secret timing read can never become "ready". - Aura/aspect rows when bars are hidden (HEAD
f9543b7): a stable anchor frame keeps buff/debuff rows and the hunter aspect icon shown when every swing/cast/range bar is hidden; a raw aura-row reader passes restricted rows through by identity for aspect matching. - Swing engine & clock: the Forever
PLAYER_SWINGengine (swing_source.lua) degrades restricted/malformed speed reads without inventing cycles; all timestamps usest.api.get_time()(no rawGetTimePreciseSecoutsidecompat.lua). The protected cooldown sink is called under pcall but remains UNCONFIRMED in-client (pcall is not taint proof). - Open items (see the matrix): U1 (duration-object sink permitted in restricted Forever combat), U2 (native swing-range band answers for an enemy in/out of instance), and a non-blocking P2 follow-up to pcall-harden
compat.api.GetSpellInfoagainst a cold/restricted-book throw (enumerated inbench/inclient_validation_matrix_v222_2026-11-16.md).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

