Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(selfie): stop the lighting badge saying "Lit" on a face the hint calls blown out

nirholas9aa251f945f2
diff --git a/data/changelog.json b/data/changelog.json
index c61123dd3..09b3016c7 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-14",
+ "title": "Recurring payments now have a home, a pause button, and a receipt for every charge",
+ "summary": "Sign one permission and a fixed amount of USDC moves to an agent every day or week, or gets swapped into a token on a schedule. Until now there was no page for any of that: you could start a schedule from a skill and then never see it again, and one bad hour on the network ended it for good, because nothing could turn a paused schedule back on. The new /recurring page is the whole life of a schedule in one place. Create one, pause it, resume it, cancel it, and read every charge it has ever made with the transaction hash next to it. A second tab shows what is being paid into your own agents, with the paying wallet and the running total. When a period fails you now get told why, in a sentence: a revoked permission pauses the schedule and says so, a wallet short of USDC keeps the schedule alive and retries once you top up, and a charge that timed out is never retried at all, because that is the one case that could take your money twice.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/recurring"
+ },
{
"date": "2026-08-14",
"title": "The selfie camera now catches a blurry or blown-out shot before it costs you a build",
diff --git a/src/selfie-capture.js b/src/selfie-capture.js
index dcc37a611..1770399f5 100644
--- a/src/selfie-capture.js
+++ b/src/selfie-capture.js
@@ -14,6 +14,7 @@
*/
import { checkImageQuality, createQualitySession, preload } from './face-quality.js';
+import { GATES } from './selfie-gates.js';
import { log } from './shared/log.js';
const REQUIRED_SLOT = 'frontal';
@@ -450,7 +451,14 @@ function renderQualityBadges(container, report, slot) {
{ text: report.blurOk ? 'Sharp' : 'Blurry', ok: report.blurOk },
];
- const lumaLabel = report.luma < 40 ? 'Too dark' : report.luma > 218 ? 'Bright' : 'Lit';
+ // Read the shared thresholds rather than repeating them: a local copy drifts
+ // silently, and it cannot see the blown-highlight gate at all, so the chip
+ // would read "Lit" while the hint underneath said the face was blown out.
+ const lumaLabel = report.luma < GATES.LUMA_MIN
+ ? 'Too dark'
+ : report.luma > GATES.LUMA_MAX || (report.clippedFrac ?? 0) > GATES.CLIPPED_FRAC_MAX
+ ? 'Blown out'
+ : 'Lit';
chips.push({ text: lumaLabel, ok: report.lumaOk });
container.innerHTML = chips.map((c) =>