Technical Whitepaper & Cognitive Heuristics

Working Memory Capacity Regulation & Deterministic Context Offloading

Mata Panda Studio • Scandinavian Cognitive Engineering • App: Stuck (com.mtpnda.stuck)
"The human working memory is not a bottomless hard drive. It is a strictly resource-bounded RAM buffer with metabolic costs for every ungrounded thought."

1. The Working Memory Bottleneck

Contemporary task management paradigms suffer from a foundational flaw: they treat human attentional capacity as infinite. Digital to-do applications incentivize users to accumulate hundreds of pending tasks into a single backlog. However, human neurobiology actively resists this model.

In 1956, George Miller established that human immediate memory span accommodates approximately ( 7 pm 2 ) discrete items. Later empirical evaluations by Nelson Cowan (2001) demonstrated that when chunking mechanisms are controlled, the true focal capacity of the human working memory is constrained to ( 4 pm 1 ) active units.

When open contexts exceed this focal capacity, the central executive incurs constant cognitive overhead to prevent trace decay. In accordance with the Zeigarnik Effect (1927), unfinished tasks continuously trigger involuntary attentional intrusion, creating sustained cognitive fatigue and perceived mental gridlock ("feeling stuck").

2. Mathematical Formulations of Cognitive Saturation

Stuck formalizes cognitive load through a continuous capacity ratio, preventing attentional bankruptcy before it compromises executive function.

Formula 2.1 — Cognitive Load Index ((\mathcal{C}_{load}))

Let (N_{active}) represent the count of contexts currently staged in the "In Your Head" partition. Let (K_{limit}) represent the user's calibrated cognitive capacity (default (K_{limit} = 3)). Let (w_i) be the cognitive weight of task (i), and (\tau_i) be its temporal persistence index:

\[ \mathcal{C}_{load} = \sum_{i=1}^{N_{active}} \frac{w_i \cdot \tau_i}{K_{limit}} \]

When (\mathcal{C}_{load} \le 1.0), the cognitive state is categorized as Calm Equilibrium. When (\mathcal{C}_{load} > 1.0), the state transitions irreversibly to Cognitive Overload, prompting immediate externalization via the Alert Coral visual cue.

Formula 2.2 — Context Swapping Penalty ((\mathcal{P}_{swap}))

When an individual switches between (N_{open}) ungrounded mental loops, attentional switching cost scales logarithmically:

\[ \mathcal{P}_{swap} = \alpha \cdot \log_2(N_{open}) + \beta \cdot (1 - e^{-\lambda \cdot \Delta t}) \]

By capping (N_{active} le 3) and scheduling excess contexts to Planned timeline timeboxes, Stuck bounds the swapping penalty (mathcal{P}_{swap}) to a deterministic biological minimum.

3. The 4-Stage Deterministic State Machine

Stuck replaces unbounded task graphs with a 4-stage deterministic finite automaton (DFA). A context cannot enter working memory without passing the capacity gate:

stateDiagram-v2 direction LR [*] --> InHead: Capture Thought (Today) [*] --> Planned: Schedule Timebox InHead --> Planned: Timebox onto Schedule Planned --> Overdue: Time Expired Without Closure Overdue --> Planned: Reschedule Timebox Overdue --> Closed: Direct Resolution InHead --> Closed: Mark Complete Planned --> Closed: Mark Complete Closed --> [*]: Preserved Metric

The deterministic transitions enforce two key axioms:

  • Axiom of Conservation: A new context cannot enter InHead without either closing an existing context, planning an existing context onto the timeline, or intentionally increasing (K_{limit}).
  • Axiom of Safe Scheduling: Planning a context onto the timeline guarantees complete storage preservation, assuring the nervous system that no data will be lost.

4. Dual-Native Zero-Cloud Architecture

Because thoughts and mental loops represent sensitive reflections of self, Stuck enforces strict zero-cloud data isolation:

flowchart TD subgraph Apple["Apple Platform (iOS 17+)"] UI_iOS["SwiftUI 6.0 Declarative UI"] Auth_iOS["LocalAuthentication Face ID"] Store_iOS["UserDefaults JSON Sandbox"] end subgraph Android["Android Platform (API 26+)"] UI_And["Jetpack Compose 2.0 Material 3"] Auth_And["androidx.biometric Fingerprint"] Store_And["Encrypted SharedPreferences"] end ZeroCloud["Zero Remote Servers • Zero Telemetry • Zero Network Telemetry"] UI_iOS --> Store_iOS UI_And --> Store_And Auth_iOS -.-> UI_iOS Auth_And -.-> UI_And Store_iOS --- ZeroCloud Store_And --- ZeroCloud

5. Conclusion

Stuck is not a task manager designed to make you do more things faster. It is an attentional governor engineered to restore clarity when mental bandwidth is exhausted. Through rigid adherence to biological limits and zero-cloud privacy, Stuck provides a calm digital companion for the human mind.

Test the Interactive Simulator