Free-credit token honoring + in-panel badge + nudge A/B + abuse guard
AetherCut v1.9.97 shipped on Aug 13, 2026.
What's new in v1.9.97?
- Route-level token honoring — /api/director/plan, /api/tts/generate, /api/producer-notes, /api/voice/tts, /api/voice/dub/start all accept an x-first-free-token header and call the shared honor_first_free_token(request, tool_id) helper. When the caller's visitor_hash has a consumed allowance bound to the same tool_id, we log an ai_free_endpoint_used funnel event so the admin dashboard can measure how many redeemed tokens actually reach a completed AI call vs stopping at the UI.
- FreeCreditBadge component — small persistent chip at the top of each of the 6 flagship AI panels showing 'One free generation on us' (cyan) or 'Free credit ready — click Generate' (emerald green when redeemed for THIS tool). No clutter for Pro users. Fills the visibility gap left by the nudge toast that vanishes on dismiss.
- Nudge copy A/B test — 50/50 random pick between 'fomo' (loss-framed) and 'benefit' (gain-framed) headlines. Both variants tag ai_nudge_shown / clicked / redeemed events with exp:nudge-copy=<variant> so per-variant conversion falls out of the existing rollup.
- Allowance abuse guard — POST /ai-allowance/consume now enforces a per-(IP, hour) rate limit of 5 unique visitor_hashes. Incognito-hop farms hit HTTP 429 with an actionable message; legitimate shared-NAT families are still under the cap. Rate-limit check runs BEFORE the allowance mutation so a rate-limited attacker never burns anyone's real allowance.
- Regression suite grew to 458 (+7 in v1997RouteTokenHonoring)
How this behaves in real use
The easiest way to understand this release is to follow a single free-credit journey from panel open to completed generation. A new visitor lands in one of the flagship AI panels and sees the persistent badge immediately, instead of relying on a toast they might have already dismissed. If they redeem a free credit for that exact tool, the panel state changes from a generic “you have a free generation available” signal to a tool-specific “ready” signal. That distinction matters because the backend now honors the token at the route level, not just at the UI layer. In practice, that means a generation still goes through correctly if the panel refreshes, the request is retried, or the frontend state gets out of sync, as long as the request includes the free-token header and the redeemed allowance matches the same tool. The result is a cleaner handoff between “credit claimed” and “actual AI call completed,” with the funnel event finally recording whether a redeemed allowance turned into real usage.
For teams testing or integrating against these endpoints, the main gotcha is consistency between redemption context and execution context. The allowance is bound to a specific tool, so a token redeemed in one panel should not be expected to carry over to another AI surface that feels similar but maps to a different tool identifier behind the scenes. That is especially easy to miss when multiple panels share related language like TTS, dubbing, notes, or planning. Another common mistake is validating only the badge state in the UI and assuming that means the request path is wired correctly. The meaningful test is end-to-end: redeem in a panel, confirm the request sends the free-token header, make the AI call on the correct route, and verify the resulting usage is attributed through the funnel event on success. If any one of those pieces is missing, the experience can look correct to the user while quietly failing measurement or token honoring underneath.
The A/B nudge setup also benefits from being read as a measurement tool rather than just a copy tweak. Because shown, clicked, and redeemed events all carry the variant tag, the useful comparison is not only which headline gets more clicks, but where each variant loses people. One version may be better at earning the initial click while the other may produce fewer but more qualified redeemers who actually finish a generation. That becomes more interpretable now that redeemed allowances can be tied to downstream endpoint usage. If you are reviewing results, avoid collapsing everything into a single “conversion” number too early; the more revealing pattern is often where intent strengthens or drops between exposure, redemption, and completed AI action.
The abuse guard closes a loophole that often appears the moment free usage is tied to lightweight identity like a visitor hash. By rate-limiting the number of unique visitor hashes that can consume allowances from the same IP within an hour, the system targets the pattern most associated with incognito cycling without punishing ordinary repeat actions from one real user. Running that check before mutation is the operationally important detail here. It prevents a blocked consume attempt from mutating allowance state and creating support headaches around “missing” free credits. If you are QAing this path, test both sides: repeated legitimate use from the same household should remain below the cap, while rapid creation of fresh visitor identities from one address should fail early with 429 and leave existing allowances untouched.
Which features does this release touch?
How do I get this update?
Open the editor and you have it. AetherCut runs in Chrome, Edge, Safari and Firefox. There is nothing to install, and you can edit without an account. Open the editor or see how it works.