What does Attention Residue and Sprint Scheduling conclude, in numbers, about “Closing the Loop: Standard Operating Templates and Checker Specification”?

Answer: Chapter 8 gives standard operating templates, the checker specification of the distilled Switch-Residue Budget and Sprint Scheduler, and a preregistered test whose main hypothesis needs 250 switches, about 6.2 weeks. Marked boxes separate published evidence, runnable Python calculations (20 programs), classical sources and the author's hypotheses.

Scope of the numbers: Parameters are illustrative and all calculations are generated by the book's programs. This is not medical, sleep, nutritional or mental-health advice, and it claims no health effect.

中文版

Data table

The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 250, 6.2

H1 switches per arm 125; total 250; weeks at 40 per week 6.2
H2 decisions per group 199; total 398; weeks at 15 per week 26.5
SPRT bounds on the log-likelihood ratio: lower -1.558 upper 2.773
per-switch LLR increment, Poisson y errors (closed arm):
  y = 0: +0.3600
  y = 1: +0.0033
  y = 2: -0.3533
  y = 3: -0.7100
refutation line: H1 fails if the 95 % interval of RR includes 0.95 or more
Show the full program
# Chapter 8. p82: sample sizes and stopping bounds for the pre-registration
# H1 (primary): written closure lowers first-ten-minute errors. Exits are
#   randomised per switch (coin flip), outcome Poisson, mu0 = 1.2,
#   target rate ratio 0.70; two-sided alpha 0.05, power 0.80.
#   n per arm = (z_a + z_b)^2 (1/mu1 + 1/mu0) / (ln RR)^2
# H2 (secondary): decisions taken inside the high window are reversed on
#   review less often (0.10 vs 0.20); n per group by the two-proportion
#   normal formula. Decisions are assigned to windows by the scheduler,
#   so H2 is observational unless decision times are randomised.
# Wald SPRT for H1 (weekly review): continue while
#   ln(beta / (1 - alpha)) < LLR < ln((1 - beta) / alpha).
import math
from statistics import NormalDist

ND = NormalDist()
ZA, ZB = ND.inv_cdf(0.975), ND.inv_cdf(0.80)
SW_WEEK, DEC_WEEK = 40, 15          # illustrative logging rates

mu0, rr = 1.2, 0.70
mu1 = mu0 * rr
n1 = math.ceil((ZA + ZB) ** 2 * (1.0 / mu1 + 1.0 / mu0) / math.log(rr) ** 2)
print("H1 switches per arm {:,}; total {:,}; weeks at {} per week {:.1f}"
      .format(n1, 2 * n1, SW_WEEK, 2 * n1 / SW_WEEK))
p1, p2 = 0.10, 0.20
pb = (p1 + p2) / 2.0
num = (ZA * math.sqrt(2.0 * pb * (1.0 - pb))
       + ZB * math.sqrt(p1 * (1.0 - p1) + p2 * (1.0 - p2))) ** 2
n2 = math.ceil(num / (p1 - p2) ** 2)
print("H2 decisions per group {:,}; total {:,}; weeks at {} per week {:.1f}"
      .format(n2, 2 * n2, DEC_WEEK, 2 * n2 / DEC_WEEK))
alpha, beta = 0.05, 0.20
upper = math.log((1.0 - beta) / alpha)
lower = math.log(beta / (1.0 - alpha))
print("SPRT bounds on the log-likelihood ratio: lower {:.3f} upper {:.3f}"
      .format(lower, upper))
print("per-switch LLR increment, Poisson y errors (closed arm):")
for y in range(0, 4):
    inc = y * math.log(rr) - (mu1 - mu0)
    print("  y = {}: {:+.4f}".format(y, inc))
print("refutation line: H1 fails if the 95 % interval of RR includes 0.95"
      " or more")

Single source and citation

Fan, Y. (2026). Eliminating Attention Residue in Multi-Arena Command, Ultradian Energy Pacing and Rapid Context-Switching Protocols (Version 1.0.0), Chapter 8: Closing the Loop: Standard Operating Templates and Checker Specification. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-362 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026362,
  author    = {Fan, Yafu},
  title     = {Eliminating Attention Residue in Multi-Arena Command, Ultradian Energy Pacing and Rapid Context-Switching Protocols},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book