Each entry lists what was run, what passed, and where the raw output lives. Every number below comes
from a file in benchmarks/results/ or from a test in this repository. Run the same checks locally with
python scripts/check.py (the single definition of CI); live-stack tests are listed per gate.
docs/ENVIRONMENT.md(host, versions, constraints);docs/adr/0001-0005.- Findings that changed the design: Docker daemon off, 6.4 GiB free RAM at audit time, MinIO Windows binary gone (HTTP 410, replaced by SeaweedFS), pycolmap PyPI wheel has no CUDA, ETH3D landing page unreliable but the data host works.
python scripts/check.py # ruff, mypy (win32/linux/darwin), pytest (no downloads)
python -m pytest -m integration # real ETH3D terrace -> real COLMAP -> scored against GT poses
vision reconstruct --input <terrace images> --output runs/terrace --ground-truth <images.txt>
Reconstruction (CPU): 23/23 images registered, 5,434 points, 0.845 px mean reprojection, GT camera
RMSE 0.0240 over a 7.65 spread, 72.6 s. Raw files: benchmarks/results/gate1-terrace/. Images:
docs/assets/gate1/.
| Brief requirement | Test |
|---|---|
| nonempty COLMAP-derived PLY, poses, JSON metrics | test_real_reconstruction_terrace |
| typed diagnostic + nonzero exit on bad sets | test_cli_exit_code_is_typed_on_bad_input, test_bad_set_publishes_typed_failure_and_leaves_no_staging |
| unrelated images fail typed, not crash | test_noise_images_fail_with_typed_diagnostic_not_crash |
| engine crash, budget kill, engine-reported failure map to typed diagnostics | tests/test_engine_result.py |
| process-tree kill, RSS/disk/time budgets | tests/test_supervisor.py |
| path escape / corrupt / oversize input | tests/test_qc.py |
| atomic artifact publication | test_publish_atomic_refuses_clobber_without_force |
| manifest checksums match files | test_real_reconstruction_terrace |
Stack: Postgres, SeaweedFS (S3), Temporal, the Fastify API, the Python worker and the Next.js app, all
native (scripts/dev.ps1 up). Tests: tests/e2e/test_e2e.py, tests/e2e/test_ui.py (Playwright,
including an axe accessibility scan). Raw output: benchmarks/results/gate2-e2e/.
POST /v1/datasets/{id}/jobsanswers 202 in 45.6 ms; the terrace job then runs QUEUED, PREPROCESSING (0.5 s), RECONSTRUCTING (24.8 s), EVALUATING (84.6 s), COMPLETED (87.1 s) (completed_job.json).- A second job queues behind the single heavy slot: it waited 89.6 s and at most one job was active
(
queueing.json). - A failing dataset produces a typed diagnostic with advice, shown in the UI (
failed_job.json,docs/assets/ui/08-job-failed-diagnostics.png). - Artifact links are presigned, tenant-prefixed, and checksums match what the worker recorded; a second tenant can neither read the job nor use its links.
- Presigned upload URLs against the real store (
tests/e2e/test_presign.py): a valid PUT succeeds; a tampered signature, a different key and a different content type are all rejected with 403. Expiry is not tested (fixed 15-minute TTL).
Tests: tests/e2e/test_resilience.py, tests/e2e/test_races.py, apps/api/test/*.
- Cancel: a running job reaches CANCELLED 6.1 s after the request and frees the slot (
cancel.json). - Worker killed mid-job: attempt 1 is recorded FAILED, attempt 2 runs on a new worker and the job
completes, 99.2 s after the kill (
worker_kill_retry.json; it re-runs the whole job). - API restarted mid-job: the job still completes, one attempt (
api_restart.json). - No scratch left behind after any of the above (
cleanup_check.json); a killed worker's orphaned scratch is swept by the next worker (tests/test_scratch.py). - Idempotency keys, per-tenant queue and storage quotas, tenant isolation, artifact-prefix guard and a
cleanup janitor have unit tests in
apps/api/test/. The OpenAPI document is checked for drift. - Races (found by the repository audit, then fixed): the queue limit holds under a simultaneous
burst, duplicate upload requests answer
DUPLICATEinstead of 500, and a storage failure while creating a job leaves no row behind and consumes no quota.apps/api/test/races.test.tsruns on PGlite;tests/e2e/test_races.pyrepeats the first two on the real Postgres. - Python and TypeScript contracts cannot drift silently:
services/vision-worker/tests/test_contract_sync.pycompares the diagnostic codes and the config keys.
Not verified: the Docker Compose files in infra/ have never been executed on this machine.
Plan written before any run (docs/EXPERIMENT_PLAN.md); results and the honest negative outcome in
docs/EXPERIMENTS.md; raw runs in benchmarks/results/gate4/ (runs.jsonl, runs_posthoc.jsonl,
summary.json). The quality-aware controller did not meet its main hypothesis (H1 not supported);
the overhead hypothesis H2 was supported. API load (api_load.json): closed-loop HTTP concurrency with
and without a reconstruction running, no errors at 1, 8 and 32 virtual users; this is not
reconstruction throughput.
- Done: dense MVS through the COLMAP 4.2.1 CUDA binary as an optional stage with a typed fallback.
Latest platform run (
benchmarks/results/gate5/dense_job.json, through the PXLD browser format): dense stage 355.3 s, 248,468 points, completed in 413 s. The earlier run was 343.9 s and 249,005 points; a standalone probe took longer (773 s) for a similar cloud and the 2x spread is unexplained (docs/PERFORMANCE.md). Viewer toggle and screenshots:docs/assets/ui/09-dense-viewer.png,10-dense-job.png. Test:tests/e2e/test_dense.py. - Multi-resolution viewer (done, verified live on sparse and dense clouds): the worker writes every
point in a coarse-to-fine PXLD file and the viewer streams it, draws a coarse prefix while the
camera moves and the full cloud once it stops (
docs/ARCHITECTURE.md, "Point-cloud streaming"). Tested by encoder property tests, a golden file shared by the Python encoder and the TypeScript decoder, decoder tests, the browser journey (tests/e2e/test_ui.pyasserts levels, load completion and that every point arrived) and the real GPU job (tests/e2e/test_dense.pychecks the file header and size against the job's point count). Measured on the 248,468-point cloud in headless Chromium with software WebGL: first level at 106 ms, all points at 147 ms, 125,496 points drawn while orbiting and all 248,468 at rest (benchmarks/results/gate5/viewer_lod.json). This is WebGL multi-resolution streaming, not WebGPU. "Every point" holds up to the encoder cap of 8,000,000 points per file and the viewer budget of 3,000,000 points drawn; beyond those the finest points are dropped. - Dynamic-object masking (done, honest null result): the pipeline takes per-image masks
(
--masks), a test shows COLMAP honours them, and the plan indocs/EXPERIMENT_MASKING.mdwas committed before any masked run. On TUMwalking_xyz(86 frames, real people, motion-capture ground truth, 3 seeds per arm, DETR person masks) masking made no measurable difference to camera accuracy (1.43 cm both arms, 0.85% of the path) or to registration (all images in both arms). It cut points by 5% and SfM time by 20% (15 s), but the CPU segmentation cost 493 s, so it is not worth it on this sequence. The unmasked baseline was already at the ceiling, one sequence only; raw rows inbenchmarks/results/masking/. - Found while verifying: the audit hardening (Gate 3 section) had broken phase transitions for real
jobs (every job stayed in PREPROCESSING). Unit tests and CI did not catch it because they drove
phases with a different event type than the worker sends; the live end-to-end tests did, and the
fix has a test on both sides of the contract (commit
bd011f9).