Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.31 KB

code_walkthrough.md

File metadata and controls

27 lines (24 loc) · 1.31 KB

Code walkthrough

Suggested reading order.

  1. session.py - the contract. Note _parse_int_column: integers go from text to Int64 without passing through float.
  2. clock.py - the mapping convention (AffineMap, source_error_ppm) and the three fits. Everything about direction of clock error lives here.
  3. counters.py - signed_modular_step is the core; read the module docstring for the two limits that E07 demonstrates.
  4. pps.py - the gate is a small state machine: warm-up chain, then prediction from recent accepted pairs.
  5. synth.py - Clocks defines true time; _generate_stream shows every injected fault in order (missing, extra, jitter, bursts, quantization, reference-column modes, invalid, duplicate, reorder).
  6. sync.py, timing.py - A02 then A01: why device-time residuals measure jitter and why wander inflates them.
  7. integrity.py - the sequence view and the timing view, and why they disagree on extra records.
  8. queue_sim.py, pipeline.py - the queue model and how stalls are recognized from writer timestamps.
  9. faults.py - lifecycle replay, exit-status consistency, check applicability.
  10. experiments.py - each eNN function: generate, analyze the session, compare with truth, decide against the protocol.

Tests mirror this order (tests/).