Skip to content

About

MoveInLens: a SPECS Lens that measures and grades wall and ceiling defects at move-in and compares them at move-out (Learn AR with SPECS)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

MoveInLens

An AR screening lens for move-in and move-out inspections on SPECS, made for the Devpost "Learn AR with SPECS" contest.

You pin a defect on a wall or ceiling, measure it at real size (a true-width gauge for crack width, two pins for length, a circular gauge for holes, two corner pins for stains and peeling paint), and a rule-based checker gives a grade, the evidence behind it, and a next action. Saved defects form a report sorted by severity, with an evidence photo per pin and an exportable HTML report. At move-out you re-inspect the same room, and the lens matches each defect by position and shows what is new, changed, unchanged, or escalated.

Screening aid only, not a legal or structural diagnosis. Built and demonstrated in the Lens Studio preview, in the virtual "Colorful Home" room with stand-in defect textures of known size.

Status (Nov 24, 2026)

  • Lens Studio 5.25.0 project, created Nov 18, 2026 from the SPECS Base Template (target: Spectacles).
  • Planned with the Devpost plan-lens skill (devpost/design-brief.md), built with CLAD and the Lens Studio MCP, and run in the Lens Studio preview (no device):
    • Core loop: pins via World Query, type toolbar, true-size measure card, result card with evidence and next action.
    • Report sorted by severity and a saved record (Persistent Storage, with a file fallback).
    • Move-out compare (new, changed, unchanged, escalated), mode switch, new inspection.
    • Optional AI suggestions, evidence photos on save, and report export (both through a local relay).
    • Design passes after the first build: closer to the original mockup, nothing cut off or covered, generous spacing between text and its container.
  • Done criteria C1 to C11 (devpost/design-brief.md) are checked by LEAF scenarios in Assets/Tests/ (registered in Assets/Tests/LeafIndex.ts). Test runs are recorded in .clad/steps/leaf-*.json and summarized in devpost/decisions-log.md.
  • Demo video (2:58, linked on the Devpost page): recorded in the preview with LEAF-driven takes, voice-only narration (Kokoro TTS, no music), assembled with tools/demo/make_video.py. The recorded takes and intermediate files are not in the repo, so the demo scripts document the edit rather than reproduce it.

How to test

  1. Install Lens Studio 5.25 and open MoveInLens-project.esproj.
  2. In the Preview panel choose the Spectacles device (SPECS 27), turn on the Interactive preview, and select the simulation scene Colorful Home. The lens places its stand-in defects on that room's walls and ceiling. Preview settings are saved per machine, not in the repo, so set them once after cloning.
  3. Move the preview camera with the Interactive preview controls. A mouse click stands in for a pinch.
  4. On the Start card, click Start move-in inspection. The toolbar appears.
  5. Pick a type (Crack, Hole, Stain or Peeling) and click on a defect texture on a wall or the ceiling. Crack: pin both ends, then pick the gauge line that matches the width. Hole: pin the centre, then match the ring to the hole. Stain or Peeling: pin two opposite corners. Done turns on once the required value is set; click it. The result card shows the grade, the evidence and the next action. Click Save pin.
  6. Click Report (n) to see the saved defects, most severe first.
  7. Click Start move-out (it unlocks after one saved pin), pin the defects again, then click Compare (n) to see which are new, changed, unchanged or escalated. Back to move-in switches back. New inspection clears the record when clicked twice within 5 s.
  8. LEAF tests: open the LEAF panel (package Packages/Leaf.lspkg, plugin in Plugins/) and run a scenario in the preview. Scenarios are in Assets/Tests/. mil-b5-start runs from any camera pose. Most others expect the preview camera at a set pose, given at the top of each scenario file; mil-d2-crack-flow, for example, needs the camera at (44.8, 0, 12.4) looking at (-34.6, -25.8, 88.5). The report, compare, mode, demo and export scenarios wait for camera poses that the Lens Studio MCP tool MovePreviewCamera sets during a run. Some phases of mil-ai-suggest and mil-export need the local relay on port 8766, the scenarios' default: python3 tools/ai-relay/relay.py --port 8766 (add --export-only to run it without a key).

Optional AI suggestions, evidence photos and export

Off by default; the Lens works fully without them and shows "AI · off".

  • AI suggestions: install tools/ai-relay/requirements.txt and run the local relay with your own Anthropic API key: set ANTHROPIC_API_KEY (or save the key in ~/.anthropic_key), then python3 tools/ai-relay/relay.py (details in tools/ai-relay/README.md). No key is included in this repository. Start the relay before the Lens, or pinch Retry AI once; the button then reads AI suggest. Pinch it. The AI only suggests candidate spots. You measure them with the normal flow, and the rule-based checker grades.
  • Evidence photos and export: with the relay running, each saved pin gets a photo, and Export on the Report or Compare card writes exports/<time>/report.html and report.json. Without a key: python3 tools/ai-relay/relay.py --export-only (never reads a key).
  • These features reach the relay through Lens Studio's Experimental APIs, so they work in the preview only.

Repository layout

  • MoveInLens-project.esproj: open this in Lens Studio 5.25.
  • Assets/Scripts/: the Lens (TypeScript, made with CLAD). Assets/Scripts/MoveInLensChecker.ts is the grader ported from src/checker.js.
  • Assets/Tests/: LEAF test scenarios.
  • Assets/textures/: defect textures with known physical sizes (manifest.json). Assets/Data/: rules and scenarios used by the Lens.
  • Packages/, Plugins/: Snap packages from the template or installed by tools (see "Code not built with CLAD, and third-party assets").
  • src/checker.js, data/: reference grader and the rules, scenarios, and answer key.
  • tests/: node tests. tools/: texture generator and data/demo helpers.
  • devpost/: design brief (from the plan-lens skill), UI spec, references (sources for thresholds and design rules), and the decisions log (who made each decision and which code came from where). Other working notes are kept local.
  • .claude/skills/plan-lens/: the Devpost plan-lens skill used to write the brief. .clad/: CLAD build step records.
  • Generated by Lens Studio and git-ignored: Cache/, Workspaces/, PluginsUserPreferences/, Support/, MCP config files (they hold a local token).

Code not built with CLAD, and third-party assets

The reference checker, its tests, the texture generator, the rules and scenario data and the defect textures were written by the owner during the submission period, before this Lens Studio project was created on Nov 18 (not built with CLAD). They and third-party code are listed in the provenance table of devpost/decisions-log.md and in the Devpost project description. Font and icon license texts are in licenses/, listed in THIRD_PARTY_NOTICES.md.

Run the node tests

node tests/run_checker.js       # ALL CHECKS PASSED (rewrites the answer key with identical content)
node tests/run_checker_port.js  # PORT PARITY PASSED (src/checker.js vs the Lens port)
node tests/run_report.js
node tests/run_compare.js
node tests/run_card_anchor.js
node tests/run_save_dedupe.js
python3 tests/run_relay.py                    # AI relay, no real model calls
python3 tools/ai-relay/test_relay_export.py   # evidence photos and export
python3 tools/gen_assets.py     # optional: regenerate textures (needs Pillow and numpy)

About

MoveInLens: a SPECS Lens that measures and grades wall and ceiling defects at move-in and compares them at move-out (Learn AR with SPECS)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages