feat: establish ESDP-light contracts and feasibility evidence - #6
Draft
jimmlucas wants to merge 8 commits into
Draft
feat: establish ESDP-light contracts and feasibility evidence#6jimmlucas wants to merge 8 commits into
jimmlucas wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
esdp light-observeandesdp light-historycommandsWhy
ESDP-light aims to decide whether another polishing round is useful without reproducing expensive BUSCO/QV analysis during inference. That requires explicit metric provenance, causal temporal features, a defensible stopping endpoint, and validation grouped by biological sample.
Observation and history generation are operational. Adaptive stopping remains deliberately unavailable until the scientific release gates are satisfied.
Scientific evidence
All studies use only the 32 frozen development samples (127 complete R1-R5 trajectories). The nine-sample test set remains sealed.
Three-class feasibility
At the predeclared 0.60 threshold, light core achieved 0.345 balanced accuracy, 7.9% unsafe stopping, and 0.291 rounds saved. This rejected a release model and motivated a direct sequential formulation.
Direct binary stopping
Predicting
CONTINUEversusSTOP_ELIGIBLEsignificantly reduced light-core absolute round error by 0.157 rounds. Balanced accuracy remained 0.406. A historical leaky control reached 0.844 but fell to 0.540 after causal reconstruction, demonstrating substantial temporal-leakage inflation.Future-material-benefit endpoint
The endpoint assigns R1/R2/R3/R4/R5 to 88/17/10/7/5 trajectories, compared with the legacy 3/20/22/11/71 distribution. Light core reaches 0.502 balanced accuracy and per-round ROC AUC of 0.685-0.761, showing real low-cost cross-sample signal. At threshold 0.70 it still has 14.2% unsafe stops and 12.6% QV/BUSCO failures while saving 3.024 rounds.
Measurement-validity gate
The audit finds that
qv = -10*log10(error_rate)exactly andassembly_error = abs(assembly_frac - 1); these pairs are redundant outcomes. All development trajectories use 116 BUSCO markers, so the >1-point threshold requires at least two markers. However, 12/127 trajectories show only a transient >1-point BUSCO gain, no technical repeatability can be estimated, and BUSCO version/lineage/date/mode/options are absent from the table.The versioned materiality contract therefore blocks model retraining, held-out testing,
light-decide, and adaptive nf-core/bacass stopping. Non-decision observation/history integration remains allowed.Scientific boundaries
Validation
NaNlight-observe R1/R2 -> light-historyexecutes successfully in DockerThe 30 full-suite warnings are existing FastAPI, Pydantic, and httpx deprecations unrelated to ESDP-light. This PR remains a draft pending a validated measurement/materiality contract and an acceptable asymmetric premature-stop safety gate.