Local Level Lab

Airborne measurements. Open methods.

Fit-adjusted error-scale control implementation plan

For agentic workers: Implement this plan in the current workspace using the shared study library. Do not delegate, commit or push without the separately required user instruction.

Goal: Check whether full nonlinear fitting under the two supplied error laws can itself produce a training cost as small as the ESA value of 7.15.

Architecture: Generate two independent known-answer aircraft recordings at the ESA development cadence. Fit both declared IMU error laws to each same recording using the existing native training path. Compare the saved whitened costs and complete local Jacobians with the same saved-only calculation used for the ESA recording. This is a software diagnostic, not aircraft calibration.

Tech stack: Python, NumPy, existing lll.studies lifecycle, shared native aircraft model, analysis/tests/run_numerical.py.

Spec: Prediction-error requirements and the observed local-fit result.

Fixed scope and limits

Ruling: The shared 900-second generator supports its declared climb height profile, not a level-height profile. Use that known-answer path for this software control. The cost is that this two-case result cannot be called a level-flight calibration. - Save both 26-column fitted Jacobians, whitened residuals, all numerical failures, source and environment hashes, charged work and complete seed identity. No NASA or ESA observed values or protected flight groups enter generation or fitting. The ESA result is read only during final comparison. - Maximum 200 fit evaluations per candidate, two workers of one numerical thread each, at most 1.4 million native calls and 90 billion packet visits per generated recording, and a two-hour study wall cap. Charge work before execution. Preserve a failed/unfinished result at the cap; do not extend the active allowance. These are ceilings, not expected usage. - Before launching, run a short frozen-worker preflight and a reboot recovery test proving sealed tasks are reused and only unfinished work is scheduled. The resume command must verify source, inputs, environment, leases and charges.

Tasks

1. Generated input and matching check

Files: Add analysis/lll/esa_fit_adjusted_control_study.py and analysis/tests/test_esa_fit_adjusted_control_study.py.

2. Finite lifecycle and recovery

Files: Add analysis/lll/esa_fit_adjusted_control_recovery.py and focused tests in analysis/tests/test_esa_fit_adjusted_control_recovery.py.

3. Saved-only comparison

Files: Add analysis/lll/esa_fit_adjusted_control_report.py, its focused test and docs/prediction-observed-development/FIT_ADJUSTED_CONTROL_RESULT.md.

Review focus

The tests must also cover nonfinite generator output, a receiver report whose timestamp falls outside the generated IMU support, differing two-law input hashes, a bound-active or numerically unfinished fit, and a completed task that cannot be rerun after reboot.