FA-12332 / Battery state accounting / Member archive
Replacement inherits the previous cell wear counter · case 02
A slot stores wear independently of the identity occupying it.
Case contract
Given current identity and wear, incoming identity, and new discharge amount, return that slot wear: preserve for same identity, reset for different identity, then add discharge.
Why this case matters
An explicit synthetic battery bookkeeping model isolates this state-accounting error; it is not an engineering prediction or safety procedure.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| new cell | 22 | 2 | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗