What problem does it solve? Backpropagation through time (BPTT) stores the full unrolled sequence graph, so training recurrent or spiking neural networks on long sequences runs out of memory. BrainTrace replaces that sequence-length-dependent graph with eligibility traces accumulated during the forward pass, making memory constant in sequence length. ## Core Features & Use Cases - ETP-aware layers and operators: Build models with braintrace.nn layers (MiniGRU, Linear, Conv, LoRA, sparse) whose parameters automatically participate in eligibility-trace propagation. - Estimator selection and compilation: Choose between parameter-shaped D_RTRL traces and input/output-factorized pp_prop traces, then compile once with braintrace.compile() and inspect the resulting graph via learner.report. - Online sequence training: Drive sequences with etrace_grad() and etrace_evolve(), reset recurrent and eligibility State together at sequence boundaries, and update parameters with standard optimizers. - Use Case: Train a recurrent spiking neural network on long spike sequences where BPTT exceeds GPU memory, using pp_prop with a mapped batch of LIF neurons and a leaky readout. ## Quick Start Use the braintrace skill to compile a MiniGRU sequence model with D_RTRL and train it online on my long input sequence without running out of memory.