You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example document — replace with the design of a real component. This mirrors
documentation/templates/design.md: behaviour only, no code blocks; diagrams must
be Mermaid or ASCII art.
Responsibilities
Is responsible for:
Maintaining a running integer total as values are added.
Is NOT responsible for:
Persistence, concurrency, or input parsing (callers handle those).
Component Details
Part A — Accumulation
Holds a single integer total. Adding a value increases the total; resetting returns
the total to zero. The operation is deterministic and allocation-free.
Interfaces
Provided
Interface
Purpose
Contract
Accumulator
Add / read / reset a total
Total reflects the sum of inputs since the last reset