What does Pocket Command of Container Fleets conclude, in numbers, about “Lost Links, Thin Links and Permissions: What the Phone May and May Not Do”?

Answer: Chapter 6 shows that backlog during a lost link is bounded, that 1,540 bytes a day keep the phone current, and that dangerous operations need a second confirmation, deny by default, carry leases and are written to a hash chain.

Scope of the numbers: Its parameters are illustrative; all calculations are generated by its programs; the book offers non-personalised operating guidance, promises no availability figure, and was written without connecting to any machine. Marked boxes separate published evidence, runnable Python calculations (22 programs), classical sources and the author's hypotheses.

中文版

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: 1540

full board, plain120,080 bytes/day
full board, zlib39,343 bytes/day
state changes, zlib1,540 bytes/day
one exception push51 bytes
30 days of changes46,200 bytes
compression ratio full 0.328
changes vs plain board 0.0128
Show the full program
# Chapter 6. p62: how many bytes a day the phone really needs
# A synthetic status board of 40 services (generic labels s01 to s40,
# no real names), 4 numbers each. Three ways to keep the phone current,
# every 15 minutes (96 times a day): the full board as text, the full
# board zlib-compressed, and only the rows that changed state, also
# compressed. Exceptions-only adds one compressed line per push.
import random
import zlib

rng = random.Random(41662)
STATES = ("ok", "ok", "ok", "ok", "ok", "ok", "ok", "ok", "warn", "down")


def board(prev):
    rows = []
    for i in range(40):
        st = prev[i][1] if prev and rng.random() < 0.97 else rng.choice(
            STATES)
        rows.append(("s{:02d}".format(i + 1), st, rng.randint(5, 95),
                     rng.randint(20, 90), rng.randint(40, 900)))
    return rows


def text(rows):
    return "\n".join("{} {} cpu={} mem={} p95ms={}".format(*r)
                     for r in rows).encode("ascii")


full = comp = delta = 0
prev = None
for _ in range(96):
    rows = board(prev)
    raw = text(rows)
    full += len(raw)
    comp += len(zlib.compress(raw, 9))
    changed = [r for i, r in enumerate(rows)
               if prev is None or prev[i][1] != r[1]]
    delta += len(zlib.compress(text(changed), 9)) if changed else 0
    prev = rows
push = len(zlib.compress(b"s07 down since 03:12 utc; restart 2 of 3 ok", 9))
print("full board, plain      {:>9,} bytes/day".format(full))
print("full board, zlib       {:>9,} bytes/day".format(comp))
print("state changes, zlib    {:>9,} bytes/day".format(delta))
print("one exception push     {:>9,} bytes".format(push))
print("30 days of changes     {:>9,} bytes".format(delta * 30))
print("compression ratio full {:.3f}".format(comp / full))
print("changes vs plain board {:.4f}".format(delta / full))

Single source and citation

Fan, Y. (2026). Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity (Version 1.0.0), Chapter 6: Lost Links, Thin Links and Permissions: What the Phone May and May Not Do. 5D Library. DOI pending

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

BibTeX
@book{fan2026416,
  author    = {Fan, Yafu},
  title     = {Pocket Command of Multi-Container Fleets: Mobile Remote Control, Exception-Only Push Filtering and Away-From-Keyboard Continuity},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book