FA-10403 / Caching / Member archive
Replacing an entry double-counts its existing cache weight · case 03
Replacing an entry double-counts its existing cache weight.
Case contract
Return total cache weight after inserting or replacing key with nonnegative weight in a unique key-to-weight mapping.
Why this case matters
A deterministic cache state transformation. Inputs are copied or treated as immutable; no remote storage, real clock, or concurrent interleaving is simulated.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1 | 13 | 9 | 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 ↗