Skip to content
Spacefolder Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Recover a blurred capture

Navigation quality, TypeScript SDK example and recorded choice for the capture benchmark.

KPI · Usable footage probability minus blur probability.

Navigation score by prior navigations per World.

After 1,000 navigations per World

Spacefolder chose the highest-value action on 68 of 96 held-out navigations.

Approach Expected utility Score / 100
Spacefolder 0.517 97.43
Vector search + SQL for matching situations¹ 0.517 97.43
SQL for all situations¹ 0.446 88.82
First listed action -0.311 0.00
Ground truth 0.538 100.00

¹ Stack analogies. The replay averaged each action’s outcomes in memory, grouping by exact situation for the first baseline and pooling all situations for the second.

TypeScript SDK example

TypeScript SDK · Navigate API

import { SpacefolderClient } from "@spacefolder/sdk";

const sf = new SpacefolderClient();
const navigation = await sf.navigate({
  nav_id: crypto.randomUUID(),
  world_id: "capture_example",
  entity_type: "demonstration_segment",
  entity_id: "demo-segment-018",
  context: { scene: "Fast hand motion under bright task lighting" },
  actions: {
    no_action: {"name": "decision.configuration_retained", "data": {}},
    shorter_exposure: {"name": "capture.configuration_set", "data": {"camera_id": "head-camera", "exposure_us": 2000, "frame_rate_hz": 60, "stabilization_enabled": false}},
    stabilize_capture: {"name": "capture.configuration_set", "data": {"camera_id": "head-camera", "exposure_us": 4000, "frame_rate_hz": 60, "stabilization_enabled": true}},
    repeat_slower: {"name": "capture.operator_prompted", "data": {"prompt_id": "repeat-motion-slower", "segment_id": "demo-segment-018"}},
  },
  predictions: {
    usable: {"event": "demonstration.segment_accepted", "horizon": "10s"},
    blur: {"event": "capture.motion_blur_detected", "horizon": "10s"},
  },
});

let chosen: string | undefined;
let best = -Infinity;
for (const action of ["no_action", "shorter_exposure", "stabilize_capture", "repeat_slower"] as const) {
  const usable = navigation.actions?.[action]?.predictions.usable;
  if (!usable || !("probability" in usable) || typeof usable.probability !== "number") continue;
  const blur = navigation.actions?.[action]?.predictions.blur;
  if (!blur || !("probability" in blur) || typeof blur.probability !== "number") continue;
  const utility = usable.probability - blur.probability;
  if (utility > best) {
    best = utility;
    chosen = action;
  }
}
console.log(JSON.stringify({ chosen }, null, 2));

Example output

Fast hand motion under bright task lighting

{
  "chosen": "repeat_slower"
}

Apply the chosen capture setting to the segment, then record usability and blur from that segment’s quality checks.