Skip to content

Watchface gate: refuse what can't be parsed or measured - #18

Merged
freethinkel merged 1 commit into
mainfrom
gate-fail-closed
Nov 22, 2026
Merged

freethinkel merged 1 commit into
mainfrom
gate-fail-closed

Conversation

@freethinkel

Copy link
Copy Markdown
Contributor

The bug

checkFace failed open on both platforms. A file that didn't parse was Ok, and on a Watch 3 Pro whatever the parser couldn't follow counted as zero bytes of the memory budget. fmctools/fmc#115 has the analysis: the face that boot-looped a Watch 3 Pro passed in four such shapes.

The change

  • A file that doesn't parse is refused as "not a watch face", on every watch.
  • A face that can't be measured is refused on a Watch 3 Pro, with its own message in five languages.
  • face-gate-vectors.json comes from the site's assertFlashable through tools/face-gate-vectors.ts. Regenerating it needs a frontend checkout with Watchface gate: refuse what can't be parsed or measured fmc#115.

Testing

  • The new test failed on both ports with the same seven wrong verdicts, and passes here.
  • make test: WireKit 77 tests, Android unit tests, all passing.
  • Android assembleDebug and the iOS simulator build succeed.
  • On the 936 catalog faces of 2026-11-22, both ports give the same verdict as the site's install path (gate plus upload name check), with and without a Watch 3 Pro.
  • Not tried on a watch.

Release

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQSU8MMWXV9aP97uzpiX18

Both apps passed a file that didn't parse, and counted whatever the parser
couldn't follow as zero bytes of a Watch 3 Pro's memory budget. Same rules
as fmctools/fmc#115, held to it by shared vectors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8MMWXV9aP97uzpiX18
@freethinkel
freethinkel merged commit e40645a into main Nov 22, 2026
oliver-lebaigue-bright-bench pushed a commit to oliver-lebaigue-bright-bench/FMC-companion-app that referenced this pull request Nov 24, 2026
Brings main up to fmctools#18 and fmctools#20. Conflicts: Vectors.kt keeps both push and gate;
PhoneServices takes weather-card's forecast(at:) with forecastDay, counted
from the same `time` as the hours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8NRPxfmCiWnjQk8sh1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant