Developer setup and tools
This is the technical setup guide. For the experiment itself, start with the README and methodology. Collecting a recording and validating a scientific result are separate tasks; see Validation.
Analysis
Python 3.11 or newer is supported. The lockfile records the Python 3.14 validation environment;
older supported interpreters need compatible dependency versions instead. These examples use
an existing virtual environment at ~/venv; do not install into system Python.
~/venv/bin/python -m pip install -r requirements-lock.txt -r website/requirements.txt -e analysis -e server
~/venv/bin/lll synth demo.zip --truth sphere_rotating
~/venv/bin/lll analyze demo.zip
~/venv/bin/lll collate . -o collated --include-synthetic
~/venv/bin/lll bench session.zip
env PYTHONPATH=analysis ~/venv/bin/python -m lll.studies test
The shared test runner restores archived fixtures and removes the verified expanded copies after testing, including when pytest fails. Tests with frozen process-wide peak-memory limits run first; otherwise memory used by unrelated earlier tests can make those limits fail. Historical source-bound tests check that changed checkout code cannot reuse an old qualification receipt. Reproduce the original passing calculation from its frozen source snapshot and environment.
Synthetic sessions are excluded from ordinary collation; the example explicitly enables them. Analysis produces a machine-readable result and an HTML report. Neither a software quality label nor a provisional significance value establishes validated scientific eligibility.
For new work use at most four numerical threads in total, shared across active jobs. One worker can use four threads, two workers can use two each, or four workers can use one each. Frozen studies retain their recorded settings, including earlier two-thread freezes. Reserve other active jobs' allocations before launching; completed recovery studies must not be restarted.
The guard rejects oversubscription and sets numerical-library limits before imports:
~/venv/bin/python analysis/tests/run_numerical.py -- ~/venv/bin/python -m pytest analysis/tests
Use --workers 2 for a target running two concurrent workers. While another job
uses two threads, include --reserved-threads 2. The guard validates the declared
allocation; it does not discover other jobs or set the target's worker count.
New launchers may instead call lll.compute_budget.environment before numerical
imports and freeze the validated allocation. Historical launch commands and limits
remain part of their original freezes. Expensive
simulation campaigns have their own explicit case and time budgets; a resource setting is not
permission to launch them. The historical evidence generator runs simulations and prints
Markdown for the technical evidence record; it is not a lightweight documentation check.
Upload server
~/venv/bin/lll-server --data /srv/lll serve --host 127.0.0.1 --port 8000
~/venv/bin/lll-server --data /srv/lll process
~/venv/bin/lll-server --data /srv/lll process --reprocess
~/venv/bin/lll-server --data /srv/lll list
~/venv/bin/lll-server --data /srv/lll collate
~/venv/bin/lll-server --data /srv/lll export dump/
Use a reverse proxy for TLS, upload limits and public deployment. Raw archives remain unchanged when generated reports are reprocessed. The curation guide describes release, hold and removal of uploads, instrument registration, bench certification, session approval, migration and deployment constraints.
Public endpoints are upload and index at /api/v1/sessions, session metadata at
/api/v1/sessions/{id}, original archives at /api/v1/sessions/{id}/raw, session reports at
/api/v1/sessions/{id}/report, and the pooled report at /report. An upload is released
automatically when process analyses it successfully. The index (limit up to 500, offset),
archives, reports and the pooled report cover released sessions only.
Configuration uses LLL_DATA, LLL_MAX_UPLOAD_MB (default 200), LLL_MAX_UNCOMPRESSED_MB
(default 2000), LLL_UPLOADS_PER_HOUR (default 20) and LLL_MAX_STORE_GB (default 50, all
stored uploads together). Per-IP limits use the address seen
by the application, so configure trusted forwarding correctly behind a proxy.
Android
Open android/ in Android Studio. The build uses Android SDK 35 and JDK 17 or 21. In this
workspace use the installed JDK under ~/.local/jdk21 and limit Gradle to two workers:
env JAVA_HOME="$HOME/.local/jdk21" ./android/gradlew --project-dir android --max-workers=2 assembleDebug
The default upload destination can be set with lll.serverUrl in android/gradle.properties.
Users can change it in Settings. Choose the Bluetooth variant and verify IMU settings before
recording. New participant sessions are stationary A/B recordings; aircraft identity,
placement and flight dashboards are removed from the active flow. Session schema 3 adds
a versioned stationary metadata object while retaining historical flight archives.
The legacy airline asset and its ODbL license remain for historical reproducibility.
Use lll analyze stationary.zip for the new preliminary signed-rate report. It skips
airborne fitting and estimates no latitude curve or calibrated significance. The existing
flight collator is not a stationary population estimator; do not apply its thresholds
or unit certificates to ground recordings. See the stationary method.
Documentation and reproducibility
The reproducibility guide describes shared study code,
verified evidence packs and restoration of historical source layouts. New studies
use the common lll.studies interface rather than copying another worker.
Historical lifecycle tests load a verified worker, its library sources and
declared prerequisites into an isolated test directory. They restore the current
module namespace afterward. Only these tests emulate the recorded environment;
production workers keep their source and environment checks. Public fixtures
can be read from verified packs into a temporary cache without local campaign
directories. Reference helpers in analysis/tests define accessors and do not
run study entrypoints.
Server tests need local socket communication for asyncio wakeups. Run them in an environment that permits it; blocking socket-pair sends can stall an in-process test client before an application request starts.
Closed six-case prediction comparisons use the shared prediction report helper. It verifies sealed inputs and results, keeps failed or unfinished cases visible, and separates numerical checks from the frozen prediction-width gate. Publication preserves the renderer and its hashes in the same evidence archive; it runs no integration or fitting and refuses an active or already published study.
The shared dependency resolver follows
declared project imports and quoted headers without scanning unrelated folders.
After a study closes, lll.studies.publication.archive_preparation can compact
its generated preparation copies. It checks them against the closed input hashes,
preserves exact archive aliases and refuses inputs outside that preparation directory.
The prefix-reuse design describes a possible reduction in repeated packet work. It remains unimplemented and must be compared against independent cold runs before use; current studies retain their frozen integration paths.
The public website build renders the root README and linked Markdown as a GitHub Pages site at locallevellab.com. Data downloads and source files remain on GitHub. Website dependencies and checks are separate from the frozen numerical environment; building the site runs no scientific analysis.
Public guides explain the method and current evidence without requiring raw research files. MATH, the technical methodology record, technical validation record, technical bench checklist and recording format preserve equations, thresholds, commands and data contracts. Contributing describes checks appropriate to a proposed change.
Historical aircraft route replay and design
The core-pipeline handoff documents the new optional research paths and frozen prospective inputs. Preparation writes specifications and cost bounds without running flights. Geometry search uses assumed axes and a finite uncertainty grid; empirical policies remain unavailable for observed-track replay. A campaign or nontrivial optimizer search requires a separate compute budget. Future work shares a four-thread total budget; historical freezes keep their original worker and numerical-thread settings.