Version control for physical spaces
DurHack 2026 · Marshall Wace Challenge 1 · New Worlds
ZygomorphicMereOtter · Durham University
Try New Worlds · Connect cameras and inference · System diagrams · Project story · Walkthrough guide
New Worlds Capture screen with four simulated camera feeds.
Install Node.js 24 and pnpm 11.25.0, then run these commands on the laptop you want to use.
git clone https://github.com/Eschxr/space-git.git
cd space-git/frontend
pnpm install --frozen-lockfile
pnpm dev --port 3121Open New Worlds at the homepage. Use Start Demo
to walk through four-camera capture, a revision comparison, a 3D study, and an
animated office in the projector view. This simulated walkthrough runs in the
browser. The /world address opens the same workspace.
When a teammate pushes an update, stop the local server and run
git pull --ff-only, pnpm install --frozen-lockfile, and pnpm dev --port 3121
from the same directory. Git syncs the application code. Browser walkthrough
history stays in that browser, while real captures and approved revisions live
in the workstation's PostgreSQL and Silo stores.
Capture the same room twice. SpaceGit proposes what appeared, moved, or went missing from each view. Open a proposal to see the source, crop, and overlay. Accept the changes you can verify, then commit the ones you want to record. Each revision keeps the original evidence and the review decisions behind it.
| Workspace | What you can explore |
|---|---|
| Image history | Named spaces, four-view captures, camera-local changes, and approved revisions you can compare. |
| New Worlds | Inspect a four-camera capture, compare spatial revisions, and explore an animated office. |
| Reconstruct and Project | Inspect a model or point cloud and present a scene on a second display. The Camera rig viewer can load per-view PointDiT PLYs from a configured WSL environment. |
flowchart LR
A["Four camera views"] --> B["Immutable capture"]
B --> C["YOLOE + DINOv2"]
C --> D["Proposed changes"]
D --> E["Human review"]
E --> F["Approved revision"]
Upload three side views and one overhead view, or import a complete saved rig session. YOLOE segments objects and DINOv2 supplies appearance features for matching observations from the same camera. Ambiguous matches stay in review. Tracks belong to a space and a camera, and changes are measured in image space.
Use this setup for real image review and optional camera capture. The integrated frontend uses port 3101.
Use Git, Docker Desktop/Compose, Node.js 24 and pnpm 11.25.0. Camera control also needs a separate Python 3.12 environment. The Docker API/vision worker use Python 3.11; the pinned durable RQ worker requires Linux.
| Component | Local address |
|---|---|
| New Worlds home | http://127.0.0.1:3101 |
| Image history | http://127.0.0.1:3101/image-history |
| Capture / 3D / Project | http://127.0.0.1:3101/world |
| Scene Tracker backend API | http://127.0.0.1:8001 |
| Camera edge | http://127.0.0.1:8002 |
| PostgreSQL / Redis | Loopback ports 5432 / 6379 |
| Silo objects / console | Loopback ports 9000 / 9001 |
Run these commands in PowerShell from the repository root with Docker Desktop running.
# First setup only: retain any existing operator configuration.
if (-not (Test-Path .env)) { Copy-Item .env.example .env }
docker compose --env-file .env -f infra/compose.yaml --profile application up -d --build
cd frontend
pnpm install --frozen-lockfile
if (-not (Test-Path apps/web/.env.local)) {
Copy-Item apps/web/.env.local.example apps/web/.env.local
}
pnpm dev --port 3101This starts the image-file workflow without requiring cameras. The Compose profile runs additive migrations, API, worker, PostgreSQL, Redis and private Silo storage. The first vision image build can take several minutes and multiple gigabytes.
The example .env selects fake fixture extraction. For real inference, follow
model setup, configure the verified local YOLOE/DINOv2 assets
and hashes, and select VISION_PROVIDER=real before starting the containers.
Model weights are not downloaded by the image build or tests. Real mode fails
explicitly if its assets are unavailable. To verify an already configured runtime:
docker compose --env-file .env -f infra/compose.yaml exec api scene-tracker model-readiness --runtimeUse the full startup and operator guide for camera
environment installation, Linux instructions, model mounts and troubleshooting.
After installing the camera dependencies, the Windows launcher is run from
frontend/ instead of the standalone pnpm dev command:
.\scripts\start.ps1 -Mode live -Port 3101 -EdgePort 8002The merged Windows launcher also enables the WSL PointDiT workflow, using its
configured Ubuntu user wilson and fixed image/output paths. Capture export
replaces the latest export folder; saved edge session JPEGs remain retained.
Review the frontend README before using that generation path.
Stop existing instances on the selected ports before launching replacements.
- Open Image history and choose or create a saved space.
- Upload three side views and one overhead view, or import a saved complete 4/4 live camera session. Original bytes, hashes and capture metadata are retained.
- Click Run inference and inspect the run's provider, status and provenance.
- Review each proposal using the source image, crop, or overlay. Download individual masks as COCO compressed RLE JSON.
- Record decisions, check Include in revision on accepted changes, enter a message and click Commit selected changes.
- Open an approved revision to compare states or inspect accepted track history.
Rejected and unselected observations do not automatically replace approved state. Stale baselines require reprocessing; inspection-only runs cannot be committed. Use Refresh evidence to renew expired signed links. After an upload timeout, refresh the capture list before repeating the upload.
| Document | Contents |
|---|---|
| Workflow and system diagrams | Deployment, image review pipeline, reconstruction and projection boundaries |
| Integration guide | Service startup, settings, operator steps and endpoint mapping |
| Devpost submission | Project story, pitch, technology tags, team details and organizer answers |
| Media and demo copy | Gallery captions, narration, short presentation and judge Q&A |
| Prize assessment | New Worlds positioning and conditional DEV Writing Challenge entry |
| DEV article draft | Unpublished technical article for team review |
| Model setup | Local weights, hashes and pinned source requirements |
| API reference | Capture, processing, review, revision and evidence contracts |
| Implementation record | Completed work, validation results and limitations |
Scene Tracker backend Phases 6–8 and its frontend image-history connection are implemented. Recorded validation includes 94 backend offline tests, 27 Linux service tests, nine client tests and browser checks. Following the frontend merge, all 36 edge tests passed. A real YOLOE/DINOv2 browser smoke processed four example photos into 69 observations and 69 proposals, left pending human review.
That smoke verifies execution, not model accuracy or controlled fixed-rig tracking. Synthetic fixtures and the simulated office remain explicitly separate. The WSL PointDiT wrapper/viewer is implemented independently; the recorded tests do not certify its real generation quality or physical projector calibration.
Keep .env private and use operator-specific credentials. Services bind to
loopback; Scene Tracker authentication remains outside the local MVP. Silo objects
are private, with short-lived signed browser URLs. Data lives in persistent named
volumes; use docker compose --env-file .env -f infra/compose.yaml stop to stop
services while retaining it. Storage decision.
With the three services already running and backend CPU dependencies installed:
# From the repository root; output directory MUST be new:
scripts/smoke-fake.sh /tmp/scene-tracker-fake-demoThe script runs HTTP ingestion, four-view fake extraction, tracks, move/new proposals,
review/commit, revision diff, before/after manifests and synthetic highlighted PLY
export. It also checks reprocessing and worker failure preserve history/originals.
It uses isolated test SQL schemas and S3 buckets, cleans those afterward, and does not
start/stop containers or alter the development schema. Override TEST_DATABASE_URL,
TEST_S3_ENDPOINT, TEST_S3_ACCESS_KEY, TEST_S3_SECRET_KEY, TEST_REDIS_URL if your
local credentials/ports differ from .env.example.
Exports include summary.html, inspection.zip, diff.json, summary.json, eight
before/after manifests and per-camera highlighted/source-colored synthetic PLYs with
mapping sidecars. Exported signed URLs expire and test buckets are cleaned; the local
report/bundle/PLY evidence remains inspectable. Synthetic XYZ is a flat grid, not
PointDiT reconstruction. Fake outputs validate contracts, not pretrained quality.
For a persistent manual fake API walkthrough:
cd backend
uv run --no-group vision scene-tracker synthetic-capture --output ../local-data/capture-a
uv run --no-group vision scene-tracker synthetic-capture --output ../local-data/capture-b --movedUpload those files and follow API examples. Explicit PNG fixture metadata supplies boxes and appearance seeds; pixels do not drive fake inference. Images without metadata produce zero fake detections and a warning.
cd backend
uv sync --locked --no-group vision
uv run --no-group vision ruff check . ../scripts
uv run --no-group vision ruff format --check . ../scripts
uv run --no-group vision pytest -qService tests require the existing containers and use isolated schemas/buckets/queues. From the repository root, using example credentials:
export TEST_DATABASE_URL='postgresql+psycopg://scene_tracker:local-dev-change-me@localhost:5432/scene_tracker'
export TEST_S3_ENDPOINT=localhost:9000
export TEST_S3_ACCESS_KEY=scene_tracker
export TEST_S3_SECRET_KEY=local-dev-change-me
export TEST_REDIS_URL=redis://localhost:6379/0
uv run --project backend --no-group vision pytest -q -m integration backend/tests/integrationOrdinary tests never install/download model weights. Service tests are excluded by default and fail explicitly when their services/configuration are absent. An optional manual real smoke and runtime limitations are documented in model setup.
Architecture, matching/review rules, data model, highlight contract, retired pipeline.
reconstruction/ remains an independent Python 3.12 uv project and a future
Scene Tracker Phase 9 worker. It is a scaffold for reconstruction jobs, immutable
artifacts and source-pixel correspondence. The separate frontend WSL PointDiT
wrapper does not implement that backend contract. Its checks are independent:
cd reconstruction
uv sync --locked
uv run ruff check .
uv run ruff format --check .
uv run pytest -qFuture outputs are one PLY per view, with explicit pixel-map transforms and independent camera coordinates. Capture/run discovery, auditable reviews, historical source images, accepted track history and endpoint comparisons are described in the image-history HTTP workflow. The frontend's implemented Image history adapter consumes the typed backend workflow/revision evidence contracts. Its metric scene/branch model and WSL camera-rig viewer remain independent. Source-aligned point-cloud highlights, dense point maps and immutable Scene Tracker reconstruction delivery remain Phase 9. An unordered PLY alone cannot supply the required pixel-to-point mapping; no verified fused scene or automatic cross-camera identity is implied.
The pinned RQ SpawnWorker uses POSIX process APIs. Run durable workers on Linux. The Windows host supports the API and standalone CPU model smoke. The full service suite, including the spawned worker, is validated in Linux containers.
