Spaces:
Sleeping
Sleeping
Remove CLAUDE.md
Browse files
CLAUDE.md
DELETED
|
@@ -1,128 +0,0 @@
|
|
| 1 |
-
# CellTriage — Project Rules
|
| 2 |
-
|
| 3 |
-
Cost-optimal, risk-controlled end-of-line QC for lithium-ion cells.
|
| 4 |
-
Predict cycle life from N early cycles, attach a distribution-free confidence
|
| 5 |
-
statement, convert it into a grade assignment (A/B/C) or a "keep testing"
|
| 6 |
-
verdict under an explicit cost matrix, and allocate scarce aging-chamber
|
| 7 |
-
capacity to the cells where more testing is worth the most.
|
| 8 |
-
|
| 9 |
-
**Full build plan: `docs/BUILD_PLAN.md`. Read it before starting any phase.**
|
| 10 |
-
|
| 11 |
-
Audience: reviewers for an InnoCORE Global Postdoctoral Fellowship
|
| 12 |
-
(KAIST / GIST / DGIST / UNIST). Write at senior research engineer standard.
|
| 13 |
-
|
| 14 |
-
---
|
| 15 |
-
|
| 16 |
-
## Hard constraints — never violate
|
| 17 |
-
|
| 18 |
-
**No neural networks.** Classical supervised ML only: regularized linear
|
| 19 |
-
models, gradient boosting (LightGBM / XGBoost / CatBoost), random forests,
|
| 20 |
-
stacked ensembles, quantile regression. This is a methodological choice —
|
| 21 |
-
the seminal result in this field used a regularized linear model, feature
|
| 22 |
-
engineering is the bottleneck, and TreeSHAP gives exact attributions that a
|
| 23 |
-
process engineer can audit.
|
| 24 |
-
|
| 25 |
-
**No future-cycle leakage.** For budget N, features may use ONLY cycles 1..N.
|
| 26 |
-
`src/features/builder.py` slices to `cycle <= max_cycle` once at the top and
|
| 27 |
-
passes only that slice downstream. No feature function ever receives the full
|
| 28 |
-
frame. This is enforced by `tests/test_leakage.py`, which must fail if
|
| 29 |
-
shuffling cycles > N changes any feature value.
|
| 30 |
-
|
| 31 |
-
**No cell appears in two splits.** All splitting is grouped by physical cell.
|
| 32 |
-
Assert zero overlap after every split operation.
|
| 33 |
-
|
| 34 |
-
**Feature selection and preprocessing fit inside CV folds only**, as steps in
|
| 35 |
-
an sklearn Pipeline. Never fit on the full dataset. n is ~124-169 cells;
|
| 36 |
-
selection on all data is the fastest way to produce a fake result.
|
| 37 |
-
|
| 38 |
-
---
|
| 39 |
-
|
| 40 |
-
## Reporting rules
|
| 41 |
-
|
| 42 |
-
**Every headline number is mean ± std across outer CV folds, with a bootstrap
|
| 43 |
-
95% CI.** A single test-set number is grounds for rejection. With n ≈ 124-169
|
| 44 |
-
cells, fold variance is the dominant source of uncertainty and hiding it is
|
| 45 |
-
misleading.
|
| 46 |
-
|
| 47 |
-
**Report two metric families everywhere:**
|
| 48 |
-
- Statistical: RMSE / MAE (log scale), MAPE (raw scale), Spearman rank corr
|
| 49 |
-
- Manufacturing: escape rate, overkill rate, yield, chamber-cycles per cell,
|
| 50 |
-
expected cost per cell
|
| 51 |
-
|
| 52 |
-
The README headline is a **QC scorecard**, not an accuracy table. The thesis
|
| 53 |
-
of this project is that accuracy is the wrong objective, so the reporting must
|
| 54 |
-
reflect that.
|
| 55 |
-
|
| 56 |
-
**Every number in the README must be traceable to a generated file in
|
| 57 |
-
`outputs/reports/`.** No hand-typed results.
|
| 58 |
-
|
| 59 |
-
---
|
| 60 |
-
|
| 61 |
-
## Anti-patterns that fail review
|
| 62 |
-
|
| 63 |
-
- Reporting a single number without fold variance
|
| 64 |
-
- Tuning hyperparameters on the test set
|
| 65 |
-
- Random splits that put the same cell on both sides
|
| 66 |
-
- Silently dropping cells — always log the cell ID and the reason
|
| 67 |
-
- Claiming novelty for something the literature established
|
| 68 |
-
- Forcing a clean story: a negative result honestly reported is worth more
|
| 69 |
-
than a suspiciously tidy one
|
| 70 |
-
- Using the held-out cell's future cycles to decide whether to test it
|
| 71 |
-
further — that is leakage disguised as a policy
|
| 72 |
-
|
| 73 |
-
---
|
| 74 |
-
|
| 75 |
-
## Novelty positioning
|
| 76 |
-
|
| 77 |
-
Do NOT write that this is the first work to predict battery cycle life early.
|
| 78 |
-
It is not. Early prediction is established (Severson et al. 2019; Attia et al.
|
| 79 |
-
2020) and the literature itself identifies post-manufacture screening as its
|
| 80 |
-
natural application. Uncertainty quantification for battery prognostics also
|
| 81 |
-
exists.
|
| 82 |
-
|
| 83 |
-
The defensible claim is the **integration into an operational QC decision
|
| 84 |
-
system**: grading with a conformal guarantee on escape rate, an explicit
|
| 85 |
-
diagnostic-budget cost frontier, capacity-constrained allocation of aging-
|
| 86 |
-
chamber time, evaluation under process-recipe shift, and mechanistic
|
| 87 |
-
validation of attributions so scrap decisions are auditable.
|
| 88 |
-
|
| 89 |
-
Write related work so a specialist thinks "this person knows the field," not
|
| 90 |
-
"this person thinks they invented it."
|
| 91 |
-
|
| 92 |
-
---
|
| 93 |
-
|
| 94 |
-
## Two gates that block everything downstream
|
| 95 |
-
|
| 96 |
-
**Gate 1 (Phase 3).** The `log10(var(ΔQ(V)))` vs `log10(cycle life)`
|
| 97 |
-
relationship must reproduce with a strong R². If it does not, the parser is
|
| 98 |
-
wrong and every downstream number is fiction. Stop and debug there.
|
| 99 |
-
|
| 100 |
-
**Gate 2 (Phase 6).** Reproduce Severson's elastic-net result at budget 100
|
| 101 |
-
(~9.1% mean percent error) before building anything on top. This is the
|
| 102 |
-
credibility anchor. If you cannot, document exactly why — a well-explained
|
| 103 |
-
gap is acceptable, a skipped check is not.
|
| 104 |
-
|
| 105 |
-
---
|
| 106 |
-
|
| 107 |
-
## Engineering conventions
|
| 108 |
-
|
| 109 |
-
- Every module importable, with a `run_*()` entry point and a `__main__` block
|
| 110 |
-
- Type hints and docstrings stating WHAT and WHY
|
| 111 |
-
- Non-obvious modelling decisions carry a comment citing the physical,
|
| 112 |
-
statistical, or manufacturing reason
|
| 113 |
-
- No magic numbers — everything in `configs/*.yaml`
|
| 114 |
-
- Structured logging to `outputs/logs/<module>.log` via the shared logger
|
| 115 |
-
- Seed everything; record package versions with every artifact
|
| 116 |
-
- If uncertain about a scientific claim, say so in the comment rather than
|
| 117 |
-
asserting it
|
| 118 |
-
|
| 119 |
-
---
|
| 120 |
-
|
| 121 |
-
## Workflow
|
| 122 |
-
|
| 123 |
-
Work phase by phase. **After completing a phase, print a summary block and
|
| 124 |
-
stop for review. Do not begin the next phase until told to proceed.**
|
| 125 |
-
|
| 126 |
-
Phase definition of done = the acceptance criteria listed for that phase in
|
| 127 |
-
`docs/BUILD_PLAN.md`. Print the criteria and your evidence for each before
|
| 128 |
-
declaring a phase complete.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|